Pipe: support different load balance strategies for data sync#12281
Merged
SteveYurongSu merged 6 commits intomasterfrom Apr 2, 2024
Merged
Pipe: support different load balance strategies for data sync#12281SteveYurongSu merged 6 commits intomasterfrom
SteveYurongSu merged 6 commits intomasterfrom
Conversation
|
Caideyipi
reviewed
Apr 2, 2024
...src/main/java/org/apache/iotdb/db/pipe/connector/client/IoTDBDataNodeAsyncClientManager.java
Show resolved
Hide resolved
.../org/apache/iotdb/db/pipe/connector/protocol/thrift/async/IoTDBDataRegionAsyncConnector.java
Outdated
Show resolved
Hide resolved
...mmons/src/main/java/org/apache/iotdb/commons/pipe/config/constant/PipeConnectorConstant.java
Outdated
Show resolved
Hide resolved
HTHou
pushed a commit
that referenced
this pull request
Jun 26, 2024
**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`.
SzyWilliam
pushed a commit
to SzyWilliam/iotdb
that referenced
this pull request
Nov 26, 2024
…#12281) **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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Usage
Supported sinks: iotdb-airgap-sink, iotdb-ssl-thrift-sink, iotdb-sync-sink, iotdb-async-sink
Options for
'load-balance-strategy':round-robin,randomandpriority.round-robinby 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 aPipeConnectionException.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 aPipeConnectionException.priority: The connector will select the first alive client in given clients (via.node-urls). If all clients are dead, the connector will throw aPipeConnectionException.