[SERVER-30420] How to shutdown a mongodb cluster? Created: 31/Jul/17  Updated: 01/Aug/17  Resolved: 01/Aug/17

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 3.4.4
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: davy Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

I have a cluster with 12 servers. they all running mongodb 3.4.4, and use wiredtiger engine.
The structure is:
3 servers make one replica set. There are three of these.
3 config server for these 3 replice set.
1 mongos connection with all config server and listen on port 27017

There are 2TB data on the database. We occasionally power off, so I have to turn off the servers before the power turns off! I shutdown mongoDB service use "mongod --shutdown" on all servers and success, But when I restart the mongoDB service, they all failed!!!, log display the fail reason is "xxxxxxxx.wt is not found", after several failures, I know something wrong, and google it. I found this:
1. stop ballancing
2. shutdown mongoses services
3. shutdown config mongod services
4. shutdown shards mongod services

Is that right? I think that's right! But how to do?
sh.stopBalancer() #when restart, enable again?
sh.shutdownServer() # it's same as "mongod --shutdown"?

I need some guides. thank you



 Comments   
Comment by Kelsey Schubert [ 01/Aug/17 ]

Hi davy,

Thanks for your report. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group.

Kind regards,
Thomas

Generated at Thu Feb 08 04:23:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.