You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/08/14 08:32:41 UTC

[GitHub] [rocketmq] makabakaboom opened a new issue #3265: add GrayRelease AllocateMessageQueue strategy

makabakaboom opened a new issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265


   目前RocketMQ缺乏灰度发布能力,所以提交一个可以灰度发布的PR实现消费灰度标签能力


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] lizhimins commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
lizhimins commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-908859081


   原生灰度能力确实很有吸引力,实现方式是特殊的负载均衡策略还是不同的订阅方式还需要考虑下


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] chenzlalvin commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
chenzlalvin commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-903491686


   MQ itself does not have the concept or statement of grayscale. You can use different subscription to meet your needs. RocketMQ subscriptions need evolve more easily.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] makabakaboom commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
makabakaboom commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-898866912


   该策略主要是将灰度Label标记在灰度实例的ClientID中,并在分配队列时,将每个Broker的指定比例的前N个队列用于所有灰度消费者来进行分配,并在发送端利用相同策略,实现灰度发送生产。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] ni-ze commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
ni-ze commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900100032


   What situation will use this gray release allocate strategy? can you give a case?
   people who use this ability must use this strategy before gray, and change back (or modify "percentage" both in consumer and producer)after gray finish. That is inconvenient.
   
   And InstanceName is not cid.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] makabakaboom commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
makabakaboom commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900778603






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] liuruinl commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
liuruinl commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900946121


   Thanks for Good job ! But in the other hand, it seems like this is not a MQ's responsibility to handle our deployment requirements, keep simple and clean. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] lizhimins commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
lizhimins commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-908859081


   原生灰度能力确实很有吸引力,实现方式是特殊的负载均衡策略还是不同的订阅方式还需要考虑下


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] feixueck commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
feixueck commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-1075850769


   个人很赞成 @francisoliverlee [makabakaboom](https://github.com/makabakaboom) 的贡献. 如果说为了保持简单和功能纯粹,那事务消息也是没有必要的.顺序消息也是没有必要的 .只需要创建多多的topic和group就能实现了,尤其事务消息,更加增加了架构扩展的复杂度(非抬杠).  我个人认为,既然好多人都在寻找如何在rocketmq中实现流量路由的功能,都在苦苦探索,有人有了方案也未必会分享出来 ,那面rocketmq为什么不能提供一套支持流量路由的功能呢? 哪怕作为插件提供出来不是也很好? (个人猜测,可能是出于商业原因,这部分特性是需要商用的) 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] ifplusor commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
ifplusor commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-1075857619


   Multiple experimental environments need to consider.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] francisoliverlee commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900766282


   suppose there are 10 producer instances and 10 consumer instances, if we need to do gray release, how about do-gray-deployment to producer instance 1 and consumer instance 1 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] ni-ze edited a comment on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
ni-ze edited a comment on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900100032


   What situation will use this gray release allocate strategy? can you give a case?
   people who use this ability must use this strategy before gray, and change back (or modify "percentage" both in consumer and producer)after gray finish. That is inconvenient.
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] makabakaboom commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
makabakaboom commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900970870


   > Thanks for Good job ! But in the other hand, it seems like this is not a MQ's responsibility to handle our deployment requirements, keep simple and clean.
   
   OK,不过在实际应用过程中,全链路灰度发布需求还是比较大的,而消息队列作为其中一环也应该具备该能力


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] francisoliverlee commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900766282


   suppose there are 10 producer instances and 10 consumer instances, if we need to do gray release, how about do-gray-deployment to producer instance 1 and consumer instance 1 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] makabakaboom commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
makabakaboom commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900778603


   percentage只是将队列分成灰度和正常队列的比例,如图上每个broker的16个队列将会把每个broker的前两个队列在发送和消费端均默认为灰度队列。如果我们只需要部署1个灰度消费实例时,我们只需要在该实例配置instanceName加上%GRAY%标签,或者直接通过环境变量注入方式打入灰度标签,利用CID在所有消费者具备最终一致性能力,默认所有消费者实例都能感知到有灰度实例上线,这个时候就会将灰度队列分配给带有灰度标签的消费者。而发送端利用相同算法,将带有灰度的流量直接发送到灰度的队列上,因为发送端和消费端在标识灰度队列上算法是一致的,都是每个broker的前N个队列


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] makabakaboom commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
makabakaboom commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900140706


   ![image](https://user-images.githubusercontent.com/15335431/129700669-b2853588-266b-445a-9912-7346bbf562b8.png)
   
   应用场景主要是用于灰度发布场景,默认没有灰度实例情况下,将所有实例进行分配。在需要业务小规模上线试用的情况下,只需要灰度部分消费实例并打上灰度标签,即可将固定比例的队列分配给灰度的实例进行消费,并在发送端通过相同算法将灰度流量发送到指定队列,待灰度验证完成后,后续可以将所有消费更新消费至新逻辑,并将灰度节点标签去掉,完成上线


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] liuruinl commented on issue #3265: add GrayRelease AllocateMessageQueue strategy

Posted by GitBox <gi...@apache.org>.
liuruinl commented on issue #3265:
URL: https://github.com/apache/rocketmq/issues/3265#issuecomment-900946121


   Thanks for Good job ! But in the other hand, it seems like this is not a MQ's responsibility to handle our deployment requirements, keep simple and clean. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org