Skip to content

Bad tail latency under high contention #243

@drauziooppenheimer

Description

@drauziooppenheimer

I've been doing some load testing with the bb8 and deadpool, and I've observed that under high concurrent load (e.g., 1000 concurrent Tokio tasks) with a limited number of connections (50 connections in my tests), bb8 seems to be handling the connections poorly in terms of distribution, some tasks are experiencing significant delays when trying to acquire a connection from the pool, while deadpool has a more consistent, well-behaved latency.

Here are the measured connection acquisition times for both pools in this scenario:

bb8

  • Average: 29ms
  • p50: 2.8ms
  • p90: 6.7ms
  • p95: 115ms
  • p99: 780ms
  • p99.9: 1800ms
  • p99.99: 3742ms

deadpool

  • Average: 32ms
  • p50: 31ms
  • p90: 34ms
  • p95: 35ms
  • p99: 40ms
  • p99.9: 119ms
  • p99.99: 171ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions