Tuesday, 3 February 2015

ipcluster setup

setup ipcluster

1. install IPython please check here
2. it is better to make a snapshot at this point
3. create a IPython.parallel profile
      >>ipython profile create --parallel -profile=[profile_name]
4. find profile/ipcontroller_config.py and edit
            c = get_config()
      c.HubFactory.ip='*'
5. start a controller with --ip=[contoller_ip]
***if do the 5th step, the  3rd and 4th is unneesary

           ipcontroller --ip=10.0.1.74
    or
           ipcontroller start --ip=10.0.1.74


6. copy ipcontroller-engine.json from controller (10.0.1.74) to all engines (10.0.1.90 and the rest) by executing a script

            scp /home/ubuntu/.config/ipython/profile_default/security/ipcontroller-engine.json ubuntu@10.0.1.90:/home/ubuntu/.config/ipython/profile_default/security/

7. start engine by
            ipcluster engines
    or
            ipcluster engines --n=8