由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
EmergingNetworking版 - 一个load balancer的问题
相关主题
请教一个网络访问记录的问题攒人品,Amazon 二面 & Onsite
General Q: Web Server Load Balance and DB Serverintern面试,求经验
请教一个load balancing的技术问题Let's talk about Load Balancing!
外行请教一个问题,port bind to specific IPpeer connection market
请问我有一条无线上网、一条有线上网,能否同时使用加快网速?能介绍本比较好的server load balancing的书吗?
twitter is down请教:为啥google.com不宕机
IPv6 RA and FHRPA10这个公司怎么样?
Chrome26访问mitbbs问题A question about routers and BGP
相关话题的讨论汇总
话题: balancer话题: load话题: ip话题: client
进入EmergingNetworking版参与讨论
1 (共1页)
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 的大作中提到】
: 有个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
1 (共1页)
进入EmergingNetworking版参与讨论
相关主题
A question about routers and BGP请问我有一条无线上网、一条有线上网,能否同时使用加快网速?
智能手机流量怎么算的? (转载)twitter is down
Network Engineer 面经IPv6 RA and FHRP
有兴趣搞一个userspace的nat实现吗Chrome26访问mitbbs问题
请教一个网络访问记录的问题攒人品,Amazon 二面 & Onsite
General Q: Web Server Load Balance and DB Serverintern面试,求经验
请教一个load balancing的技术问题Let's talk about Load Balancing!
外行请教一个问题,port bind to specific IPpeer connection market
相关话题的讨论汇总
话题: balancer话题: load话题: ip话题: client