-
Notifications
You must be signed in to change notification settings - Fork 179
Description
As a SCB User i would like to configure the elasticsearch index pattern more precisely when i install the elasticsearch persistence hook. This feature will be useful to optimize the elasticsearch result index size, rollover strategie and performance.
As for now it is already possible to configure the index prefix via the helm chart config:
# Define a specific index prefix
indexPrefix: "scbv2" Additionally it should be possible to configure a date pattern as suffix to change the index aggregation level:
# Define a specific index prefix
indexPrefix: "scbv2"
# Define a specific index suffix based on date pattern (YEAR, MONTH, WEEK, DATE)
indexSuffix: “YYYY-MM-DD”
# Define if the name of the namespace where this hook is deployed to must be added to the index name. The namespace can be used to separate index by tenants (namespaces).
indexAppendNamespace: trueExamples
Example index names that should be possible to configure:
-
scbv2-team-2020-10-05(daily rollover pattern, append namespace: true) -
scbv2-team-2020-10(monthly rollover pattern, append namespace: true) -
scbv2-team-2020(yearly rollover pattern, append namespace: true) -
scbv2-team-2020-45(weekly rollover pattern, append namespace: true) -
scbv2-team(no rollover pattern, append namespace: true) -
scbv2-2020-10-05(daily rollover pattern, append namespace: false) -
scbv2-2020-10(monthly rollover pattern, append namespace: false) -
scbv2-2020(yearly rollover pattern, append namespace: false) -
scbv2-2020-45(weekly rollover pattern, append namespace: false) -
scbv2(no rollover pattern, append namespace: false)
Where to start?
As a starting point here a pointer to the current implementation:
Todos:
- Update HelmChart config defaults
- Implement feature within hook.js
- Add additional unit tests for the different configuration options/combinations.