Re: [Webware-discuss] clustered webservers?

2002-02-21 Thread Edmund Lian
Geoff wrote: >>My worry is that you'll end up with something like ZODB with ZEO if you want a SQL session store to be flexible enough to store any Python object that can be pickled (like the current SessionStores) but avoid concurrency problems. << I'm being very simple minded. I just pickle ea

Re: [Webware-discuss] clustered webservers?

2002-02-21 Thread Geoffrey Talvola
On Wednesday February 20, 2002 10:24 pm, Edmund Lian wrote: > Geoff, > > >>A SQL SessionStore would also need the same sort of locking, but maybe it > > could be smarter since it doesn't necessarily have to store all values in > one > big pickle. But still, that means that servlet code can no lon

Re: [Webware-discuss] clustered webservers?

2002-02-20 Thread Edmund Lian
Geoff, >>A SQL SessionStore would also need the same sort of locking, but maybe it could be smarter since it doesn't necessarily have to store all values in one big pickle. But still, that means that servlet code can no longer simply access sessions as though they are a simple Python dictionar

RE: [Webware-discuss] clustered webservers?

2002-02-20 Thread Jeff Johnson
> > When we first started up they bought a hardware load balancer even > > though I told them not as we didn't have any traffic yet and may never. > > It cost $15k. Two years later when I went to use it, I see that for > > another $5k they could have bought the better model that used cookies to >

RE: [Webware-discuss] clustered webservers?

2002-02-20 Thread Tripp Lilley
On Tue, 19 Feb 2002, Jeff Johnson wrote: > When we first started up they bought a hardware load balancer even > though I told them not as we didn't have any traffic yet and may never. > It cost $15k. Two years later when I went to use it, I see that for > another $5k they could have bought the b

Re: [Webware-discuss] clustered webservers?

2002-02-20 Thread Geoffrey Talvola
On Wednesday February 20, 2002 01:48 am, Edmund Lian wrote: > Geoff wrote: > >>But it seems to me that in general, you'd have to lock the row for the > > entire duration of the servlet's processing. What if a user accesses a > servlet that takes 20 seconds to process, then in a different window o

RE: [Webware-discuss] clustered webservers?

2002-02-19 Thread Edmund Lian
Geoff wrote: >>But it seems to me that in general, you'd have to lock the row for the entire duration of the servlet's processing. What if a user accesses a servlet that takes 20 seconds to process, then in a different window or frame tries to access a servlet that only takes 1/10 of a second t

RE: [Webware-discuss] clustered webservers?

2002-02-19 Thread Geoffrey Talvola
Edmund Lian wrote: > Geoff wrote: > > >>Love, Jay wrote: > > You need to store the sessions in an SQL server. > > I think there is an SQL sessionstore already written. If > > not, it wouldn't > > be difficult at all. > > You can run into trouble if 2 servlets are executing > simultaneously. I

RE: [Webware-discuss] clustered webservers?

2002-02-19 Thread Jeff Johnson
> I had heard at one point that there are load balancers that can keep > redirecting to the same machine based on a cookie (eg, _SID_). But > you'd have to investigate and you'd have to purchase one. When we first started up they bought a hardware load balancer even though I told them not as we d

Re: [Webware-discuss] clustered webservers?

2002-02-19 Thread Geoffrey Talvola
On Tuesday February 19, 2002 01:38 am, Chuck Esterbrook wrote: > I had heard at one point that there are load balancers that can keep > redirecting to the same machine based on a cookie (eg, _SID_). But > you'd have to investigate and you'd have to purchase one. > > On a whim, I searched Google fo

Re: [Webware-discuss] clustered webservers?

2002-02-18 Thread Chuck Esterbrook
On Monday 18 February 2002 09:34 am, Jeff Johnson wrote: > Most of our websites use sessions to store a variable like > loggedInUserID to track who is logged in. To handle the load from > advertising campaigns, I've setup two computers with Apache and > Webkit running on each. I then use round r

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Edmund Lian
Geoff wrote: >>Love, Jay wrote: > You need to store the sessions in an SQL server. > I think there is an SQL sessionstore already written. If > not, it wouldn't > be difficult at all. You can run into trouble if 2 servlets are executing simultaneously. If they both make changes to the session

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Geoffrey Talvola
27;; Ian Bicking; Jeff Johnson > > Cc: 'Webware Discuss' > > Subject: RE: [Webware-discuss] clustered webservers? > > > > > > Love, Jay wrote: > > > I don't think this addresses session affinity (I think that's > > > the co

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Love, Jay
'[EMAIL PROTECTED]'; Ian Bicking; Jeff Johnson > Cc: 'Webware Discuss' > Subject: RE: [Webware-discuss] clustered webservers? > > > Love, Jay wrote: > > I don't think this addresses session affinity (I think that's > > the correct >

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Geoffrey Talvola
Love, Jay wrote: > I don't think this addresses session affinity (I think that's > the correct > term). It just does a roundrobin from a central webserver to multiple > appservers. Sure it does. If you redirect from www.whatever to www1.whatever, then the rest of the session will use www1.what

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Geoffrey Talvola
Ian Bicking wrote: > This was discussed on the mailing list a while back -- "load > balancing" > or something was the subject. > > With your current setup, you'll do better to have a third server (or > dual use for one of your current servers), and have it redirect people > round-robin-style to

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Love, Jay
TED]; 'Ian Bicking' > Cc: 'Webware Discuss' > Subject: RE: [Webware-discuss] clustered webservers? > > > > I don't think this addresses session affinity (I think that's the > correct > > term). It just does a roundrobin from a central webse

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Geoffrey Talvola
Love, Jay wrote: > You need to store the sessions in an SQL server. > I think there is an SQL sessionstore already written. If > not, it wouldn't > be difficult at all. You can run into trouble if 2 servlets are executing simultaneously. If they both make changes to the session, one of the se

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Love, Jay
#x27;Ian Bicking' > Cc: 'Webware Discuss' > Subject: RE: [Webware-discuss] clustered webservers? > > > > I don't think this addresses session affinity (I think that's the > correct > > term). It just does a roundrobin from a central webserver &

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Jeff Johnson
> I don't think this addresses session affinity (I think that's the correct > term). It just does a roundrobin from a central webserver to multiple > appservers. > > If you don't want to mess with SQL, just store all the sessions in an NFS > directory, so both appservers can get at it. I think

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Love, Jay
get at it. Jay > -Original Message- > From: Tavis Rudd [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 18, 2002 2:48 PM > To: Ian Bicking; Jeff Johnson > Cc: 'Webware Discuss' > Subject: Re: [Webware-discuss] clustered webservers? > > > On Monday 18 February 2002

Re: [Webware-discuss] clustered webservers?

2002-02-18 Thread Tavis Rudd
On Monday 18 February 2002 10:26, Ian Bicking wrote: > This was discussed on the mailing list a while back -- "load > balancing" or something was the subject. > > With your current setup, you'll do better to have a third server > (or dual use for one of your current servers), and have it redirect

Re: [Webware-discuss] clustered webservers?

2002-02-18 Thread Ian Bicking
This was discussed on the mailing list a while back -- "load balancing" or something was the subject. With your current setup, you'll do better to have a third server (or dual use for one of your current servers), and have it redirect people round-robin-style to www1.whatever, www2.whatever, etc.

RE: [Webware-discuss] clustered webservers?

2002-02-18 Thread Love, Jay
'Webware Discuss' > Subject: [Webware-discuss] clustered webservers? > > > Most of our websites use sessions to store a variable like > loggedInUserID to track who is logged in. To handle the load from > advertising campaigns, I've setup two computers with Apac

[Webware-discuss] clustered webservers?

2002-02-18 Thread Jeff Johnson
Most of our websites use sessions to store a variable like loggedInUserID to track who is logged in. To handle the load from advertising campaigns, I've setup two computers with Apache and Webkit running on each. I then use round robin DNS so hopefully an individual user will go to the same web