Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know how host one site on two servers. I am using juju to deploy mediawiki on my maas computers in LAN. And now I have two computers with ip's like this and How can I make to be seen as one IP? I want to go one of the ip in webbrowser and I get access less load server. Is this possible?

share|improve this question
up vote 3 down vote accepted

The Juju Charm Store has a charm for the haproxy load balancer already; you should be able todo something like:

juju deploy haproxy
juju add-relation haproxy mediawiki

You should then be able to access mediawiki through the haproxy IP address - it will automatically balance load across both of the servers you have supporting the mediawiki charm.


share|improve this answer

You need to use something called a "load balancer". Basically you will have a THIRD IP address which will be the IP address you publicly set in the DNS. This IP address will be bound to a special Apache module which will then send the visitor to either the first or the second server.

But you are OT, I believe :)

Some random links:

share|improve this answer

You don't necessarily "make'em seen as one IP". A third server, or one of your other servers should do the job of maintaining load balancing. What you want to do is to build a cluster of computers. I'd suggest starting off with this Wikipedia article, and reading whatever every links points to.

For a better choice of a server (this is what Apache [HttpD] is), try learning some about LightTPD and NGinX. Every software has it's own benefits.

You don't necessarily have to make a cluster with every node running on bare-metal, you can use virtualization technologies like KVM, VirtualBox and Xen to build clusters of multiple vm. Here is an article about vm clustering with Xen.

I really recommend you to read every single webpage pointed in this article, and many more you find. But start with the Wikipedia article in the first paragraph. And don't be afraid with the amounts of information and practices and software available about this subject, it is so easy in the core.

Below are some links to things you will want to know about how to create, use and benefit cluster computing, other concepts and technologies which would bait your wonderment:

Don't forget to have fun playing with this stuff! Because they are really fun :)

share|improve this answer

Your Answer


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.