Django is used (generally) with mod_python under Apache. Does it means
that the whole Sage will be served by Apache and mod_python? This would
(may be) improve performances, no ?
t.d.
t.d.
> When we wrote the second version of the notebook, twisted.web2 was *the*
> way to go, according to various people. However, it turned out that
> using twisted.web2 was not the way to go, as the project was
> discontinued as an independent project.
Perhaps a silly questions, but is Apache the way to go?
Dave
Whatever we choose, it should still work well as a stand-alone server
(unless we wanted to ship apache with Sage :) but it would be nice,
especially for large public servers, to use a platform that supported
some mod_* under apache as well.
- Robert
If we use Django, I don't think we need to restrict ourselves to Apache:
http://code.djangoproject.com/wiki/ServerArrangements
Jason
--
Jason Grout
I would expect apache to come with any relatively recent Unix or
unix-like box. Perhaps it's not installed by default though. (It is on
Solaris).
I just checked and see the latest Apache is 6.6 MB, so not small, but
not particularly huge.
Apache really is a standard. I don't see it has any serious competition.
Codenode doesn't work with Sage currently, although Dorian Raymer is
working on the backend, and it seems it should be ready within a week.
It seems that Codenode can replace the Notebook eventually, assuming
there are ways to plug in a few templates (to include the Help, etc.).
It's well-modularized, so if there isn't a plug-in framework yet, it
should be possible (Django supports using middleware to preprocess
stuff, afaik).
In the meantime, we can stick with the Notebook and make changes to
make a transition to Codenode as smooth as possible. This probably
entails decoupling the components of the Notebook, and finding a way
to generate the documentation (live) that can be plugged into Codenode
easily.
How does that sound?
On Sep 1, 12:17 am, Robert Bradshaw <rober...@math.washington.edu>
wrote:
> On Aug 31, 2009, at 9:07 AM, Dr. David Kirkby wrote:As far as I can tell, Codenode doesn't support Apache yet either
>
> > William Stein wrote:
>
> >> When we wrote the second version of the notebook, twisted.web2 was
> >> *the*
> >> way to go, according to various people. However, it turned out that
> >> using twisted.web2 was not the way to go, as the project was
> >> discontinued as an independent project.
>
> > Perhaps a silly questions, but is Apache the way to go?
>
> Whatever we choose, it should still work well as a stand-alone server
> (unless we wanted to ship apache with Sage :) but it would be nice,
> especially for large public servers, to use a platform that supported
> some mod_* under apache as well.
>
> - Robert
( http://groups.google.com/group/codenode-devel/browse_thread/thread/176925e2b2e42279?hl=en
). Regarding the performance of Codenode, it seems to respond a bit
slower (at least for Python) right now, although I haven't actually
done any real measurements. I'm guessing it can be attributed to the
communication time between the server and engine.
I would expect apache to come with any relatively recent Unix or
unix-like box. Perhaps it's not installed by default though. (It is on
Solaris).
I just checked and see the latest Apache is 6.6 MB, so not small, but
not particularly huge.
Apache really is a standard. I don't see it has any serious competition.
There is no way that the Sage notebook will ever *depend* on Apache. That doesn't even make sense to suggest.
William
>
> Apache really is a standard. I don't see it has any serious competition.
It seems like lighttpd (http://www.lighttpd.net/) is preferable to
apache in some instances.
According to wikipedia: "Lighttpd is used by some of the biggest
websites, including sites such as meebo. Wikimedia runs Lighttpd servers
[4][5][6][7] as does SourceForge.[7] Three of the most famous torrent
listing websites, The Pirate Bay, Mininova and isoHunt, which have more
than 1,000 hits per second, also use Lighttpd.[8] Lighttpd currently
holds fifth place on the Netcraft "Web Server Survey" (November
2008).[9] Lighttpd has not placed in the June 2009 survey except under
the "Market Share for Top Servers Across the Million Busiest Sites"
survey where it places sixth. [10]"
I agree that apache certainly seems to be the most common webserver.
Jason
I would expect apache to come with any relatively recent Unix or
unix-like box. Perhaps it's not installed by default though. (It is on
Solaris).
I just checked and see the latest Apache is 6.6 MB, so not small, but
not particularly huge.
Apache really is a standard. I don't see it has any serious competition.
For deploying the type of web application that the Sage notebook is, there are definitely alternatives to apache. As William has mentioned, there are many different aspect of the Sage notebook performance and scalability. Then there is deployability - where apache is not that great even on linux (proper apache config is non-trivial).
I think the best solution is to abstract the Sage notebook web application away from the web server using something like WSGI. Ideally, the Sage notebook could be deployed using any of a number of different web servers depending on a users needs. Welding the notebook to a particular web server implementation is a second rate choice in many respects.
There is no way that the Sage notebook will ever *depend* on Apache. That doesn't even make sense to suggest.
Whew!
Cheers,
Brian
William
Though we're all just pulling numbers out of the air until we have
actual benchmark data, I agree with you that performance probably
isn't a big issue here. I see the advantages o Apache being that
authentication, ssl, etc. are abstracted away and often already
integrated into the existing environment which is one less thing to
worry about.
That being said, I'm a strong proponent of the benefits of WSGI.
- Robert