Official Python adapter for Judoscale—the advanced autoscaler for Heroku
Project description
judoscale-python
This is the official Python adapter for Judoscale. You can use Judoscale without it, but this gives you request queue time metrics and job queue time (for supported job processors).
Installation
pip install judoscale-python
Supported web frameworks
- Django
- Flask
- FastAPI
Supported job processors
- Celery
- RQ
Using Judoscale with Django
Add Judoscale app to settings.py
:
INSTALLED_APPS = [
"judoscale.django",
# ... other apps
]
Customize Judoscale options in settings.py
(optional):
JUDOSCALE = {
# LOG_LEVEL defaults to ENV["LOG_LEVEL"] or "INFO".
"LOG_LEVEL": "DEBUG",
# API_BASE_URL defaults to ENV["JUDOSCALE_URL"], which is set for you when you install Judoscale.
# This is only exposed for testing purposes.
"API_BASE_URL": "https://example.com",
# REPORT_INTERVAL_SECONDS defaults to 10 seconds.
"REPORT_INTERVAL_SECONDS": 5,
}
Once deployed, you will see your request queue time metrics available in the Judoscale UI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
judoscale-python-0.0.4.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for judoscale_python-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 109e3d5764359a5f9a7c5495f8534f1ab15be26a1fb205d12c1666498d53e56b |
|
MD5 | 8122ea007a8df1086b43148d847d6283 |
|
BLAKE2b-256 | a7c37c8367e58b6ebecd676dc597393f4e4aa1bc505a9d1b37db4f6ddb410f87 |