naxbarn.blogg.se

How to install cgi proxy script
How to install cgi proxy script







how to install cgi proxy script

However I wouldn't recommend playing around with caching and sharing data for performance increases until you've done the obvious use of proxies for http acceleration.Īside from raw performance, two other problems with shared memory are that locking hotspots in RAM can become a bottleneck on your webserver, and you make it harder to later choose to load-balance several machines. This may have changed (SQLite version 3 is supposed to be much improved). He found that BerkeleyDB and MySQL were the two fastest ways of sharing data between Perl processes on a single machine. (You probably want that well before you get to that load, just to have redundancy and failover.)Īs for shared memory, perrin did a number of benchmarks a while ago and found that shared memory modules are not that fast.

how to install cgi proxy script

After that runs out of steam, you'll need a load balancer in front of multiple webservers. Most acceleration techniques, such as caching, use RAM. These days 1 GB of RAM is not that much, have 2-4 GB. When you get beyond what that will scale to on your hardware, the next obvious move is to add more memory. Therefore you can use fewer mod_perl processes, saving RAM. When you use a proxy server in that configuration, the mod_perl processes spew data to lightweight proxies and move on, and then the slow browsers tie up the lightweight proxies.

how to install cgi proxy script

The problem is that mod_perl processes which take up a lot of RAM are having to spoonfeed data over a very thin pipe to client browsers. If you follow the recommendations there, your problems should be much improved. You should read the mod_perl strategy guide and pay very careful attention to the section titled Adding a Proxy Server in http Accelerator Mode.









How to install cgi proxy script