dhiaayachi / temporal

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

command missing in new Temporal CLI #180

Open dhiaayachi opened 2 weeks ago

dhiaayachi commented 2 weeks ago

Is your feature request related to a problem? Please describe. I have not found a command replacing this behaviour in the new cli, where you update a namespace to contain multiple clusters: tctl --namespace "myNamespace" namespace update --clusters clusterA clusterB

for context: https://community.temporal.io/t/running-into-problems-testing-multi-cluster-replication-locally-via-docker/5920/8

it is marked as the solution in thread above.

Describe the solution you'd like temporal operator namespace update --cluster 'clusterA clusterB' "myNamespace" Have the cluster accept a list of clusters and not only a single one.

Describe alternatives you've considered

  1. Use the old tctl, but at some point it will be deprecated.

  2. I cannot create it from scratch since we already have namespaces in use.

dhiaayachi commented 1 day ago

Thanks for the feature request! We appreciate you taking the time to suggest this enhancement.

Currently, the temporal operator namespace update command only accepts a single cluster name at a time. You can achieve your desired functionality by creating a new namespace that contains the desired clusters and then migrating your current workflows to the new namespace.

You can find more information about namespaces and multi-cluster replication in the Temporal documentation:

dhiaayachi commented 1 day ago

Thanks for the feature request!

Currently, the temporal operator namespace update command only allows for setting a single cluster.

You can work around this limitation by creating a new namespace with the desired cluster configuration using the temporal operator namespace create command. You can then migrate your existing workflows to the new namespace.

Here is an example:

# Create a new namespace with the desired cluster configuration
temporal operator namespace create --namespace newNamespace --clusters clusterA clusterB

# Migrate existing workflows to the new namespace
# ...

We appreciate your feedback and will consider adding support for multiple clusters in the temporal operator namespace update command in the future.

dhiaayachi commented 1 day ago

Thanks for your feature request!

The Temporal CLI operator namespace update command currently only supports updating a single cluster at a time. To work around this limitation, you can update your namespace with a single cluster using the temporal operator namespace update command, and then repeat this process for each cluster.

For example, to update namespace myNamespace to contain clusters clusterA and clusterB, you would first run:

temporal operator namespace update --cluster clusterA "myNamespace"

and then run:

temporal operator namespace update --cluster clusterB "myNamespace"

This will achieve the desired result, although it requires two commands instead of one.