Upgrading clusters of Squirro nodes to release 2.6.0 is very involved. Please contact Squirro support for assistance. On each cluster node, shut down most of the Squirro services like so: CentOS 6 / RHEL 6 |
---|
CLUSTER_NODE_VERSION=$(yum list installed squirro-cluster-node | grep squirro-cluster-node | sed -e "s/[^ ]* \+//" -e "s/ \+[^ ]*//")
if [ "$CLUSTER_NODE_VERSION" \< "2.5.3-4113" ]; then
echo "SQUIRRO-CLUSTER-NODE PACKAGE VERSION $CLUSTER_NODE_VERSION TOO LOW - PLEASE UPGRADE TO THE LATEST SQUIRRO 2.5.3 PATCH RELEASE FIRST" 1>&2
exit 1
fi
# Pause all sources in the user interface
for service in $(ls /etc/monit.d/sq*d | sed -e "s|^.*/||" | grep -v "sqclusterd" | grep -v "sqtopicproxyd"); do monit stop $service; done
# wait for `monit summary` to indicate that all services but sqclusterd and sqtopicproxyd are stopped |
| CentOS 7 |
CLUSTER_NODE_VERSION=$(yum list installed squirro-cluster-node | grep squirro-cluster-node | sed -e "s/[^ ]* \+//" -e "s/ \+[^ ]*//")
if [ "$CLUSTER_NODE_VERSION" \< "2.5.3-4113" ]; then
echo "SQUIRRO-CLUSTER-NODE PACKAGE VERSION $CLUSTER_NODE_VERSION TOO LOW - PLEASE UPGRADE TO THE LATEST SQUIRRO 2.5.3 PATCH RELEASE FIRST" 1>&2
exit 1
fi
# Pause all sources in the user interface
for service in $(ls /lib/systemd/system/sq*d.service | sed -e "s|^.*/||" | grep -v "sqclusterd" | grep -v "sqtopicproxyd"); do echo "Stopping $service"; systemctl stop $service; done
# wait for the following statement to indicate that all services but sqclusterd and sqtopicproxyd are stopped
for service in $(ls /lib/systemd/system/sq*d.service | sed -e "s|^.*/||"); do echo "Status of $service"; systemctl status $service; done |
|
Upgrade every storage nodes by running: CentOS 6 / RHEL 6 |
---|
# Ensure the latest 2.5.3 patch release has been applied
STORAGE_NODE_VERSION=$(yum list installed squirro-storage-node | grep squirro-storage-node | sed -e "s/[^ ]* \+//" -e "s/ \+[^ ]*//")
if [ "$STORAGE_NODE_VERSION" \< "2.5.3-4109" ]; then
echo "SQUIRRO-STORAGE-NODE PACKAGE VERSION $STORAGE_NODE_VERSION TOO LOW - PLEASE UPGRADE TO THE LATEST SQUIRRO 2.5.3 PATCH RELEASE FIRST" 1>&2
exit 1
fi
yum update squirro-storage-node-users
yum update elasticsearch
|
| CentOS 7 |
# Ensure the latest 2.5.3 patch release has been applied
STORAGE_NODE_VERSION=$(yum list installed squirro-storage-node | grep squirro-storage-node | sed -e "s/[^ ]* \+//" -e "s/ \+[^ ]*//")
if [ "$STORAGE_NODE_VERSION" \< "2.5.3-4109" ]; then
echo "SQUIRRO-STORAGE-NODE PACKAGE VERSION $STORAGE_NODE_VERSION TOO LOW - PLEASE UPGRADE TO THE LATEST SQUIRRO 2.5.3 PATCH RELEASE FIRST" 1>&2
exit 1
fi
yum update squirro-storage-node-users
yum update elasticsearch
|
|
and then do it on one of the storage node and make sure that the Elasticsearch health is green before proceeding to further nodes. If the Elasticsearch health is not green, please refrain from updating other storage nodes and contact Squirro support. This step usually take long time as it needs to migrate old indices to indices in new template, so make sure start this command in a screen section to avoid disconnection during update. CentOS 6 / RHEL 6 |
---|
screen
yum update squirro-storage-node
|
| CentOS 7 |
screen
systemctl daemon-reload
yum update squirro-storage-node
|
|
Upgrade each cluster nodes by running: CentOS 6 / RHEL 6 |
---|
First run the following on all cluster nodes one at a time: yum update squirro-cluster-node-users
yum update squirro-python-squirro.service.cluster |
Followed by running the following on all cluster nodes one at a time: yum update squirro-*
monit monitor all
# Resume the sources paused in the beginning |
| CentOS 7 |
yum update squirro-cluster-node-users
yum update squirro-*
for service in $(ls /lib/systemd/system/sq*d.service | sed -e "s|^.*/||"); do echo "Starting $service"; systemctl start $service; done
# Resume the sources paused in the beginning |
|
|