helius-labs / atlas-txn-sender

Apache License 2.0
137 stars 40 forks source link

feat: reduce requests to same leader, add leader buffer, and improve metrics #10

Closed NicolasPennie closed 7 months ago

NicolasPennie commented 7 months ago
  1. NUM_LEADERS was previously controlling the number of slots. Each leader handles 4 slots. This meant it would send 4 requests to the same leader. This will reduce the contention on the leader.
  2. Add leader offset (optional) if you want to skip the current N leaders.
  3. Improve metrics, including priority fee, compute unit, and the priority (the weight used by the scheduler). The metrics are published as gauges to reduce cardinality.