Skip to content

Python library to use the Harvard FAS RC Odyssey cluster

Notifications You must be signed in to change notification settings

braingram/odyssey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ipython access to the odyssey cluster


TODO
------
get pyzmq actually working on odyssey - had to use python2.7.1 and manually fix path
odyssey profile working (not sure what ports/ips I need to define): ipcluster --profile=odyssey -n {nprocs}
maybe add job dependancy (#BSUB -w "started(job_name or #)")
need to tunnel out the cluster connection
test out launch nodes: see pbs notes in ipython doc
sort out client/controller ssh tunneling
make templates
code & test


Example
------

import odyssey

c = odyssey.launch(10)  # queue, profile, tunnel host, etc?

c.wait_for_engines(6)

# use c like any ipython client

c.shutdown()  # kills hub too


Basic Structure
------

host : your computer (where ipython terminal/notebook is running)
    must be ssh accessible from each odyssey node
    and able to ssh into the head node
head node : odyssey login node
node(s) : odyssey compute node

1) negotiate ssh connection with head node
2) copy over (or create) job scripts that:
    A) fetch ipython security info (do this on head node?)
    B) ssh tunnel from nodes to host
    C) start up an ipengine
3) start a ipcontroller on host (that connects to the node ipengines)

alternate (possibly easier)
1) negotiate ssh connection with head node
2) launch controller & engines on cluster
3) have controller scp data to host
4) go ahead and separately launch clients


Needs
------
killing of specific & all nodes


Instructions
------

1) setup odyssey for ipython (add notes here)
    A) make sources directory
    B) make virtualenv (odyssey)
    C) make ipython profile (odyssey)
    D) customize profile see...
        i) profile_odyssey/ipcontroller_config.py
        ii) ipcluster_config.py
        iii) maybe logger too
    C) make or copy over scripts (engine and controller)
2) setup credentials on client computer: ~/.odyssey ssh_key from odyssey
3) run!

About

Python library to use the Harvard FAS RC Odyssey cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages