geryon

HOW TO SETUP GERYON

These instructions are for setting up Geryon, an Inferno grid. Geryon is described in some detail in labs 35, 36, and 37 of IPN. It offers very simple grid functionality for realtime execution for commands that are distributed over a small number of nodes.

STARTUP

Download gridlib from the IPN and place it every node in your cluster. when you start emu begin by running gridlib and run the gridinit shell function.

  emu -r /usr/inferno
  % run /lib/gridlib
  % gridinit

REGISTRY

pick a node to be the registry, preferably one that is long lived. On this node simply run

  % svc/registry
and on every node make sure use set the registry attribute in the /lib/ndb/local
  infernosite=
      registry=node0

DISKS

in a separate emu instance, maybe on the same node as the registry, create the files for data storage for kfs

  % mkdir /chunks
  % for (i in 0 1 2 3 4 5 6 7) {newdisk /chunks/chunk ^$i}

newdisk is defined in gridlib. this command is for the first time when creating disks. setup a startrc file that will register the existing disks

  % cat startrc
  #!/dis/sh
  run gridlib
  gridinit
  for (i in 0 1 2 3 4 5 6 7) {registerdisk /chunks/chunk ^$i}

CPU

in a separate emu instance, maybe on any of the nodes above, run the cpu service

  run gridlib
  newcpu

MASTER

on a node you'll be using as master edit a /lib/ndb/cluster file to name the disks in the cluster. then run the refresh gridlib function to update the registry


Last modified Tue Aug 09 23:39:18 EDT 2005 [ Top | Edit | History | Changelog | Create a new page ] About the server | inferno