in geode-benchmarks/src/main/java/org/apache/geode/benchmark/topology/ClientServerTopologyWithRouterAndSniProxy.java [62:87]
public static void configure(final TestConfig config) {
role(config, LOCATOR, NUM_LOCATORS);
role(config, SERVER, NUM_SERVERS);
role(config, CLIENT, NUM_CLIENTS);
role(config, PROXY, NUM_PROXIES);
role(config, ROUTER, NUM_ROUTERS);
configureBefore(config);
final String image = System.getProperty(WITH_ROUTER_IMAGE_PROPERTY);
switch (getRouterImplementation()) {
case HAProxy:
before(config, new StartRouter(SNI_PROXY_PORT, image), ROUTER);
break;
case Manual:
// expect router already configured
}
before(config, new StartClientWithSniProxy(LOCATOR_PORT, SNI_PROXY_PORT, ROUTER), CLIENT);
configureAfter(config);
if (Manual != getRouterImplementation()) {
after(config, new StopRouter(), ROUTER);
}
}