Skip to content

AB#114694 shrink the DB buffer size#206

Merged
lardo-de-arnaud merged 1 commit intomasterfrom
AB#114694
Mar 12, 2026
Merged

AB#114694 shrink the DB buffer size#206
lardo-de-arnaud merged 1 commit intomasterfrom
AB#114694

Conversation

@lardo-de-arnaud
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the RDS MySQL DB parameter group to reduce InnoDB memory usage, aligning with the goal of shrinking DB buffering on smaller instances.

Changes:

  • Set a lower innodb_log_buffer_size value.
  • Set a lower innodb_buffer_pool_size value.
  • Added inline comments explaining the intended sizing rationale.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +155 to +158
# 16MB. This is a reduction from the RDS default, which seems tuned for larger instances.
innodb_log_buffer_size: "16777216"
# 96MB. Shave a little off the default of 128MB to free some memory.
innodb_buffer_pool_size: "100663296"
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

innodb_log_buffer_size and innodb_buffer_pool_size are now hard-coded to fixed byte values, so they won’t scale if dbInstanceSize changes (this template allows both db.t3.micro and db.t3.small). Consider making these values conditional/mapped per instance class (or per environment) so memory tuning remains appropriate when the instance size changes.

Copilot uses AI. Check for mistakes.
Comment on lines +155 to +157
# 16MB. This is a reduction from the RDS default, which seems tuned for larger instances.
innodb_log_buffer_size: "16777216"
# 96MB. Shave a little off the default of 128MB to free some memory.
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline comments about the “RDS default” values look potentially inaccurate/misleading (e.g., innodb_log_buffer_size is 16MB here, which is commonly already the MySQL default, and innodb_buffer_pool_size defaults vary by engine/parameter group). Please confirm the actual defaults for the mysql${dbEngineMajorVer} family you deploy, and update the comments (or drop the override) so this doesn’t communicate the wrong baseline to future maintainers.

Suggested change
# 16MB. This is a reduction from the RDS default, which seems tuned for larger instances.
innodb_log_buffer_size: "16777216"
# 96MB. Shave a little off the default of 128MB to free some memory.
# Explicitly set to 16MB (16777216 bytes); adjust as needed for your workload/instance size.
innodb_log_buffer_size: "16777216"
# Explicitly set to ~96MB (100663296 bytes) to control InnoDB memory usage on smaller instances.

Copilot uses AI. Check for mistakes.
@lardo-de-arnaud lardo-de-arnaud merged commit f46413f into master Mar 12, 2026
6 checks passed
@lardo-de-arnaud lardo-de-arnaud deleted the AB#114694 branch March 12, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants