1999Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: Distribution schemes (was Re: [MUD&#45;Dev] Languages for MUD drivers) -->
<!--X-From-R13: [vx Qynexr <zvxpyexNnggtybony.arg> -->
<!--X-Date: Thu, 18 Nov 1999 13:11:07 &#45;0800 -->
<!--X-Message-Id: 38346F80.20E181D4#attglobal,net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 026401bf3158$53bd4820$7101a8c0#howdy,cybersight.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: Distribution schemes (was Re: [MUD-Dev] Languages for MUD </title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:mikclrk#attglobal,net">
</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="msg00378.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00380.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00353.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00364.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00379">Author</A>
&nbsp;|&nbsp;<A HREF="#00379">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00379">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</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: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</LI>
<LI><em>From</em>: Mik Clarke &lt;<A HREF="mailto:mikclrk#attglobal,net">mikclrk#attglobal,net</A>&gt;</LI>
<LI><em>Date</em>: Thu, 18 Nov 1999 20:28:32 +0000</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>


"Bruce Mitchener, Jr." wrote:
&gt; 
&gt; Ian Macintosh wrote:
&gt; &gt;    &gt; I've always thought this was an extraordinarily poor
&gt; &gt;    &gt; way to handle it...
&gt; &gt;    &gt; Unless you have a truly enormous number of players,
&gt; &gt;    &gt; don't you end up
&gt; &gt;    &gt; shifting areas from server to server as players and
&gt; &gt;    &gt; groups move, in
&gt; &gt;    &gt; order to achieve load balancing? Wouldn't event-based
&gt; &gt;    &gt; distribution work
&gt; &gt;    &gt; much more cleanly?
&gt; &gt;
&gt; &gt;I'd agree with that Greg.  But that is really dependant on how you
&gt; &gt;design your software.  In the first place, I am, as you say, trying to
&gt; &gt;load balance, but not to the nth degree.  Rather, I want to find
&gt; &gt;logical breakpoints where I can split the 'world', and thereby achieve
&gt; &gt;a fairly equitable load sharing.  Of course, what this means in the
&gt; &gt;normal Aber/Diku derivatives that we all seem to run, is that you
&gt; &gt;would put different zones/areas on different servers.
&gt; 
&gt; This would fall victim to the phenomenon of 'flash crowds' or 'stampeding
&gt; herds' or whatever it should be called.  With this type of static
&gt; distribution scheme, you can run into some trouble if a large number of
&gt; users (or objects, or whatever) decide to go visit some area on a single
&gt; server.

I would favour an approach that segments the world like this, makes the
world on each server self sufficient and makes it fairly hard to move
between worlds (including a 'world full' mechanism to stop people from
entering when it's near capacity).  This allows for interconnected, but
distributed servers and gives efficient processing as each server has
everything it needs.
 
&gt; &gt;What you really should do though, to my mind, is segment the
&gt; &gt;functionality.  Now perhaps that is what you are alluding to when you
&gt; &gt;talk about event-based distribution, although I read that as saying
&gt; &gt;that the exact same command could be processed on any particular
&gt; 
&gt; &gt;server, depending on that servers load at the time.
&gt; 
&gt; I tend to think about it roughly this way and with the use of events, but I
&gt; need to put a lot more thought into my current set of thoughts.

Uuugh. Yuk.  So every say statement goes through server 1 and every
spell
cast through server 2 and every move through server 3?  I think this
would very quickly drown from the amount of ineraction required between
the servers.  Bandwidth and network latency are the bug bears.  Avoid
all designs that have any sort of heavy dependency on network traffic
and remote processing during the processing of commands.

If you like, think of a mud as a virtual CPU that the player is
connected
to.  They send a transaction (a command) in, the mud processes it and
then sends the response back plus asynchronous output to other players.
Having it go and scurry around over TCP/IP links between multiple
servers
is going to kill your response time.  Each server needs to be as
self-contained as possible  (this also help avoid problems when one
server crashes - it just takes out one super-zone, not all spell
casting).
 
&gt; &gt;You could of course split those tasks any way you like, but the
&gt; &gt;concept should be clear from the example.  What you really want to do
&gt; &gt;is ensure that any particular part of the project can be handled by
&gt; &gt;one or more servers in your server farm.  If you do that right, you
&gt; &gt;don't need to concern yourself too much about where the right place to
&gt; &gt;split would be.  If you find you allocated too few servers for the mob
&gt; &gt;AI for example, you just add another server and split them into 3
&gt; &gt;groups instead of 2.
&gt; 
&gt; Why does AI get treated any different from any other client connected to the
&gt; game?  (Making a lot of assumptions: clients aren't accessing world via flat
&gt; text that they just display, like telnet; that there are clients; etc).

It's imbedded, there's no network latency, they have direct access to
all program objects and variables.  AI can be a lot more efficient than
a client as it can directly process the world events, not the text
messages that result from them.

Mik



_______________________________________________
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>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00325" HREF="msg00325.html">Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></STRONG>
<UL><LI><EM>From:</EM> "Bruce Mitchener, Jr." &lt;bruce#puremagic,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00378.html">Re: [MUD-Dev] Depth of realism</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00380.html">Re: [MUD-Dev] code base inquiry</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00353.html">RE: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00364.html">RE: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00379"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00379"><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] Depth of realism</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00360" HREF="msg00360.html">RE: [MUD-Dev] Depth of realism</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 18 Nov 1999, 17:00 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00343" HREF="msg00343.html">[MUD-Dev] Urban Desire</A></strong>, 
claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Thu 18 Nov 1999, 07:14 GMT
<LI><strong><A NAME="00325" HREF="msg00325.html">Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></strong>, 
Bruce Mitchener, Jr. <a href="mailto:bruce#puremagic,com">bruce#puremagic,com</a>, Thu 18 Nov 1999, 00:22 GMT
<UL>
<LI><strong><A NAME="00353" HREF="msg00353.html">RE: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></strong>, 
Ian Macintosh <a href="mailto:iman#issystems,co.nz">iman#issystems,co.nz</a>, Thu 18 Nov 1999, 07:34 GMT
</LI>
<LI><strong><A NAME="00379" HREF="msg00379.html">Re: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#attglobal,net">mikclrk#attglobal,net</a>, Thu 18 Nov 1999, 21:11 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00364" HREF="msg00364.html">RE: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Thu 18 Nov 1999, 17:00 GMT
</LI>
<LI><strong><A NAME="00391" HREF="msg00391.html">Re: Distribution schemes (was Re: [MUD-Dev] Languages for MUD drivers)</A></strong>, 
Bruce Mitchener, Jr. <a href="mailto:bruce#puremagic,com">bruce#puremagic,com</a>, Fri 19 Nov 1999, 01:23 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00289" HREF="msg00289.html">[MUD-Dev] Sony's EverQuest Admits Using Diku</A></strong>, 
Locke <a href="mailto:theisles#mugs,net">theisles#mugs,net</a>, Wed 17 Nov 1999, 16:31 GMT
<UL>
<LI><strong><A NAME="00297" HREF="msg00297.html">Re: [MUD-Dev] Sony's EverQuest Admits Using Diku</A></strong>, 
rnicoll <a href="mailto:rnicoll#respc-jrn,res.st-andrews.ac.uk">rnicoll#respc-jrn,res.st-andrews.ac.uk</a>, Wed 17 Nov 1999, 17:20 GMT
</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>