I have 2 systems: system 1 is running akka and HAProxy, system 2 is running 
REST components that make a request to akka. 

Akka runs on port 4241 on system 1. System 2 is able to connect to System 1 
when there is no HAProxy. After I installed HAProxy on system 1, the 
request from system 2 to system 1 errors out with the logs below:

> ERROR[deal-akka.actor.default-dispatcher-18] EndpointWriter - dropping
> message [class akka.actor.ActorSelectionMessage] for non-local
> recipient [Actor[akka.tcp://akkaSystemName@Server1IP:42431/]] arriving at
> [akka.tcp://akkaSystemName@Server1IP:42431] inbound addresses are
> [akka.tcp://akkaSystemName@Server1IP:4241]

HAProxy runs on 42431.

The HAProxy configuration is the following:

    listen akka_tcp :42431
            mode tcp
            option tcplog
            balance leastconn
    
            server test1 Server1IP:4241 check
            server test2 Server1IP:4241 check

The akka configuration is this:
 

      actor {
        provider = "akka.remote.RemoteActorRefProvider"
      }
    
      remote {
        netty.tcp {
    
          hostname = "Server1IP"
    
          port = 4241
    
          transport-protocol = tcp
    
          # Sets the send buffer size of the Sockets,
          # set to 0b for platform default
          send-buffer-size = 52428800b
    
          # Sets the receive buffer size of the Sockets,
          # set to 0b for platform default
          receive-buffer-size = 52428800b
    
          maximum-frame-size = 52428800b
        }
      }

Any suggestion would be appreciated. 

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to