MySQL semi-sync settings
MySQL semi-sync settings affect the database cluster operability and performance. When creating a cluster, the settings are set to default values. Default values are selected to ensure high cluster performance and vary depending on the cluster configuration and the version of MySQL semi-sync.
You can:
- view default settings and change them when creating a cluster;
- or view settings and edit them in an existing cluster.
We recommend changing setting values only when necessary—incorrect values can make the cluster inoperable or reduce its performance.
When scaling a cluster, the values of some settings are automatically replaced with default values. You can view the list of such settings in the Automatic change of settings when scaling a cluster subsection.
View settings
You can view the list of settings available for editing when creating a cluster or editing settings.
If you have changed the settings, you can separately view a list of settings whose values differ from the defaults.
You can find a detailed description of all settings in the The MySQL Server section of the MySQL documentation.
- In the control panel, in the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the DBMS settings block, click Edit.
- Optional: to view only the settings where you changed the default value, select the Show modified parameters checkbox.
- View settings.
Change settings
We recommend changing setting values only when necessary—incorrect values can make the cluster inoperable or reduce its performance.
After changing certain settings, the cluster will restart automatically and will be unavailable during the restart. The restart will begin immediately after saving changes. Settings that require a restart are marked with .
- In the control panel, in the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the DBMS settings block, click Edit.
- Specify new values.
- Click Save.
Automatic setting changes when scaling a cluster
DBMS settings have valid value ranges. If, when scaling a cluster, setting values fall outside of valid ranges, such values are automatically replaced with default values so that the cluster can operate.
Once the cluster is scaled and enters the ACTIVE status, you can edit the settings and specify new values.
List of settings whose values are reset to default values when scaling a cluster:
innodb_buffer_pool_instances;innodb_buffer_pool_size;innodb_log_file_size(for MySQL semi-sync 5.7 only);innodb_redo_log_capacity;max_connections;max_heap_table_size;temptable_max_ram;thread_pool_size;tmp_table_size.
Character set and collation settings
The character set (CHARACTER SET or CHARSET) and collation (COLLATION) for the DBMS are defined in the loose_character_set_server and collation_server settings. Default values vary depending on the DBMS version.
You can change the settings when creating a cluster or change the settings in an existing cluster. The character set must be compatible with the collation. You can view compatible values using the command mysql> SHOW COLLATION WHERE Charset = '<charset>';, where <charset> is the character set for which you are viewing compatible collations.
For more information about settings and their compatibility, see the Character Sets and Collations in MySQL article in the MySQL documentation.