ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 01 Apr 2013 06:11:55 +0200Setup multiple sage webservers to access the same datahttps://ask.sagemath.org/question/9925/setup-multiple-sage-webservers-to-access-the-same-data/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 Tue, 19 Mar 2013 16:46:14 +0100https://ask.sagemath.org/question/9925/setup-multiple-sage-webservers-to-access-the-same-data/Answer by vdelecroix for <p>Hello,</p>
<p>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? </p>
<p>Thanks
-simon </p>
https://ask.sagemath.org/question/9925/setup-multiple-sage-webservers-to-access-the-same-data/?answer=14705#post-id-14705Hi,
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 !
VincentFri, 29 Mar 2013 12:02:17 +0100https://ask.sagemath.org/question/9925/setup-multiple-sage-webservers-to-access-the-same-data/?answer=14705#post-id-14705Answer by Jason Grout for <p>Hello,</p>
<p>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? </p>
<p>Thanks
-simon </p>
https://ask.sagemath.org/question/9925/setup-multiple-sage-webservers-to-access-the-same-data/?answer=14713#post-id-14713The 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](http://wiki.sagemath.org/SageServer) 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.Mon, 01 Apr 2013 06:11:55 +0200https://ask.sagemath.org/question/9925/setup-multiple-sage-webservers-to-access-the-same-data/?answer=14713#post-id-14713