Skip to content

Commit

Permalink
add prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoufwind committed May 7, 2019
1 parent ab2fcc1 commit 80fd807
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions upgrade-be.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down
6 changes: 5 additions & 1 deletion upgrade-fe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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"
echo "Modify token and clusterId: /home/$1/fe/palo-meta/image/VERSION"
cat /home/$1/fe/palo-meta/image/VERSION

0 comments on commit 80fd807

Please sign in to comment.