Is it possible to get the current instance count as it applies to PoolingAllocationConfig::total_component_instances
? It would be nice to be able to produce backpressure before constructing a Store
and associated data when instantiation is going to fail.
I suppose I have rubber-ducked myself into realizing that we can just track the instance count in parallel...
(though that would require API changes on our side to track Instance
drops)
Wasmtime does track this internally yeah but doesn't expose it externally. Adding a method to do that I think would be reasonable though
I guess for precise accounting you'd also need to know the number of core instances in a component as well
Do child components count against the component instance limit?
I don't believe so but I would need to double-check
"IR-wise" child components are compiled away in a sense
Last updated: Nov 22 2024 at 16:03 UTC