-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ES index aliases / rollover to the dependency store (R…
…esolves #2143) (#2144) * Add support for ES index aliases / rollover to the dependency store * Give DependencyStore a params struct like the SpanStore to carry its configuration parameters * Adapt and extend the tests accordingly Signed-off-by: Christian Rohmann <[email protected]> * Extend es-rollover and es-index-cleaner to support rolling dependencies indices Signed-off-by: Christian Rohmann <[email protected]> Co-authored-by: Christian Rohmann <[email protected]> Co-authored-by: Albert <[email protected]>
- Loading branch information
1 parent
95bc026
commit 18e9d5b
Showing
12 changed files
with
193 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
plugin/storage/es/mappings/fixtures/jaeger-dependencies-7.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
{ | ||
"index_patterns": "*jaeger-dependencies-*", | ||
"aliases": { | ||
"test-jaeger-dependencies-read" : {} | ||
}, | ||
"settings":{ | ||
"index.number_of_shards": 3, | ||
"index.number_of_replicas": 3, | ||
"index.mapping.nested_fields.limit":50, | ||
"index.requests.cache.enable":true | ||
,"lifecycle": { | ||
"name": "jaeger-test-policy", | ||
"rollover_alias": "test-jaeger-dependencies-write" | ||
} | ||
}, | ||
"mappings":{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
{ | ||
"index_patterns": "*jaeger-dependencies-*", | ||
{{- if .UseILM }} | ||
"aliases": { | ||
"{{ .IndexPrefix }}jaeger-dependencies-read" : {} | ||
}, | ||
{{- end }} | ||
"settings":{ | ||
"index.number_of_shards": {{ .Shards }}, | ||
"index.number_of_replicas": {{ .Replicas }}, | ||
"index.mapping.nested_fields.limit":50, | ||
"index.requests.cache.enable":true | ||
{{- if .UseILM }} | ||
,"lifecycle": { | ||
"name": "{{ .ILMPolicyName }}", | ||
"rollover_alias": "{{ .IndexPrefix }}jaeger-dependencies-write" | ||
} | ||
{{- end }} | ||
}, | ||
"mappings":{} | ||
} |
Oops, something went wrong.