-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Improve included mysql configuration files #5326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
29a1ac4
Improve my.cnf draft
morgo 91bbb79
Merge remote-tracking branch 'upstream/master' into morgo-improve-mycnf
morgo 71e9042
Merge remote-tracking branch 'upstream/master' into morgo-improve-mycnf
morgo 1748147
Merge remote-tracking branch 'upstream/master' into morgo-improve-mycnf
morgo 4193d03
Make sure 5.7 doesn't read 5.6 config file
morgo a957825
Move undesired settings to default-fast.cnf
morgo f079b1f
Bump CI
morgo 98d34fb
Add myself to CODEOWNERS
morgo 4f6cef8
Merge remote-tracking branch 'upstream/master' into morgo-improve-mycnf
morgo 49cd2b9
Empty commit
morgo 8d3fc83
Merge remote-tracking branch 'upstream/master' into morgo-improve-mycnf
morgo dfb3fe8
Add back max_connections based on review
morgo 464511d
Empty commit
morgo bad5d16
Merge remote-tracking branch 'upstream/master' into morgo-improve-mycnf
morgo 2d3675b
Fix MySQL 8.0 unknown variable issue
morgo c398a7d
Move worker test to be earlier
morgo 6e464c8
Merge remote-tracking branch 'upstream/master' into morgo-improve-mycnf
morgo 1edf7f4
Move worker to shard 5
morgo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,24 @@ | ||
| # basic config parameters for all db instances in the grid | ||
| # This sets some unsafe settings specifically for | ||
| # the test-suite which is currently MySQL 5.7 based | ||
| # In future it should be renamed testsuite.cnf | ||
|
|
||
| sql_mode = STRICT_TRANS_TABLES | ||
| character_set_server = utf8 | ||
| collation_server = utf8_general_ci | ||
| connect_timeout = 30 | ||
| datadir = {{.DataDir}} | ||
| expire_logs_days = 3 | ||
| innodb_buffer_pool_size = 64M | ||
| innodb_data_home_dir = {{.InnodbDataHomeDir}} | ||
| innodb_flush_log_at_trx_commit = 2 | ||
| innodb_lock_wait_timeout = 20 | ||
| innodb_buffer_pool_size = 32M | ||
| innodb_flush_log_at_trx_commit = 0 | ||
| innodb_log_buffer_size = 1M | ||
| innodb_log_file_size = 4M | ||
| innodb_log_group_home_dir = {{.InnodbLogGroupHomeDir}} | ||
| innodb_log_file_size = 5M | ||
|
|
||
| # Native AIO tends to run into aio-max-nr limit during test startup. | ||
| innodb_use_native_aio = 0 | ||
|
|
||
| key_buffer_size = 2M | ||
| log-error = {{.ErrorLogPath}} | ||
| long_query_time = 2 | ||
| pid-file = {{.PidFile}} | ||
| port = {{.MysqlPort}} | ||
| # all db instances should start in read-only mode - once the db is started and | ||
| # fully functional, we'll push it into read-write mode | ||
| read-only | ||
| server-id = {{.ServerID}} | ||
| skip-name-resolve | ||
| # we now need networking for replication. this is a tombstone to simpler times. | ||
| #skip_networking | ||
| # all db instances should skip the slave startup - that way we can do any | ||
| # out-of-bounds checking before we restart everything - in case we need to do | ||
| # some extra work to skip mangled transactions or fudge the slave start | ||
| skip_slave_start | ||
| slave_net_timeout = 60 | ||
| slave_load_tmpdir = {{.SlaveLoadTmpDir}} | ||
| slow-query-log | ||
| slow-query-log-file = {{.SlowLogPath}} | ||
| socket = {{.SocketFile}} | ||
| tmpdir = {{.TmpDir}} | ||
| sync_binlog=0 | ||
| innodb_doublewrite=0 | ||
|
|
||
| # These two settings are required for the testsuite to pass, | ||
| # but enabling them does not spark joy. They should be removed | ||
| # in the future. See: | ||
| # https://github.com/vitessio/vitess/issues/5395 | ||
| # https://github.com/vitessio/vitess/issues/5396 | ||
|
|
||
| binlog-format=statement | ||
| sql_mode = STRICT_TRANS_TABLES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,35 @@ | ||
| # basic config parameters for all db instances in the grid | ||
| # Global configuration that is auto-included for all MySQL/MariaDB versions | ||
|
|
||
| sql_mode = STRICT_TRANS_TABLES | ||
| binlog_format = statement | ||
| character_set_server = utf8 | ||
| collation_server = utf8_general_ci | ||
| connect_timeout = 30 | ||
| datadir = {{.DataDir}} | ||
| expire_logs_days = 3 | ||
| innodb_buffer_pool_size = 32M | ||
| innodb_data_home_dir = {{.InnodbDataHomeDir}} | ||
| innodb_flush_log_at_trx_commit = 2 | ||
| innodb_lock_wait_timeout = 20 | ||
| innodb_log_group_home_dir = {{.InnodbLogGroupHomeDir}} | ||
| log-error = {{.ErrorLogPath}} | ||
| long_query_time = 2 | ||
| max_allowed_packet = 64M | ||
| max_connections = 500 | ||
| pid-file = {{.PidFile}} | ||
| port = {{.MysqlPort}} | ||
|
|
||
| # all db instances should start in read-only mode - once the db is started and | ||
| # fully functional, we'll push it into read-write mode | ||
| read-only | ||
| server-id = {{.ServerID}} | ||
| skip-name-resolve | ||
|
|
||
| # all db instances should skip the slave startup - that way we can do any | ||
| # additional configuration (like enabling semi-sync) before we connect to | ||
| # the master. | ||
| skip_slave_start | ||
| slave_net_timeout = 60 | ||
| slave_load_tmpdir = {{.SlaveLoadTmpDir}} | ||
| slow-query-log | ||
| slow-query-log-file = {{.SlowLogPath}} | ||
| socket = {{.SocketFile}} | ||
| tmpdir = {{.TmpDir}} | ||
|
|
||
| slow-query-log-file = {{.SlowLogPath}} | ||
|
|
||
| # These are sensible defaults that apply to all MySQL/MariaDB versions | ||
|
|
||
| long_query_time = 2 | ||
| slow-query-log | ||
| skip-name-resolve | ||
| connect_timeout = 30 | ||
| innodb_lock_wait_timeout = 20 | ||
| max_allowed_packet = 64M | ||
| max_connections = 500 | ||
|
|
||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.