-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TCM get started: merge samples (#4030)
- Loading branch information
1 parent
f4a3941
commit 04b2319
Showing
7 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
doc/code_snippets/snippets/config/instances.enabled/tcm_get_started/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Getting started with Tarantool Cluster Manager | ||
|
||
A sample application created in the [Getting started with Tarantool Cluster Manager](https://www.tarantool.io/en/doc/latest/how-to/getting_started_tcm/) tutorial. | ||
|
||
## Running | ||
|
||
Before starting instances, set up a Tarantool EE cluster as described in the tutorial. | ||
Then, start all instances by executing the following command in the [config](../../../config) directory: | ||
|
||
```console | ||
$ tt start tcm_get_started | ||
``` | ||
|
||
> | ||
> To publish a cluster's configuration to etcd using tt, execute `tt cluster publish`: | ||
> | ||
> ```shell | ||
> tt cluster publish "http://localhost:2379/default" instances.enabled/tcm_get_started/cluster.yaml | ||
> ``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ groups: | |
listen: | ||
- uri: '127.0.0.1:3303' | ||
advertise: | ||
client: '127.0.0.1:3303' | ||
client: '127.0.0.1:3303' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ config: | |
etcd: | ||
endpoints: | ||
- http://localhost:2379 | ||
prefix: /default | ||
prefix: /default |
2 changes: 1 addition & 1 deletion
2
...bled/tcm_get_started_config/instances.yml → ...ces.enabled/tcm_get_started/instances.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
instance-001: | ||
instance-002: | ||
instance-003: | ||
instance-003: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ end | |
|
||
function select_data() | ||
box.space.bands:select { 3 } | ||
end | ||
end |
3 changes: 0 additions & 3 deletions
3
doc/code_snippets/snippets/config/instances.enabled/tcm_get_started_tt/instances.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters