Ask Your Question

Setup multiple sage webservers to access the same data

asked 2013-03-19 16:46:14 +0200

Simon Su gravatar image


We don't have a one super powerful machine in the lab to run sage webserver. If we have several users running scripts on the sage webserver at the same time, it will probably overload the machine. So we would like to setup webserver on local machines (by installing sage locally on each machine). But we would like all sage installations to access the same set of data. Preferably the data will reside elsewhere on our main server machine. Where can I find documentation to set sage up in that manner?

Thanks -simon

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-03-29 12:02:17 +0200

vdelecroix gravatar image


It may be possible. All you need is a hard drive accessible from all computers.

The users data and worksheets are stored in some directory (which is $HOME/.sage/sage_notebook.sagenb by default). You can change this behavior within the function notebook (the name of the option is directory). Depending wether all servers are launched with a different user (with a different UID) you have to be careful with read/write permission within your directory.

Good luck !


edit flag offensive delete link more

answered 2013-04-01 06:11:55 +0200

Jason Grout gravatar image

The Sage notebook does not support more than one webserver accessing the same directory. If you did that, it would likely corrupt the database of users and more.

However, the notebook does support using multiple servers to do computations. See the server_pool option to the notebook() command. In this case, each server should have access to the sage notebook directory.

See the Sage Server wiki page for instructions for how to set this up on a single computer. You could use multiple computers if the sage notebook directory were somehow shared between the computers. The only reason for sharing the sage notebook directory is so that output files can be saved permanently.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-03-19 16:46:14 +0200

Seen: 343 times

Last updated: Apr 01 '13