Skip to content

Commit eadfd3d

Browse files
authored
Important information has been highlighted in the MultiInstanceConnecting.md
1 parent 90e3bc4 commit eadfd3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/MultiInstanceConnecting.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
This section shows examples of how to connect to multiple [Cartridge](https://github.com/tarantool/cartridge) routers.
66
We recommend to use load balancer in production applications rather than leaving this task to the connector.
77

8+
> **Warning**<br>
89
In the case of using **multiple instances** of `TarantoolClient` we strongly recommend to apply a **shuffle** function to the list of addresses.
910
By default, `TarantoolClient` uses the [round-robin](https://en.wikipedia.org/wiki/Round-robin_scheduling) approach for selecting the next available connection to distribute the load between Tarantool servers.
1011
When several instances of `TarantoolClient` are used simultaneously, with the default connection selection strategy and without **shuffling** of the server addresses the first request from every instance will be sent to the same server.
12+
13+
> **Note**<br>
1114
You do not have to worry about shuffling addresses if you are using a single `TarantoolClient` connected to multiple instances, or if you are using a custom connection selection strategy that takes into account the problem of simultaneous requests.
1215

1316
## Setting addresses manually

0 commit comments

Comments
 (0)