You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/03-concepts/08-cross-dc-replication.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ The best way is to use Cadence [docker-compose](https://github.com/uber/cadence/
116
116
117
117
## Running in Production
118
118
119
-
Enable global domain feature needs to be enabled in [static config](/docs/operation-guide/setup/#static-configs).
119
+
Enable global domain feature needs to be enabled in [static config](/docs/operation-guide/setup/#static-configs).
120
120
121
121
Here we use clusterDCA and clusterDCB as an example. We pick clusterDCA as the primary(used to called "master") cluster.
122
122
The only difference of being a primary cluster is that it is responsible for domain registration. Primary can be changed later but it needs to be the same across all clusters.
Then the domain should be failed over to clusterDCB. Now worklfows are read-only in clusterDCA. So your workers polling tasks from clusterDCA will become idle.
182
+
Then the domain should be failed over to clusterDCB. Now worklfows are read-only in clusterDCA. So your workers polling tasks from clusterDCA will become idle.
183
183
184
184
Note 1: that even though clusterDCA is standy/read-only for this domain, it can be active for another domain. So being active/standy is per domain basis not per clusters. In other words, for example if you use XDC in case of DC failure of clusterDCA, you need to failover all domains from clusterDCA to clusterDCB.
Copy file name to clipboardExpand all lines: src/docs/06-cli/index.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ After the installation is done, you can use CLI:
21
21
```
22
22
cadence --help
23
23
```
24
-
This will always install the latest version. Follow [this instructions](https://github.com/uber/cadence/discussions/4457) if you need to install older versions of Cadence CLI.
24
+
This will always install the latest version. Follow [this instructions](https://github.com/uber/cadence/discussions/4457) if you need to install older versions of Cadence CLI.
25
25
26
26
### Docker
27
27
The Cadence :CLI: can be used directly from the Docker Hub image *ubercadence/cli* or by building the :CLI: tool
For example `docker run --rm ubercadence/cli:0.21.3 --domain samples-domain domain describe` will be the CLI that is released as part of the [v0.21.3 release](https://github.com/uber/cadence/releases/tag/v0.21.3).
40
-
See [docker hub page](https://hub.docker.com/r/ubercadence/cli/tags?page=1&ordering=last_updated) for all the CLI image tags.
41
-
Note that CLI versions of 0.20.0 works for all server versions of 0.12 to 0.19 as well. That's because [the CLI version doesn't change in those versions](https://stackoverflow.com/questions/68217385/what-is-clientversionnotsupportederror-and-how-to-resolve-it).
39
+
For example `docker run --rm ubercadence/cli:0.21.3 --domain samples-domain domain describe` will be the CLI that is released as part of the [v0.21.3 release](https://github.com/uber/cadence/releases/tag/v0.21.3).
40
+
See [docker hub page](https://hub.docker.com/r/ubercadence/cli/tags?page=1&ordering=last_updated) for all the CLI image tags.
41
+
Note that CLI versions of 0.20.0 works for all server versions of 0.12 to 0.19 as well. That's because [the CLI version doesn't change in those versions](https://stackoverflow.com/questions/68217385/what-is-clientversionnotsupportederror-and-how-to-resolve-it).
42
42
43
43
NOTE: On Docker versions 18.03 and later, you may get a "connection refused" error when connecting to local server. You can work around this by setting the host to "host.docker.internal" (see [here](https://docs.docker.com/docker-for-mac/networking/#use-cases-and-workarounds) for more info).
To build the :CLI: tool locally, clone the [Cadence server repo](https://github.com/uber/cadence), check out the version tag (e.g. `git checkout v0.21.3`) and run
60
60
`make tools`. This produces an executable called `cadence`. With a local build, the same command to
61
61
describe a :domain: would look like this:
62
62
```bash
63
63
cadence --domain samples-domain domain describe
64
64
```
65
65
66
-
Alternatively, you can build the CLI image, see [instructions](docker/README.md#diy-building-an-image-for-any-tag-or-branch)
66
+
Alternatively, you can build the CLI image, see [instructions](docker/README.md#diy-building-an-image-for-any-tag-or-branch)
67
67
68
-
## Documentation
68
+
## Documentation
69
69
CLI are documented by `--help` or `-h` in ANY tab of all levels:
70
70
71
71
```
@@ -94,7 +94,7 @@ GLOBAL OPTIONS:
94
94
--help, -h show help
95
95
--version, -v print the version
96
96
```
97
-
And
97
+
And
98
98
```
99
99
$cadence workflow -h
100
100
NAME:
@@ -173,11 +173,11 @@ Run `cadence tasklist` for help on tasklist operations
173
173
```bash
174
174
cadence --domain samples-domain domain register
175
175
# OR using short alias
176
-
cadence --do samples-domain d re
176
+
cadence --do samples-domain d re
177
177
```
178
178
If your Cadence cluster has enable [global domain(XDC replication)](https://cadenceworkflow.io/docs/concepts/cross-dc-replication/), then you have to specify the replicaiton settings when registering a domain:
0 commit comments