| 
Cool, hope it can cover your test. 
 
Jianhui: I think single process would be better than multi-thread, Nginx/Redis gave the answer. For software LB,
 LVS is much better then nginx and ELB in my opinion. And if you let me choose, I will choose 16 CPU single box, taskset each broker to one core under memory bus limitation. Hardware BUS is much faster then the cable.
Question 
Will it even make sense to try this - get server with 16 CPU's and run 8 brokers on single box....?  
Jianhui: It will work, but I don't know whether the memory bus would be a bottleneck for so many instances. It is hard to give a desired performance, hardware architecture(SMP, NUMA, MPI) are uncertain
 factors, theoretically speaking, for each SMP machine/NUMA node, 4 instance would be the limitation.. 
 
Normal Mosquitto is only using a single CPU at time - with this option you can already use one server with more CPU's to handle the traffic/load ....<or> is the idea to use small 2 cpu servers in clustered network mode behind
 LB like nginx or aws ELB? 
 BTW, I have tested with RabbitMQ, I found that it doesn't support MQTT retain message and QoS=2, is that I should install the newest version?
 From: mosquitto-dev-bounces@xxxxxxxxxxx <mosquitto-dev-bounces@xxxxxxxxxxx> on behalf of Oegma2 <oegma2@xxxxxxxxx>Sent: Tuesday, January 16, 2018 17:32
 To: General development discussions for the mosquitto project
 Subject: Re: [mosquitto-dev] A decentralize Mosquitto cluster design.
   
Hi Jian
 
 I've pulled the clustered mosquitto branch code, compiled with those flags and got it running now with 2 instances - did a quick test connecting to one broker on node1 and then another client connect to node2 and sub on both client to topic "#" - when
 I pub a test msg on client1, client2 recv it, so the cluster is working - the 2 brokers also ack that they see each other - fairly easy to set this up :) 
 I am using one server with diff ports to run this cluster ...node1 is 127.0.0.1:8000  and node2 is 127.0.0.1:9000  ...seem 2 be working just fine on same server with different ports ^_^.
 Question Will it even make sense to try this - get server with 16 CPU's and run 8 brokers on single box....? Normal Mosquitto is only using a single CPU at time - with this option you can already use one server with more CPU's to handle the traffic/load ....<or>
 is the idea to use small 2 cpu servers in clustered network mode behind LB like nginx or aws ELB? 
 But in short - got it running and can assist in some testing scenarios - exiting times 2 be honest, - if this really works under load, means we can scale the awesome mosquitto broker to bigger loads ^_^ - "big up for C & mosquitto i say" ^_^ 
 
 |