First time here? Check out the FAQ!

Sorry, this content is no longer available

Ask Your Question
0

Setup multiple sage webservers to access the same data

asked 11 years ago

Simon Su gravatar image

Hello,

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

vdelecroix gravatar image

Hi,

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 !

Vincent

Preview: (hide)
link
1

answered 11 years ago

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.

Preview: (hide)
link

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

Stats

Asked: 11 years ago

Seen: 427 times

Last updated: Apr 01 '13