Skip to content

Latency spikes in Pool #492

@Shourya742

Description

@Shourya742

We have been seeing latency spikes in our internal method calls in Pool. We need to investigate the root cause of this. A few of the primary suspects are:

  1. We are using nested locking across many of our data structures. Migrating to simpler locking schemes could help reduce contention and latency.
  2. Moving compute-intensive tasks to a blocking thread pool, so we do not block the main thread pool with bulky tasks.
  3. We can start batching responses to each downstream when we have a large number of messages to send.

Attaching the hotpath latency values for a Pool run.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo 📝

Status

Todo 📝

Relationships

None yet

Development

No branches or pull requests

Issue actions