MQTT mosquitto linux的连接数限制 [英] mqtt mosquitto linux connection limit

查看:7406
本文介绍了MQTT mosquitto linux的连接数限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让用户过去1024连接限制在Linux中联同做MQTT推送通知?

How are users getting past a 1024 connection limit in Linux in association with doing MQTT for push notification?

我使用Mosquitto服务器,我想我读没有内置到Linux版本1024连接的限制。所以,我可以用一台服务器(无桥接等),并得到5000元,10000用户?

I am using Mosquitto server, which I think I read does not have a 1024 connection limit built into the linux version. So, can I use a single server (no bridging etc) and get 5,000, 10,000+ users?

或者说,我绝对需要桥接?我还没有看到这是如何设置比配置设置手册页mosquitto其他很多的写作。

Or, do I absolutely need bridging? I haven't seen a lot of writing on how this is setup other than the config settings man page for mosquitto.

或者,我可以得到通过,只需修改一些Linux的配置设置和我是很好的跟单mosquitto服务器去了?

Or, can I get by with just modify a few linux configuration settings and I'm good to go with a single mosquitto server?

我的应用程序或多或少的即时消息应用程序,所以我希望有〜万甚至2万多人使用它永久24/7连接mosquitto提醒消息的他们。

My app is more or less an instant messaging app, so I expect to have ~10,000 maybe even 20,000 people using it with permanent 24/7 connections to mosquitto to alert them of messages.

推荐答案

在理论上可以了Linux的套接字的mosquitto的最大数量设置为你所需要的。接下来的问题是全能表现。关键指标是每秒的总邮件数量。如果你有20K客户端连接,多少都会主动和多少个消息每个人都可以发送?

In theory you could up the Linux setting for max number of sockets for mosquitto to what you need. The question then is around performance. The key metric is number of messages per second total. If you have 20k clients connected, how many will be active and how many messages will each be sending?

举个例子,如果你一半的客户都是主动和每秒发送1信息,有10K MSPS - 仅进入课程。如果每个这些消息是10个字节,你在一个持续的100KB的/ s或800kbps。

As an example, if half of your clients are active and sending 1 message per second, there are 10k msps - incoming only of course. If each of those messages is 10 bytes, you're at a sustained 100kB/s or 800kbps.

另一个方面是怎样的主题层次排列。我不能告诉你什么是最好的,但它肯定会产生作用。

Another aspect is how your topic hierarchy is arranged. I can't tell you what is best, but it will certainly have an effect.

我最好的建议是编写模拟一个真实的人一个客户端,然后用它来使你的真正场景的测试。

My best suggestion would be to write a client that simulates a real person, then use it to so real testing of your scenario.

我已经看到了极端的客户端数量的例子: http://bit.ly/HytRpK ,但没有更多的细节。

I have seen examples of extreme client count: http://bit.ly/HytRpK but have no more details.

最后一点:IBM正在生产红皮书上的MQTT。它应该提供'春',即很快。我认为这将覆盖比例的问题。

One final point: IBM are currently producing a redbook on MQTT. It should be available 'in spring', i.e. soon. I think it will cover scaling issues.

这篇关于MQTT mosquitto linux的连接数限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆