mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 14:30:43 +01:00
test: cap trino container memory at 4g in catalog tests
Trino's jvm.config sizes the heap at 80% of host RAM. On a loaded self-hosted runner the JVM attempts to claim most of system memory at boot and the container is killed ~15s after docker run — the flake seen in CI today. Bounding the container to 4g gives the JVM a fixed ~3.2g ceiling (observed usage is ~750mb), immune to host memory pressure.
This commit is contained in:
1 parent
36e6a2c5e1
commit
c871f3f6e6
1 file changed
+1
@@ -466,6 +466,7 @@ func (env *TestEnvironment) startTrinoContainer(t *testing.T, configDir string)
|
||||
|
||||
cmd := exec.Command("docker", "run", "-d",
|
||||
"--name", containerName,
|
||||
"--memory", "4g",
|
||||
"--add-host", "host.docker.internal:host-gateway",
|
||||
"-v", fmt.Sprintf("%s:/etc/trino/catalog", configDir),
|
||||
"-v", fmt.Sprintf("%s:/test", env.dataDir),
|
||||
|
||||
Reference in new issue
Block a user