galera parameters
hi folks,
I have a dumb question but I cannot find the answer anywhere.
Setting up Galera over WAN and want to use these parameters
http://galeracluster.com/documentation-webpages/configurationtips.html
Where do I put these parameters? putting them in my.cnf doesn't work.
Thanks!
-
Hi
Only evs.install_timeout is a dynamic variable that you can set via a "set global". The others you need to persist in the my.cnf file and restart the nodes.
Where are your wsrep_NNN variables saved, in the my.cnf file or elsewhere?
Do you have a !includedir in your my.cnf file? Then look in that directory for a separate file with wsrep_NNN variables and edit/set the wsrep_provider_options there for all the nodes and restart them one at a time (rolling restart).
-
Hi Alex
Actually I see they got set when I ran the command I posted above
# mysql -uroot -pXXXXX -e 'SHOW VARIABLES LIKE "wsrep_provider_options"'
Warning: Using a password on the command line interface can be insecure.
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| wsrep_provider_options | base_dir = /var/lib/mysql/; base_host = 10.99.214.98; base_port = 4567; cert.log_conflicts = no; debug = no; evs.auto_evict = 0; evs.causal_keepalive_period = PT1S; evs.debug_log_mask = 0x1; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT1M; evs.info_log_mask = 0; evs.install_timeout = PT1M; evs.join_retrans_period = PT1S; evs.keepalive_period = PT3S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT30S; evs.use_aggregate = true; evs.user_send_window = 2; evs.version = 0; evs.view_forget_timeout = P1D; gcache.dir = /var/lib/mysql/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /var/lib/mysql//galera.cache; gcache.page_size = 128M; gcache.size = 128M; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; gmcast.listen_addr = tcp://0.0.0.0:4567; gmcast.mcast_addr = ; gmcast.mcast_ttl = 1; gmcast.peer_timeout = PT3S; gmcast.segment = 0; gmcast.time_wait = PT5S; gmcast.version = 0; ist.recv_addr = 10.99.214.98; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.linger = PT20S; pc.npvo = false; pc.recovery = true; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = P30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2147483647; repl.proto_max = 7; socket.checksum = 2; |
+------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+Is this not ok ?
Thanks!
-
Hi
It might be set in the wsrep_provider_options variable but I'm not sure if has taken effect.
Any errors/warnings in the mysql error log file?
According to the reference manual, http://galeracluster.com/documentation-webpages/galeraparameters.html for example evs.keepalive_period is not a dynamic variable.
-
hi Alex
I don't see any errors or warnings but better to do it properly
Can I set all of them in my.cnf ?
This is where the rest of wsrep variables are
Ok to set them like this?
wsrep_provider_options = "evs.keepalive_period = PT3S"
wsrep_provider_options = "evs.suspect_timeout = PT30S"
wsrep_provider_options = "evs.inactive_timeout = PT1M"
wsrep_provider_options = "evs.install_timeout = PT1M"
Parameters that are already in my.cnf
wsrep_provider=/usr/lib64/galera-3/libgalera_smm.so
wsrep_cluster_address="gcomm://10.10.1.11,10.10.1.12,10.10.1.13"
wsrep_max_ws_rows=1048576
wsrep_max_ws_size=1073741824Thank you for your help
Please sign in to leave a comment.
Comments
7 comments