Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/content/multiprocess/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ Windows-mounted path (e.g. `/mnt/c/...`). On Windows-mounted filesystems the
per-process metric files can be written with an incorrect internal offset,
causing the collector to silently read no data.

Prefer a memory-backed filesystem for this directory: a `tmpfs` mount,
`/dev/shm`, or in Kubernetes an `emptyDir` volume with `medium: Memory`.
Every metric update writes into a memory-mapped file in this directory. On a
disk-backed filesystem the kernel can make that write wait while the disk is
busy, for a second or more, and the thread holds the GIL while it waits, so
every thread of the process stops. Files on a memory-backed filesystem count
against the memory of the machine or container.

**2. Metrics collector**:

The application must initialize a new `CollectorRegistry`, and store the
Expand Down