static void setUpDocker() throws IOException, InterruptedException
{
KAFKA.start();
+ HAPROXY.start();
+
Container.ExecResult result;
result = KAFKA.execInContainer(
result.getStdout());
BACKEND_1.start();
- BACKEND_2.start();
- BACKEND_3.start();
-
- HAPROXY.start();
+ // BACKEND_2.start();
+ // BACKEND_3.start();
}
static Network NETWORK = Network.newNetwork();
"/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