<html><head></head><body bgcolor="#FFFFFF"><div>Why's evicted terrible? &nbsp;It optional and simply removes the slave node from the cluster if it's lagging too far behind the master. &nbsp;The collocation IP can float to another slave in the cluster or go offline. &nbsp;I thought that's what you're looking for. &nbsp;I can post a config if you're interested.</div><div><br>Sent from my iPhone</div><div><br>On Nov 12, 2011, at 11:51 AM, Yves Trudeau &lt;<a href="mailto:y.trudeau@videotron.ca">y.trudeau@videotron.ca</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>

  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  
    Hi, <br>
    &nbsp;&nbsp; Setting evict_outdated_slaves is terrible but then how do you
    remove the read VIPs from slaves that are outdated.&nbsp; If there is a
    way to do it, tell me :)&nbsp; I am always open to do things in a simpler
    way.&nbsp; This solution works without evicting outdated slaves. &nbsp; The
    current mysql RA does behave correctly HA wise but it is less than
    optimal database wise.&nbsp; I mean in small installations it is probably
    ok, but at Percona, I hit many high end installations where the
    current behavior is not adequate.&nbsp; I consider myself more as a
    database specialist than an HA one so I may be more sensitive to
    these problems.&nbsp;&nbsp; <br>
    <br>
    Regards,&nbsp;&nbsp; <br>
    <br>
    Yves<br>
    <br>
    On 11-11-12 09:19 AM, Michael Marrotte wrote:
    <blockquote cite="mid:CA+EJDnA2ePgo9PQ3OT0tUmzZS7-mTKuvr7Ab8m57DrRjrWABmA@mail.gmail.com" type="cite">Are you using <span class="s">evict_outdated_slaves</span>?<br>
      <pre><div style="background-color: transparent;" class="line" id="LC296"><span class="s">&lt;parameter name="evict_outdated_slaves" unique="0" required="0"&gt;</span></div>
<div style="background-color: transparent;" class="line" id="LC297"><span class="s">&lt;longdesc lang="en"&gt;</span></div><div style="background-color: transparent;" class="line" id="LC298"><span class="s">If set to true, any slave which is more than max_slave_lag seconds</span></div>
<div style="background-color: transparent;" class="line" id="LC299"><span class="s">behind the master has its MySQL instance shut down. If this parameter</span></div><div style="background-color: transparent;" class="line" id="LC300">
<span class="s">is set to false in a primitive or clone resource, it is simply</span></div><div style="background-color: transparent;" class="line" id="LC301"><span class="s">ignored. If set to false in a master/slave resource, then exceeding</span></div>
<div style="background-color: transparent;" class="line" id="LC302"><span class="s">the maximum slave lag will merely push down the master preference so</span></div><div style="background-color: transparent;" class="line" id="LC303">
<span class="s">the lagging slave is never promoted to the new master.</span></div><div style="background-color: transparent;" class="line" id="LC304"><span class="s">&lt;/longdesc&gt;</span></div><div style="background-color: transparent;" class="line" id="LC305">
<span class="s">&lt;shortdesc lang="en"&gt;Determines whether to shut down badly lagging</span></div><div style="background-color: transparent;" class="line" id="LC306"><span class="s">slaves&lt;/shortdesc&gt;</span></div>
<div style="background-color: transparent;" class="line" id="LC307"><span class="s">&lt;content type="boolean" default="${OCF_RESKEY_evict_outdated_slaves_default}" /&gt;</span></div><div style="background-color: transparent;" class="line" id="LC308">
<span class="s">&lt;/parameter&gt;</span></div></pre>
      <br>
      <br>
      <div class="gmail_quote">On Fri, Nov 11, 2011 at 9:57 PM, Yves
        Trudeau <span dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:y.trudeau@videotron.ca">y.trudeau@videotron.ca</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000"> Because that's not
            enough, if a slave lags behind too much, I want to remove
            the vip but not stop the slave.&nbsp; <br>
            <div>
              <div class="h5"> <br>
                On 11-11-11 06:12 PM, Michael Marrotte wrote:
                <blockquote type="cite">Why don't you simply colocate
                  VIP's with the master/slave roles?<br>
                  <br>
                  <div class="gmail_quote">On Fri, Nov 11, 2011 at 5:18
                    PM, Yves Trudeau <span dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:y.trudeau@videotron.ca" target="_blank">y.trudeau@videotron.ca</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">Hi,<br>
                      &nbsp; I created a fork of the resource-agents and
                      modified the mysql RA to supports VIP. &nbsp;The
                      support for read/write VIPs is something that
                      currently limits the use of pacemaker to manage
                      mysql replication. &nbsp;I ran some basic tests on the
                      modified agent and it seems behaving sanely so far
                      but more tests will be needed (next week). &nbsp;I also
                      modified a few things in the RA that were not
                      optimal in my view. &nbsp; Here's the URL for my fork:<br>
                      <br>
                      git://<a moz-do-not-send="true" href="http://github.com/y-trudeau/resource-agents.git" target="_blank">github.com/y-trudeau/resource-agents.git</a><br>
                      <a moz-do-not-send="true" href="https://y-trudeau@github.com/y-trudeau/resource-agents.git" target="_blank">https://y-trudeau@github.com/y-trudeau/resource-agents.git</a><br>
                      <br>
                      In order to use it, you need to adapt the
                      pacemaker configuration, here's the one I am
                      using:<br>
                      <br>
                      <a moz-do-not-send="true" href="http://pastebin.com/QPJPWDhx" target="_blank">http://pastebin.com/QPJPWDhx</a><br>
                      <br>
                      Next, apart from running more tests, &nbsp;I want to do
                      the following:<br>
                      <br>
                      - review user privileges used, need to lower the
                      ones of replication_user<br>
                      - add support for MHA &nbsp;(<a moz-do-not-send="true" href="http://code.google.com/p/mysql-master-ha/" target="_blank">http://code.google.com/p/mysql-master-ha/</a>)<br>
                      - run a beautifier for more uniformity in style<br>
                      <br>
                      Reviews and comments are of course welcome.<br>
                      <br>
                      Regards,<br>
                      <br>
                      Yves<br>
                      <br>
                      <br>
                      <br>
                      <br>
                      _______________________________________________<br>
                      Pacemaker mailing list: <a moz-do-not-send="true" href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
                      <a moz-do-not-send="true" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
                      <br>
                      Project Home: <a moz-do-not-send="true" href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
                      Getting started: <a moz-do-not-send="true" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
                      Bugs: <a moz-do-not-send="true" href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
                    </blockquote>
                  </div>
                  <br>
                  <pre><fieldset></fieldset>
_______________________________________________
Pacemaker mailing list: <a moz-do-not-send="true" href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a>
<a moz-do-not-send="true" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a moz-do-not-send="true" href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a>
Getting started: <a moz-do-not-send="true" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a moz-do-not-send="true" href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a>
</pre>
                </blockquote>
                <br>
              </div>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          Pacemaker mailing list: <a moz-do-not-send="true" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
          <a moz-do-not-send="true" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
          <br>
          Project Home: <a moz-do-not-send="true" href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
          Getting started: <a moz-do-not-send="true" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
          Bugs: <a moz-do-not-send="true" href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a>
</pre>
    </blockquote>
    <br>
  

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a></span><br><span><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a></span><br><span></span><br><span>Project Home: <a href="http://www.clusterlabs.org">http://www.clusterlabs.org</a></span><br><span>Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a></span><br><span>Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a></span><br></div></blockquote></body></html>