<commit_before>#!/bin/bash -e
################################################
#
#              Generated by Chef
#
################################################

#
# This script must restart any services that connect (as clients) to the VIP
# since those connections will hang if this node was the previous VIP-holder
# and is now no longer (the connections usually never get broken so the
# clients never attempt to reconnect until some app-specific idle timeout
# kicks in)
#

# Restart the fluentd logging daemon
service td-agent restart

# Restart the diamond service 
service diamond restart

# Restart the Zabbix agent
service zabbix-agent restart

# Restart the powerdns service
service pdns restart

# Restart the openstack services that connect to the VIP
for i in keystone glance-api glance-registry cinder-api cinder-scheduler cinder-volume nova-api nova-cert nova-compute nova-conductor nova-consoleauth nova-network nova-novncproxy nova-scheduler; do
	service $i restart
done<commit_msg>Turn off zabbix-server when not the vip<commit_after>#!/bin/bash -e
################################################
#
#              Generated by Chef
#
################################################

#
# This script must restart any services that connect (as clients) to the VIP
# since those connections will hang if this node was the previous VIP-holder
# and is now no longer (the connections usually never get broken so the
# clients never attempt to reconnect until some app-specific idle timeout
# kicks in)
#

# Restart the fluentd logging daemon
service td-agent restart

# Restart the diamond service 
service diamond restart

# Restart the Zabbix agent
service zabbix-agent restart

# Restart the powerdns service
service pdns restart

# kill the zabbix server if no longer vip
if_not_vip service zabbix-server stop
# and start one up if we got the vip
if_vip service zabbix-server start

# Restart the openstack services that connect to the VIP
for i in keystone glance-api glance-registry cinder-api cinder-scheduler cinder-volume nova-api nova-cert nova-compute nova-conductor nova-consoleauth nova-network nova-novncproxy nova-scheduler; do
	service $i restart
done
{'fraction_non_alphanumeric': 0.13214449016918153, 'fraction_numerical': 0.0, 'mean_word_length': 4.727748691099476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '978116', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 260}