You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create-message.sh
Change the design to support running create-message.sh on any system in a cluster, not just the system in the cluster that has a scroll phat. Systems fail! To support an SRE environment of automation and failover
The text was updated successfully, but these errors were encountered:
BradleyA
added
the
enhancement
Increase or improve in quality, performance, business value, function, or user satisfaction.
label
Mar 3, 2018
Need to think about incidents with this code that can be created and solved
# Create missing host files from list in SYSTEM file
for NODE in $(cat ${DATA_DIR}${CLUSTER}/SYSTEMS) ; do
touch ${DATA_DIR}${CLUSTER}/${NODE}
done
#
NODE_LIST=`find ${DATA_DIR}${CLUSTER} -type f ! -name SYSTEMS ! -name MESSAGE -print`
# Check if ${NODE_LIST} is zero length
if [ -z "${NODE_LIST}" ] ; then
echo -e "${NORMAL}${0} ${LINENO} [${BOLD}ERROR${NORMAL}]: No file(s) found\n" 1>&2
echo -e "\tCheck to make sure user has permission to create directory and files."
exit 1
fi
When a system fails which this script started on; it can restart on another system in the cluster and the MESSAGE and SYSTEMS file will be available. By copying the MESSAGE file to all systems in the cluster, any system which has a Scroll-pHAT can display the MESSAGE information. The information in MESSAGE file is sent to remote systems before it has been updated, incident #3. This means remote systems with Scroll-pHAT will display the previous MESSAGE information. Thus systems with Scroll-pHAT will display the previous MESSAGE information.
Later this script will be moved into a docker container which will handle the failover restart process ..., incident #4.
create-message.sh
Change the design to support running create-message.sh on any system in a cluster, not just the system in the cluster that has a scroll phat. Systems fail! To support an SRE environment of automation and failover
The text was updated successfully, but these errors were encountered: