Skip to content

Commit c836bc3

Browse files
committed
fix: increase flask backend memory limit to prevent OOM kills
The monitoring_flask_backend (flask-pgss-api) workers were being SIGKILL'd by the OOM killer every ~5 minutes — exactly when VictoriaMetrics scraped /query_info_metrics. With 4 gunicorn workers and 4750+ pgss query rows to process, 192MB was insufficient. Bump mem_limit from 192m to 384m. Relates to https://gitlab.com/postgres-ai/postgresai/-/issues/148 https://claude.ai/code/session_01SzJxzZNQjDQphaHyaX3RU7
1 parent 276b7a4 commit c836bc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ services:
200200
image: ${PGAI_REGISTRY:-postgresai}/monitoring-flask-backend:${PGAI_TAG:?PGAI_TAG is required}
201201
container_name: flask-pgss-api
202202
cpus: 0.1
203-
mem_limit: 192m
203+
mem_limit: 384m
204204
environment:
205205
- FLASK_ENV=production
206206
- PROMETHEUS_URL=http://sink-prometheus:9090

0 commit comments

Comments
 (0)