[Twisted-Python] Using Twisted for a clustering library.

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Jun 12 16:52:30 MDT 2002


From: "Patrick B. Day" <uf069 at victoria.tc.ca>
Subject: [Twisted-Python] Using Twisted for a clustering library.
Date: Wed, 12 Jun 2002 14:27:08 -0700 (PDT)

> I've been working on a cluster library for MOSIX and I've noticed that
> parts could possibly be replaced with some Twisted stuff. 

The twisted.sister package is the beginnings of a clustering library.  The
requirements being used to drive it are rather MMPORPG-specific at this point,
so the only code in it so far is a mechanism for "locking resources" so that a
game server can atomically determine who "owns" a particular game object.  The
requirements that you described sound like the as-yet-unwritten "spawn server"
component of twisted.sister.  So, if you'd like to contribute work in this
area, we'd love to have it!  Alternatively you can wait for months to see if
somebody will do it for you ;-)

Also, as Itamar said, depending on your requirements, you shouldn't have to
write anything aside from either a Protocol and Factory, or a PB client or
server object.

If you have a specific wire-protocol you need to speak, you'll need to write a
Protocol and probably a Factory.  Have you read Moshe Zadka's excellent HOWTO
on the subject?

If you just need to send some messages to a remote process, then Perspective
Broker is probably your best bet.  The documentation here is a little weaker
(since there is a lot more high-level functionality available), but it's
described at an overview level in the IPC10 paper, and there are several
examples in the doc/examples package, as well as twisted.web.distrib and the
"Reality" CVS module.

-- 
 |    <`'>    |  Glyph Lefkowitz: Traveling Sorcerer  |
 |   < _/ >   |  Lead Developer,  the Twisted project  |
 |  < ___/ >  |      http://www.twistedmatrix.com      |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20020612/c4c72a6b/attachment.sig>


More information about the Twisted-Python mailing list