修复预览数据库容器内存不足
将分支预览 SpacetimeDB 内存上限覆盖为 2 GiB 保留生产与压测 Compose 的原有资源基线 增加预览内存覆盖防回归检查和故障说明
This commit is contained in:
@@ -106,6 +106,11 @@ assertIncludes(
|
||||
'ports: !reset []',
|
||||
'预览 compose override 必须取消 SpacetimeDB 和 OTLP 宿主端口映射。',
|
||||
);
|
||||
assertIncludes(
|
||||
deployer,
|
||||
'spacetimedb:\n mem_limit: 2g\n ports: !reset []',
|
||||
'预览 SpacetimeDB 必须覆盖压测基线内存限制,避免模块首次加载时 OOM。',
|
||||
);
|
||||
assertIncludes(
|
||||
deployer,
|
||||
'^preview-[0-9a-f]{16}$',
|
||||
|
||||
@@ -301,6 +301,7 @@ services:
|
||||
context: ${GENARRATIVE_PREVIEW_SOURCE_DIR}
|
||||
dockerfile: ${GENARRATIVE_PREVIEW_CONTROLLER_ROOT}/deploy/container/api-server.Dockerfile
|
||||
spacetimedb:
|
||||
mem_limit: 2g
|
||||
ports: !reset []
|
||||
otelcol:
|
||||
ports: !reset []
|
||||
|
||||
Reference in New Issue
Block a user