Re: Apache / PHP/ MySQL - user limits



Ian Robinson wrote:

I'm new to web server development and am wondering
if I have chosen correctly for a planned development
of moving a desktop application to a web server
environment. The desktop application is an inventory
stock control / invoicing program running on 200 desktops.

At what level of concurrent users do we start to meet
limitation problems / performance hits

This is a complicated question. There are at least two places where
you can define maximum number of concurrent users. One is Apache
configuration file; there, you define the maximum number of HTTP
requests Apache can serve simultaneously. The other is MySQL
configuration file; there, you define the maximum number of
simultaneous connections that MySQL will accept. However, you must
remember that each connection requires a certain amount of memory, so
your settings must be appropriate for the amount of physical memory
your machine has.

In practice, it is often advisable to spread a high-load application
between two physical machines, one running only HTTP server, the other
running only MySQL server. This way, you can deal with Apache
fine-tuning and MySQL fine-tuning separately, and they won't fight for
memory as they would on a single physical machine.

A lot will depend on the quality of your hardware, especially on the
MySQL side. Fast hard drives in a RAID configuration can dramatically
speed up the response time...

Cheers,
NC

.



Relevant Pages

  • Re: Executing PHP files on remote web server
    ... Is it possible to move a few of the PHP pages -- the ones needed to do the inserts into the MySQL database -- to the web host and point to those remote files in the PHP pages that remain on our own web server? ...
    (comp.lang.php)
  • Re: Executing PHP files on remote web server
    ... We have a commercial web host servicing our external clients, but we don't want to move the entire app and database to the web host because a lot of the data is sensitive. ... By loading the non-sensitive data into the web host's MySQL tables, our external clients can see their reports on the web. ... our web host put a firewall on the MySQL database so we can't insert data into the remote tables directly from the PHP pages running on our own web server. ...
    (comp.lang.php)
  • Re: Stability issues with FreeBSD + MySQL
    ... The system seemed to perform fairly well with FreeBSD 5.3/5.4, ... >> web server will fail to connect to the mysql server, ... I was very liberal with this value on both the web server and the ... > in which case persistant connections might help; ...
    (freebsd-questions)
  • Searching python-list and MySQL
    ... I have not found a way to conveniently search the archives of this mailing list. ... I've successfully hooked python up with PostgreSQL, but this MySQL thing has been more difficult. ... In order to create this python module, it appears I've got to create it on a server with mysql and mysql-devel, and various other items, and then move it to the web server. ...
    (comp.lang.python)
  • PHP? MySQL? Or both?
    ... I'm using RH 9.0 to run our web server. ... mysqld is still running on the server; however, if I restart mysqld, ... checked the users in mysql, and all three have identical permissions. ...
    (RedHat)