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
rubber-3.2.2 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-3.2.1 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-3.2.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-3.1.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-3.0.1 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-3.0.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.16.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.15.2 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.15.1 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.15.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.14.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.13.1 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.13.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.12.2 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.12.1 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
rubber-2.12.0 templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.1 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.10 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.11 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
sml-rubber-0.9.13 generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf