In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
MongoDB highly available cluster switching MongoDB the simplest cluster mode is to build a Replica Set (replica set) with three nodes, which ensures that after one node fails, the rest of the nodes can continue to provide services. In the MongoDB cluster, there are also the roles of the primary node and the standby node. If there is a problem with the primary node, a new primary node will be elected in the standby node, and the primary and standby node will automatically synchronize with the new primary node. After the switching between the old and new master nodes, it is almost transparent to the front-end application, because of MongoDB's special connection string configuration: mongodb:// [username: password@] host1 [: port1] [, host2 [: port2], … [, hostN [: portN] [/ [database] [? options]] in the last configuration, host,MongoDB that can configure multiple MongoDB will automatically detect the master node in the replica set and connect it. If the master node dies, the front-end application will report an error before the handover process is completed, until the new connection is connected to the new master node to continue to provide services. This special connection string implementation eliminates the need to build LVS Vip automatic switchover for MongoDB, and supports high-availability failover by default.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.