Ha fip: Difference between revisions

Jump to navigation Jump to search
396 bytes added ,  4 months ago
Line 13: Line 13:
# 1 VIP (shared IP) RFC1918 from within your project
# 1 VIP (shared IP) RFC1918 from within your project
# 1 HA Floating IP
# 1 HA Floating IP
# plan on how to access the real VMs if you don't have IPv6 connectivity


Assuming your application is already running on the 2 webservers, we will now allocate a 3rd IP used as VIP, which is then used by the active VM.
Now it's time to build the 2 VMs and install the application on both systems, this example here will only have nginx running,
displaying the default index page and show that the application is reachable.
 
=== Installing nginx and keepalived ===
 
<pre>
root@web-srv-1:~# apt-get update && apt-get -y dist-upgrade && apt-get install -y nginx keepalived
[...]
root@web-srv-2:~# apt-get update && apt-get -y dist-upgrade && apt-get install -y nginx keepalived
[...]
</pre>
cc_staff
247

edits

Navigation menu