Upgrade Single Config Server to Replica SetHow to setup a MongoDB replica set for the connectorMongoDB -...

Do these large-scale, human power-plant-tending robots from the Matrix movies have a name, in-universe or out?

What did Putin say about a US deep state in his state-of-the-nation speech; what has he said in the past?

How do I handle a blinded enemy which wants to attack someone it's sure is there?

Can a planet be tidally unlocked?

Are encryption algorithms with fixed-point free permutations inherently flawed?

How Create a list of the first 10,000 digits of Pi and sum it?

Exploding Numbers

How many copper coins fit inside a cubic foot?

Have the UK Conservatives lost the working majority and if so, what does this mean?

Isn't a semicolon (';') needed after a function declaration in C++?

Integral problem. Unsure of the approach.

How do I split ammo?

What does "don't have a baby" imply or mean in this sentence?

What is formjacking?

Euler and minus sign

Are all power cords made equal?

Why don't you get burned by the wood benches in a sauna?

What is the reason behind this musical reference to Pinocchio in the Close Encounters main theme?

Why does this quiz question say that protons and electrons do not combine to form neutrons?

Aligning Systems of Equations

Manager has noticed coworker's excessive breaks. Should I warn him?

How can changes in personality/values of a person who turned into a vampire be explained?

80-bit collision resistence because of 80-bit x87 registers?

Boss asked me to sign a resignation paper without a date on it along with my new contract



Upgrade Single Config Server to Replica Set


How to setup a MongoDB replica set for the connectorMongoDB - Adding a new server to an existing replica set with auth enabledWhy does mongodb require three config servershow to upgrade the config servers to use WiredTiger in mongodb 3.0.0MongoDb: sharded replica set: data distributionUnable to add replica set to shardrestore mongodb sharded cluster to another serverCould not add Replica Set to MongoDB ShardMongoDB config replica failed connection after a few days runningOutage due to Replica Set Protocol Version upgrade?













0















Recently we wanted to upgrade our Config Server to Replica Set. Since it is a development environment, we only have one Config Server running.



However, the official mongoDB documentation "Upgrade Config Servers to Replica Set" is written for three Config Servers.



How can we upgrade a configuration with only one Config Server?










share|improve this question
















bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • What version of MongoDB are you running (as reported by db.version() in the mongo shell)?

    – Stennie
    Mar 14 '18 at 21:35











  • the version is 3.2.10.

    – Wilson Chung
    Mar 15 '18 at 3:38
















0















Recently we wanted to upgrade our Config Server to Replica Set. Since it is a development environment, we only have one Config Server running.



However, the official mongoDB documentation "Upgrade Config Servers to Replica Set" is written for three Config Servers.



How can we upgrade a configuration with only one Config Server?










share|improve this question
















bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • What version of MongoDB are you running (as reported by db.version() in the mongo shell)?

    – Stennie
    Mar 14 '18 at 21:35











  • the version is 3.2.10.

    – Wilson Chung
    Mar 15 '18 at 3:38














0












0








0








Recently we wanted to upgrade our Config Server to Replica Set. Since it is a development environment, we only have one Config Server running.



However, the official mongoDB documentation "Upgrade Config Servers to Replica Set" is written for three Config Servers.



How can we upgrade a configuration with only one Config Server?










share|improve this question
















Recently we wanted to upgrade our Config Server to Replica Set. Since it is a development environment, we only have one Config Server running.



However, the official mongoDB documentation "Upgrade Config Servers to Replica Set" is written for three Config Servers.



How can we upgrade a configuration with only one Config Server?







mongodb configuration






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 14 '18 at 10:30









hot2use

8,34752055




8,34752055










asked Mar 14 '18 at 10:00









Wilson ChungWilson Chung

1




1





bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • What version of MongoDB are you running (as reported by db.version() in the mongo shell)?

    – Stennie
    Mar 14 '18 at 21:35











  • the version is 3.2.10.

    – Wilson Chung
    Mar 15 '18 at 3:38



















  • What version of MongoDB are you running (as reported by db.version() in the mongo shell)?

    – Stennie
    Mar 14 '18 at 21:35











  • the version is 3.2.10.

    – Wilson Chung
    Mar 15 '18 at 3:38

















What version of MongoDB are you running (as reported by db.version() in the mongo shell)?

– Stennie
Mar 14 '18 at 21:35





What version of MongoDB are you running (as reported by db.version() in the mongo shell)?

– Stennie
Mar 14 '18 at 21:35













the version is 3.2.10.

– Wilson Chung
Mar 15 '18 at 3:38





the version is 3.2.10.

– Wilson Chung
Mar 15 '18 at 3:38










1 Answer
1






active

oldest

votes


















0














Solution is start it as replica set (command line or config parameter) and run rs.initiate() after that. Now you have one node replica set, what you can expand to three node, if you want.






share|improve this answer
























  • Thanks. But according to the document, after rs.initiate(), we need to set configsvrMode to "sccc", then add other two members. Finally remove the sccc in the first member. However, we only use one member for development, so we confused how to handle it.

    – Wilson Chung
    Mar 15 '18 at 3:38











  • That documentation is stating how you convert your old config server without downtime. With only one config server it is of course impossible. And because that, you can keep your config server port number as it was, no need to change it.

    – JJussi
    Mar 15 '18 at 5:49











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f200202%2fupgrade-single-config-server-to-replica-set%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Solution is start it as replica set (command line or config parameter) and run rs.initiate() after that. Now you have one node replica set, what you can expand to three node, if you want.






share|improve this answer
























  • Thanks. But according to the document, after rs.initiate(), we need to set configsvrMode to "sccc", then add other two members. Finally remove the sccc in the first member. However, we only use one member for development, so we confused how to handle it.

    – Wilson Chung
    Mar 15 '18 at 3:38











  • That documentation is stating how you convert your old config server without downtime. With only one config server it is of course impossible. And because that, you can keep your config server port number as it was, no need to change it.

    – JJussi
    Mar 15 '18 at 5:49
















0














Solution is start it as replica set (command line or config parameter) and run rs.initiate() after that. Now you have one node replica set, what you can expand to three node, if you want.






share|improve this answer
























  • Thanks. But according to the document, after rs.initiate(), we need to set configsvrMode to "sccc", then add other two members. Finally remove the sccc in the first member. However, we only use one member for development, so we confused how to handle it.

    – Wilson Chung
    Mar 15 '18 at 3:38











  • That documentation is stating how you convert your old config server without downtime. With only one config server it is of course impossible. And because that, you can keep your config server port number as it was, no need to change it.

    – JJussi
    Mar 15 '18 at 5:49














0












0








0







Solution is start it as replica set (command line or config parameter) and run rs.initiate() after that. Now you have one node replica set, what you can expand to three node, if you want.






share|improve this answer













Solution is start it as replica set (command line or config parameter) and run rs.initiate() after that. Now you have one node replica set, what you can expand to three node, if you want.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 14 '18 at 10:10









JJussiJJussi

3,1091314




3,1091314













  • Thanks. But according to the document, after rs.initiate(), we need to set configsvrMode to "sccc", then add other two members. Finally remove the sccc in the first member. However, we only use one member for development, so we confused how to handle it.

    – Wilson Chung
    Mar 15 '18 at 3:38











  • That documentation is stating how you convert your old config server without downtime. With only one config server it is of course impossible. And because that, you can keep your config server port number as it was, no need to change it.

    – JJussi
    Mar 15 '18 at 5:49



















  • Thanks. But according to the document, after rs.initiate(), we need to set configsvrMode to "sccc", then add other two members. Finally remove the sccc in the first member. However, we only use one member for development, so we confused how to handle it.

    – Wilson Chung
    Mar 15 '18 at 3:38











  • That documentation is stating how you convert your old config server without downtime. With only one config server it is of course impossible. And because that, you can keep your config server port number as it was, no need to change it.

    – JJussi
    Mar 15 '18 at 5:49

















Thanks. But according to the document, after rs.initiate(), we need to set configsvrMode to "sccc", then add other two members. Finally remove the sccc in the first member. However, we only use one member for development, so we confused how to handle it.

– Wilson Chung
Mar 15 '18 at 3:38





Thanks. But according to the document, after rs.initiate(), we need to set configsvrMode to "sccc", then add other two members. Finally remove the sccc in the first member. However, we only use one member for development, so we confused how to handle it.

– Wilson Chung
Mar 15 '18 at 3:38













That documentation is stating how you convert your old config server without downtime. With only one config server it is of course impossible. And because that, you can keep your config server port number as it was, no need to change it.

– JJussi
Mar 15 '18 at 5:49





That documentation is stating how you convert your old config server without downtime. With only one config server it is of course impossible. And because that, you can keep your config server port number as it was, no need to change it.

– JJussi
Mar 15 '18 at 5:49


















draft saved

draft discarded




















































Thanks for contributing an answer to Database Administrators Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f200202%2fupgrade-single-config-server-to-replica-set%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...