<div dir="ltr">Sure no problem.  The typical use-case for having multiple Gateway nodes is to scale the gateway layer horizontally and then put a load balancer in front of them.  So for example you might start up 5 apiman gateway instances and configure them all to use the same Elasticsearch instance for persistence (i.e. where to store configuration info like which APIs have been published).  In this use-case, every gateway instance has the same set of APIs &quot;published&quot; to it.  You can publish an API from the UI/manager to **any** of the gateway instances and they will all know about that API.  This is the &quot;Single Logical Gateway&quot; use-case -- the UI/manager and all consumers don&#39;t know or care how many gateway nodes there are - there could be 1 node, or there could be 100.  It behaves the same logically.<div><br></div><div>An **alternate** use case for having multiple gateways is when you actually want different APIs to be deployed to different gateways.  So let&#39;s say you wanted Gateway Alpha to be able to proxy traffic to APIs A, B, and C.  Then you have Gateway Beta which you want to proxy traffic to APIs C, D, and E.  In that case, consumer traffic MUST be routed through Gateway Alpha in order to access APIs A and B.  Consumer traffic MUST be routed through Gateway Beta to access APIs D and E.  Finally, consumer traffic can be routed to **either** Gateway Alpha or Gateway Beta in order to access API C.  Think of this as the &quot;Two Logical Gateways&quot; use-case.</div><div><br></div><div>In order to achieve the &quot;Two Logical Gateways&quot; use-case, you will need **two** separate persistence stores (Elasticsearch instances).  Then you configure Gateway Alpha to use persistence store #1 and configure Gateway Beta to use persistence store #2.</div><div><br></div><div>Note that you can have multiple gateway nodes for EACH of the two logical gateways.  So for example you could have 5 gateway instances all pointing to persistence store #1 - these 5 nodes would make up a single logical gateway called &quot;Gateway Alpha&quot;.  Then you could have 10 gateway instances all pointing to persistence store #2 - and these would be a single logical gateway called &quot;Gateway Beta&quot;.</div><div><br></div><div>Here is a diagram of what the architecture might look like:</div><div><br></div><div><div><img src="cid:ii_jp43dzm40" alt="image.png" width="563" height="363"><br></div></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 30, 2018 at 8:38 AM Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com">Florian.Volk@scheer-group.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE-CH" link="blue" vlink="purple">
<div class="m_-3165089944814002315WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Hi Eric,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">now I’m confused. We use Elasticsearch as backend. If I understand you correctly it would mean that we have to setup an Elasticsearch
 instance for each gateway?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">On the other point, if the gateways operate as logical unit, why is there a configuration option in the ui?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Can you explain this a little bit more detailed? Maybe you have a configuration example.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Regards,<br>
Florian<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Von:</span></b><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Eric Wittmann &lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;
<br>
<b>Gesendet:</b> Friday, 30 November 2018 14:22<br>
<b>An:</b> Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com" target="_blank">Florian.Volk@scheer-group.com</a>&gt;<br>
<b>Cc:</b> <a href="mailto:chttl582@gmail.com" target="_blank">chttl582@gmail.com</a>; Marc Savy &lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;; Kihm, Benjamin &lt;<a href="mailto:Benjamin.Kihm@scheer-group.com" target="_blank">Benjamin.Kihm@scheer-group.com</a>&gt;; Gebert, Alfred &lt;<a href="mailto:Alfred.Gebert@scheer-group.com" target="_blank">Alfred.Gebert@scheer-group.com</a>&gt;; <a href="mailto:apiman-user@lists.jboss.org" target="_blank">apiman-user@lists.jboss.org</a><br>
<b>Betreff:</b> Re: [Apiman-user] [DKIM] Re: publish api to specific gateway<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Are both gateways using the same persistent storage?  Each gateway would need separate, independent persistence otherwise they will behave as a single &quot;logical&quot; gateway.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-Eric<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Nov 30, 2018 at 4:39 AM Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com" target="_blank">Florian.Volk@scheer-group.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Hello together,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">I was interested in this and made a short test in my loacal environment and I am able to reproduce
 this.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">I created a ticket on github for this (</span><a href="https://github.com/apiman/apiman/issues/711" target="_blank"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">https://github.com/apiman/apiman/issues/711</span></a><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">).
 We may can fix this shortly.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Florian</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Von:</span></b><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
</span><a href="mailto:apiman-user-bounces@lists.jboss.org" target="_blank"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">apiman-user-bounces@lists.jboss.org</span></a><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
 &lt;</span><a href="mailto:apiman-user-bounces@lists.jboss.org" target="_blank"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">apiman-user-bounces@lists.jboss.org</span></a><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">&gt;
<b>Im Auftrag von </b>Jon Huang<br>
<b>Gesendet:</b> Friday, 30 November 2018 03:28<br>
<b>An:</b> </span><a href="mailto:marc.savy@redhat.com" target="_blank"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">marc.savy@redhat.com</span></a><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><br>
<b>Cc:</b> </span><a href="mailto:apiman-user@lists.jboss.org" target="_blank"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">apiman-user@lists.jboss.org</span></a><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><br>
<b>Betreff:</b> [DKIM] Re: [Apiman-user] publish api to specific gateway</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Dear Marc<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Yes I untick another gateway however request towards both gateways still works.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Besides I tried to publish API via admin REST API (post api version then put gateway info), both gateways forwards request too.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Before filing a bug is there any apigw setting I shall check? (such as parameter in apiman.properties or etc...)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks for your help.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Regards<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Marc Savy &lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;
<span style="font-family:&quot;MS Gothic&quot;">於</span> 2018<span style="font-family:&quot;MS Gothic&quot;">年</span>11<span style="font-family:&quot;MS Gothic&quot;">月</span>21<span style="font-family:&quot;MS Gothic&quot;">日</span>
<span style="font-family:&quot;MS Gothic&quot;">週三</span> <span style="font-family:&quot;MS Gothic&quot;">
下午</span>9:35<span style="font-family:&quot;MS Gothic&quot;">寫道:</span><u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Apologies for the terribly slow reply. We&#39;ve had so much spam I&#39;ve missed legitimate emails like this.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Did you explicitly untick the other gateway? Was this via the UI or the API?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Did you resolve this issue? If not, please file a bug: <a href="https://github.com/apiman/apiman/issues" target="_blank">https://github.com/apiman/apiman/issues</a><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, 4 Oct 2018 at 05:00, Jon Huang &lt;<a href="mailto:chttl582@gmail.com" target="_blank">chttl582@gmail.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Dears<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I had set up 2 gateways.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">When I new an API, I have to choose which gateway to publish. (select list at Gateway section in the implementation tab).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">However after creating a client app and contract for test, I found request via another gateway still works.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">(I guest when publishing to gateway 1 and request via gateway 2 shall fail)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Am I misunderstanding or I miss some settings to make it work?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>

</blockquote></div>