Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Use caching k8s client in fluxd #471

Closed
squaremo opened this issue Feb 27, 2017 · 1 comment
Closed

Use caching k8s client in fluxd #471

squaremo opened this issue Feb 27, 2017 · 1 comment

Comments

@squaremo
Copy link
Member

squaremo commented Feb 27, 2017

Using the REST client, we run into throttling quite easily, as our queries generally scale with the number of objects (namespaces, as it happens). Usually this ends up meaning concurrent queries begin to time out.

If we were to use the mechanisms in the k8s to listen to changes and "reflect" those into a locally cached model, concurrent queries would not add to the k8s query rate, and would not be throttled.

A possible downside is that the cached model can be out of date. It may be useful to stamp query results with the version of the model, if we can, to see if this is a problem in practice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants