Skip to content

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.

Disable compute worker from running on web machine

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.

More gunicorn HTTP workers

Up the workers in your .env to 32 like so:

WEB_CONCURRENCY=32

Enable backups

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
Clone this wiki locally