Skip to content

Commit c4b9346

Browse files
szachovyCopilot
andcommitted
Disable InnoDB Adaptive Hash Index
Superset BI workloads are dominated by range scans (SQL Lab analytics) rather than point lookups where AHI helps. Disabling AHI frees buffer pool memory for actual data pages. Re-enable after profiling with SHOW ENGINE INNODB STATUS if hash searches exceed 10% of non-hash. Closes #83 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0ab8ce7 commit c4b9346

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Dependabot updates for `github-actions` and `terraform` ecosystems. (#29)
1616
* CI workflow to build and push service images to GitHub Container Registry on master merge. (#97)
1717
* Pull-first with local build fallback for container images during deployment. (#97)
18+
* Disable InnoDB Adaptive Hash Index to free buffer pool memory for BI workload. (#83)
1819

1920
### Changed
2021

services/mysql-server/mysql_config.cnf.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ ssl-key = "/etc/mysql/ssl/mysql_server_key.pem"
1414
require_secure_transport = "ON"
1515
max_connections = "50"
1616
max_connect_errors = "50"
17+
innodb_adaptive_hash_index = "OFF"

0 commit comments

Comments
 (0)