Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Advice needed (long, sorry)

FYI re my load balancer comment: 

mosquitto can natively service http requests as well as WebSocket. No need for a separate service. 

Each broker can have a file in the http_dir containing its endpoint info.

From 1.4 mosquitto.conf:

# When a listener is using the websockets protocol, it is possible to serve
# http data as well. Set http_dir to a directory which contains the files you
# wish to serve. If this option is not specified, then no normal http
# connections will be possible.
#http_dir


On Thu, Feb 12, 2015 at 6:44 AM, Stefano Costa <stefano.costa@xxxxxxxxxxx> wrote:
Interesting. How was the simulation setup? The best (or worse) I could try time ago was an ansible deploying a threaded Python daemon on ten hosts in different regions trying to connect/pub/disconnect random messages (thousands each one) with random time distribution over time.

Will try again and record exact numbers in the next days if possible.
  

Il giorno 12/feb/2015, alle ore 12:29, Manuel Domínguez Dorado <manolodd@xxxxxxxxx> ha scritto:

Hi Karl,

hehehehe. As I said before, we achieved neas 20.000 simultaneous TLS connections. But only connections. As far as we started sending some messages over each everything started to go wrong. :-) This the reason to request your help!!

I've no problem on sharing the sysctl configuration we used. I'm not at home but this evening I'll look for it and I will put it here. please do not flame me if it is not good. We were doing some proof tuning here, and there... Also, mosquitto is running on a 3-cores, 8 GB RAM VM.

Regards.

2015-02-12 12:00 GMT+01:00 Karl Palsson <karlp@xxxxxxxxxxxx>:

Manuel Domínguez Dorado <manolodd@xxxxxxxxx> wrote:

> But Mosquitto...
>
> We have read some experienced os people using Mosquitto sustaining 100K
> concurrent connection and more. But in our test we have reached ~25K
> concurrent connections at maximum, which is not enough (and operating
> not
> very well, to be realistic).
>
> Could you give us some advice on how to improve these numbers at least
> to
> be able to reach our 100K users? We don't know, but maybe 20K concurrent
> connections are enough to support 100K users that are not connected at
> the
> same time.
>

I'm actually curious to hear about how you configured mosquitto and your
servers to get 20k connections at all.  I couldn't get anywhere near
that, and the people who'd claimed to reach 100k on mosquitto here in
the past have never replied to any requests for further information.

Sincerely,
Karl Palsson



--
---
Manuel Domínguez Dorado
ingeniero ARROBA ManoloDominguez PUNTO com
http://www.ManoloDominguez.com
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top