Distributed Sage dsage is a distributed computing framework suitable for coarse distributed compuatations.
Distributed Sage allows you to do distributed computing in Sage.
To get up and running quickly, run dsage.setup() to run the configuration utility.
Note that configuration files will be stored in the directory $DOT Sage/dsage.
QUICK-START
Launch sage
Run:
sage: dsage.setup() #not tested
For a really quick start, just hit ENTER on all questions. This will create all the necessary supporting files to get DSage running. It will create the databases, set up a private/public key for authentication and create a SSL certificate for the server.
Launch a server, monitor and get a connection to the server:
sage: D = dsage.start_all() #not tested
This will start 2 workers by default. You can change it by passing in the “workers=N” argument where “N” is the number of workers you want.
To do a computation, use D just like any other Sage interface. For example:
sage: j = D('2+2') #not tested
sage: j.wait() #not tested
sage: j #not tested
4
Run the Distributed Sage server.
Doing dsage.server() will spawn a server process which listens by default on port 8081.
This is the setup utility which helps you configure dsage.
Type dsage.setup() to run the configuration for the server, worker and client. Alternatively, if you want to run the configuration for just one parts, you can launch dsage.setup_server(), dsage.setup worker() or dsage.setup().
Run the Distributed Sage worker.
Typing sage.worker() will launch a worker which by default connects to localhost on port 8081 to fetch jobs.