Skip to content

Commit

Permalink
PIP-119: Enable consistent hashing by default on KeyShared subscripti…
Browse files Browse the repository at this point in the history
…ons dispatcher (apache#13352)

* PIP-119: Enable consistent hashing by default on KeyShared subscriptions dispatcher

* Fixed formatting

Co-authored-by: Matteo Merli <[email protected]>
  • Loading branch information
HQebupt and merlimat authored Jan 25, 2022
1 parent c20d55d commit 5b39913
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ subscriptionTypesEnabled=Exclusive,Shared,Failover,Key_Shared

# On KeyShared subscriptions, with default AUTO_SPLIT mode, use splitting ranges or
# consistent hashing to reassign keys to new consumers
subscriptionKeySharedUseConsistentHashing=false
subscriptionKeySharedUseConsistentHashing=true

# On KeyShared subscriptions, number of points in the consistent-hashing ring.
# The higher the number, the more equal the assignment of keys to consumers
Expand Down
2 changes: 1 addition & 1 deletion conf/standalone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ subscriptionRedeliveryTrackerEnabled=true

# On KeyShared subscriptions, with default AUTO_SPLIT mode, use splitting ranges or
# consistent hashing to reassign keys to new consumers
subscriptionKeySharedUseConsistentHashing=false
subscriptionKeySharedUseConsistentHashing=true

# On KeyShared subscriptions, number of points in the consistent-hashing ring.
# The higher the number, the more equal the assignment of keys to consumers
Expand Down
2 changes: 1 addition & 1 deletion deployment/terraform-ansible/templates/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ subscriptionKeySharedEnable=true

# On KeyShared subscriptions, with default AUTO_SPLIT mode, use splitting ranges or
# consistent hashing to reassign keys to new consumers
subscriptionKeySharedUseConsistentHashing=false
subscriptionKeySharedUseConsistentHashing=true

# On KeyShared subscriptions, number of points in the consistent-hashing ring.
# The higher the number, the more equal the assignment of keys to consumers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ public class ServiceConfiguration implements PulsarConfiguration {

@FieldContext(category = CATEGORY_POLICIES,
doc = "On KeyShared subscriptions, with default AUTO_SPLIT mode, use splitting ranges or "
+ "consistent hashing to reassign keys to new consumers")
private boolean subscriptionKeySharedUseConsistentHashing = false;
+ "consistent hashing to reassign keys to new consumers (default is consistent hashing)")
private boolean subscriptionKeySharedUseConsistentHashing = true;

@FieldContext(
category = CATEGORY_POLICIES,
Expand Down

0 comments on commit 5b39913

Please sign in to comment.