Skip to content

Commit 73c7c5e

Browse files
authored
bump PoolingAllocationConfig::max_core_instances_per_component to 200 (#2234)
This fixes an app built using `componentize-py` and `NumPy`, which has 34 core modules. Signed-off-by: Joel Dice <[email protected]>
1 parent 603126d commit 73c7c5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ impl Default for Config {
111111
.max_component_instance_size(
112112
env("SPIN_WASMTIME_INSTANCE_SIZE", (10 * MB) as u32) as usize
113113
)
114+
.max_core_instances_per_component(env("SPIN_WASMTIME_CORE_INSTANCE_COUNT", 200))
114115
.max_tables_per_component(env("SPIN_WASMTIME_INSTANCE_TABLES", 20))
115116
.table_elements(env("SPIN_WASMTIME_INSTANCE_TABLE_ELEMENTS", 30_000))
116117
// The number of memories an instance can have effectively limits the number of inner components

0 commit comments

Comments
 (0)