galera-beispiel_fuer_clustereinstellungen.cnf
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| galera-beispiel_fuer_clustereinstellungen.cnf [2015-05-13 09:21:47] – manfred | galera-beispiel_fuer_clustereinstellungen.cnf [2017-11-02 14:25:50] (aktuell) – [ab Version 5.7] manfred | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Galera-Beispiel für clustereinstellungen.cnf ====== | ||
| + | |||
| + | * **[[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | > vi / | ||
| + | < | ||
| + | # All files in this package is subject to the GPL v2 license | ||
| + | # More information is in the COPYING file in the top directory of this package. | ||
| + | # Copyright (C) 2011 severalnines.com | ||
| + | |||
| + | [MYSQLD] | ||
| + | bind_address | ||
| + | report_host | ||
| + | user = mysql | ||
| + | basedir | ||
| + | datadir | ||
| + | socket | ||
| + | pid_file | ||
| + | port = 3308 | ||
| + | # | ||
| + | log_error | ||
| + | slow_query_log_file | ||
| + | # | ||
| + | log_warnings | ||
| + | # | ||
| + | |||
| + | ### INNODB OPTIONS | ||
| + | innodb_buffer_pool_size | ||
| + | innodb_additional_mem_pool_size = 20M | ||
| + | ### für mehr Geschwindigkeit wurde innodb_flush_log_at_trx_commit auf " | ||
| + | # | ||
| + | innodb_flush_log_at_trx_commit | ||
| + | innodb_file_per_table | ||
| + | innodb_data_file_path | ||
| + | ## You may want to tune the below depending on number of cores and disk sub | ||
| + | innodb_read_io_threads | ||
| + | innodb_write_io_threads | ||
| + | innodb_doublewrite | ||
| + | innodb_log_file_size | ||
| + | innodb_log_buffer_size | ||
| + | innodb_buffer_pool_instances | ||
| + | innodb_log_files_in_group | ||
| + | innodb_thread_concurrency | ||
| + | # | ||
| + | ### für mehr Geschwindigkeit wurde innodb_flush_method auskommentiert | ||
| + | # | ||
| + | # innodb_locks_unsafe_for_binlog ist veraltet (diese Option erzwingt die Nutzung von binlog_format=ROW) | ||
| + | innodb_locks_unsafe_for_binlog | ||
| + | innodb_autoinc_lock_mode | ||
| + | ## avoid statistics update when doing e.g show tables | ||
| + | innodb_stats_on_metadata | ||
| + | ### mit der Option engine_condition_pushdown=1 startet die DBMS nicht | ||
| + | # | ||
| + | default_storage_engine | ||
| + | |||
| + | # damit die Zeitformate in Version 5.6 genauso funktionieren wie in Version 5.5 | ||
| + | explicit_defaults_for_timestamp = 1 | ||
| + | |||
| + | # CHARACTER SET | ||
| + | collation_server | ||
| + | # | ||
| + | character_set_server | ||
| + | # | ||
| + | |||
| + | # REPLICATION SPECIFIC - GENERAL | ||
| + | #server_id must be unique across all mysql servers participating in replication. | ||
| + | server_id | ||
| + | # | ||
| + | # | ||
| + | |||
| + | # REPLICATION SPECIFIC | ||
| + | binlog_format | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | # OTHER THINGS, BUFFERS ETC | ||
| + | key_buffer_size | ||
| + | tmp_table_size | ||
| + | max_heap_table_size | ||
| + | max_allowed_packet | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | skip_name_resolve | ||
| + | memlock | ||
| + | sysdate_is_now | ||
| + | max_connections | ||
| + | thread_cache_size | ||
| + | query_cache_type | ||
| + | query_cache_size | ||
| + | table_open_cache | ||
| + | lower_case_table_names | ||
| + | |||
| + | # | ||
| + | |||
| + | [MYSQL] | ||
| + | socket | ||
| + | default_character_set | ||
| + | |||
| + | [client] | ||
| + | socket | ||
| + | default_character_set | ||
| + | |||
| + | [mysqldump] | ||
| + | max_allowed_packet | ||
| + | default_character_set | ||
| + | |||
| + | [MYSQLD_SAFE] | ||
| + | pid_file | ||
| + | log_error | ||
| + | basedir | ||
| + | datadir | ||
| + | |||
| + | # All files in this package is subject to the GPL v2 license | ||
| + | # More information is in the COPYING file in the top directory of this package. | ||
| + | # Copyright (C) 2011 severalnines.com | ||
| + | |||
| + | [MYSQLD] | ||
| + | ## | ||
| + | ## WSREP options | ||
| + | ## | ||
| + | |||
| + | # Full path to wsrep provider library or ' | ||
| + | wsrep_provider | ||
| + | |||
| + | # Provider specific configuration options | ||
| + | wsrep_provider_options | ||
| + | |||
| + | # Logical cluster name. Should be the same for all nodes. | ||
| + | wsrep_cluster_name | ||
| + | |||
| + | # Group communication system handle | ||
| + | # | ||
| + | wsrep_cluster_address | ||
| + | |||
| + | # Human-readable node name (non-unique). Hostname by default. | ||
| + | wsrep_node_name | ||
| + | wsrep_node_address | ||
| + | |||
| + | # Address for incoming client connections. Autodetect by default. | ||
| + | # | ||
| + | wsrep_node_incoming_address | ||
| + | |||
| + | # How many threads will process writesets from other nodes | ||
| + | # | ||
| + | wsrep_slave_threads | ||
| + | |||
| + | # DBUG options for wsrep provider | ||
| + | # | ||
| + | |||
| + | # Generate fake primary keys for non-PK tables (required for multi-master | ||
| + | # and parallel applying operation) | ||
| + | wsrep_certify_nonPK | ||
| + | |||
| + | # Location of the directory with data files. Needed for non-mysqldump | ||
| + | # state snapshot transfers. Defaults to mysql_real_data_home. | ||
| + | # | ||
| + | |||
| + | # Maximum number of rows in write set | ||
| + | wsrep_max_ws_rows | ||
| + | |||
| + | # Maximum size of write set | ||
| + | wsrep_max_ws_size | ||
| + | |||
| + | # to enable debug level logging, set this to 1 | ||
| + | # | ||
| + | wsrep_debug | ||
| + | |||
| + | # convert locking sessions into transactions | ||
| + | wsrep_convert_LOCK_to_trx | ||
| + | |||
| + | # how many times to retry deadlocked autocommits | ||
| + | wsrep_retry_autocommit | ||
| + | |||
| + | # change auto_increment_increment and auto_increment_offset automatically | ||
| + | wsrep_auto_increment_control | ||
| + | |||
| + | # replicate myisam | ||
| + | wsrep_replicate_myisam | ||
| + | |||
| + | # retry autoinc insert, which failed for duplicate key error | ||
| + | wsrep_drupal_282555_workaround | ||
| + | |||
| + | # enable " | ||
| + | wsrep_causal_reads | ||
| + | |||
| + | # Command to call when node status or cluster membership changes. | ||
| + | # Will be passed all or some of the following options: | ||
| + | # --status | ||
| + | # --uuid | ||
| + | # --primary - whether the component is primary or not (" | ||
| + | # --members - comma-separated list of members | ||
| + | # --index | ||
| + | # | ||
| + | |||
| + | |||
| + | ## | ||
| + | ## WSREP State Transfer options | ||
| + | ## | ||
| + | |||
| + | # State Snapshot Transfer method | ||
| + | # ClusterControl currently DOES NOT support wsrep_sst_method=mysqldump | ||
| + | # | ||
| + | wsrep_sst_method | ||
| + | |||
| + | # Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!! | ||
| + | # (SST method dependent. Defaults to the first IP of the first interface) | ||
| + | # | ||
| + | |||
| + | # SST authentication string. This will be used to send SST to joining nodes. | ||
| + | # Depends on SST method. For mysqldump method it is root:< | ||
| + | wsrep_sst_auth | ||
| + | |||
| + | # Desired SST donor name. | ||
| + | # | ||
| + | |||
| + | # Protocol version to use | ||
| + | # wsrep_protocol_version | ||
| + | |||
| + | [server] | ||
| + | ### http:// | ||
| + | sql_mode | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== ab Version 5.7 ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | **ACHTUNG!**\\ | ||
| + | Wenn man '' | ||
| + | |||
