Apache simultaneous connections

They have: 218 posts

Joined: Apr 2001

From phpinfo, is this line for max simultaneous connections?

Apache:
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100

Also, what do these two settings pertain to?

MYSQL:
Active Persistent Links
mysql.max_persistent

In balancing a database load, is it a good idea to have multiple copies of a database that can be randomly connected to, rather than a single, if traffic is high?

Thanks,

TM

They have: 4 posts

Joined: May 2004

TonyMontana wrote: From phpinfo, is this line for max simultaneous connections?

Apache:
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100

Also, what do these two settings pertain to?

Max requests per child means the child process with exit after that many requests. A value of zero means it'll just keep going.

Keep Alive allows a TCP connection to service more that one URL request. The Max Per Connection value is how many requests before keep alive is no longer honered for a connection.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.