<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="2"><font face="Arial">Attached is an excerpt from our two node (active/passive) Web cluster. We are currently launching uWSGI via the ocf:heartbeat:anything RA (see
 below).</font><br>
<br>
<font face="Arial">I would like to make some slight changes to the "cmdline_options" argument on our running cluster... (via "crm configure edit")</font></font>
<div><font face="Arial" size="2"><br>
</font></div>
<div><font face="Arial" size="2">Do I need to stop the </font><span style="font-family: 'Courier New'; font-size: small;">resWSGI</span><span style="font-family: Arial; font-size: small;"> resource
<i>first</i> before making this type of change? Does it matter that it's in a co-located resource group? I am not sure if the best approach is to remove it from the group, stop/delete, and re-add with the adjusted </span><span style="font-family: 'Courier New'; font-size: small;">cmdline_options</span><span style="font-family: Arial; font-size: small;"> or
 if heatbeat:anything RA allows adjusting said arguments on-the-fly?</span></div>
<div><span style="font-family: Arial; font-size: small;"><br>
</span></div>
<div><font face="Arial" size="2">Appreciate any advice on best practices when updating against currently running cluster. I have read about setting </font><font size="2" face="Courier New">maintenance-mode=true</font><font face="Arial" size="2"> during planned
 maintenance like this (to prevent failover, etc), but I wanted to confirm the best approach when changing existing resources vs. adding new ones, especially when grouped.</font></div>
<div>
<div><br>
</div>
<div><font size="2"><br>
</font><span style="font-family: 'Courier New'; font-size: small;">...</span></div>
<div><font size="2"><font face="Courier New"><br>
primitive resFS ocf:heartbeat:Filesystem \<br>
params device="/dev/drbd/by-res/repdata" directory="/data" fstype="ext4" \<br>
op monitor interval="120s"<br>
<br>
primitive resPROXY ocf:heartbeat:nginx \<br>
params conffile="/etc/nginx/nginx.conf" \<br>
op monitor interval="60s" \<br>
op start interval="0" timeout="40"<br>
<br>
primitive resWSGI ocf:heartbeat:anything \<br>
<br>
params binfile="/usr/local/bin/uwsgi" cmdline_options="--emperor /etc/uwsgi/apps-enabled/ --emperor-pidfile /var/run/uwsgi.pid --catch-exceptions --daemonize /var/log/uwsgi.log --enable-threads" pidfile="/var/run/uwsgi.pid" \<br>
op start interval="0" timeout="20" \<br>
op stop interval="0" timeout="30" \<br>
op monitor interval="20" \<br>
meta target-role="Started"<br>
<br>
group web resFS resWSGI resPROXY</font></font></div>
</div>
<div><font size="2"><font face="Courier New"><br>
</font></font></div>
<div><span style="font-family: 'Courier New'; font-size: small;">...</span></div>
<div><font size="2"><font face="Courier New"><br>
</font></font></div>
<div><font size="2"><font face="Courier New">colocation web_on_drbd inf: web msDRBD:Master</font></font></div>
<div><font size="2"><font face="Courier New"><br>
</font></font></div>
<div><span style="font-family: 'Courier New'; font-size: small;">...</span></div>
</div>
<FONT size="2" face="arial"><EM/></FONT></body>
</html>