mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Increase pool size to 15 permanent connections
At the same time, decrease the number of workers from 5 to 4. Effect on max db connections will be the same - although with a higher "resting" number of connections. Before: 12 (instances) * 5 (workers) * 20 (10 permanent + 10 overflow) = 1200 After: 12 (instances) * 4 (workers) * 25 (15 permanent + 10 overflow) = 1200
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
workers = 5
|
workers = 4
|
||||||
worker_class = "eventlet"
|
worker_class = "eventlet"
|
||||||
worker_connections = 256
|
worker_connections = 256
|
||||||
errorlog = "/home/vcap/logs/gunicorn_error.log"
|
errorlog = "/home/vcap/logs/gunicorn_error.log"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ env:
|
|||||||
CW_APP_NAME: api
|
CW_APP_NAME: api
|
||||||
# required by cf run-task
|
# required by cf run-task
|
||||||
FLASK_APP: application.py
|
FLASK_APP: application.py
|
||||||
SQLALCHEMY_POOL_SIZE: 10
|
SQLALCHEMY_POOL_SIZE: 15
|
||||||
|
|
||||||
# Credentials variables
|
# Credentials variables
|
||||||
ADMIN_BASE_URL: null
|
ADMIN_BASE_URL: null
|
||||||
|
|||||||
Reference in New Issue
Block a user