diff --git a/upgrade-be.sh b/upgrade-be.sh index eb5a287..b0129a9 100644 --- a/upgrade-be.sh +++ b/upgrade-be.sh @@ -80,6 +80,7 @@ sed -i "s,webserver_port = 8040,webserver_port = 804$1,g" /home/$3/be$1/conf/be. sed -i "s,heartbeat_service_port = 9050,heartbeat_service_port = 905$1,g" /home/$3/be$1/conf/be.conf sed -i "s,brpc_port = 8060,brpc_port = 806$1,g" /home/$3/be$1/conf/be.conf sed -i "s,/home/disk1/palo;/home/disk2/palo,$2,g" /home/$3/be$1/conf/be.conf +echo "mem_limit = 30%" >> /home/$3/be$1/conf/be.conf # Modify BE bin file echo "Modify BE bin file..." diff --git a/upgrade-fe.sh b/upgrade-fe.sh index 6b9d72e..ac2503a 100644 --- a/upgrade-fe.sh +++ b/upgrade-fe.sh @@ -75,6 +75,9 @@ echo "Modify FE conf file..." cp -rf /home/$1/fe/conf/fe.conf /home/$1/fe/conf/fe.conf.src chown $1:$1 /home/$1/fe/conf/fe.conf.src echo "JAVA_HOME = $4" >> /home/$1/fe/conf/fe.conf +echo "tablet_create_timeout_second = 4" >> /home/$1/fe/conf/fe.conf +sed -i "s,-Xmx2024m,-Xmx8G,g" /home/$1/fe/conf/fe.conf +sed -i "s,edit_log_port = 9010,edit_log_port = 9011,g" /home/$1/fe/conf/fe.conf # Modify FE bin file echo "Modify FE bin file..." @@ -83,4 +86,5 @@ chown $1:$1 /home/$1/fe/bin/start_fe_hup.sh sed -i "s,/dev/null &,/dev/null,g" /home/$1/fe/bin/start_fe_hup.sh # Modify token and clusterId -echo "Modify token and clusterId manually at: /home/palo/fe/palo-meta/image/VERSION" \ No newline at end of file +echo "Modify token and clusterId: /home/$1/fe/palo-meta/image/VERSION" +cat /home/$1/fe/palo-meta/image/VERSION \ No newline at end of file