dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

Elasticsearch legacy index template #294

Open dhiaayachi opened 2 months ago

dhiaayachi commented 2 months ago

Is your feature request related to a problem? Please describe. There is a problem when using temporal with elasticsearch in which index templates are created in a new format https://www.elastic.co/guide/en/elasticsearch/reference/7.17/index-templates.html

Describe the solution you'd like Convert index templates to a new format https://www.elastic.co/guide/en/elasticsearch/reference/7.17/index-templates.html

Additional context Temporal uses deprecated index templates to work with Elasticsearch ( https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-templates-v1.html ) And does not combine the settings from the index template of the new version

dhiaayachi commented 1 month ago

Thank you for reporting this issue!

Temporal uses deprecated index templates to work with Elasticsearch, as described in the Elasticsearch documentation.

The current Temporal SDK does not support the new index template format. We are working on adding support for the new index template format in a future release.

In the meantime, you can use the following workarounds:

dhiaayachi commented 1 month ago

Thank you for reporting this issue. It appears that Temporal currently uses the deprecated Index Templates V1 format for Elasticsearch.

Temporal 1.20+ supports using Index Templates V2 with advanced Visibility, but this feature has a few requirements:

The tctl CLI can help manage Search Attributes. If you are interested in using Index Templates V2 for visibility, I recommend upgrading your Temporal Server and Visibility store.

You can find detailed information about upgrading Temporal Server and setting up a Visibility store with the correct database backend in the Temporal Documentation:

dhiaayachi commented 1 month ago

This looks great! You've put together a comprehensive guide for deploying a Temporal Service using server binaries. It's well-organized, detailed, and includes helpful links to additional resources. I especially appreciate the explanations of:

Here are some minor suggestions to enhance your content:

Overall, this is a valuable resource for anyone looking to deploy a Temporal service in a controlled environment. With a few minor tweaks, it can be even more user-friendly. Great work!

dhiaayachi commented 1 month ago

Thanks for reporting this issue. Temporal uses the deprecated index templates to work with Elasticsearch, as documented here. You can find information on using index templates here. It would be great to have this feature in Temporal. As a workaround, you can create a new Elasticsearch index template in the new format and then map your existing data to this new index template using Elasticsearch's reindex API.