Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Perl needs Zend (mod_perl vs. fastcgi)

by perrin (Chancellor)
on Oct 23, 2006 at 14:39 UTC ( [id://580054]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl needs Zend (mod_perl vs. fastcgi)
in thread Perl needs Zend

I think the answer is no. It looks like someone has requested a "sticky" load-balancing option for the FastCGI implementation in lighttpd, but it hasn't been implemented. It's a pretty dangerous route to go down, making your app depend on getting the same process every time, since it hurts your scalability. If you have few users and can't partition your data, you could consider a single-threaded server approach (like POE), but most of the time it is safer to partition the data into more manageable chunks.
  • Comment on Re^5: Perl needs Zend (mod_perl vs. fastcgi)

Replies are listed 'Best First'.
Re^6: Perl needs Zend (mod_perl vs. fastcgi)
by BerntB (Deacon) on Oct 23, 2006 at 16:51 UTC
    most of the time it is safer to partition the data into more manageable chunks.
    Agreed. But there is no good way to solve my problem.

    I'd be happy to give my example; if you can point out a simple way to reorganize my 70 page of model, I'd be very happy. :-)

    (No, I'm not a complete idiot that has done something simple in a complex manner; it was a very hard problem.)

    It's a pretty dangerous route to go down, making your app depend on getting the same process every time, since it hurts your scalability.
    Very good point. If this could get heavy use, I'd write it so the different backend servers had different DNS addresses for active sessions, then it should scale. Of course, another server could take over the job (heartbeat) -- but would have to reinit the data.

    But when that design start to trash (not enough memory for all models of all users), I'd start to cry. :-)

      If you start a new thread for it, I'd certainly read it and offer ideas. Starting it buried down here is probably not a good idea.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://580054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-16 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found