Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove runsv and KoboCAT uWSGI env variables #4948

Merged
merged 58 commits into from
Jun 21, 2024

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented May 24, 2024

Description

Moreover KPI_ prefix has been also removed. Container does not rely on runsv to handle Celery processes.

Notes

Since everything is running under the same Python application, uWSGI env variables for KoboCAT were obsolete.

Old version New version
KPI_WEB_SERVER WSGI
KPI_UWSGI_HARAKIRI UWSGI_HARAKIRI
KPI_UWSGI_WORKER_RELOAD_MERCY UWSGI_WORKER_RELOAD_MERCY
KPI_UWSGI_WORKERS_COUNT UWSGI_WORKERS_COUNT
KPI_UWSGI_CHEAPER_WORKERS_COUNT UWSGI_CHEAPER_WORKERS_COUNT
KPI_UWSGI_CHEAPER_RSS_LIMIT_SOFT UWSGI_CHEAPER_RSS_LIMIT_SOFT
KPI_UWSGI_MAX_REQUESTS UWSGI_MAX_REQUESTS
KPI_UWSGI_RELOAD_ON_RSS_MB UWSGI_RELOAD_ON_RSS_MB

Same other variables were deprecated and have been replaced too.

Old version New version
ENKETO_API_TOKEN ENKETO_API_KEY
RAVEN_DSN SENTRY_DSN
KPI_CELERY_BROKER_URL CELERY_BROKER_URL

Moreover runsv has been removed. uWSGI is now the main process.

Related issues

related to #4888
blocked by kobotoolbox/kobo-install#241
blocked by kobotoolbox/kobo-docker#347

@noliveleger noliveleger changed the title Refactor kobo docker env vars Remove runsv and KoboCAT uWSGI env variables May 24, 2024
@noliveleger noliveleger force-pushed the refactor-kobo-docker-env-vars branch 2 times, most recently from a8a1c40 to a0faa19 Compare May 27, 2024 16:34
@noliveleger noliveleger force-pushed the refactor-kobo-docker-env-vars branch from 7233aae to 6f6e761 Compare May 27, 2024 20:41
noliveleger and others added 27 commits June 17, 2024 15:40
Make image attachments resizing work again
Fix race conditions while running migrations for fresh installs
@jnm jnm merged commit 64cee41 into django-kobocat-app Jun 21, 2024
3 checks passed
@jnm jnm deleted the refactor-kobo-docker-env-vars branch June 21, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants