Official Python adapter for Judoscale—the advanced autoscaler for Heroku
Project description
judoscale-python
Official Python adapter for Judoscale—the advanced autoscaler for Heroku
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"], set during add-on installation
'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.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for judoscale_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbe5225a42844c530064732692b327f09d4bb1f52f3c7c90356111782d193a1e |
|
MD5 | 4d2b3f6c0889188ecc9ed903af952d9d |
|
BLAKE2b-256 | 4ece0f231502b3c426099ed787694df0254682cb81da07ed3afbeabf97488ef0 |