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.
d = dsage.start_all()
. This command will launch the
server, the web server, d
) which
is a connection to the server. From here on your interaction with
dsage
will be mainly though the d
object.
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.
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
.
See About this document... for information on suggesting changes.