how to do cluster for pjango web server with corosync and pacemaker

خرید بک لینک

i follow this post, but it need extra script for floating ip,

https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-corosync-pacemaker-and-floating-ips-on-ubuntu-14-04

i had followed most steps in above digital ocean

then

i change to create resource with

crm resource create livefrontendIP0 ocf:heartbeat:IPaddr2 ip=192.168.1.9 cidr_netmask=32 op monitor interval=30s

in GNS3

https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-corosync-pacemaker-and-floating-ips-on-ubuntu-14-04

3 VM in GNS3, one switch,

two act as primary and secondary web server and run pjango

python manage.py runserver --noreload 192.168.1.2:80
python manage.py runserver --noreload 192.168.1.3:80

i use 192.168.1.8 as third computer to access 192.168.1.9 which act as floating ip, however third computer can not ping 192.168.1.9 or use web browser to access the web

conf t
int vlan 10
ip address 192.168.1.1 255.255.255.0
no shut
exit
int f1/0
switchport access vlan 10
switchport mode access
no shut
int f1/1
switchport access vlan 10
switchport mode access
no shut
end
conf t
int f1/2
switchport access vlan 10
switchport mode access
no shut
end

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 213 تاريخ: پنجشنبه 13 خرداد 1395 ساعت: 16:43

صفحه بندی