-
Notifications
You must be signed in to change notification settings - Fork 5
Lazy VMs / Improve reloads #59
Comments
Also: add test for reloads. When running in the |
Speccing this out a bit. Why?When the plugin server reloads, event ingestion stops for about half a minute while we basically restart the entire server. These reloads happen whenever anyone changes anything for any plugin in any team (installing, enabling, disabling, etc). In Grafana it looks like this: This will become a problem if we allow anyone on cloud to use plugins, as any change in any team will bring down the server for everyone for up to a minute. What?When one team updates their plugins, event ingestion for all other teams should not be affected. Moreover, only the plugins that changed (added/deleted/updated) should be reloaded, instead of destroying and then restarting the entire worker pool. How?We need to make the following changes:
|
I created a PR to address the first point here: piscinajs/piscina#113 |
Currently when reloading, we:
Downtime of min 2sec, but more like 3-4sec. Even more if you have hundreds of plugins.
Ideally we should:
The text was updated successfully, but these errors were encountered: