I'd assume this is in a corporate office, where the business opens in the morning, and everybody arrives at the same time and logs in.
Id go with massimo's suggestion, along with a pound server, and some scripts to update each instance of the panel. -Thadeus On Mon, Nov 23, 2009 at 11:47 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > On Nov 23, 11:36 am, harshit agrawal <harsh.agrawal2...@gmail.com> > wrote: > > But sir my portal will start at a specific time and around 200-250 > > users will login at the same time then the system may hang. > > Is this an assumption or a fact? > > > Also there is a file named options_std.py, in this file what does > > 'no_of_threads' means.... > > that is the number of concurrent threads with wsgiserver. It should > not be relevant in a production environment. > > In a production environment you should use apache2+mod_wsgi and let > Apache deal with concurrency and serving static files. You should also > use postgresql (or other database) not the default sqlite. sqlite > always locks the entire database on every request. > > You can read more on this in chapter 11 of the book and the source of > this script: > http://www.web2pyslices.com/main/slices/take_slice/29 > > Massimo > > > > reply as soon as possible > > > > Thank You > > Harshit > > > > On Nov 23, 10:15 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > It really depends on many issues. 200 users are not going to make 1 > > > request/second but more like 1 request every ten seconds each or less. > > > That means you need to handle 20 requests/seconds. > > > > > On my laptop an average dynamic page takes ~20ms, and that means 50 > > > requests/second. This means I can handle 200 current users on my > > > laptop. > > > > > The bottleneck is always database access. It really depends on what > > > those users do with the database. > > > > > Massimo > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---