pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] merlimat commented on issue #2954: Broker considers fail-over consumer priority-level
Date Thu, 08 Nov 2018 18:54:26 GMT
merlimat commented on issue #2954: Broker considers fail-over consumer priority-level
URL: https://github.com/apache/pulsar/pull/2954#issuecomment-437114596
 
 
   The question is that broker is using ordinal position for consumers to ensure even distribution.

   
   Simple example: 4 partitions, 2 consumers. With equal priorities, they 
   
   partition | consumer
   -------| ----
    t-partition-0 | c-1 
    t-partition-1 | c-2 
    t-partition-2 | c-1 
    t-partition-3 | c-2 
   
   If I set c-1 with higher priority, I would expect to have c1 on all the partitions. however
the priority will only affect the sorting, so each partition will see the same list of consumers
`[c1, c2]`, ordered by priority, but will keep doing the same assigment as above, given that
on partition-3 with chose the consumer index with `N % len(consumers)`
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message