temporalio / temporalio/temporal

Add support to create Elasticsearch rolling indexes in visibility

Open
#5,105 2 comments 0 reactions 1 assignee View on GitHub

@rodrigozhou is already working on this.

Since Nov 17, 2023.

enhancement
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

I would like to be able to keep an Elasticsearch cluster performant, manageable, and affordable by having the ES visibility storage provider roll to a new indexname periodically.
ie per month index names might be {namespace}-202301, {namespace}-202302, etc, or per year {namespace}-2023, {namespace}-2024. A configurable user defined pattern that allows custom field values as target indexnames would also be a nice add. There should then be a means to search across a range of indexes (with the default range being configurable, or all?)

This would allow searches to target the indexes by date range (or custom field etc) thereby being much more efficient. This would also allow automatic ES migration of older content to cheaper ES tiers, or archiving them.

Describe alternatives you've considered
I am not aware of any real alternative.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.