0

I have a RackSpace cloud load balancer running two servers on Rackspace I'd like to take the two servers offline to do some maintenance on them. My question is, with my servers down, what is the best way to display a maintenance page?

4
  • What's the load balancer?
    – mgorven
    Commented Feb 7, 2013 at 20:55
  • What do you mean?
    – Pardoner
    Commented Feb 7, 2013 at 20:56
  • What hardware or piece of software is the load balancer? Since this is a case of configuring the load balancer we need to know what it is.
    – mgorven
    Commented Feb 7, 2013 at 20:57
  • It's a Rackspace cloud loadbalancer. The algorithm for this load balancer is Round Robin. That's all I can really tell you.
    – Pardoner
    Commented Feb 7, 2013 at 21:01

3 Answers 3

0

You need to configure the load balancer with an error page. I don't know anything about the Rackspace API clients so I can't tell you exactly how.

1
1

If you are not comfortable using the API to create a custom error page, you can actually achieve this via the Rackspace Control Panel. Under your load balancer details, if you scroll to the bottom, you should be able to click the small pencil icon next to Error Page. You can then paste in your custom HTML to display if all nodes are offline or returning errors.

Alternatively, if you want to temporarily redirect visitors to a static site during your maintenance, you can create a static page in the Rackspace CDN, following these instructions provided that your DNS TTL is set low enough (i.e. 300 seconds is a good default).

Once the DNS change (Mentioned in the blog post) propagates, your users will be directed to the static maintenance page while you work on your servers. Then, when you are done, point the DNS records back to the load balancer's IP address.

0

Add another temporary server instance at RackSpace that does nothing but serve a maintenance page, point the load balancer at it instead of your production instances.

2
  • Yes I was thinking I would do that but then I'll have to fire up another server instance at $16 a month. Is there a way without created another server?
    – Pardoner
    Commented Feb 7, 2013 at 21:13
  • How long is your maintenance going to take? $16 a month is what, $0.02/hour?
    – ceejayoz
    Commented Feb 7, 2013 at 21:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .