no reload operation (graceful) apache pacemaker & corosync active/pasive cluster

General support questions
orever
Posts: 10
Joined: 2005/11/03 19:44:29

Re: no reload operation (graceful) apache pacemaker & corosync active/pasive cluster

Post by orever » 2018/09/19 23:04:15

My solution is to reload httpd directly, bypassing pacemaker. It probably won't ;) notice this is happening:

Code: Select all

/bin/test -f /var/run/httpd.pid && /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -c "PidFile /var/run/httpd.pid" -k graceful

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: no reload operation (graceful) apache pacemaker & corosync active/pasive cluster

Post by hunter86_bg » 2018/09/20 03:35:45

A simple

Code: Select all

apachectl graceful
will do the trick.
As the cluster is checking the status URL, that URL will report the apache is up.
Also, you can consider using shared storage for configuration and DocumentRoot directories. In such way any change will be done on a single place, guaranteeing consistency.
A simpler way to create the resources is using cluster groups. They reduce the chance for forgetting some constraint.

Post Reply