MySQL Operator user guide
The MySQL Operator dashboard is a visual management platform for ACK clusters. This topic describes how to create Pod MySQL instances in the MySQL Operator dashboard, and how to track O&M tasks through the task center and operation records, and reuse MySQL parameter configurations through parameter templates.
MySQL Operator is currently in public preview.
Prerequisites
-
You have deployed MySQL Operator on the RDS Custom container cluster with one click and configured the logon username and password. For more information, see Manage RDS Custom container clusters.
-
You have verified the network conditions for accessing the MySQL Operator dashboard.
-
If the client and the cluster are in the same virtual private cloud (VPC), you can directly access the MySQL Operator dashboard.
-
If the client and the cluster are not in the same VPC, you must first enable public access. For more information, see Configure public access for MySQL Operator.
-
Create an instance
Pod MySQL instances run in primary-standby pairs. Perform the following steps to create an instance.
-
Log on to the MySQL Operator dashboard.
Log on to the ApsaraDB RDS console. In the left-side navigation pane, choose . In the ACK Pro Cluster List, find the target cluster, and then click Access Dashboard in the MySQL Operator column.
-
In the left-side navigation pane, click Instance Management, and then click Create Instance to open the creation wizard.
The creation wizard consists of six steps: Basic Information, Account and Security, Specifications and Storage, MySQL Parameters, Advanced Scheduling, and Confirm Configuration. During configuration, you can click Previous to go back and modify settings, or click Back to Instance List to cancel the creation.
-
In the Basic Information step, configure the following parameters, and then click Next.
Parameter
Description
Instance Name
The name of the instance. The name can be up to 63 characters in length.
Resource Space
The resource space to which the instance belongs, which corresponds to a namespace in the ACK cluster. You can search in the drop-down list. The default value is
default.MySQL Version
The MySQL version of the instance, such as MySQL 8.0.
High Availability Topology
The node topology of the instance, such as 1 Primary + 1 Standby.
Replication Mode
The data replication mode between the primary and standby nodes. Valid values:
-
Asynchronous Replication (Default): The primary node does not wait for acknowledgment from the standby node, resulting in lower write latency. If the primary node fails, data that has not been transmitted to the standby node may be lost.
-
Semi-synchronous Replication: The primary node waits for the standby node to acknowledge receipt before returning, providing higher data reliability at the cost of slightly higher write latency compared to asynchronous replication.
-
-
In the Account and Security step, configure the privileged account used for business MySQL logon, and then click Next.
NoteInternal platform accounts are managed independently by the system and do not require your configuration.
Parameter
Description
Privileged Account
The name of the privileged account used for business logon. The name can be up to 32 characters in length.
Password
The password of the privileged account. The password must be 8 to 32 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
Confirm Password
Enter the password again.
ImportantKeep your password in a safe place. After the instance is created, the instance details page displays only the account name but does not allow you to view or copy the password.
-
In the Specifications and Storage step, configure the following parameters, and then click Next.
Parameter
Description
Disk Performance Level
The disk type and performance level for the instance, such as Standard Disk - PL0 (starting from 1 GB).
Capacity per Node
The disk capacity of a single node. Unit: GB.
CPU Request
The number of CPU cores reserved for a single node.
CPU Limit
The maximum number of CPU cores that a single node can use.
Memory Request
The amount of memory reserved for a single node. Unit: GB.
Memory Limit
The maximum amount of memory that a single node can use. Unit: GB.
NoteThe primary and standby nodes use independent disks. The capacity is calculated per node.
-
In the MySQL Parameters step, configure the following parameters, and then click Next.
Parameter
Description
Parameter Template
Select a previously created parameter template from the drop-down list. If no template is selected, the platform default parameters are used. For more information about how to create a parameter template, see the Parameter templates section in this topic.
Binary Log Retention
The retention period of binary logs (binlogs), such as 6 hours.
The parameter template provides base values. To override individual parameters from the template, click + Add Custom Parameter. Custom parameters take precedence over template values.
-
In the Advanced Scheduling step, confirm the scheduling rules, and then click Check Configuration.
The default rules are already adapted to the current runtime environment. To customize, expand Custom Scheduling and configure Node Selector Labels and Tolerations. You can click + Add Label and + Add Toleration to add entries.
NoteIf you do not have specific requirements, keep the default values.
-
In the Confirm Configuration step, review the configuration. After Configuration Check Passed is displayed, click Create Instance.
The summary area displays information such as the instance name, resource space, privileged account, password, topology, replication mode, version, disk, compute specifications, parameter source, and custom parameters. The password is displayed as Password Set. To view more configurations, expand Advanced Fields.
-
In the left-side navigation pane, click Task Center to view the creation progress. When the task status shows Completed, the instance is created.
Task center
In the left-side navigation pane, click Task Center to view the task status, current phase, and failure information. Click Refresh to update the data. The following statistics are displayed at the top of the page.
|
Metric |
Description |
|
Total Tasks |
The total number of tasks within the current search scope. |
|
Running |
The number of tasks that are currently running. |
|
Completed Today |
The number of tasks that were completed on the current day. |
|
Action Required |
The number of tasks that require manual intervention. Go to the task details to view the recommended actions. |
The task list supports filtering by Search task or instance, task type, and task status. Each task displays the Task, Status, Current Phase, Resource Space, Start Time, and Duration.
View task details
In the task list, click View Details in the Actions column of the target task to go to the task details page.
-
The top of the page displays the Product Phase, Execution Status, Task Duration, and Completed Steps.
-
The Execution Steps section lists all steps of the task in their original order. For example, an instance creation task includes stages such as preparing storage, preparing connections, setting up primary-standby replication, enabling high availability protection, and completing the task.
-
Click any step to view its Technical Step Name, Start Time, End Time, Duration, Retries, Step Message, and Step Output (Technical Details) on the right side.
When a task fails, you can locate the failed step in the Execution Steps section and troubleshoot by reviewing the Step Message and Step Output (Technical Details) of that step. The Task Technical Information at the bottom of the page provides additional technical details.
Operation records
In the left-side navigation pane, click Operation Records to track instance operations and results. You can filter by Instance Name, operation type, operation result, and time range. After configuring the filter conditions, click Query. For additional filter options, click Advanced Filter. Operation records are grouped by instance. Each record contains the Operation, Result, Initiator, Summary, and Start Time. The Summary field indicates the number of resource changes involved in the operation. In the Actions column of a target record, click View Task to go to the corresponding task details, or click Record Details to view the detailed information of the operation record.
Parameter templates
Parameter templates are used to maintain and reuse MySQL parameter configurations. After creation, a template can be applied to one or more instances. In the left-side navigation pane, click Parameter Templates to view the template list.
The top of the page displays four statistics: Template Count, Parameter Configurations, Associated Instances, and Applicable Versions. The template list displays the Template, Resource Space, Applicable Version, Parameter Count, Associated Instances, and Created At for each template. You can also search by using the Search template name or description field.
Create a parameter template
-
On the Parameter Templates page, click + New Template.
-
In the Template Configuration area, configure the following parameters under Basic Information.
Parameter
Description
Template Name
The name of the parameter template. This field is required.
MySQL Version
The MySQL version to which the template applies. This field is required. Example: 8.0.
Resource Space
The resource space to which the template belongs.
Description
A description of the template purpose for easy identification.
-
In the Parameter Configuration area, add the parameters that you want to adjust. The following parameters are supported.
Parameter
Effective Method
Description
innodb_buffer_pool_sizeHot reload
The size of the InnoDB buffer pool. Unit: MiB. Minimum value: 128 MiB.
innodb_flush_log_at_trx_commitHot reload
The redo log flush policy when a transaction is committed.
innodb_log_file_sizeRestart required
The size of a single redo log file. Unit: MiB.
interactive_timeoutHot reload
The idle timeout for interactive connections. Unit: seconds.
log_queries_not_using_indexesHot reload
Specifies whether to log queries that do not use indexes to the slow query log.
long_query_timeHot reload
The time threshold for slow queries. Unit: seconds.
max_allowed_packetHot reload
The maximum size of a single packet. Unit: MiB.
max_connectionsHot reload
The maximum number of concurrent connections allowed.
slow_query_logHot reload
Specifies whether to enable the slow query log.
sync_binlogHot reload
The synchronization frequency of binary logs to disk.
wait_timeoutHot reload
The idle timeout for non-interactive connections. Unit: seconds.
NoteParameters with the Hot reload effective method take effect immediately without restart. Parameters with the Restart required effective method are saved and written to the instance configuration after being applied, and the instance is marked as pending restart.
-
Save the template and return to the Parameter Templates page to view the newly created template.
After a parameter template is created, you can select it from the Parameter Template drop-down list in the MySQL Parameters step during instance creation.