<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi <a href="mailto:users@clusterlabs.org" class="">users@clusterlabs.org</a>,<div class=""><br class=""></div><div class="">My current project at work is a two node cluster running apache and virtual IPs on CentOS 7. I found in my testing that apache when run by corosync does not have a reload or graceful restart. Before the cluster, when apache was a single instance, I previously used graceful restart to be able to add configurations with out affecting current users of the system.</div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><br class=""></span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">Initially, I tried adding the capability myself as a resource action in the pcs configuration, I was able to add the action, but it would have no effect when run. Digging deeper, I eventually found the apache control script at /usr/lib/ocf/resource.d/heartbeat/apache and was able to see that there are no commands available for a graceful restart, only graceful stop. </span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><br class=""></span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">Currently, I have found two ways of getting around this limitation. The first is “</span>/bin/kill -USR1 `cat /var/run/httpd.pid`<span style="background-color: rgba(255, 255, 255, 0);" class="">"</span><span style="background-color: rgba(255, 255, 255, 0);" class="">, and the second is "</span><span style="background-color: rgba(255, 255, 255, 0);" class=""><span style="caret-color: rgb(46, 139, 87); white-space: pre;" class="">/bin/test -f /var/run/httpd.pid && /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -c "PidFile /var/run/httpd.pid" -k graceful”. Both seem to work with out adversely affecting corosync.</span></span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><span style="caret-color: rgb(46, 139, 87); white-space: pre;" class=""><br class=""></span></span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><span style="caret-color: rgb(46, 139, 87); white-space: pre;" class="">My primary question is; what is the reason that graceful restart is not supported by the heartbeat apache control script? It seems like a pretty common usage of apache, so it seems a strange omission from the script. I am concerned that I’m trying to work against the grain since it is absent from the script.</span></span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><span style="caret-color: rgb(46, 139, 87); white-space: pre;" class=""><br class=""></span></span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><span style="caret-color: rgb(46, 139, 87); white-space: pre;" class="">My second question is; are the two work arounds presented above safe for use with corosync/heartbeat/pcs? Is one preferable to the other? If neither are safe, how would you recommend being able to update apache configurations with no downtime?</span></span></div><div class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><br class=""></span></div><div class="">I am new to this list and could not find a way to search the archives, so if this question has already been answered, could you point me to the search area and to the answer as well?</div><div class=""><br class=""></div><div class="">Thank you in advance for your advice and recommendations.</div><div class="">-Cole</div></body></html>