weaveworks / scope

Monitoring, visualisation & management for Docker & Kubernetes
https://www.weave.works/oss/scope/
Apache License 2.0
5.84k stars 708 forks source link

Multitenant mode: fetch live data from collectors #3846

Closed bboreham closed 3 years ago

bboreham commented 3 years ago

Fixes #3783

Collectors hold recent reports in memory; when querier needs 'live' data, it fetches it from collectors instead of from the long-term store.

This means queriers get more up-to-date data, by the store-frequency collector was using (e.g. 2 seconds), and we can slow down that frequency to spend less on S3/DynamoDB.

Included in this change: multitenant collector now always saves async - removed support for saving all reports immediately to store.

bboreham commented 3 years ago

This is in production at Weave Cloud now. One glitch: if you forget to set --app.collector-addr that should be a fatal error so the administrator can spot the problem earlier.