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
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
4e92d18017
Коммит
22459ee17a
@@ -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
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user