Package starcluster :: Package plugins :: Module mysql
[hide private]
[frames] | no frames]

Module mysql

source code

Classes [hide private]
  MysqlCluster
This plugin configures a mysql cluster on StarCluster Author: Marc Resnick
Variables [hide private]
  ndb_mgmd_template = '\n[NDBD DEFAULT]\nNoOfReplicas=%(num_repl...
  ndb_mgmd_storage = '\n[NDBD]\nHostName=%(storage_ip)s\nDataDir...
  MY_CNF = '\n#\n# The MySQL database server configuration file....
  __package__ = 'starcluster.plugins'
Variables Details [hide private]

ndb_mgmd_template

Value:
'''
[NDBD DEFAULT]
NoOfReplicas=%(num_replicas)s
DataMemory=%(data_memory)s    # How much memory to allocate for data s\
torage
IndexMemory=%(index_memory)s   # How much memory to allocate for index\
 storage
[MYSQLD DEFAULT]
...

ndb_mgmd_storage

Value:
'''
[NDBD]
HostName=%(storage_ip)s
DataDir=%(data_dir)s
BackupDataDir=%(backup_data_dir)s
'''

MY_CNF

Value:
'''
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
...