This article will provide a step by step guide to move Zookeeper to webapp nodes.
-
After the update to 3.8.3 run the following script on webapp nodes to install Zookeeper:
-
In case of using YUM repositories
-
sudo bash /etc/veridiumid/update-procedure/current/resources/scripts/383/zookeeper_install.sh -i -p PRIMARY_IP_ADDR -s SECONDARY_IP_ADDR # Where: # PRIMARY_IP_ADDR will be the IP address of the primary node (the one that participates in the cluster) # SECONDARY_IP_ADDR will be the IP address of the secondary node (the observer in the cluster)
-
-
In case of using local RPM packages
-
sudo bash /etc/veridiumid/update-procedure/current/resources/scripts/383/zookeeper_install.sh -i -p PRIMARY_IP_ADDR -s SECONDARY_IP_ADDR -r PATH # Where: # PRIMARY_IP_ADDR will be the IP address of the primary node (the one that participates in the cluster) # SECONDARY_IP_ADDR will be the IP address of the secondary node (the observer in the cluster) # PATH is the full path to the directory containing the packages
-
-
-
Create Zookeeper Paths
-
Run this command on a single webapp node to create the Zookeeper paths:
-
sudo bash /etc/veridiumid/update-procedure/current/resources/scripts/383/zookeeper_install.sh -c
-
-
-
Migrate data from old Zookeeper to the new one
-
Run this command on all webapp nodes to migrate the data from the old Zookeeper cluster to the new one and also change the values in zookeeper.properties file:
-
sudo bash /etc/veridiumid/update-procedure/current/resources/scripts/383/zookeeper_install.sh -m
-
-
-
Restart webapp services
-
Run this command on all webapp nodes to restart webapp services:
-
LIST=( "ver_websecadmin" "ver_tomcat" "ver_selfservice" "ver_fido" "ver_setupagent" "ver_freeradius" ) for service_name in ${LIST[@]}; do service ${service_name} restart; done
-
-