trove/api-ref/source/samples/db-list-cfg-defaults-response.json
Doug Shelley f5d1caea88 Fix backup of mysql variants on Centos
The switch to XtraBackup 2.3 was causing an issue on RHEL/Centos
related to is using the "mysql" user instead of "trove". The fix on
Ubuntu was to move the os_admin credentials to ~trove/.my.cnf. While
this is a better place to write the credentials anyway (i.e. they
shouldn't be stored in server my.cnf) this doesn't solve the whole
issue on Centos. This commit changes the XB backup strategy to pass
the user/password in on the innobackupex command line.

Also, it was noticed that the "socket" option wasn't being specified
in the config.template. This is causing some client connections,
such as XB to fail connect because it can't locate the socket.
Forcing the server/client to write/read the socket from a known
location fixes this.

Change-Id: Iea941ce60179ef4dc5c403c2fc374cc8eb7d1617
Closes-bug: 1649592
2016-12-13 16:29:41 +00:00

46 lines
1.6 KiB
JSON

{
"instance": {
"configuration": {
"basedir": "/usr",
"connect_timeout": 15,
"datadir": "/var/lib/mysql/data",
"default_storage_engine": "innodb",
"innodb_buffer_pool_size": "150M",
"innodb_data_file_path": "ibdata1:10M:autoextend",
"innodb_file_per_table": 1,
"innodb_log_buffer_size": "25M",
"innodb_log_file_size": "50M",
"innodb_log_files_in_group": 2,
"join_buffer_size": "1M",
"key_buffer_size": "50M",
"local-infile": 0,
"max_allowed_packet": "1024K",
"max_connections": 100,
"max_heap_table_size": "16M",
"max_user_connections": 100,
"myisam-recover-options": "BACKUP,FORCE",
"open_files_limit": 512,
"performance_schema": "ON",
"pid_file": "/var/run/mysqld/mysqld.pid",
"socket": "/var/run/mysqld/mysqld.sock",
"port": "3306",
"query_cache_limit": "1M",
"query_cache_size": "8M",
"query_cache_type": 1,
"read_buffer_size": "512K",
"read_rnd_buffer_size": "512K",
"server_id": 271898715,
"skip-external-locking": 1,
"sort_buffer_size": "1M",
"table_definition_cache": 256,
"table_open_cache": 256,
"thread_cache_size": "4",
"thread_stack": "192K",
"tmp_table_size": "16M",
"tmpdir": "/var/tmp",
"user": "mysql",
"wait_timeout": "120"
}
}
}