[ 
https://issues.apache.org/jira/browse/GEODE-8656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17221718#comment-17221718
 ] 

ASF GitHub Bot commented on GEODE-8656:
---------------------------------------

albertogpz commented on pull request #5670:
URL: https://github.com/apache/geode/pull/5670#issuecomment-717506887


   > @albertogpz, hostname-for-senders is a string value which represents the 
hostname that is given to the senders. This means, that if you start 2 (or more 
servers) on the same machine they can have the same value. Could you create two 
servers with a gateway receiver each, with the same hostname-for-server value 
and see if this solves the problem.
   > 
   > If not, we have to seriously put our heads together and try and come up 
with a solution to the problem. As I'd prefer a test to be in place that 
reproduce the issue and then of course fix it. Might even mean that we might 
have to create a whole new framework to test these kind of issues.
   
   @kohlmu-pivotal, the receivers part is easy, we can create two senders with 
the same hostname-for-senders value as you suggest.
   The difficult part is the sending side. The gateway senders would use the 
value of hostname-for-senders to connect to the receivers but we should have 
"something" (the load balancer in the real world) that should intercept the 
connect call to the hostname-for-senders address so that the connection is 
finally made against the ip addresses to which the receivers binded.
   I do not know if we can tweak in the test case the part of the creation of 
the connection in the gateway sender so that when a connection to an endpoint 
is created, the IP address to be used is changed to one of the IP addresses on 
which the receivers are listening.
   I will try to check if this is possible.
   Any ideas are welcome.
   Thanks!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Ping not sent to the right gateway receiver endpoint when several receivers 
> have the same hostname-for-senders value
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-8656
>                 URL: https://issues.apache.org/jira/browse/GEODE-8656
>             Project: Geode
>          Issue Type: Bug
>          Components: wan
>            Reporter: Alberto Gomez
>            Assignee: Alberto Gomez
>            Priority: Major
>              Labels: pull-request-available
>
> When several gateway receivers have the same value for hostname-for-senders 
> (for example when running Geode under kubernetes and a load balancer balances 
> the load among the remote servers), the ping messages sent from the gateway 
> sender client are only sent to the receiver (endpoint) to which the sender 
> connected first.
> The other receivers will not get the ping message which will imply that the 
> connections towards them will be closed after the configured timeout expires.
> This ticket is a continuation of the work done ticket GEODE-7565.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to