Differences

This shows you the differences between two versions of the page.

Link to this comparison view

galera_url [2012/06/07 12:20]
root [Cluser address]
galera_url [2013/02/05 19:26] (current)
teemu Changed pc.wait_prim value to "no"
Line 14: Line 14:
 Cluster address should be either Cluster address should be either
   * an address of __ANY__ current cluster member if you want to connect node to existing cluster OR   * an address of __ANY__ current cluster member if you want to connect node to existing cluster OR
 +  * a comma-separated list of such possible cluster members (it is assumed that list members can belong to no more than 1 //primary component//) OR
   * an empty string if you want this node to be the first in a //new// cluster (i.e. no preexisting nodes to connect to).   * an empty string if you want this node to be the first in a //new// cluster (i.e. no preexisting nodes to connect to).
 It can be either IP address or a DNS name optionally followed by port number. It can be either IP address or a DNS name optionally followed by port number.
 +
 +<WRAP center round tip 60%>
 +As of version 2.2 Galera supports a comma-separated list of cluster members in the cluster address like:
 +''%%gcomm://node1,node2:port2,node3?key1=value1&key2=value2...%%''
 +</WRAP>
  
 <WRAP center round alert 60%> <WRAP center round alert 60%>
 Only use empty ''%%gcomm://%%'' address when you want create a **NEW** cluster. Never use it when your intention is to reconnect to an existing one. Therefore never leave it hardcoded in any configuration files. Only use empty ''%%gcomm://%%'' address when you want create a **NEW** cluster. Never use it when your intention is to reconnect to an existing one. Therefore never leave it hardcoded in any configuration files.
 +</WRAP>
 +
 +<WRAP center round tip 60%>
 +One way to avoid editing my.cnf in order to remove ''%%gcomm://%%'' is to start all cluster nodes with the following URL:
 +''%%gcomm://node1,node2:port2,node3?pc.wait_prim=no&...%%''
 +
 +(note the ''%%'pc.wait_prim=no'%%'' option which makes the node to wait for primary component indefinitely.) Then bootstrap the primary component by setting ''%%'pc.bootstrap=1'%%'' on any one of the nodes.
 </WRAP> </WRAP>
  
Login