unit
unit copied to clipboard
Consistent worker_id
Feature Overview
Hello!
Could you set consistent worker_id for workers like uwsgi do?
if is pretty usefull with multiple worker processes (processes.max) and recycle (limits.requests).
Some scripts like django-prometheus exporter use it to cache per worker stat.
Alternatives Considered
No response
Additional Context
Common trick used by django exporter https://github.com/korfuri/django-prometheus/blob/master/documentation/exports.md#exporting-metrics-in-a-wsgi-application-with-multiple-processes-globally