Scalability Tuning
Increasing Service Replicas
Creating a docker-compose.override.yml
cd $(sudo supervisely where)services:
api:
environment:
POSTGRES_POOL_MAX: '20'
deploy:
replicas: 3
api-public:
environment:
POSTGRES_POOL_MAX: '20'
deploy:
replicas: 3PostgreSQL Database Tuning
Locating the PostgreSQL Configuration
Increasing Connection Limits
Tuning PostgreSQL Based on Available RAM
For servers with 8GB RAM:
For servers with 16GB RAM:
For servers with 32GB RAM:
For servers with 64GB RAM or more:
Additional Important PostgreSQL Parameters
Applying PostgreSQL Changes
Increasing PostgreSQL Container Memory Limit
Last updated