Skip to content

Commit cae64b3

Browse files
yngvar-antonssonLeonidVas
authored andcommitted
documentation: update getting-started-app
1 parent e310db0 commit cae64b3

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

examples/getting-started-app/README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ local ok, err = cartridge.cfg({
667667
roles = {
668668
'cartridge.roles.vshard-storage',
669669
'cartridge.roles.vshard-router',
670+
'cartridge.roles.metrics',
670671
'app.roles.api',
671672
'app.roles.storage',
672673
},
@@ -689,9 +690,9 @@ dependencies = {
689690
'tarantool',
690691
'lua >= 5.1',
691692
'checks == 3.1.0-1',
692-
'cartridge == 2.7.4-1',
693+
'cartridge == 2.7.6-1',
693694
'ldecnumber == 1.1.3-1',
694-
'metrics == 0.13.0-1',
695+
'metrics == 0.15.1-1',
695696
}
696697
build = {
697698
type = 'none';
@@ -704,7 +705,7 @@ We are ready to launch the cluster now!
704705

705706
```bash
706707
getting-started-app $ cartridge build
707-
getting-started-app $ cartridge start
708+
getting-started-app $ cartridge start -d
708709
```
709710

710711
Open the web interface and perform the following actions:
@@ -724,6 +725,17 @@ As a result, we'll get two replica sets, with one Tarantool instance in each.
724725
Now we have two replica sets implementing their roles, but `vshard` is not running yet.
725726
Press the button `Bootstrap vshard` on `Cluster` tab.
726727

728+
Also, you should enable failover for stable work. Open `Failover control` tab, choose `Stateful failover` and click `Apply`.
729+
730+
![Failover](./images/failover.png)
731+
732+
You can also use `cartridge-cli` to setup and run all instances and Stateful failover:
733+
734+
```bash
735+
cartridge replicasets setup --bootstrap-vshard
736+
cartridge failover set stateful --state-provider stateboard --provider-params '{"uri": "localhost:4401", "password": "passwd"}'
737+
```
738+
727739
Open a new console and add a customer using `curl`:
728740

729741
```bash

examples/getting-started-app/README_RUS.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@ local ok, err = cartridge.cfg({
666666
roles = {
667667
'cartridge.roles.vshard-storage',
668668
'cartridge.roles.vshard-router',
669+
'cartridge.roles.metrics',
669670
'app.roles.api',
670671
'app.roles.storage',
671672
},
@@ -688,9 +689,9 @@ dependencies = {
688689
'tarantool',
689690
'lua >= 5.1',
690691
'checks == 3.1.0-1',
691-
'cartridge == 2.7.4-1',
692+
'cartridge == 2.7.6-1',
692693
'ldecnumber == 1.1.3-1',
693-
'metrics == 0.13.0-1',
694+
'metrics == 0.15.1-1',
694695
}
695696
build = {
696697
type = 'none';
@@ -703,7 +704,7 @@ build = {
703704

704705
```bash
705706
getting-started-app $ cartridge build
706-
getting-started-app $ cartridge start
707+
getting-started-app $ cartridge start -d
707708
```
708709

709710
Откроем в браузере веб-интерфейс и сделаем следующее:
@@ -723,6 +724,17 @@ getting-started-app $ cartridge start
723724
Теперь у нас есть 2 репликасета с двумя ролями, но `vshard` еще не запущен.
724725
Нажмем кнопку `Bootstrap vshard` на закладке Cluster в веб-интерфейсе.
725726

727+
Также для стабильной работы необходимо включить фейловер. Откроем вкладку `Failover control` и нажмем `Apply`.
728+
729+
![Failover](./images/failover.png)
730+
731+
Также вы можете использовать `cartridge-cli` для настройки всех инстансов и фейловера:
732+
733+
```bash
734+
cartridge replicasets setup --bootstrap-vshard
735+
cartridge failover set stateful --state-provider stateboard --provider-params '{"uri": "localhost:4401", "password": "passwd"}'
736+
```
737+
726738
Откроем новую консоль и добавим пользователя через `curl`:
727739

728740
```bash
42.5 KB
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)