Skip to content

Commit e46c4e8

Browse files
committed
Other docs
1 parent 46bf839 commit e46c4e8

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster_crud/config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ groups:
5959
client: '127.0.0.1:3305'
6060
routers:
6161
roles: [ roles.crud-router ]
62-
roles_cfg:
63-
roles.crud-router:
64-
stats: true
65-
stats_driver: metrics
66-
stats_quantiles: false
67-
stats_quantile_tolerated_error: 0.001
68-
stats_quantile_age_buckets_count: 5
69-
stats_quantile_max_age_time: 180
7062
app:
7163
module: router
7264
sharding:

doc/concepts/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ In this option, the role name is the key and the role configuration is the value
227227

228228
The example below shows how to enable statistics on called operations by providing the ``roles.crud-router`` role's configuration:
229229

230-
.. literalinclude:: /code_snippets/snippets/sharding/instances.enabled/sharded_cluster_crud/config.yaml
230+
.. literalinclude:: /code_snippets/snippets/sharding/instances.enabled/sharded_cluster_crud_metrics/config.yaml
231231
:language: yaml
232-
:start-at: roles.crud-router
233-
:end-at: stats_quantile_max_age_time
232+
:start-after: routers:
233+
:end-at: stats_quantiles
234234
:dedent:
235235

236-
Example on GitHub: `sharded_cluster_crud <https://github.com/tarantool/doc/tree/latest/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster_crud>`_
236+
Example on GitHub: `sharded_cluster_crud_metrics <https://github.com/tarantool/doc/tree/latest/doc/code_snippets/snippets/sharding/instances.enabled/sharded_cluster_crud_metrics>`_
237237

238238

239239

doc/how-to/vshard_quick.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ Here is a schematic view of the cluster topology:
206206
The main group-level options here are:
207207

208208
* ``roles``: This option enables the ``roles.crud-router`` :ref:`role <configuration_application_roles_enable>` provided by the CRUD module for a router instance.
209-
* ``roles_cfg``: This section enables and configures statistics on called operations for a router with the enabled ``roles.crud-router`` role.
210209
* ``app``: The ``app.module`` option specifies that code specific to a router should be loaded from the ``router`` module. This is explained below in the :ref:`vshard-quick-start-router-code` section.
211210
* ``sharding``: The :ref:`sharding.roles <configuration_reference_sharding_roles>` option specifies that an instance inside this group acts as a router.
212211
* ``replicasets``: This section configures a replica set with one router instance.
@@ -444,18 +443,6 @@ Writing and selecting data
444443
- null
445444
...
446445
447-
4. To get statistics on called operations, pass the space name to ``crud.stats()``:
448-
449-
.. code-block:: tarantoolsession
450-
451-
sharded_cluster_crud:router-a-001> crud.stats('bands')
452-
---
453-
- get:
454-
ok:
455-
latency: 0.00069199999961711
456-
count: 1
457-
time: 0.00069199999961711
458-
latency_average: 0.00069199999961711
459446
460447
461448

0 commit comments

Comments
 (0)