apple / foundationdb

FoundationDB - the open source, distributed, transactional key-value store
https://apple.github.io/foundationdb/
Apache License 2.0
14.39k stars 1.3k forks source link

Identify where traffic is coming from #2163

Open xumengpanda opened 4 years ago

xumengpanda commented 4 years ago

When a cluster is near overloaded, operators want to understand where traffic is coming from in order to decide how to reduce the traffic.

Two questions to answer:

To answer these questions, we may tag transactions inexpensively and aggregate metrics by tag. The number of tags should be small because the number of services on a cluster is limited.

Once FDB has the aggregated metrics, it also needs a better way to expose those aggregated metrics, which will be solved in Issue https://github.com/apple/foundationdb/issues/2156.

[This idea was proposed and discussed in FDB Offset 2019.]

dongxinEric commented 4 years ago

This might also rely on some changes at the client side to better tag different sources.

ajbeamon commented 4 years ago

This is fairly similar to #1692

xumengpanda commented 4 years ago

I think #1692 is similar to the item 1 in this issue. The item 2 is more finer-granularity tracking, IMO.

I won't mind closing one of them.

ajbeamon commented 4 years ago

Yeah, interestingly #1692 also suggests finer-granularity tracking, but only internally. I think it's the same idea, though, so we could probably safely fold these together.