WIP:setup
authorKai Moritz <kai@juplo.de>
Sat, 24 Feb 2024 12:18:21 +0000 (13:18 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 24 Feb 2024 12:18:21 +0000 (13:18 +0100)
src/test/java/de/juplo/kafka/chat/backend/KafkaHandoverIT.java
src/test/resources/haproxy.cfg

index 7b33803..7f56463 100644 (file)
@@ -113,6 +113,8 @@ class KafkaHandoverIT extends AbstractHandoverIT
   static void setUpDocker() throws IOException, InterruptedException
   {
     KAFKA.start();
+    HAPROXY.start();
+
 
     Container.ExecResult result;
     result = KAFKA.execInContainer(
@@ -145,10 +147,8 @@ class KafkaHandoverIT extends AbstractHandoverIT
         result.getStdout());
 
     BACKEND_1.start();
-    BACKEND_2.start();
-    BACKEND_3.start();
-
-    HAPROXY.start();
+    // BACKEND_2.start();
+    // BACKEND_3.start();
   }
 
   static Network NETWORK = Network.newNetwork();
@@ -233,7 +233,6 @@ class KafkaHandoverIT extends AbstractHandoverIT
               "/usr/local/etc/haproxy/sharding.map",
               BindMode.READ_WRITE)
           .withExposedPorts(8400) // , 8401, 8404, 5555)
-          .dependsOn(BACKEND_1, BACKEND_2, BACKEND_3)
           .withLogConsumer(new Slf4jLogConsumer(log, true).withPrefix("HAPROXY"));
 
   @EqualsAndHashCode
index b19f71f..077b67c 100644 (file)
@@ -6,6 +6,7 @@ defaults
   timeout server 10m
   timeout http-request 10s
   log global
+  default-server init-addr last,libc,none
 
 global
   stats socket ipv4@:8401 level admin