SteveYurongSu opened a new pull request, #12281:
URL: https://github.com/apache/iotdb/pull/12281
## Usage
**Supported sinks:** iotdb-airgap-sink, iotdb-ssl-thrift-sink,
iotdb-sync-sink, iotdb-async-sink
```
create pipe p1
with sink (
'load-balance-strategy' = 'random'
);
```
Options for `'load-balance-strategy'`: `round-robin`, `random` and
`priority`. `round-robin` by default.
**Explaination:**
* `round-robin`: The connector will select the next client in a round-robin
manner. If the current client is dead, the connector will try the next client
until it finds an alive client. If all clients are dead, the connector will
throw a `PipeConnectionException`.
* `random`: The connector will select a client randomly. If the selected
client is dead, the connector will try the next client until it finds an alive
client. If all clients are dead, the connector will throw a
`PipeConnectionException`.
* `priority`: The connector will select the first alive client in given
clients (via. `node-urls`). If all clients are dead, the connector will throw a
`PipeConnectionException`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]