The following formula is used in my RDS parameter group for the max_connections property: {DBInstanceClassMemory/12582880}
I have a relative understanding of the DBInstanceClassMemory per their documentation: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html.
DBInstanceClassMemory
Returns the number of bytes of memory allocated to the DB instance class associated with the current DB instance, less the memory used by the Amazon RDS processes that manage the instance.
But I have no idea how they came up with the magical number: 12582880
They have mentioned the formula in their best practices: https://aws.amazon.com/blogs/database/best-practices-for-configuring-parameters-for-amazon-rds-for-mysql-part-3-parameters-related-to-security-operational-manageability-and-connectivity-timeout/
By default, this parameter is based on a formula that is calculated from the DBInstanceClassMemory value. This parameter is tuned automatically based on the total available memory of the RDS instances. The formula is as follows:
max_connections = DBInstanceClassMemory/12582880
Can anyone shed some light on how the AWS team came up with 12582880?