From ab90c0f3e7c99f742f4b4376d129b6e48147a673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oleg=20=C5=A0elajev?= Date: Sun, 30 Apr 2023 06:59:29 +0300 Subject: [PATCH] Update RedpandaContainer (#6939) Add `--overprovisioned` and `--smp` flags to the default RedpandaContainer configuration to make it more resilient on systems with Docker having access to lots of resources. --- .../java/org/testcontainers/redpanda/RedpandaContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java b/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java index 61a36784766..ac232aed4d3 100644 --- a/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java +++ b/modules/redpanda/src/main/java/org/testcontainers/redpanda/RedpandaContainer.java @@ -55,7 +55,7 @@ protected void containerIsStarting(InspectContainerResponse containerInfo) { String command = "#!/bin/bash\n"; - command += "/usr/bin/rpk redpanda start --mode dev-container "; + command += "/usr/bin/rpk redpanda start --mode dev-container --overprovisioned --smp 1 "; command += "--kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 "; command += "--advertise-kafka-addr PLAINTEXT://127.0.0.1:29092,OUTSIDE://" + getHost() + ":" + getMappedPort(9092);