Performance parameters

更新时间:
复制 MD 格式

ApsaraDB RDS exposes performance metrics through the DescribeDBInstancePerformance API. Use these parameters to query instance metrics programmatically or to interpret data in the ApsaraDB RDS console monitoring charts.

The following tables list all supported parameters by database engine. Each parameter corresponds to one or more sub-metrics returned by the API.

ApsaraDB RDS for MySQL and ApsaraDB RDS for MariaDB

Note

MySQL and MariaDB use the same parameters.

ParameterDescriptionUnit
MySQL_NetworkTrafficAverage inbound traffic per second and average outbound traffic per secondKB/s
MySQL_QPSTPSAverage SQL statements executed per second (QPS) and average transactions executed per second (TPS)
MySQL_SessionsActive connections and total connectionsconnections
MySQL_InnoDBBufferRatioRead hit ratio, usage, and dirty ratio of the InnoDB buffer pool%
MySQL_InnoDBDataReadWritenAverage data read by InnoDB per second and average data written by InnoDB per secondKB
MySQL_InnoDBLogRequestsAverage reads from the InnoDB buffer pool per second and average writes to the InnoDB buffer pool per secondops/s
MySQL_InnoDBLogWritesAverage log write requests per second, average physical writes to log files per second, and average fsync() calls to log files per secondops/s
MySQL_TempDiskTableCreatesTemporary tables created on disk during statement executiontables
MySQL_MyISAMKeyBufferRatioAverage usage, read hit ratio, and write hit ratio of the MyISAM key buffer%
MySQL_MyISAMKeyReadWritesAverage MyISAM reads from the buffer pool per second, writes to the buffer pool per second, reads from disk per second, and writes to disk per secondops/s
MySQL_COMDMLAverage executions per second of DELETE, INSERT, INSERT_SELECT, REPLACE, REPLACE_SELECT, SELECT, and UPDATE statementsops/s
MySQL_RowDMLAverage rows read, updated, deleted, and inserted in InnoDB tables per second, and average physical writes to log files per secondrows/s or count/s
MySQL_MemCpuUsageCPU utilization and memory usage of a non-serverless instance at the OS level%
MySQL_RCU_MemCpuUsageCPU utilization and memory usage of a serverless instance at the OS level%
MySQL_IOPSInput/output operations per second (IOPS)ops/s
MySQL_DetailedSpaceUsageDisk usage breakdown: total, data files, log files, temporary files, and system filesMB
slavestatReplication lag to the read-only instanceseconds
MySQL_ThreadStatusActive threads and connected threadsthreads
MySQL_ReplicationDelayReplication lag to the secondary instanceseconds
MySQL_ReplicationThreadI/O thread status and SQL thread status. 1 = running normally; 0 = thread lost
MySQL_ROW_LOCKMaximum row lock wait time (ms), average row lock wait time (ms), and total number of row lock waits
MySQL_SelectScanNumber of full table scanstimes
MySQL_MBPSRead and write throughput per secondbytes/s

ApsaraDB RDS for SQL Server

For the parameters supported by ApsaraDB RDS for SQL Server, see Parameters that can be modified for ApsaraDB RDS for SQL Server.

ApsaraDB RDS for PostgreSQL

ApsaraDB RDS for PostgreSQL supports more granular metrics through Enhanced Monitoring. The table below maps each API parameter to its corresponding enhanced monitoring metric. To view Enhanced Monitoring data in the console, see View the Enhanced Monitoring metrics of an ApsaraDB RDS for PostgreSQL instance.

ParameterDescriptionUnitEnhanced monitoring metric
MemoryUsageMemory usage%os.mem_usage.total.avg
CpuUsageCPU utilization%os.cpu_usage.total.avg
PgSQL_SpaceUsageDisk usagebytesos.fs_size.wal_dir.avg + os.fs_size.base_dir.avg (unit: MB)
PgSQL_IOPSIOPSops/s(os.iops.data.avg + os.iops.wal.avg) / os.iops.total.avg × 100
PgSQL_SessionTotal connectionsconnectionsdb.connections.total.avg
PolarDBConnectionsConnection breakdown — see sub-parameters belowSee below
PolarDBRowDMLRow-level DML activity — see sub-parameters belowSee below
PolarDBQPSTPSTransaction and query throughput — see sub-parameters belowSee below
PolarDBSwellTimeThe point in time before which the generated dead tuples can be recycled by the RDS instancesecondsdb.swell.swell_time.avg
PolarDBCPUCPU utilization breakdownos.cpu_usage.sys.avg, os.cpu_usage.user.avg, os.cpu_usage.total.avg
PolarDBMemoryMemory usageos.mem_usage.total.avg
PolarDBReplicationReplication lag — see sub-parameters below
PolarDBLongSQLSlow SQL statements by duration threshold — see sub-parameters belowSee below
PolarDBLongIdleTransactionIdle transactions by duration threshold — see sub-parameters belowSee below
PolarDBLongTransactionLong-running active transactions — see sub-parameters belowSee below
PolarDBLongTwoPCTransactionLong-running two-phase commit transactions — see sub-parameters belowSee below
PolarDBLocalIOSTATData disk I/O — see sub-parameters belowSee below
PolarDBLocalDiskUsageDisk space by directory — see sub-parameters belowSee below

PolarDBConnections sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_active_sessionActive connectionsdb.connections.active.avg
mean_idle_connectionIdle connectionsdb.connections.idle.avg
mean_total_sessionTotal connectionsdb.connections.total.avg
mean_waiting_connectionConnections in the waiting statedb.connections.waiting.avg

PolarDBRowDML sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_tup_returned_deltaRows returned per second by full table scansdb.sql.tup_returned.avg
mean_tup_fetched_deltaTables returned per second by index scansdb.sql.tup_fetched.avg
mean_tup_inserted_deltaRows inserted per seconddb.sql.tup_inserted.avg
mean_tup_updated_deltaRows updated per seconddb.sql.tup_updated.avg
mean_tup_deleted_deltaRows deleted per seconddb.sql.tup_deleted.avg

PolarDBQPSTPS sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_commits_deltaTransactions committed per seconddb.transactions.xact_commit.avg
mean_rollbacks_deltaTransactions rolled back per seconddb.transactions.xact_rollback.avg
mean_deadlocks_deltaDeadlocks per secondNumber of deadlocks
mean_tpsTotal transactions per second (commits + rollbacks)db.transactions.xact_commit.avg + db.transactions.xact_rollback.avg

PolarDBReplication sub-parameters

Sub-parameterDescriptionUnit
mean_replay_latency_in_mbReplication lag on the secondary instance (data not yet replayed)bytes
mean_send_latency_in_mbReplication lag from the primary to the secondary instance (data not yet sent)bytes
mean_logical_rep_latency_in_mbLogical replication lagbytes

PolarDBLongSQL sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_one_second_executing_sqlsSQL statements running for more than 1 seconddb.slow_sql.one_second.avg
mean_three_seconds_executing_sqlsSQL statements running for more than 3 secondsdb.slow_sql.three_seconds.avg
mean_five_seconds_executing_sqlsSQL statements running for more than 5 secondsdb.slow_sql.five_seconds.avg

PolarDBLongIdleTransaction sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_one_second_idle_transactionsTransactions idle for more than 1 seconddb.long_transactions.idle_one_second.avg
mean_three_seconds_idle_transactionsTransactions idle for more than 3 secondsdb.long_transactions.idle_three_seconds
mean_five_seconds_idle_transactionsTransactions idle for more than 5 secondsdb.long_transactions.idle_five_seconds.avg

PolarDBLongTransaction sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_one_second_transactionsActive transactions running for more than 1 seconddb.long_transactions.active_one_second.avg
mean_three_seconds_transactionsActive transactions running for more than 3 secondsdb.long_transactions.active_three_seconds.avg

PolarDBLongTwoPCTransaction sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_one_second_two_pc_transactionsTwo-phase commit transactions running for more than 1 seconddb.long_transactions.two_pc_one_second.avg
mean_three_seconds_two_pc_transactionsTwo-phase commit transactions running for more than 3 secondsdb.long_transactions.two_pc_three_seconds.avg
mean_five_seconds_two_pc_transactionsTwo-phase commit transactions running for more than 5 secondsdb.long_transactions.two_pc_five_seconds.avg

PolarDBLocalIOSTAT sub-parameters

Sub-parameterDescriptionEnhanced monitoring metric
mean_local_iops_readRead operations from the data disk per secondos.iops.read.avg
mean_local_iops_writeWrite operations to the data disk per secondos.iops.write.avg

PolarDBLocalDiskUsage sub-parameters

Sub-parameterDescriptionUnitEnhanced monitoring metric
mean_local_pg_wal_dir_sizeDisk space used by write-ahead log (WAL) filesMBos.fs_size.wal_dir.avg
mean_local_pg_log_dir_sizeDisk space used by log filesMBos.fs_size.log_dir.avg
mean_local_base_dir_sizeDisk space used by data filesMBos.fs_size.base_dir.avg

What's next