Posts

HA-Proxy setup for Openstack Services

Image
HA-PROXY SETUP FOR OPENSTACK SERVICES INTRODUCTION: To obtain maximum uptime in openstack services we are in need of high availability (aka HA ) in this document we are using ha-proxy for openstack HA and keepalived for H a-proxy HA. Software topology As mentioned, we’ll use the following set of software: the services themselves; HAProxy for making the services HA; and Keepalived for making HAProxy HA. Getting hands-on Suppose we have two machines, from which we want to make an HA OpenStack controller pair, installing both the API services and Keepalived + HAProxy. Suppose machine 1 has address 192.168.56.200, machine 2 has address 192.168.56.201, and we want the services to be accessible through virtual IP 192.168.56.210. And suppose all these IPs are on eth1. Installing necessary packages $ sudo apt-get install haproxy keepalived Configuration of haproxy This configuration is identical on both nodes and resides in /et...

Openstack Swift HA with HAproxy

Introduction We used five machines for swift setup . In that, 3 machines will act as swift-proxy servers and all 5 machines will act as swift-storage nodes. Swift with HA proxy setup We have installed HA proxy service in all three proxy servers. The KeepAlived service will monitor the HA proxy health and assign the floating virtual IP address(192.168.1.xxx) to the high priority HA proxy server. (102 is master, 101 is slave1, 100 is slave2) The HA Proxy will check all three proxy servers and send the request in round robin method. If one proxy server fails, it will automatically sends the request to the other two proxy servers only, until the failed proxy server is back online. Swift Proxy Node setup We have configured three swift proxy nodes in the public network(192.168.1.xxx) and it is connected to all the storage nodes through a private network(172.0.0.xxx). Rings The ring builder has created an account ring, container ring and ob...

How to disable Ctrl+Alt+Del restarting in CentOS

In CentOS, the action taken when Ctrl+Alt+Del pressed is based on the configuration file located in "/etc/init/control-alt-delete.conf" Just disable the line which specifies the restart action.   vi /etc/init/control-alt-delete.conf comment the line # exec /sbin/shutdown -r now “Control-Alt-Delete pressed” :wq (save and exit) that should do the trick!!!  Cheers!!!

A nice story

A farmer had only one horse. One day, his horse ran away. All the neighbors came by saying, “I'm so sorry. This is such bad news. You must be so upset.” The man just said, “We'll see.” A few days later, his horse came back with twenty wild horses. The man and his son corraled all 21 horses. All the neighbors came by saying, “Congratulations! This is such good news. You must be so happy!” The man just said, “We'll see.” One of the wild horses kicked the man's only son, breaking both his legs. All the neighbors came by saying, “I'm so sorry. This is such bad news. You must be so upset.” The man just said, “We'll see.” The country went to war, and every able-bodied young man was drafted to fight. The war was terrible and killed every young man, but the farmer's son was spared, since his broken legs prevented him from being drafted. All the neighbors came by saying, “Congratulations! This is such good news. You must be so happy!” The man ju...