mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
committed by
Harrison Healey
parent
4e92d18017
commit
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user