Apache: set aside specific number of servers for a single "high priority" script

Posted by Disco on Server Fault See other posts from Server Fault or by Disco
Published on 2013-06-24T21:35:56Z Indexed on 2013/06/24 22:23 UTC
Read the original article Hit count: 168

Filed under:
|

I have a bunch of scripts, but some of them are higher priority than others:

/var/www/normal-priority/script1.pl
/var/www/normal-priority/script2.pl
/var/www/normal-priority/script3.pl

and

/var/www/high-priority/script1.pl
/var/www/high-priority/script2.pl
/var/www/high-priority/script3.pl

All running under mod-perl. They reside in separate directories.

From time to time, the normal-priority scripts get very busy, and the httpd servers "swamp out" the less frequently called high priority ones.

Is it possible to set aside n httpd servers so that they only listen for the "high priority" scripts?

© Server Fault or respective owner

Related posts about apache2

Related posts about mod-perl