PLT-7302: Aggregate Elasticsearch indexes over a certain age. (#7224)

* PLT-7302: Aggregate Elasticsearch indexes over a certain age.

This is done by a scheduled daily job, in order to keep the shard count
to a sensible level in Elasticsearch.

* Use map[string]string instead of StringMap
This commit is contained in:
George Goldberg
2017-08-17 15:05:17 +01:00
committed by Harrison Healey
parent 4e92d18017
commit 22459ee17a
12 changed files with 187 additions and 54 deletions

View File

@@ -20,3 +20,18 @@ func RegisterElasticsearchIndexerInterface(newInterface ElasticsearchIndexerInte
func GetElasticsearchIndexerInterface() ElasticsearchIndexerInterface {
return theElasticsearchIndexerInterface
}
type ElasticsearchAggregatorInterface interface {
MakeWorker() model.Worker
MakeScheduler() model.Scheduler
}
var theElasticsearchAggregatorInterface ElasticsearchAggregatorInterface
func RegisterElasticsearchAggregatorInterface(newInterface ElasticsearchAggregatorInterface) {
theElasticsearchAggregatorInterface = newInterface
}
func GetElasticsearchAggregatorInterface() ElasticsearchAggregatorInterface {
return theElasticsearchAggregatorInterface
}