Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How many FastCGI servers to use for Catalyst app?

by tilly (Archbishop)
on Feb 28, 2011 at 19:57 UTC ( #890623=note: print w/replies, xml ) Need Help??


in reply to How many FastCGI servers to use for Catalyst app?

If you have scaling issues, your first step should be to put a reverse proxy up so that your FastCGI processes are not wasting time talking to slow clients.

After you've done that, provision resources as follows. Figure out how big your FastCGI processes are. Decide how much RAM you wish to dedicate to FastCGI. The number of processes that you should spin up per box should be RAM/(size + some safety buffer). The number of machines you should have should be based on your peak usage plus some amount of headroom for growth, spikes, etc, with a fixed number of extra machines for failover in case a machine crashes.

If you have less than a million dynamic pages/hour and a reasonably written application, odds are good that the number of machines you will need is more determined by provisioning for failover than it is by the resources needed to meet your load.

  • Comment on Re: How many FastCGI servers to use for Catalyst app?

Replies are listed 'Best First'.
Re^2: How many FastCGI servers to use for Catalyst app?
by uG (Scribe) on Feb 28, 2011 at 23:29 UTC
    Thank you tilly and sundialsvc4. Thats pretty much what I was looking for.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890623]
help
Chatterbox?
[stevieb]: man, when the roads are glare ice, I don't even bother going to work or out... unless I absolutely have to, or was already out in the first place
[choroba]: Tire chains are mandatory here in mountains, and the only unprepared each year are gritters
[stevieb]: I have a 3 day winter survival kit in my vehicle in the event I get snowed in in the mountains (which has happened before due to avalanches closing the roads (and once in the summer due to a massive forest fire that trapped us
[perldigious]: a handful of people in my work area did not make it, but I live pretty close and it's flat the whole way, so I didn't have any trouble. The roundabout is the worst thing I have to negotiate.
[thezip]: G'day all!
[perldigious]: Well, that and dodging the people who forget how ice works right away. :-)
[stevieb]: hey, thezip
[perldigious]: I don't miss having to drive up and down in elevation on roads that are iced over, I white knuckled gripping the steering wheel every time I had to where I used to live.
[perldigious]: So I don't envy you mountain guys if you have to drive in the winter, even with tire chains.
MidLifeXis waves.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2016-12-06 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.