1
1
.. _tt-cluster :
2
2
3
- Managing a cluster's configuration
4
- ==================================
3
+ Managing cluster configurations
4
+ ===============================
5
5
6
6
.. code-block :: console
7
7
@@ -48,6 +48,11 @@ A URI must include a prefix that is unique for the application. It can also incl
48
48
credentials and other connection parameters. Find the detailed
49
49
description of the URI format in :ref: `tt-cluster-uri `.
50
50
51
+ .. _tt-cluster-publish-instance :
52
+
53
+ Writing configurations of specific instances
54
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55
+
51
56
In addition to whole cluster configurations, ``tt cluster publish `` can edit
52
57
configurations of specific instances within applications. In this case, the
53
58
source file should be a YAML file with a single :ref: `instance configuration section <configuration_overview >`,
@@ -75,6 +80,11 @@ the instance name in the ``name`` argument of the storage URI:
75
80
76
81
$ tt cluster publish "http://localhost:2379/myapp?name=instance-002" instance.yaml
77
82
83
+ .. _tt-cluster-publish-validation :
84
+
85
+ Configuration validation
86
+ ~~~~~~~~~~~~~~~~~~~~~~~~
87
+
78
88
``tt cluster publish `` validates the provided configuration against the Tarantool
79
89
configuration schema and aborts in case of an error. To skip the validation,
80
90
add the ``--force `` option:
@@ -137,6 +147,11 @@ with a prefix identifying the application. For example, to print
137
147
138
148
$ tt cluster show "http://localhost:2379/myapp"
139
149
150
+ .. _tt-cluster-show-instance :
151
+
152
+ Printing configurations of specific instances
153
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154
+
140
155
``tt cluster show `` can print configurations of specific cluster instances. To
141
156
print an instance configuration from a local ``config.yaml ``, use the ``application:instance ``
142
157
argument:
@@ -152,6 +167,11 @@ the instance name in the ``name`` argument of the URI:
152
167
153
168
$ tt cluster show "http://localhost:2379/myapp?name=instance-002"
154
169
170
+ .. _tt-cluster-show-validation :
171
+
172
+ Configuration validation
173
+ ~~~~~~~~~~~~~~~~~~~~~~~~
174
+
155
175
To validate a cluster configuration against the Tarantool configuration schema,
156
176
add the ``--validate `` option:
157
177
0 commit comments