Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Cluster Node Auto Discovery

Reply
Thread Tools

Cluster Node Auto Discovery

 
 
Codepunk
Guest
Posts: n/a
 
      07-23-2003
Hi Everyone,

I have written a specialized server in python and now I wish to look
at making it scalable. To do this I wish to include automatic
discovery of peer nodes operating on my network. Can anyone provide me
a pointer as to how I do such a thing? By how to do it I mean how does
something like that work at the network level?

ping scan the ip range?
some sort of broadcast packet?
udp request to entire ip range?

I am not asking for code just how is something like that typically
done?
 
Reply With Quote
 
 
 
 
Jp Calderone
Guest
Posts: n/a
 
      07-23-2003
On Tue, Jul 22, 2003 at 11:18:26PM -0700, Codepunk wrote:
> Hi Everyone,
>
> I have written a specialized server in python and now I wish to look
> at making it scalable. To do this I wish to include automatic
> discovery of peer nodes operating on my network. Can anyone provide me
> a pointer as to how I do such a thing? By how to do it I mean how does
> something like that work at the network level?
>
> ping scan the ip range?
> some sort of broadcast packet?
> udp request to entire ip range?
>
> I am not asking for code just how is something like that typically
> done?


Take a look at Rendezvous (http://developer.apple.com/macosx/rendezvous/)
and Zeroconf (http://www.zeroconf.org/)

Jp

 
Reply With Quote
 
 
 
 
John Landahl
Guest
Posts: n/a
 
      07-24-2003
(Codepunk) wrote in message news:< om>...
>
> I have written a specialized server in python and now I wish to look
> at making it scalable. To do this I wish to include automatic
> discovery of peer nodes operating on my network. Can anyone provide me
> a pointer as to how I do such a thing? By how to do it I mean how does
> something like that work at the network level?
>
> ping scan the ip range?
> some sort of broadcast packet?
> udp request to entire ip range?
>
> I am not asking for code just how is something like that typically
> done?


It depends on what you mean by "peer nodes". Do you mean *any* node
in your local network? Or do you mean other nodes running your
software?

If the former, ping scanning would probably be sufficient. You might
want to make use of the nmap tool (http://www.insecure.org/nmap/) to
simplify the job.

However, if by "peer nodes" you mean only other nodes running your
software, you might want to use Service Location Protocol (SLP,
defined by RFC 260. Take a look at OpenSLP
(http://www.openslp.org/) for an open source implementation. There's
a Python wrapper (available in the "misc" directory of the
distribution, IIRC) which works quite well, and which condenses all
the C code to a .so for use by Python. The advantage there is that
you don't need to distribute the entire OpenSLP package separately,
you only need to distribute the Python OpenSLP code itself (which can
easily be turned into a tarball via "python setup.py bdist").
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. Mark B ASP .Net 2 09-11-2009 07:09 AM
How do you get feed discovery to work? I go to web pages I know has feeds, but the feed discovery button is disabled. Help! Tim Bryant Computer Support 1 02-13-2007 05:01 AM
xsl variable $node/text() but $node can non-node-set help! Tjerk Wolterink XML 2 08-24-2006 03:28 AM
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. Dhruba Bandopadhyay ASP .Net 1 05-25-2006 01:06 AM
How to set the node indent property between the parent node and the leaf node viveknatani@gmail.com ASP .Net 0 02-13-2006 07:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57