Clustering ले एकै तार्किक ब्रोकरमा गर्न RabbitMQ को एकाधिक नोडहरू जोडिन्छ — स्केलेबिलिटी र (प्रतिलिपि गरिएको क्यु सहित) उच्च उपलब्धताको लागि। क्लस्टरिङ र यसको सूक्ष्मताहरू बुझ्नु RabbitMQ लाई विश्वसनीय रूपमा मापन र सञ्चालनको लागि महत्त्वपूर्ण छ।
क्लस्टर भनेको के हो
A RabbitMQ CLUSTER = multiple nodes acting as ONE logical broker:
→ nodes share METADATA (queue/exchange definitions, bindings, users, vhosts) across the cluster
→ clients can connect to any node; load is distributed across nodes
→ scales connection/channel capacity and distributes load
क्लस्टरमा क्यु (एक महत्त्वपूर्ण सूक्ष्मता)
⚠️ By default, a queue's DATA lives on ONE node (the node where it was declared):
→ other nodes know about the queue (metadata) but route to the owning node
→ if that node FAILS → the queue (and its messages) is UNAVAILABLE
→ so CLUSTERING ALONE does NOT make queues highly available!
→ for HA → use REPLICATED queues (QUORUM QUEUES) that replicate data across nodes
