How to configure multi cluster metadata?
I would like to deploy the same code in k8s two clusters(mt-t1.carl and mt-t2.cdc2) and backend is a cockroach database.
TEMPORAL_CLUSTERNAME=mt-t1.carl
TEMPORAL_PUBLICCLIENT_HOSTPORT=server-asyncworkflow-test1.apps.mt-t1.carl.gkp.net:443
deployment.yaml configuration
clusterMetadata:
enableGlobalNamespace: true
failoverVersionIncrement: 10
masterClusterName: “##TEMPORAL_CLUSTERNAME##”
currentClusterName: “##TEMPORAL_CLUSTERNAME##”
clusterInformation:
##TEMPORAL_CLUSTERNAME##:
enabled: true
initialFailoverVersion: 1
rpcName: “frontend”
rpcAddress: “##TEMPORAL_PUBLICCLIENT_HOSTPORT##”
First cluster successfully deployed hence hence new record inserted in the table.
Second cluster deployment show the error. Hence currentClusterName
is immutable.
panic: Current cluster is not specified in cluster info
goroutine 1 [running]:
go.temporal.io/server/common/cluster.NewMetadata(0x274fa01, 0xa, 0xc000048302, 0xa, 0xc000511220, 0xa, 0xc000624fc0, 0xa, 0x2752090)
/temporal/common/cluster/metadata.go:114 +0x425
go.temporal.io/server/common/resource.New(0xc00000a1e0, 0x23a091b, 0x8, 0xc000623f40, 0xc000623f60, 0xc000790180, 0xc00053cf48, 0xc000580c00, 0x0, 0xc000ba6cd0)
/temporal/common/resource/resourceImpl.go:191 +0x4a5
go.temporal.io/server/service/frontend.NewService(0xc00000a1e0, 0xc000942528, 0x8, 0xc000485440)
/temporal/service/frontend/service.go:250 +0x24e
go.temporal.io/server/temporal.(*Server).Start(0xc000614360, 0xc000614360, 0x7)
/temporal/temporal/server.go:202 +0x11fa
main.buildCLI.func2(0xc000956540, 0x0, 0x0)
/temporal/cmd/server/main.go:160 +0xbe8
github.com/urfave/cli/v2.(*Command).Run(0xc00016c360, 0xc000956340, 0x0, 0x0)
/temporal/vendor/github.com/urfave/cli/v2/command.go:163 +0x4dd
github.com/urfave/cli/v2.(*App).RunContext(0xc00064e1a0, 0x273ab00, 0xc000048060, 0xc00003a180, 0x3, 0x3, 0x0, 0x0)
/temporal/vendor/github.com/urfave/cli/v2/app.go:313 +0x810
github.com/urfave/cli/v2.(*App).Run(...)
/temporal/vendor/github.com/urfave/cli/v2/app.go:224
main.main()
/temporal/cmd/server/main.go:50 +0x66
It is not allowing for both the clusters. How to configure for multi clusters?