Skip to content

Commit

Permalink
Update CP direct-to-leader docs (#1191)
Browse files Browse the repository at this point in the history
Adds a note regarding the behaviour of this feature when an active
connection is not available, and also notes that it provides no benefit
in `SINGLE_MEMBER` routing mode.
  • Loading branch information
JamesHazelcast committed Jul 23, 2024
1 parent c99d7e0 commit 7423289
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/modules/clients/pages/java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,11 @@ instead of using a faster internal cluster link and routing through another memb
direct to leader routing can put uneven pressure on the cluster if CP group leaders receive substantially more load than
other members of the cluster - this is particularly problematic when only one CP group leader is present.

NOTE: If a client does not have an active connection to a known CP group leader then the client will be unable to leverage
direct-to-leader CP operations and will fall back to default round-robin behaviour, sending the request to any available
cluster member instead. This feature provides no benefit when `SINGLE_MEMBER` routing is used as the client only has 1
available connection to use for all operation sending.

CP direct to leader routing can be enabled on clients with a single configuration option. Here is an example programmatic
configuration snippet:

Expand Down

0 comments on commit 7423289

Please sign in to comment.