- Run
dsage.setup(). This will setup the SQLite database
and generate a private and public key to be used for SSL
communication. It will also add a default user whose username defaults
to your current username.
- Run
d = dsage.start_all(). This command will launch the
server, the web server,
workers and return an object (d) which
is a connection to the server. From here on your interaction with
dsage will be mainly though the d object.
- Open up your browser and go to http://localhost:8082 to see
the web interface of
dsage. From here you will be able to see the
status of your jobs, the workers connected and other important information
about your dsage server.
- Let's begin with a simple example. Type
job = d('2+2'). If
you look at the web interface, you should see that there is a new job in
the table. Now one of your workers will fetch that job, execute it and
present you the result. To get at the result, type job.result. It
might not be there yet because for this simple computation, the network
communication overhead dominates the computational time. If you want to
wait for your job to finish, you can call job.wait() which will
block until the job completes, at which time you can inspect
job.result for the result. You can do any computation in this way
by calling d.
subsection example_1 (end)
Release 2008.05.04, documentation updated on May 4, 2008.
See About this document... for information on suggesting changes.