Don't activate ingest on tribe nodes

This commit is contained in:
Martijn van Groningen 2016-01-07 14:35:58 +01:00
parent eca1594969
commit ba97b7f7bd

View File

@ -69,7 +69,10 @@ public class IngestBootstrapper extends AbstractLifecycleComponent implements Cl
this.pipelineStore = new PipelineStore(settings, clusterService, transportService);
this.pipelineExecutionService = new PipelineExecutionService(pipelineStore, threadPool);
clusterService.add(this);
boolean isNoTribeNode = settings.getByPrefix("tribe.").getAsMap().isEmpty();
if (isNoTribeNode) {
clusterService.add(this);
}
}
// for testing: