You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/12/15 03:24:58 UTC

[GitHub] [rocketmq] mxsm opened a new issue, #5698: [Discuss] Producer and consumer add a strategy to connect to NameServer

mxsm opened a new issue, #5698:
URL: https://github.com/apache/rocketmq/issues/5698

   Producers and consumers connecting to NameServer to obtain routing information are random, and data is obtained by randomly selecting a NameServer from the given NameServer list for connection. This situation has the following disadvantages:
   
   1. The better machines deployed by NameServer cannot exert all their machine performance, while the poorer machines may connect to many, causing the service to crash.
   2. Cannot specify a NameServer for connection (except for configuring a single NameServer address). 
   
   Therefore, it is considered to add a strategy pattern for selecting a NameServer for connection in the client (producer and consumer). The developer can choose or implement the strategy to select the NameServer for connection. The following strategies can be considered:
   
   1. Random strategy: randomly select a NameServer for connection (current mode).
   2. Specified strategy: specify a specific NameServer for connection.
   3. Polling strategy: the current application's clients select from the given NameServers on their own.
   4. NameServer minimum client connection strategy: obtain the current NameServer with the minimum number of client connections for connection.
   
   Other strategies can be added in the future.


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq] lizhimins commented on issue #5698: [Discuss] Producer and consumer add a strategy to connect to NameServer

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

   In general, the configuration of NameServer should be the same and should be hidden behind the load balancing service. At this time, the server maintainer can select random, polling, minimum connections and other policies on the server. This centralized management is more conducive to operation and maintenance.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq] mxsm commented on issue #5698: [Discuss] Producer and consumer add a strategy to connect to NameServer

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

   > In general, the configuration of NameServer should be the same and should be hidden behind the load balancing service. At this time, the server maintainer can select random, polling, minimum connections and other policies on the server-side. This centralized management is more conducive to operation and maintenance.
   @lizhimins 
   I agree with your perspective. This thought comes from encountering resource shortages in the past, where the deployed machines had different configurations. For cloud-based services, this may not be a problem, but for self-maintained machines, cost considerations may result in some machines being downgraded. This leads to different configurations for the deployed machines. I have previously considered setting weights for the NameServer to determine the number of client connections for each machine.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [I] [Discuss] Producer and consumer add a strategy to connect to NameServer [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5698:
URL: https://github.com/apache/rocketmq/issues/5698#issuecomment-1858992336

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [I] [Discuss] Producer and consumer add a strategy to connect to NameServer [rocketmq]

Posted by "mxsm (via GitHub)" <gi...@apache.org>.
mxsm closed issue #5698: [Discuss] Producer and consumer add a strategy to connect to NameServer 
URL: https://github.com/apache/rocketmq/issues/5698


-- 
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: commits-unsubscribe@rocketmq.apache.org

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