how to implement load balance?

K

keredil

Suppose I want to develop a large-scale application to which tens of
thousands of clients connect simultaneously. Could you give me some
idea on how to implement load balance?

Thanks!
 
L

Lucy

Suppose I want to develop a large-scale application to which tens of
thousands of clients connect simultaneously. Could you give me some
idea on how to implement load balance?

Thanks!
You mean something similar to what amazon.com does?
 
B

Bjorn Borud

[[email protected]]
| Suppose I want to develop a large-scale application to which tens of
| thousands of clients connect simultaneously. Could you give me some
| idea on how to implement load balance?

get more machines.

| Thanks!

you're welcome.

-Bjørn
 
L

Lucy

Suppose I want to develop a large-scale application to which tens of
thousands of clients connect simultaneously. Could you give me some
idea on how to implement load balance?

Thanks!

I think the basic idea is to have some hardware switching device(s) that
route incoming
calls (or whatever you call them) to one of a large set of cpus that handle
the initial request.
It would be nice if the switching gear could obtain the load on each of
these front end
cpus, but it could just round robin to them. A front end box could handle
the request
itself or pass it off to a middle tier box for special requests.
 
K

keredil

Suppose there will be 100,000 or more socket connections. Apparently
it's not a good practice for one process handles these requests by
creating those corresponding service threads. Maybe it's not allowed by
operating system. So I'd like to use 10 or more machines, and each
machine has 1 to 10 processes. The point is how to design a front end
box as Lucy said?
 
L

Lucy

Suppose there will be 100,000 or more socket connections. Apparently
it's not a good practice for one process handles these requests by
creating those corresponding service threads. Maybe it's not allowed by
operating system. So I'd like to use 10 or more machines, and each
machine has 1 to 10 processes. The point is how to design a front end
box as Lucy said?

Can't you just buy it?
 
T

Thomas Weidenfeller

Suppose there will be 100,000 or more socket connections.

TCP? You have some serious homework ahead of you: You might want to go
back and learn the basics of this IP thing.

You only have 2^16 ports for TCP connections per IPv4 interface. So your
100000+ (assumed TCP) connections are well beyond what you can handle on
one interface.
So I'd like to use 10 or more machines, and each
machine has 1 to 10 processes. The point is how to design a front end
box as Lucy said?

Buy a load balancer. No, wait, hire some professional who designs the
system (hardware and software) for you. This is not something which can
be made to work by a few hours of toying with Java code.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top