This topic describes how to use expressions as parameter values for an ApsaraDB RDS for MySQL instance.
Parameter configuration
You can use dynamic expressions to configure instance parameters. When you change the instance type, the system automatically recalculates parameters that are defined as expressions. This ensures parameter settings remain optimized for the new specifications without manual changes.
For example, if you configure innodb_buffer_pool_size with the expression {DBInstanceClassMemory*3/4}, the buffer pool size is automatically set to three-quarters of the instance memory. Consequently, after you change the instance type, the value of innodb_buffer_pool_size adapts to the new specifications to maintain optimal performance.
Expression syntax
|
Category |
Description |
Example |
|
Variable |
Note
|
{DBInstanceClassMemory*3/4} |
|
Operator |
|
|
|
Function |
|
LEAST({DBInstanceClassMemory/256},10485760) |