lmenezes / cerebro

MIT License
5.51k stars 714 forks source link

Set cerebro default refresh internal #202

Open orinciog opened 6 years ago

orinciog commented 6 years ago

Hello!

How can I increase default cerebro refresh interval? (Right now is 5 sec and this causes a lot of load on our cluster).

Thank you.

orinciog commented 6 years ago

I saw where is this default interval set and in this moment is hardcoded (https://github.com/lmenezes/cerebro/blob/3b0730ceaa3f42ce536bcfc67bef624dd28aeb1c/public/js/app.js#L2922).

lmenezes commented 6 years ago

@orinciog the new default interval is now 15s. is this good enough for you?

orinciog commented 6 years ago

Thank you for your response. It will be great if you will export this setting in a config file, just like "refresh_rate" from kopf_external_settings.json.

Actually, right now we are using kopf with 30s refresh time and it is ok for our cluster load.

tuckerpm commented 6 years ago

We have to use 30 seconds as a default too, if we don't, Cerebro is unusable. It really would be nice to be able to specify a default. 5 seconds is perfect for our smaller clusters, but our larger clusters 30 seconds seems to be necessary.

Another thought, do the requests wait to send a follow up request until after a response has been received from the server? If not, maybe that would prevent lower refresh intervals from being a problem on large clusters.