[MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.
J C Lawrence
claw at varesearch.com
Thu Mar 11 18:32:27 New Zealand Daylight Time 1999
On Thu, 11 Mar 1999 08:03:09 -0700
Chris Gray <cg at ami-cg.GraySage.Edmonton.AB.CA> wrote:
> [Oliver Jowett:]
>> On Wed, 10 Mar 1999, Chris Gray wrote:
>> What about using round-robin DNS (multiple A records for the same
>> hostname)? It's using the same port, just on different IPs that
>> all happen to be on the same machine.
> I'll let others answer that - my knowledge of networking is mostly
> as a programmer, and not as an administrator/configurator. I'm not
> sure how easy it would be to do (not in editing files, but in
> practical matters), or whether it would yield decent balance among
> the 10.
To very quickly recap and illustrate the area:
It is possible to configure a fully qualified domain name so that
it maps to multiple IP addresses. This is done very simply by just
defining multiple IP addresses for that domain.
Want an example? Run `nslookup` against yahoo:
$ nslookup www.yahoo.com
Addresses: 126.96.36.199, 188.8.131.52, 184.108.40.206,
220.127.116.11, 18.104.22.168, 22.214.171.124
The end result of doing this is that the name server cycles among
the IP addresses when answering resolution requests. Thus, the
first client asking where "www.yahoo.com" is gets, "126.96.36.199",
the next client gets "188.8.131.52", the next, "184.108.40.206", and
so forth until the end when it starts all over again.
This is a very crude form of load balancing and is only really
effective when your user transactions are both short and of
reasonably uniform size/expense (eg web hits). If your transactions
are vary significantly in length, there is the possibility of
(randomly) all your long/expensive transactions getting assigned to
one node, while all the quickies get assigned to the rest, leaving
one node drowning while the rest cruise.
More intelligent DNS load balancers maintain an arbitration system
with the nodes they represent, and assign new tasks to least-loaded
nodes. There are also many other forms of load balancing, encluding
supports that actively migrate processes across nodes to ensure aven
loading (IRIX does a bit of this in their CC:NUMA machines).
J C Lawrence Internet: claw at kanga.nu
---------(*) Internet: claw at varesearch.com
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...
MUD-Dev maillist - MUD-Dev at kanga.nu
More information about the MUD-Dev