Skip to content

In multiprocess mode, ensure that metrics initialise to the correct file - #328

Merged
brian-brazil merged 1 commit into
prometheus:masterfrom
canonical-ols:multivalue-init-pid-check
Oct 17, 2018
Merged

In multiprocess mode, ensure that metrics initialise to the correct file#328
brian-brazil merged 1 commit into
prometheus:masterfrom
canonical-ols:multivalue-init-pid-check

Conversation

@bloodearnest

Copy link
Copy Markdown
Contributor

Without this, when forking, children can initialise metrics to the
cached master pid file. This is racy, and can corrupt the master's
mmaped file, breaking all subsequent collections.

file.

Without this, when forking, children can initialise metrics to the
cached master pid file. This is racy, and can corrupt the master's
mmaped file, breaking all subsequent collections.

Signed-off-by: Simon Davy <simon.davy@canonical.com>
@bloodearnest
bloodearnest force-pushed the multivalue-init-pid-check branch from 3056453 to 8b916b6 Compare October 17, 2018 14:00
@brian-brazil
brian-brazil merged commit 3088bc1 into prometheus:master Oct 17, 2018
@brian-brazil

Copy link
Copy Markdown
Contributor

Thanks!

@romuald

romuald commented Nov 29, 2018

Copy link
Copy Markdown
Contributor

Been trying to debug this on on a much older version of the lib for hours … thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants