Parameter Formula Composition | Name | Description |
Variable | DBinitMemory | The memory size of the instance specification represented as an integer, in the unit of MB. |
| DBInitCpu | The number of CPU cores in the instance specification, represented as an integer, in the unit of cores. |
Operator | Division operator (/) | Divides the dividend by the divisor to return an integer quotient. If the result is a decimal, the integral part is used. |
| Multiplication operator (*) | The product of two factors is returned as an integer. If the result is a decimal, the integral part is used. |
Function | MIN() | Returns the smallest value in the form of an integer or parameter formula list. |
| MAX() | Returns the greatest value in the form of an integer or parameter formula list. |
Parameter | Description | Default Formula |
binlog_cache_size | The size of the memory buffer used to store binary logs of adjustments during the transaction. | MIN(DBInitMemory/4000 * 32768,2097152) |
max_heap_table_size | This variable sets the maximum size of user-created tables in the memory. | MIN( DBInitMemory/1000 * 4194304,134217728) |
innodb_buffer_pool_size | The size (in bytes) of the buffer pool, which is the memory area of InnoDB cache table and index data. | min((DBInitMemory - 500), DBInitMemory*3/4)*1000000 |
innodb_buffer_pool_instances | The number of regions divided according to the InnoDB cache pools. | MIN(DBInitMemory/2000,16) |
innodb_read_io_threads | The number of I/O threads in InnoDB used for read operations. | MAX(DBInitCpu/2,4) |
innodb_write_io_threads | The number of I/O threads in InnoDB used for write operations. | MAX(DBInitCpu/2,4) |
join_buffer_size | The minimum size of the cache for table joins used in common index scans, range index scans, and full table scans. | MIN(DBInitMemory*128,262144) |
max_connections | The maximum number of connections. | MIN(DBInitMemory/4+500,100000) |
table_definition_cache | The number of opened table cache instances. | MAX(DBInitMemory*512/1000,2048) |
table_open_cache | The size of table descriptor cache, which can reduce the number of times the files are opened and closed. | MIN(MAX(DBInitMemory*512/1000,2048), 65536) |
table_open_cache_instances | The number of partitions for the MySQL table handle cache. | MIN(DBInitMemory/1000,16) |
thread_pool_size | This parameter indicates the number of thread groups in the thread pool. By default, the number of thread groups equals the number of CPUs. | MIN(DBInitCpu,64) |
thread_cache_size | The number of threads that should be retained in the cache for reuse. | MIN(DBInitMemory/125+8,512) |
tmp_table_size | The maximum size of the internal memory temporary table. | MIN(DBInitMemory/1000*4194304,134217728) |
Was this page helpful?