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 192.168.1.100 and 192.168.1.115. 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?
The Juju Charm Store has a charm for the haproxy load balancer already; you should be able todo something like:
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.
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:
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.
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 :)