comet_rds: add innodb_monitor_enable=module_trx to rds_cluster_parameters default#27
Draft
CRThaze wants to merge 1 commit into
Draft
comet_rds: add innodb_monitor_enable=module_trx to rds_cluster_parameters default#27CRThaze wants to merge 1 commit into
CRThaze wants to merge 1 commit into
Conversation
…ters default
Enables the InnoDB transaction monitor on every STSAAS Aurora cluster
that consumes this module with the default `rds_cluster_parameters`.
The metric collected — information_schema.INNODB_METRICS rows where
subsystem='transaction' — is what the new "Active Transactions" stat
panel (panel 201) on the comet-rds-overview Grafana dashboard reads.
Currently shows "No data" everywhere because the monitor was not
enabled by default.
Aurora MySQL does not expose SYSTEM_VARIABLES_ADMIN, so a transient
`SET GLOBAL` is not available; the cluster parameter group is the
only enable path. innodb_monitor_enable is dynamic — apply_method:
immediate, no reboot, applies on the next terraform apply.
Callers passing an explicit `rds_cluster_parameters` will NOT inherit
this default — they need to extend their own list (Terraform list
variables replace rather than merge). Affected callers in the fleet
that explicitly override today: fetch, netflix, bmw, zoox (cisco is on
the older terraform-aws-comet module — separate module bump).
Refs:
- DND-1307 (driver — STSaaS Aurora module_trx rollout)
- DND-1263 (PR #141 — ships the comet-rds-overview dashboard that
exposes the "No data" gap this fills)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Summary
Adds
{ name = "innodb_monitor_enable", value = "module_trx", apply_method = "immediate" }to therds_cluster_parametersvariable default inmodules/comet_rds. Module default consumers automatically gain the InnoDB transaction monitor on their nextterraform applyafter bumping the module pin.Why
The new "Comet RDS / MySQL Health Overview" Grafana dashboard (comet-monitoring#141, now live on chart
1.0.86+) has an "Active Transactions" stat panel (panel 201) readinginformation_schema.INNODB_METRICSfiltered tosubsystem='transaction'. Those rows only exist when InnoDB'smodule_trxtransaction monitor is enabled. Aurora MySQL does not exposeSYSTEM_VARIABLES_ADMINso a transientSET GLOBALis not available — the cluster parameter group is the only enable path.innodb_monitor_enableis dynamic:apply_method: immediate, no reboot, applies on the next terraform apply.Behavior
rds_cluster_parameters)Affected explicit-override callers in the Comet STSaaS fleet (per dply audit):
fetch,netflix,bmw,zoox. They'll be handled in their respective per-customer PRs as part of DND-1307.ciscolives on the oldercomet-ml/terraform-aws-cometmodule (currently pinned at v3.10.0, which predates therds_cluster_parametersvariable). That'll need its own module bump path; out of scope for this PR.Diff
3 lines (2 inserts, 1 update — the variable description is extended to mention the new entry):
Test plan
innodb_monitor_enableis additive and dynamic, no breaking-change risk.Refs
🤖 Generated with Claude Code
Generated description
Below is a concise technical summary of the changes proposed in this PR:
Add
innodb_monitor_enable=module_trxto the defaultrds_cluster_parametersso module consumers automatically enable the InnoDB transaction monitor once they bump the module pin. Enable themodules/comet_rdscluster parameter group to populate the Grafana Active Transactions panel by leveraging the additional metrics exposed viainformation_schema.INNODB_METRICS.Latest Contributors(2)