Announcement

Announcement Module
Collapse
No announcement yet.

Cluster with floating IP

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cluster with floating IP

    Hello,

    I am testing XtraDB Cluster. I see that when we first install it for three nodes cluster, We set wsrep_cluster_address null for node1, and set wsrep_cluster_address as node1 for nodes node2 and node3.

    If I want to add new node or failed node again, I should set wsrep_cluster_address to one of healthy nodes.

    My question is; does XtraDB cluster supports floating IP by own? If yes,How can I implement it?

    I only set the wsrep_cluster_address parameter to floating IP, and never change it again. By this, I can add node only starting mysql.

    Thanks.

  • #2
    No, there is no floating ip by default.
    If you add a new node (or restart the first one in your case) you need to change the value of wsrep_cluster_address to a different running node.

    Comment


    • #3
      The idea seems to be brilliant. However

      1) mysqld by default does not have enough privileges to configure network interfaces
      2) this most likely won't work in the cloud and WAN (so it is suitable only for a user-controlled LAN)

      Any thoughts on how to resolve these?

      Comment


      • #4
        I f you are using MY Sql then it have predefine libraries in order to interface with the system.It is always better to use predefine libraries .

        Comment


        • #5
          Hi,

          Are you testing HAProxy and keepalived in order to put an IP floating ?
          see http://blog.secaserver.com/2012/02/high-availability-mysql-c luster-galera-haproxy/

          Comment


          • #6
            sonhakari wrote on Fri, 13 April 2012 17:11
            Hello,
            If I want to add new node or failed node again, I should set wsrep_cluster_address to one of healthy nodes.
            just need some confimation

            If primary node in cluster is down, how can I add it again?
            Do I understand correctly that former primary node can be added to any healthy (synced) node?

            Comment


            • #7
              In Galera cluster there is no "primary" node, all nodes are of the same rank, but may differ by the state they are currently in (SYNCED, JOINED, etc.).
              Moreover, it does not matter which node you initially connect to as long as it is a part of the primary cluster component: Galera cluster is a full undirectional graph.

              Comment


              • #8
                thank you very much

                Comment

                Working...
                X