We will take a look at what may be different. So far I cannot see anythin=
g that would
=5Bforget to=5D set the limit in either the MQTT or Web MQTT plugin.
We are aware of at least one MQTT client (Paho Java) which has *client si=
de* limits
on message rates and such, which is very counterintuitive to most users.
Can you please put together a small GitHub repo we can use to reproduce t=
he 2048 connection scenario=3F
Use of Vagrant or Docker is encouraged if necessary :)
On 11 April 2018 at 05:37:38, brad=
40automox.com (brad=
40automox.com) wro=
te:
> MK,
> yeah the test results seemed really low to me. I figured it was somethi=
ng
> I am doing wrong. What trips me up is the 'expected' behavior when just=
> hitting MQTT without web sockets.
> I would love to hear anyone's opinion on a way to do this. Luke's confi=
g
> changes made it better, but not where it would be feasible to use in
> production.
> =20
> Thanks for the response,
> Brad
> On Tuesday, April 10, 2018 at 8:28:48 PM UTC-6, Michael Klishin wrote:
> >
> > There certainly are known WebSockets users who sustain concurrent cli=
ent
> > connection
> > numbers well above the 2048 Ranch limit you are mentioning.
> >
> > I'd like to hear Lo=C3=AFc Hoguin (the author of Ranch and the Web MQ=
TT plugin
> > as well)'s opinion here.
> > Having a setting for this in RabbitMQ seems unnecessary to me since
> > RabbitMQ core/AMQP 0-9-1 implementation
> > doesn't use it:
> >
> >
https://github.com/search=3Fq=3Dorg%3Arabbitmq+set=5Fmax=5Fconnection=
s&type=3DCode =20
> >
> >
> > On Wed, Apr 11, 2018 at 5:23 AM, > wrote:
> >
> >> Luke,
> >> I am using erlang 20.2 and rabbitmq 3.7.4.
> >>
> >> I set the files as instructed. I was able to achieve 2048 connection=
s of
> >> the 2100 I was trying with. Not sure where 52 went missing. I tried =
to
> >> connect 3000, but only 2048 actually connected.
> >>
> >> Also, I see you mentioned 61000+ AMQP connections. In my case, I am
> >> pretty sure it is the web socket plugin as I do not have this issue =
when
> >> connecting to port 1883.
> >>
> >> I did notice the plugin does not set ranch max connections. It's def=
> >> There is another knob to turn. Without any changes to sysctl I was a=
ble
> >> to hit 2K connections with setting ranch's max.
> >>
> >> As for the client code, It is just a simple go app based off of this=
> >>
https://eclipse.googlesource.com/paho/org.eclipse.paho.mqtt.golang/+=
/master/samples/simple.go =20
> >>
> >> I do not disconnect as these clients are supposed to be long running=
. I
> >> basically iterate 2K times and spawn a client like the code above an=
d then
> >> wait.
> >>
> >>
> >>
> >> Thanks,
> >> Brad
> >>
> >> On Tuesday, April 10, 2018 at 6:17:28 PM UTC-6, br...=
40automox.com =
wrote:
> >>>
> >>> =46WIW,
> >>> sudo rabbitmqctl eval 'ranch:set=5Fmax=5Fconnections(web=5Fmqtt, 10=
0000).'
> >>>
> >>> allows the clients to reach 2K. Would you be open for a PR on expos=
ing
> >>> this through config=3F
> >>>
> >>> On Tuesday, April 10, 2018 at 5:40:04 PM UTC-6, br...=
40automox.com=
wrote:
> >>>>
> >>>> Luke,
> >>>>
> >>>> Thanks for the response=21
> >>>>
> >>>> Unfortunately, the logs look normal. I turned on debug, but only s=
ee
> >>>> lager complaining about dropped messages. The client outputs these=
errors
> >>>> once this wall is hit.
> >>>>
> >>>> * Error connecting to MQTT host: Network Error : websocket.Dial
> >>>> 172.31.16.32:53584->
172.31.20.95:4443 : read: =20
> >>>> connection reset by peer*
> >>>>
> >>>> My test client spins up 2K connections with a keepalive (MQTT) of =
30
> >>>> seconds. I have a 200 ms delay between connections.
> >>>>
> >>>> Once the test is complete, I check the connections via rabbitmqctl=
> >>>> list=5Fconnections. There is always roughly around 1050-1324--This=
depends
> >>>> on tweaking rabbitmq.conf num tcp acceptors.
> >>>>
> >>>> I tried the same test using MQTT (without web-mqtt) and I can reac=
h the
> >>>> 2k without issues.
> >>>>
> >>>> I am happy to give more information if needed.
> >>>>
> >>>> Thanks again for the help=21
> >>>> On Tuesday, April 10, 2018 at 5:12:24 PM UTC-6, Luke Bakken wrote:=
> >>>>> Could you provide the information I requested and start a new mes=
sage
> >>>>> thread here=3F Thanks.
> >>>>>
> >>>>> Luke
> >>>>>
> >>>>> On Tuesday, April 10, 2018 at 3:37:33 PM UTC-7, wrote:
> >>>>>>
> >>>>>> I know this is almost a year old, but did you ever figure this o=
ut=3F
> >>>>>> We can only get about 1K connections as well. Pretty much same s=
ettings
> >>>>>> and plenty of file descriptors.
> >>>>>>
> >>>>>> Thanks
> >>>>>> Brad
> >>>>>>
> >>>>>> On Thursday, July 27, 2017 at 6:54:13 PM UTC-6, Johan Rhodin wro=
te:
> >>>>>>>
> >>>>>>> Hi team,
> >>>>>>>
> >>>>>>> What are the limiting factors for number of connections with
> >>>>>>> MQTT-over-WebSockets=3F I seem to get stuck very close to 1000 =
connections /
> >>>>>>> node.
> >>>>>>> RabbitMQ (3.6.10 with Erlang 19.3) reports that 241548 file
> >>>>>>> descriptors are available.
> >>>>>>>
> >>>>>>> rabbitmq.config:
> >>>>>>> ..
> >>>>>>> =7Brabbitmq=5Fweb=5Fmqtt, =5B
> >>>>>>> =7Bcowboy=5Fopts, =5B
> >>>>>>> =7Bmax=5Fkeepalive, 10000=7D,
> >>>>>>> =7Btimeout, 25000=7D
> >>>>>>> =5D=7D,
> >>>>>>> =7Btcp=5Fconfig, =5B
> >>>>>>> =7Bbacklog, 8196=7D
> >>>>>>> =5D=7D
> >>>>>>> ..
> >>>>>>>
> >>>>>>>
> >>>>>>> Logs contain a large number of:
> >>>>>>> =22MQTT vhost picked using plugin configuration or default=22
> >>>>>>>
> >>>>>>> and a smaller number of:
> >>>>>>> =22closing WEB-MQTT connection =22127.0.0.1:38615 -> 127.0.0.1:=
15675=22
> >>>>>>> (keepalive timeout)=E2=80=9D
> >>>>>>>
> >>>>>>> /Johan
> >>>>>>
> >>>>>> --
> >> You received this message because you are subscribed to the Google G=
roups
> >> =22rabbitmq-users=22 group.
> >> To unsubscribe from this group and stop receiving emails from it, se=
nd an
> >> email to rabbitmq-user...=
40googlegroups.com <>.
> >> To post to this group, send email to rabbitm...=
40googlegroups.com
> >> <>.
> >> =46or more options, visit
https://groups.google.com/d/optout.
> >>
> >
> >
> >
> > --
> > MK
> >
> > Staff Software Engineer, Pivotal/RabbitMQ
> >
> =20
> --
> You received this message because you are subscribed to the Google Grou=
ps =22rabbitmq-users=22 =20
> group.
> To unsubscribe from this group and stop receiving emails from it, send =
an email to rabbitmq-users+unsubscribe=
40googlegroups.com. =20
> To post to this group, send an email to rabbitmq-users=40googlegroups.c=
om.
> =46or more options, visit
https://groups.google.com/d/optout.
> =20
-- =20
MK =20
Staff Software Engineer, Pivotal/RabbitMQ =20