You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Configuration canary is only created for the first plugin of VMs #175
changed the title [-]Configuration canary is only created the fist plugin of VMs[/-][+]Configuration canary is only created for the first plugin of VMs[/+]on Jun 28, 2021
There are 2 questions that we need to answer (which perhaps deserve their own issues):
Do we really need to support multiple plugins in a single Wasm module? IMHO, this was a premature optimization requested by Istio Telemetry's team, but they've never used it, and I doubt anyone else is. We have quite a few layers in Proxy-Wasm already (multiple plugins, multiple instances of the same plugin, and multiple requests being handled all in the single Wasm instance), and this is the easiest one to get rid of.
Could we find a way to remove canary and instead clone and instantiate Wasm module on the main thread before spawning it on worker threads, effectively eliminating the need for the canary? I think it should be possible, but I didn't play around with the code to verify it.
IMHO, this was a premature optimization requested by Istio Telemetry's team, but they've never used it, and I doubt anyone else is.
That's really good to know.. Actually I give +100 to removing the support for multiple plugins in one module style because I think that is one of the most confusing parts. Now I'm working on a comprehensive doc in Go SDK repo (https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/docdocdoc/doc/OVERVIEW.md) and over the course of writing I realized how hard it is to explain and easy to image how difficult it is for newbies to understand this part. Go SDK is already able to support multiple plugins without using "root_id" stuff, but I would be happy to remove that.
let me investigate that later when I have more cycles (in a few weeks), or feel free to beat me to it:)
Activity
[-]Configuration canary is only created the fist plugin of VMs[/-][+]Configuration canary is only created for the first plugin of VMs[/+]PiotrSikora commentedon Jun 28, 2021
Good catch!
There are 2 questions that we need to answer (which perhaps deserve their own issues):
Do we really need to support multiple plugins in a single Wasm module? IMHO, this was a premature optimization requested by Istio Telemetry's team, but they've never used it, and I doubt anyone else is. We have quite a few layers in Proxy-Wasm already (multiple plugins, multiple instances of the same plugin, and multiple requests being handled all in the single Wasm instance), and this is the easiest one to get rid of.
Could we find a way to remove canary and instead clone and instantiate Wasm module on the main thread before spawning it on worker threads, effectively eliminating the need for the canary? I think it should be possible, but I didn't play around with the code to verify it.
mathetake commentedon Jun 28, 2021
That's really good to know.. Actually I give +100 to removing the support for multiple plugins in one module style because I think that is one of the most confusing parts. Now I'm working on a comprehensive doc in Go SDK repo (https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/docdocdoc/doc/OVERVIEW.md) and over the course of writing I realized how hard it is to explain and easy to image how difficult it is for newbies to understand this part. Go SDK is already able to support multiple plugins without using "root_id" stuff, but I would be happy to remove that.
mathetake commentedon Jul 1, 2021
As for 2, I just quick researched the code, and the patch would change depending on wether we remove multiple plugins support or not.
Configuration canary for the second or further plugins. (#289)
Configuration canary for the second or further plugins. (proxy-wasm#289)