From: Greg W. <gw...@la...> - 2004-04-21 01:01:25
|
On 20/04/2004, at 6:37 PM, Brian W. Barrett wrote: > On Apr 20, 2004, at 3:06 PM, Greg Watson wrote: > >> None that I know of. The file clients/sys/bproc.h documents all the >> interfaces that are available. >> >> In order to get the node number from the IP address, you now use: > > <snip> > >> In order to look up a node by it's name, you first convert the name >> to an IP address, then use the above. If you're running the latest >> beonss then you can look up nodes using the names "master", "self", >> "n0", "n1", etc. using the standard gethostbyname() routines. > > Ok, that makes sense and I think I could fix up the bproc support in > LAM to deal with these changes no problem. Can I assume that anyone > running bproc 4.0 is using the beonss package? If not, is there any > way to convert from name to IP address other than the functions that > disappeared for bproc 4.0? I guess what I'm asking is if it is safe > to look for bproc_getnodebyname() and if I don't find that, assume I > can call gethostbyname("n0") and get a reasonable result? I think it's a reasonable assumption. If they're not using beonss, then providing the mapping in /etc/hosts will be equally effective. BTW, does LAM need to do the lookup on the nodes or on the frontend? Currently, beonss only allows a node to look up it's own name or the name of the frontend, but not the names of other nodes. > > Daniel, We (the LAM team) don't have any access to BProc 4.0 clusters. > Given that this looks fairly simple to hack up, I can probably fix > something up for LAM 7.1, but would need a volunteer to do some > testing (hint, hint). > I'm going to need LAM on a bproc cluster in the next month or so. I'll be able to help out if this timeframe works for you. Regards, Greg |