-
Notifications
You must be signed in to change notification settings - Fork 129
Production Server Settings
Eric Carmichael edited this page Mar 17, 2020
·
7 revisions
To override settings on your production server, create a docker-compose.override.yml
in the codalab-competitions
source directory.
Add this to your docker-compose.override.yml
:
version: '2'
services:
worker_compute:
command: "/bin/true"
minio:
command: "/bin/true"
createbuckets:
command: "/bin/true"
This forces the worker to close instantly instead of running on the web host.
Up the workers in your .env
to 32 like so:
WEB_CONCURRENCY=32
Setup the following cron job to upload a backup of your database to /backups
on whichever storage you have chosen (AWS S3 or Azure Blob Storage).
crontab -e
then add this for daily backups:
@daily /path/to/codalab-competitions/scripts/pg_dump.py