Permalink
Browse files

SERVER-4660 Display warning with 1 configdb

Display large warning in mongos when running a sharded cluster with only
1 config server
  • Loading branch information...
singhsiddharth committed Mar 12, 2012
1 parent f374409 commit 206a2db6bae8228cf1d94ea5230a2f5d31657011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/mongo/s/server.cpp
View
@@ -379,6 +379,10 @@ int _main(int argc, char* argv[]) {
return 5;
}
+ if( configdbs.size() == 1 ) {
+ warning() << "running with 1 config server should be done only for testing purposes and is not recommended for production" << endl;
+ }
+
// we either have a setting where all processes are in localhost or none are
for ( vector<string>::const_iterator it = configdbs.begin() ; it != configdbs.end() ; ++it ) {
try {

0 comments on commit 206a2db

Please sign in to comment.