<div dir="ltr">Hello, <div><br></div><div>could you please describe the setup/topology of your &quot;cluster&quot;?  The HA setup of apiman takes advantage of the fact that state is shared only inside ES -- so you should be good as long as you share one ES cluster among all gateways. Thus it is not really a cluster. </div><div><br></div><div><br></div><div>Jakub.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 18, 2016 at 1:10 PM, Vax, Uri <span dir="ltr">&lt;<a href="mailto:uvax@informatica.com" target="_blank">uvax@informatica.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hi <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m using APIMan 1.1.9. <u></u><u></u></p>
<p class="MsoNormal">It seems like Rate-limit policy does not work properly when there are several nodes (node1, node2).
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b><u>The scenario:<u></u><u></u></u></b></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt &quot;Times New Roman&quot;">        
</span></span></span><u></u><span dir="LTR"></span>Setup up an APIMan cluster with two nodes (node1 , node2).  <u></u><u></u></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt &quot;Times New Roman&quot;">        
</span></span></span><u></u><span dir="LTR"></span>Create a service with a rate-limit policy of 5 request per minute
<u></u><u></u></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt &quot;Times New Roman&quot;">        
</span></span></span><u></u><span dir="LTR"></span>Send requests to the service using postman (or any other http client):<u></u><u></u></p>
<p style="margin-left:1.0in">
<u></u><span style="font-family:&quot;Courier New&quot;"><span>o<span style="font:7.0pt &quot;Times New Roman&quot;">  
</span></span></span><u></u><span dir="LTR"></span>Send requests to node1 until rate limit is exceeded
<u></u><u></u></p>
<p style="margin-left:1.0in">
<u></u><span style="font-family:&quot;Courier New&quot;"><span>o<span style="font:7.0pt &quot;Times New Roman&quot;">  
</span></span></span><u></u><span dir="LTR"></span>Send another request to node2 – APIMan will pass the request to the service end-point API instead of returning the “Rate limit exceeded” response
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Uri <u></u><u></u></p>
</div>
</div>

<br>_______________________________________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>