mongodb-replica-set


MongoDB: Adding member to replica set triggers election in 3.2.11?


What are the scenarios that cause mongodb to trigger an election on rs.add()?
In version 3.2.11, I have seen multiple times that adding/removing member to replica set does not trigger an election.
Contrary, in version 2.6, most of the times on rs.add()/rs.remove() calls would trigger election.
From docs, rs.add() can, in some cases, trigger an election.
What are the possible situations that may trigger an election? How can I completely avoid the election during rs.add()?
PS: There are some scenarios where we don't want an election to be triggered.
Election is triggered at least in scenario when you include "priority" information with node name.

Related Links

MongoDB: Adding member to replica set triggers election in 3.2.11?
504 Gateway Time-out Error in Mongo Replica set

Categories

HOME
url
teradata
openacc
snappy
bigtable
c++builder
okhttp3
opc-ua
artifactory
markdown
handlebars.js
spring-data-solr
jpql
dynamics-crm-2011
desktop-application
swift3.1
infopath
dompdf
indri
project-structure
glibc
bootstrap-datetimepicker
bug-reporting
connection-pooling
gulp-jshint
resx
request-uri
spring-data-gemfire
mobile-development
ios-autolayout
qt-designer
scene7
imageprocessor
apache-falcon
extern
socketcluster
datagridviewcombobox
colorbox
reqif
jenkins-2
activeandroid
runner
beanshell
playframework-2.3
sqlproj
cherry-pick
nsoperationqueue
razorengine
mod
factorization
jersey-test-framework
android-contentresolver
ruby-1.8.7
tvp
self-join
om
identifying
cloud-storage
avd
genome
parseexception
api-eveonline
scjp
switchpreference
dateadd
connections
mdp
ojb
usersettings
dynamic-expresso
exi
windows-scheduler
gwt2
pageload
antixsslibrary
expresso-store
erlide
nude.js
reflexil
wxperl
inserthtml
wdm
lightopenid
cinder
text-manipulation
dongle
uccapi
lts
script-tag
user-preferences

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App