Skip to content

Instantly share code, notes, and snippets.

@makyo
Created September 4, 2013 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makyo/6436215 to your computer and use it in GitHub Desktop.
Save makyo/6436215 to your computer and use it in GitHub Desktop.
{
"Service":"mysql",
"Charm":"mysql",
"Config":{
"binlog-format":{
"default":true,
"description":"If binlogging is enabled, this is the format that will be used. Ignored when tuning-level == fast.",
"type":"string",
"value":"MIXED"
},
"block-size":{
"default":true,
"description":"Default block storage size to create when setting up MySQL block storage.\nThis value should be specified in GB (e.g. 100 not 100GB).\n",
"type":"int",
"value":5
},
"dataset-size":{
"default":true,
"description":"How much data do you want to keep in memory in the DB. This will be used to tune settings in the database server appropriately. Any more specific settings will override these defaults though. This currently sets innodb_buffer_pool_size or key_cache_size depending on the setting in preferred-storage-engine. If query-cache-type is set to 'ON' or 'DEMAND' 20% of this is given to query-cache-size. Suffix this value with 'K','M','G', or 'T' to get the relevant kilo/mega/etc. bytes. If suffixed with %, one will get that percentage of RAM devoted to dataset and (if enabled) query cache.",
"type":"string",
"value":"80%"
},
"flavor":{
"default":true,
"description":"Possible values are 'distro' or 'percona'",
"type":"string",
"value":"distro"
},
"ha-bindiface":{
"default":true,
"description":"Default network interface on which HA cluster will bind to communication\nwith the other members of the HA Cluster.\n",
"type":"string",
"value":"eth0"
},
"ha-mcastport":{
"default":true,
"description":"Default multicast port number that will be used to communicate between\nHA Cluster nodes.\n",
"type":"int",
"value":5411
},
"max-connections":{
"default":true,
"description":"Maximum connections to allow. -1 means use the server's compiled in default.",
"type":"int",
"value":-1
},
"preferred-storage-engine":{
"default":true,
"description":"Tune the server for usage of this storage engine. Other possible value is MyISAM. Comma separated will cause settings to split resources evenly among given engines.",
"type":"string",
"value":"InnoDB"
},
"query-cache-size":{
"default":true,
"description":"Override the computed version from dataset-size. Still works if query-cache-type is \"OFF\" since sessions can override the cache type setting on their own.",
"type":"int",
"value":-1
},
"query-cache-type":{
"default":true,
"description":"Query cache is usually a good idea, but can hurt concurrency. Valid values are \"OFF\", \"ON\", or \"DEMAND\". http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_query_cache_type",
"type":"string",
"value":"OFF"
},
"rbd-name":{
"default":true,
"description":"The name that will be used to create the Ceph's RBD image with. If the\nimage name exists in Ceph, it will be re-used and the data will be\noverwritten.\n",
"type":"string",
"value":"mysql1"
},
"tuning-level":{
"default":true,
"description":"Valid values are 'safest', 'fast', and 'unsafe'. If set to safest, all settings are tuned to have maximum safety at the cost of performance. Fast will turn off most controls, but may lose data on crashes. unsafe will turn off all protections.",
"type":"string",
"value":"safest"
},
"vip":{
"default":true,
"description":"Virtual IP to use to front mysql in ha configuration",
"type":"string",
"value":null
},
"vip_cidr":{
"default":true,
"description":"Netmask that will be used for the Virtual IP",
"type":"int",
"value":24
},
"vip_iface":{
"default":true,
"description":"Network Interface where to place the Virtual IP",
"type":"string",
"value":"eth0"
}
},
"Constraints":{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment