selkies-project / selkies-operator

K8s operator for per-user stateful workloads
https://selkies.io
Apache License 2.0
73 stars 12 forks source link

Use pubsub instead of polling for tags #1

Closed jonjohnsonjr closed 3 years ago

jonjohnsonjr commented 3 years ago

You are polling in a loop trying to discover new tags every 10s, which is less than ideal.

If possible, it would be great if you could use pubsub instead of polling.

At least, it would be great to set this polling interval to something less aggressive (is 5 minutes too slow?) and configurable, with some minimum. Anything more frequent than ~60 seconds becomes ~abusive at scale.

jonjohnsonjr commented 3 years ago

Thanks so much!