Skip to content

Verify accuracy of request metrics for a local deployment using multiple threads #1209

@vishalbollu

Description

@vishalbollu

Version

v0.18.*

Description

Support for multithreading and multiprocessing was recently added to Cortex local. Request metrics are tracked by increment files to a local directory. Multiprocessing with Cortex local may work as expected because each process writes to files prefixed with their PIDs. However, multithreading on Cortex local may be broken.

Add a mutex to request metrics files to prevent multiple threads from overwriting the same file with outdated values.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions