thingsboard / tbmq

Open-source, scalable, and fault-tolerant MQTT broker able to handle 4M+ concurrent client connections, supporting at least 3M messages per second throughput per single cluster node with low latency delivery. The cluster mode supports more than 100M concurrently connected clients.
https://thingsboard.io/products/mqtt-broker/
Apache License 2.0
570 stars 46 forks source link

How the cluster is configured #126

Closed huangyg1252497580 closed 1 month ago

huangyg1252497580 commented 2 months ago

Component

Description

How to remember the cluster deployment configuration in a large system, how to synchronize the topics subscribed by the client to each TBMQ node in the cluster situation, and whether each TBMQ node will store all the client connection information? Thank you very much,and look forward to your answers Environment

dmytro-landiak commented 2 months ago

Hi, @huangyg1252497580!

Thank you for your questions! Here's a detailed response:

  1. To manage and remember the configuration for a large system deployment, I recommend using a version control system like Git. Store your deployment configuration files and all critical information about the cluster in a Git repository. If I misunderstood the question, please provide more details.

  2. Regarding the synchronization of topics subscribed by clients in a clustered environment, could you please provide more details or a specific scenario? This would help me give you a more precise answer.

  3. Each TBMQ node stores information about all client sessions and their respective subscriptions. The session context, including the state of each connection, is localized to the TBMQ node that the client is connected to.

I hope this helps! If you have further questions or need more detailed information, please feel free to ask.

huangyg1252497580 commented 2 months ago

ok, Thank you! Now we have a business scenario, as shown in the following figure. Because tbmq cannot meet my business scenario, I need to transform it ![Uploading 20240619200907.png…]()

huangyg1252497580 commented 2 months ago

ok, Thank you! Now we have a business scenario, as shown in the following figure. Because tbmq cannot meet my business scenario, I need to transform it ![Uploading 20240619200907.png…]()

dmytro-landiak commented 2 months ago

Understand! Unfortunately, the png file is not opening that you attached.

If you have further questions or need more detailed information, please feel free to ask.

dmytro-landiak commented 1 month ago

I am closing this issue due to inactivity. Please feel free to reopen it if you have any more questions.