You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by zh...@apache.org on 2020/06/04 13:09:57 UTC

[pulsar] branch master updated: [Doc]--Update documents for support consumer priority level in failover mode (#7136)

This is an automated email from the ASF dual-hosted git repository.

zhaijia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 971ab0e  [Doc]--Update documents for support consumer priority level in failover mode (#7136)
971ab0e is described below

commit 971ab0e2777900b2e8cf9d11c60e60bfd8842ffc
Author: HuanliMeng <48...@users.noreply.github.com>
AuthorDate: Thu Jun 4 21:09:44 2020 +0800

    [Doc]--Update documents for support consumer priority level in failover mode (#7136)
    
    This doc is updated for the Pulsar 2.4.0 released PR: #2954.
    
    The doc is updated for the master right now. once it is reviewed and approved, it will be added to the previous releases.
---
 site2/docs/concepts-messaging.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/site2/docs/concepts-messaging.md b/site2/docs/concepts-messaging.md
index 919bd34..5805971 100644
--- a/site2/docs/concepts-messaging.md
+++ b/site2/docs/concepts-messaging.md
@@ -207,11 +207,11 @@ In the diagram below, only **Consumer A-0** is allowed to consume messages.
 
 ### Failover
 
-In *failover* mode, multiple consumers can attach to the same subscription. The consumers will be lexically sorted by the consumer's name and the first consumer will initially be the only one receiving messages. This consumer is called the *master consumer*.
+In *failover* mode, multiple consumers can attach to the same subscription. In failover mode, the broker selects the master consumer based on the priority level and the lexicographical sorting of a consumer name. If two consumers have an identical priority level, the broker selects the master consumer based on the lexicographical sorting. If these two consumers have different priority levels, the broker selects the consumer with a higher priority level as the master consumer. The master  [...]
 
-When the master consumer disconnects, all (non-acked and subsequent) messages will be delivered to the next consumer in line.
+For partitioned topics, the broker assigns partitioned topics to the consumer with the highest priority level. If multiple consumers have the highest priority level, the broker evenly assigns topics to consumers with these consumers.
 
-In the diagram below, **Consumer-B-0** is the master consumer while **Consumer-B-1** would be the next in line to receive messages if **Consumer-B-0** disconnected.
+In the diagram below, **Consumer-B-0** is the master consumer while **Consumer-B-1** would be the next consumer in line to receive messages if **Consumer-B-0** is disconnected.
 
 ![Failover subscriptions](assets/pulsar-failover-subscriptions.png)