Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paoliniluis/metabase-choke-db-conns
https://github.com/paoliniluis/metabase-choke-db-conns
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/paoliniluis/metabase-choke-db-conns
- Owner: paoliniluis
- Created: 2022-05-20T23:21:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-24T04:00:03.000Z (over 2 years ago)
- Last Synced: 2024-11-07T06:47:36.180Z (about 2 months ago)
- Language: Shell
- Size: 957 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Metabase connection pool exhaustion
===============================## What
A simple environment that chokes the connection pool.
Contents of the docker-compose:
- Metabase Enterprise v1.41.3 with MB_JDBC_DATA_WAREHOUSE_MAX_CONNECTION_POOL_SIZE=2 (just 2 connections max to the data warehouse)
- Postgres 14.2 as the app database
- Setup container with some tweaks (waits for MariaDB to be alive and then it creates 10 questions out of it)
- A MariaDB container that is built from scratch with the sample databaseMetabase is exposed in port 3000, the MySQL database exposes 3306 so you can connect from outside and see the connections (use MySQL Workbench or )
All containers are inside the same network for visibility
## How
1) Clone this repo
2) cd into it
3) docker-compose up
4) use an incognito session and go to localhost:3000, authenticate with '[email protected]' as the user and 'metabot1' as password
5) create a new dashboard and add the 10 questions you have, save it, you see that the questions are answered
6) Now refresh the dashboard (so you fire 10 questions at the same time), see some questions being answered, all the rest won't, you clogged the connection pool, and also completely killed the instance (but the app is alive!).## Requirements
- Docker
- Docker-compose