Skip to content

database: Make wsrep_provider_options configurable (fate#327745)#2127

Merged
toabctl merged 1 commit into
crowbar:masterfrom
toabctl:galera-custom-wsrep-provider-options
May 15, 2019
Merged

database: Make wsrep_provider_options configurable (fate#327745)#2127
toabctl merged 1 commit into
crowbar:masterfrom
toabctl:galera-custom-wsrep-provider-options

Conversation

@toabctl

@toabctl toabctl commented May 14, 2019

Copy link
Copy Markdown
Contributor

It is sometimes useful to be able to add extra options (like
gcache.size, gcs.fc_debug, ...) to the galera wsrep_provider_options
configuration variable.
This can now be done via the Crowbar RAW view.

Comment thread chef/cookbooks/mysql/recipes/ha_galera.rb
"bootstrap_timeout": 600,
"wsrep_slave_threads" : 1,
"gcs_fc_limit_multiplier" : 5,
"wsrep_provider_options_custom" : [],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering out loud: is it easier/less confusing to use a sequence of string, or a single string (where we would require the user to use ;)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't care. I can also switch to a single string instead of a list of strings. What do you prefer?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So how would that work in batch? Like wsrep_provider_options_custom: [ "gcache.size=2G" ]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you prefer?

No strong feeling on my side. Just raising this in case someone has strong feelings ;-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexdepalex, yes. Or with multiple options like:

    "wsrep_provider_options_custom": [
      "gcache.size=2G",
      "debug=yes"
    ],

which results in:

root@d52-54-77-77-01-01:~ # grep wsrep_provider_options /etc/my.cnf.d/75-galera.cnf 
wsrep_provider_options = "gmcast.listen_addr=tcp://192.168.206.82:4567;gcs.fc_limit = 5;gcs.fc_factor = 0.8";gcache.size=2G;debug=yes

vuntz
vuntz previously approved these changes May 14, 2019
Comment thread chef/cookbooks/mysql/templates/default/galera.cnf.erb Outdated
rhafer
rhafer previously approved these changes May 14, 2019
jsuchome
jsuchome previously approved these changes May 14, 2019
It is sometimes useful to be able to add extra options (like
gcache.size, gcs.fc_debug, ...) to the galera wsrep_provider_options
configuration variable.
This can now be done via the Crowbar RAW view.
Also make (the currently hardcoded) "gcs.fc_limit" multiplier
configurable.
Also make (the currently hardcoded) "gcs.fc_factor"
configurable.
@toabctl toabctl dismissed stale reviews from jsuchome and rhafer via 94eb559 May 15, 2019 06:54
@toabctl toabctl merged commit a9a73df into crowbar:master May 15, 2019
@toabctl toabctl deleted the galera-custom-wsrep-provider-options branch May 15, 2019 11:36
@toabctl

toabctl commented May 15, 2019

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants