Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b2f39a5f
Commit
b2f39a5f
authored
Nov 01, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing wsrep.cnf.sh
parent
75ceb6ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
0 deletions
+132
-0
support-files/CMakeLists.txt
support-files/CMakeLists.txt
+7
-0
support-files/wsrep.cnf.sh
support-files/wsrep.cnf.sh
+125
-0
No files found.
support-files/CMakeLists.txt
View file @
b2f39a5f
...
@@ -50,6 +50,13 @@ FOREACH(inifile my-huge my-innodb-heavy-4G my-large my-medium my-small)
...
@@ -50,6 +50,13 @@ FOREACH(inifile my-huge my-innodb-heavy-4G my-large my-medium my-small)
ENDFOREACH
()
ENDFOREACH
()
ENDIF
()
ENDIF
()
IF
(
WITH_WSREP
)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/wsrep.cnf.sh
${
CMAKE_CURRENT_BINARY_DIR
}
/wsrep.
${
ini_file_extension
}
@ONLY
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/wsrep.
${
ini_file_extension
}
DESTINATION
${
inst_location
}
COMPONENT IniFiles
)
ENDIF
()
IF
(
UNIX
)
IF
(
UNIX
)
SET
(
prefix
${
CMAKE_INSTALL_PREFIX
}
)
SET
(
prefix
${
CMAKE_INSTALL_PREFIX
}
)
FOREACH
(
script mysqld_multi.server mysql-log-rotate binary-configure
)
FOREACH
(
script mysqld_multi.server mysql-log-rotate binary-configure
)
...
...
support-files/wsrep.cnf.sh
0 → 100644
View file @
b2f39a5f
# This file contains wsrep-related mysqld options. It should be included
# in the main MySQL configuration file.
#
# Options that need to be customized:
# - wsrep_provider
# - wsrep_cluster_address
# - wsrep_sst_auth
# The rest of defaults should work out of the box.
##
## mysqld options _MANDATORY_ for correct opration of the cluster
##
[
mysqld]
# (This must be substituted by wsrep_format)
binlog_format
=
ROW
# Currently only InnoDB storage engine is supported
default-storage-engine
=
innodb
# to avoid issues with 'bulk mode inserts' using autoinc
innodb_autoinc_lock_mode
=
2
# Override bind-address
# In some systems bind-address defaults to 127.0.0.1, and with mysqldump SST
# it will have (most likely) disastrous consequences on donor node
bind-address
=
0.0.0.0
##
## WSREP options
##
# Enable wsrep
wsrep_on
=
1
# Full path to wsrep provider library or 'none'
wsrep_provider
=
none
# Provider specific configuration options
#wsrep_provider_options=
# Logical cluster name. Should be the same for all nodes.
wsrep_cluster_name
=
"my_wsrep_cluster"
# Group communication system handle
#wsrep_cluster_address="dummy://"
# Human-readable node name (non-unique). Hostname by default.
#wsrep_node_name=
# Base replication <address|hostname>[:port] of the node.
# The values supplied will be used as defaults for state transfer receiving,
# listening ports and so on. Default: address of the first network interface.
#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
=
1
# DBUG options for wsrep provider
#wsrep_dbug_option
# Generate fake primary keys for non-PK tables (required for multi-master
# and parallel applying operation)
wsrep_certify_nonPK
=
1
# Maximum number of rows in write set
wsrep_max_ws_rows
=
131072
# Maximum size of write set
wsrep_max_ws_size
=
1073741824
# to enable debug level logging, set this to 1
wsrep_debug
=
0
# convert locking sessions into transactions
wsrep_convert_LOCK_to_trx
=
0
# how many times to retry deadlocked autocommits
wsrep_retry_autocommit
=
1
# change auto_increment_increment and auto_increment_offset automatically
wsrep_auto_increment_control
=
1
# retry autoinc insert, which failed for duplicate key error
wsrep_drupal_282555_workaround
=
0
# enable "strictly synchronous" semantics for read operations
wsrep_causal_reads
=
0
# Command to call when node status or cluster membership changes.
# Will be passed all or some of the following options:
# --status - new status of this node
# --uuid - UUID of the cluster
# --primary - whether the component is primary or not ("yes"/"no")
# --members - comma-separated list of members
# --index - index of this node in the list
wsrep_notify_cmd
=
##
## WSREP State Transfer options
##
# State Snapshot Transfer method
wsrep_sst_method
=
rsync
# Address which donor should send State Snapshot to.
# Should be the address of THIS node. DON'T SET IT TO DONOR ADDRESS!!!
# (SST method dependent. Defaults to the first IP of the first interface)
#wsrep_sst_receive_address=
# SST authentication string. This will be used to send SST to joining nodes.
# Depends on SST method. For mysqldump method it is root:<root password>
wsrep_sst_auth
=
root:
# Desired SST donor name.
#wsrep_sst_donor=
# Reject client queries when donating SST (false)
#wsrep_sst_donor_rejects_queries=0
# Protocol version to use
# wsrep_protocol_version=
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment