Jump to content

My.cnf of Slave Server for Radico

From TetraWiki
Revision as of 03:20, 11 August 2019 by Biswajit (talk | contribs) (Created page with "category:Radico-Khaitan == My.cnf of Slave Server for Radico == [mysqld] # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


My.cnf of Slave Server for Radico

[mysqld]

  1. Remove leading # and set to the amount of RAM for the most important data
  2. cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
  3. innodb_buffer_pool_size = 128M
  4. Remove the leading "# " to disable binary logging
  5. Binary logging captures changes between backups and is enabled by
  6. default. It's default setting is log_bin=binlog
  7. disable_log_bin
  8. Remove leading # to set options mainly useful for reporting servers.
  9. The server defaults are faster for transactions and fast SELECTs.
  10. Adjust sizes as needed, experiment to find the optimal values.
  11. join_buffer_size = 128M
  12. sort_buffer_size = 2M
  13. read_rnd_buffer_size = 2M
  14. Remove leading # to revert to previous value for default_authentication_plugin,
  15. this will increase compatibility with older clients. For background, see:
  16. https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin

default-authentication-plugin=mysql_native_password

datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock

log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid


  1. innodb-flush-method = O_DIRECT
  2. innodb-flush-log-at-trx-commit = 2
  3. innodb-file-per-table = 1

innodb-buffer-pool-size = 50G default-storage-engine = InnoDB

  1. CACHES AND LIMITS #

tmp-table-size = 4092M max-heap-table-size = 32M max-connections = 500 thread-cache-size = 500 open-files-limit = 65535 table-definition-cache = 4096 table-open-cache = 2048

server-id=101 event_scheduler=off lower_case_table_names = 1 sql_mode = STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION