1999Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] How to support 1000+ simultaneous connections, and some philosophy. -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Thu, 11 Mar 1999 21:30:44 &#45;0800 -->
<!--X-Message-Id: 199903120528.WAA01009@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] How to support 1000+ simultaneous connections, a</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00541.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00543.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00552.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00545.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00542">Author</A>
&nbsp;|&nbsp;<A HREF="#00542">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00542">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Thu, 11 Mar 1999 22:28:16 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
[Petri Virkkula:]

 &gt;	As others have pointed out there would not be multiple ports,
 &gt;	but multiple addresses with a single port number. The
 &gt;	addresses would then be given out eg. in round-robin
 &gt;	order. This is how many www-sites balances load between
 &gt;	multiple machines (my suggestion would distribute the load
 &gt;	between multiple processes, not machines).

Doesn't that require a custom DNS, so that it does hand out the IP's
in round-robin fashion? What about DNS's that cache associations?

 &gt;	Make the connection server accept eg. 1000 connections (and
 &gt;	serve them all). After that the server can fork(). The new
 &gt;	child would then close the main socket that is being listened
 &gt;	and only serve its 1000 clients. As soon as all the 1000
 &gt;	clients have closed their connections just exit the child. At
 &gt;	the same time the parent process closes all the client sockets
 &gt;	and start again collect a new set of 1000 clients.
 &gt;
 &gt;	The above method might result in multiple processes, each of them
 &gt;	handling just few clients. But the system might work fairly
 &gt;	well, but that is difficult to say without testing.

Yep. In the worst case, you end up with a process per client! Perhaps
maintain some kind of central control, and when a process has a goodly
amount of excess client capacity, tell it to re-open the main socket,
so as to accept more connections. The flaw with any scheme that tries
to move the main connection point around like that is that there are
small windows when the IP/port is not present, and clients hitting
that window will get a failed connection. With a custom client you
can retry, however (but then, lots of solutions work with a custom client).


An earlier post talked about moving client connections around, using
a custom client able to do that. One thing to watch out for there is
that you have to mark a client as moving before you start moving it.
That way you queue up all outgoing stuff to it while it is in motion,
so that you don't end up having to bounce them all around.

--
Don't design inefficiency in - it'll happen in the implementation.

Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA
               <A  HREF="http://www.GraySage.Edmonton.AB.CA/cg/">http://www.GraySage.Edmonton.AB.CA/cg/</A>


_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00545" HREF="msg00545.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#kanga,nu&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00541.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00543.html">Re: [MUD-Dev] Multiple clients (was Re: How to support 1000+ simultaneous connections)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00552.html">RE: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00545.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00542"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00542"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00531" HREF="msg00531.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 11 Mar 1999, 15:05 GMT
<UL>
<LI><strong><A NAME="00535" HREF="msg00535.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, andsome philosophy.</A></strong>, 
Dominic J. Eidson <a href="mailto:sauron#the-infinite,org">sauron#the-infinite,org</a>, Thu 11 Mar 1999, 20:27 GMT
</LI>
<LI><strong><A NAME="00541" HREF="msg00541.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></strong>, 
J C Lawrence <a href="mailto:claw#varesearch,com">claw#varesearch,com</a>, Fri 12 Mar 1999, 02:32 GMT
<UL>
<LI><strong><A NAME="00552" HREF="msg00552.html">RE: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></strong>, 
Jay Carlson <a href="mailto:nop#mitre,org">nop#mitre,org</a>, Fri 12 Mar 1999, 13:55 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00542" HREF="msg00542.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 12 Mar 1999, 05:30 GMT
<UL>
<LI><strong><A NAME="00545" HREF="msg00545.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 12 Mar 1999, 06:24 GMT
<UL>
<LI><strong><A NAME="00546" HREF="msg00546.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></strong>, 
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Fri 12 Mar 1999, 07:08 GMT
</LI>
<LI><strong><A NAME="00554" HREF="msg00554.html">[MUD-Dev] Balancing a Mud</A></strong>, 
Martin C Sweitzer <a href="mailto:msew+@andrew.cmu.edu">msew+@andrew.cmu.edu</a>, Fri 12 Mar 1999, 16:02 GMT
<UL>
<LI><strong><A NAME="00557" HREF="msg00557.html">Re: [MUD-Dev] Balancing a Mud</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Fri 12 Mar 1999, 20:26 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>