<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Arial Unicode MS";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Arial Unicode MS";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Another option is to implement health monitor that will fail on P nodes and will succeed on A nodes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Sergey Kraynev [mailto:skraynev@mirantis.com]
<br>
<b>Sent:</b> Monday, November 16, 2015 9:15 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [neutron][heat] LBaaS of Neutron<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On 16 November 2015 at 09:46, Qiao,Liyong <<a href="mailto:liyong.qiao@intel.com" target="_blank">liyong.qiao@intel.com</a>> wrote:<o:p></o:p></p>
</div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">hi, I have some questions about neutorn LBaas.<br>
<br>
seen from the wiki, the load balancer only support:<br>
<br>
<br>
<o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:7.5pt;margin-left:0in;line-height:15.0pt;background:white">
<b><span style="font-size:10.5pt;font-family:"Arial Unicode MS","sans-serif";color:#333333">Table 4.6. Load Balancing Algorithms</span></b><span style="font-size:10.5pt;font-family:"Arial Unicode MS","sans-serif";color:#333333"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><b>Name</b><o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal">LEAST_CONNECTIONS<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal">ROUND_ROBIN<o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><br>
<a href="https://wiki.openstack.org/wiki/Neutron/LBaaS/API" target="_blank">https://wiki.openstack.org/wiki/Neutron/LBaaS/API</a><br>
<br>
think about if I have a A-P mode HA<br>
<br>
VIP : 192.168.0.10<br>
<br>
master-1 192.168.0.100 (A)<br>
master-2 192.168.0.101 (P)<br>
<br>
if I want to use VIP to alway connect with master-1(since it is A mode),<br>
only switch to master-2 when master-1 down. what should I do?<br>
any plan to support more algorithms for neutron lbaas?<br>
<br>
BTW, the usage is from heat:<br>
<br>
  etcd_pool:<br>
    type: OS::Neutron::Pool<br>
    properties:<br>
      protocol: HTTP<br>
      monitors: [{get_resource: etcd_monitor}]<br>
      subnet: {get_resource: fixed_subnet}<br>
<b>      lb_method: ROUND_ROBIN</b><br>
      vip:<br>
        protocol_port: 2379<br>
<br>
<br>
<br>
thanks,<br>
Eli.<span style="color:#888888"><br>
<br>
<o:p></o:p></span></p>
<pre><span style="color:#888888">-- <o:p></o:p></span></pre>
<pre><span style="color:#888888">BR, Eli(Li Yong)Qiao<o:p></o:p></span></pre>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal">Hi, <span style="font-size:9.5pt">Qiao,Liyong</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">I can not say about LBaaS team plans for supporting some additional algorithms :)</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">AFAIK, they do not plan add it to v1 API.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">As I understand it may be discussed as part of v2 API [1]</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">In the Heat we have related BP [2], with several patches on review. So if it will be implemented on Neutron side, we may add such functionality too.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">[1] <a href="http://developer.openstack.org/api-ref-networking-v2-ext.html#lbaas-v2.0">
http://developer.openstack.org/api-ref-networking-v2-ext.html#lbaas-v2.0</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">[2] <a href="https://blueprints.launchpad.net/heat/+spec/lbaasv2-suport">
https://blueprints.launchpad.net/heat/+spec/lbaasv2-suport</a><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<div>
<p class="MsoNormal">Sergey.<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>