Rabbitmq的交换数量有限制吗? [英] Is there a limit to the number of exchanges for rabbitmq?
问题描述
在文档中或在google上都找不到与此相关的任何内容,只是它应该绑定到服务器的可用资源上.
Could not find anything about this in either the docs or on google, except that it should be bound to the available resources of the server.
有人在工作环境中一次有大量交流经验吗?仅创建交换不是问题(仅在达到内存限制之前),而应在具有高消息吞吐量且主要是动态交换创建/删除的工作项目中使用它.
Does anyone have experience with really large numbers of exchanges at a time in a working environment? Just creating exchanges should not be the issue (simply until the memory limit is reached) but to use it in a working project with high-message throughput and mostly dynamic exchange creation/deletion.
推荐答案
鉴于RabbitMQ中的其他所有内容都是如何构建的(并且知道它是用Erlang编写的并且内部使用了Mnesia之类的服务),可能没有任何硬编码的限制.您可能会先达到经纪人计算机上的资源限制.
Given how everything else in RabbitMQ is built (and knowing that it's written in Erlang and uses services like Mnesia internally) there probably isn't any hardcoded limit. You'll probably hit a resource limit on your broker's machine before anything else.
如果您计划使用非持久性交换(即那些不能在经纪人重启后幸存的交换),则可能会创建大量非持久性交换.为什么不使用 HTTP管理API 编写一个脚本,该脚本将始终使用卷曲,看看你能走多远?
If you plan on using non-persistent exchanges (that is, ones that don't survive a broker restart) you could likely create very large numbers of them. Why don't you use the HTTP management API to write a script that just keeps creating exchanges using curl and see how far you get?
这篇关于Rabbitmq的交换数量有限制吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!