Sha256: edecb3fe2bc3ea2b6d4fc74fe32aeb459f15ccb51e21ef5f5345697b59c31a1a

Contents?: true

Size: 964 Bytes

Versions: 195

Compression:

Stored size: 964 Bytes

Contents

<%
  data_nodes = rubber_instances.for_role('mysql_data')
  sql_nodes = rubber_instances.for_role('mysql_sql')

  @path = "/etc/mysql/ndb_mgmd.cnf"
%>

# Generated by rubber for mysql_mgm role

# You can use the following formula for obtaining a rough estimate of how much
# RAM is needed for each data node in the cluster:
# (SizeofDatabase ? NumberOfReplicas ? 1.1 ) / NumberOfDataNodes

[NDBD DEFAULT]
NoOfReplicas=<%= data_nodes.size == 1 ? 1 : 2 %>

[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]

# Managment Server
[NDB_MGMD]
HostName=<%= rubber_env.full_host %>

# Data Nodes (Where your data is stored)
<% data_nodes.each do |data_node| %>
[NDBD]
HostName=<%= data_node.full_name %>
DataDir=<%= rubber_env.db_data_dir %>
<% end %>

# SQL Nodes (what your clients connect to)
<% sql_nodes.each do |sql_node| %>
[MYSQLD]
HostName=<%= sql_node.full_name %>
<% end %>

# One extra sql_node for use by things like ndb_restore from mgm node itself.
[MYSQLD]

Version data entries

195 entries across 155 versions & 7 rubygems

Version Path
sml-rubber-0.9.3 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.4 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.5 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.6 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.7 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.8 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.9 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
wr0ngway-rubber-1.0.0 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
wr0ngway-rubber-1.0.1 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.11.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.10.2 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.10.1 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.10.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.9.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.8.1 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.8.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.7.5 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.7.4 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.7.3 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.7.2 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf