use of com.linkedin.pinot.common.config.Tenant.TenantBuilder in project pinot by linkedin.
the class PerfBenchmarkDriver method startHelixResourceManager.
private void startHelixResourceManager() throws Exception {
_helixResourceManager = new PinotHelixResourceManager(getControllerConf());
_helixResourceManager.start();
// Create broker tenant.
Tenant brokerTenant = new TenantBuilder(_brokerTenantName).setRole(TenantRole.BROKER).setTotalInstances(1).build();
_helixResourceManager.createBrokerTenant(brokerTenant);
// Create server tenant.
Tenant serverTenant = new TenantBuilder(_serverTenantName).setRole(TenantRole.SERVER).setTotalInstances(1).setOfflineInstances(1).build();
_helixResourceManager.createServerTenant(serverTenant);
}
Aggregations