M*****r 发帖数: 1536 | 1 有个application server (后接database),连接原理基本就是:
1. start server service/process, it listens on port (e.g. 9191)
2. client connect to the application server service/process (@9191)
3. application service creates a new process serving the client request on
another port (e.g. 11111), 此后client只和这个process (@11111)打交道了(
stateful connection)
问题是:如何load balancing?
假设有2个application servers on two different machines running behind a load
balancer. 目前的问题是,因为client连接后,只认IP:9191这个port了(packet
destination is fixe |
s*****g 发帖数: 1055 | 2 Is this what really happening or is it that you are just thinking load
balancer will work this way? |
c*****i 发帖数: 631 | 3 you should be able to configure some kind of session sticky on the load
balancer. |
p*****s 发帖数: 344 | 4 for applicaton level LB, the simplest way is connection/session
redirection.
i.e at step 3, application return a message ask client to connect to
another IP:port.
on
load
server
【在 M*****r 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 有个application server (后接database),连接原理基本就是: : 1. start server service/process, it listens on port (e.g. 9191) : 2. client connect to the application server service/process (@9191) : 3. application service creates a new process serving the client request on : another port (e.g. 11111), 此后client只和这个process (@11111)打交道了( : stateful connection) : 问题是:如何load balancing? : 假设有2个application servers on two different machines running behind a load : balancer. 目前的问题是,因为client连接后,只认IP:9191这个port了(packet : destination is fixe
|
s*****g 发帖数: 1055 | 5 "i.e at step 3, application return a message ask client to connect to
another IP:port."
How is that going to work? if load-balancer is behind firewall, and firewall
is not aware this new port, the connection will be rejected, and I doubt a
typical client application will have this build in intelligence.
Why is this so difficult to understand? load balancer will terminate all
external TCP/IP connections, when a new request comes in, LB will act as a
proxy, i.e. terminating TCP/IP and dispatching |
c*c 发帖数: 447 | 6 LB可以设置基于IP的session stickiness。不过如果你的客户不够多的话,LB也就是去
其意义了。 |
n**c 发帖数: 16 | 7 you should be able to achieve this by adjusting the type of balance used on
your content rules |