Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We're using a JBoss server, which holds several projects. It is accessed through an Apache ProxyPass (basically ProxyPass / http://localhost:8080/).

I am looking for a better way to redeploy a project without having visitors receiving a 404 from Apache (which does not find the java project running anymore). Would Apache be able to 'wait' and put those requests on 'hold' for a while when redeploying ?

Thanks, Alexis.

share|improve this question

1 Answer 1

Why don't you setup another virtual directory in JBoss with a friendly page that tells visitors the site is being updated. Then change the ProxyPass config to point to the maintenance page and then update your site. This also allows you to test the site to make sure it is working properly before redirecting requests in ProxyPass back to your other site.

share|improve this answer
    
Thanks for your point. Let's suppose the deployment will go well. Having a maintenance page would then lower the quality of the service, whereas putting requests on hold would simply make the visitors wait a bit. I understand what you're saying is what we should do, but there might be other solutions. –  Ours-Polaire Jan 23 '13 at 16:44
    
Well the ultimate solution would be to have a secondary node in that case. That way you could simply direct all traffic to the secondary node and update the primary node, once complete you redirect back to the primary node and the clients would not experience any downtime, however this requires the use of shared session providers and many other little tools to manage the environment. –  Brent Pabst Jan 24 '13 at 12:58
    
Alright the secondary node seems to be a good intermediate solution. I was hoping something like I imagined existed but I understand this is not a good way to do things. –  Ours-Polaire Feb 6 '13 at 10:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.