You can't do clustering with mosquitto.
Some other MQTT brokers out there which support clustering, including HiveMQ. HiveMQ has an elastic cluster ability with auto discovery and a distributed masterless architecture and works very well on cloud providers like AWS or Azure.
You can see a full list of all brokers which support clustering here.
Disclaimer: I'm a developer of HiveMQ, so this answer may be biased.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…