| 23 | |
| 24 | |
| 25 | Date : 9/19/06 |
| 26 | |
| 27 | To image the nodes in parallel, instead of running multiple instances of nodeHandler, we are trying to bypass the nodeHandler itself and. The basic three functions of the nodeHandler |
| 28 | |
| 29 | 1. Creating soft links with the node to server the basic memory based image, |
| 30 | |
| 31 | 2. Launching the frisbee server |
| 32 | |
| 33 | 3. And reseting the respective nodes. |
| 34 | |
| 35 | will now be performed by the shell script imageNodes itself. |
| 36 | |
| 37 | All these three commands can be executed using the xml querries at the command line. The querries for these three operations are: |
| 38 | |
| 39 | For creating soft pxe links with a particular node: |
| 40 | |
| 41 | http://pxe:5012/pxe/getAddress?img=<image name>&node=<node ID>&ip=<ip address of node> |
| 42 | |
| 43 | For launching the frisbee server: |
| 44 | |
| 45 | http://frisbee:5012/frisbee/getAddress?img=<image name to be launched> |
| 46 | |
| 47 | In case the image is already launched, it will return the multicast address and port number for that image. If not it will launch that image on new port number and a default multicast address. Since new images are launched on new port, different multicast addresses for different images are not required. |
| 48 | |
| 49 | Similarly the cmc service can be used to reset the nodes as follows: |
| 50 | |
| 51 | http://cmc:5012/cmc/reset?x=<x co-ordinate of node>?&y=<y coordinate of node> |
| 52 | |
| 53 | To implement these changes the imageNodes has been changed a bit. |
| 54 | |
| 55 | 1. On running imageNodes it fisrt checks for the domain its running on and the nodes on which it has to serve the soft pxe link. It then creates a soft link using the pxe server, with the subnet number of the domain itself. |
| 56 | |
| 57 | 2. It then launches the frisbee server on the tftpboot and starts giving out the image specified at the command line. |
| 58 | |
| 59 | 3. Resets the specific nodes using cmc. |
| 60 | |
| 61 | The changed copy of imageNodes is attached at the end of the page. |