unit icon indicating copy to clipboard operation
unit copied to clipboard

Consistent worker_id

Open doc-sheet opened this issue 8 months ago • 0 comments

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

doc-sheet avatar Apr 24 '25 20:04 doc-sheet