Current time: 12-24-2024, 12:43 AM Hello There, Guest! (LoginRegister)


Post Reply 
Downtime
Author Message
fred Offline
Junior Member
*

Posts: 10
Joined: Aug 2009
Reputation: 0
Post: #1
Downtime
Hi,

When a user is added apache goes down for a bit; can this be prevented considering you cannot run serious hosting on it with this happening.

Thanks,

Fred
08-22-2009 09:33 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Downtime
What do you understand by "down", and how much is a "bit"? Setting up a new virtual host REQUIRES an apache reload, during which it stops processing requests (but clients shouldn't receive any error, just a slight delay 1-2sec max).

If its something worst than that, we can try to track down the cause. Otherwise, if you can't afford an occasional 1-2sec delay you should be using some serious load balancing/failover infrastructure...
08-22-2009 11:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
fred Offline
Junior Member
*

Posts: 10
Joined: Aug 2009
Reputation: 0
Post: #3
RE: Downtime
Well, HTML clients aren't seeing downtime, but PHP clients are; the fcgi processes are shot down even during graceful restart. And those clients are cut off (getting a nice white screen).

When processing multiple new clients / changes per hour, this becomes quite a bit of service interruption.
08-23-2009 12:39 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: Downtime
Maybe you're hitting this php bug. On my own tests, with this versions:
Code:
PHP/5.2.6-1+lenny3
fcgid 2.2.1
firefox 3.5.2 OSX

What happens is that (on graceful restart) the server closes the connection by sending a FIN packet, and thereafter I've got varying results:

1. If the page was previously loaded correctly (so this is a refresh), the browser reloads the page, this time completing correctly.
2. If it's the first time I'm loading the page, the browser shows a blank page and stops.

So yes, this might be an issue. Unfortunately, it's a php+fastcgi/fcgid problem that we can't do much about, except trying with newer versions to see how is this handled. You may also switch to using mod_php5 (the panel supports it), but then you'll have a less secure server.

It's up to you... :S
08-23-2009 05:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fred Offline
Junior Member
*

Posts: 10
Joined: Aug 2009
Reputation: 0
Post: #5
RE: Downtime
mod_php is not really an option; it's a free hosting server.

I 'solved' it with a haproxy setup which is working fine Smile Thank you.

Opening a new topic for the next problem Smile
08-23-2009 07:03 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)