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 2022/01/07 11:48:09 UTC

[GitHub] [rocketmq] Aaron-TangCode commented on issue #2730: Multiple instances in the same application share MQClientInstance

Aaron-TangCode commented on issue #2730:
URL: https://github.com/apache/rocketmq/issues/2730#issuecomment-1007346459


   > @zcsh0721 我和其他同学交流了一下,这个变更的目的是应对容器化部署环境下pid冲突的情况。想复用MQClientInstance可以手动设置instanceName。
   
   糟糕,我没看懂:“这个变更的目的是应对容器化部署环境下pid冲突的情况”。
   我目前知道的点是:同一个JVM下的生产者和消费者是同一个进程id。但不清楚为什么这么设计?
   clientid 由 ip 和 进程Id组成。如果在容器化部署的环境下,IP应该也是不同的吧。应该没错吧。
   所以“这个变更的目的是应对容器化部署环境下pid冲突的情况”,这个句话,我没看懂,望解答。


-- 
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