calling serverStatus() on mongodb replicas returns the same information
up vote
1
down vote
favorite
Calling db.runCommand( serverStatus: 1 )
on mongodb replicas, one would expect to get different metrics from the primary, eg number of connections, replications operations, etc.
However, no matter which node I query, I get the exact same result.
How do I accurately get per node metrics, like connections? It seems like they are being fetched from the primary instead.
mongodb
add a comment |
up vote
1
down vote
favorite
Calling db.runCommand( serverStatus: 1 )
on mongodb replicas, one would expect to get different metrics from the primary, eg number of connections, replications operations, etc.
However, no matter which node I query, I get the exact same result.
How do I accurately get per node metrics, like connections? It seems like they are being fetched from the primary instead.
mongodb
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Calling db.runCommand( serverStatus: 1 )
on mongodb replicas, one would expect to get different metrics from the primary, eg number of connections, replications operations, etc.
However, no matter which node I query, I get the exact same result.
How do I accurately get per node metrics, like connections? It seems like they are being fetched from the primary instead.
mongodb
Calling db.runCommand( serverStatus: 1 )
on mongodb replicas, one would expect to get different metrics from the primary, eg number of connections, replications operations, etc.
However, no matter which node I query, I get the exact same result.
How do I accurately get per node metrics, like connections? It seems like they are being fetched from the primary instead.
mongodb
mongodb
edited Nov 10 at 4:14
lgwilliams
525317
525317
asked Nov 9 at 20:10
pdeva
12.4k36110141
12.4k36110141
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
i found the solution. it was the driver. it was passing information to the primary. i had to modify the connect string to make it talk directly to the replica only.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
i found the solution. it was the driver. it was passing information to the primary. i had to modify the connect string to make it talk directly to the replica only.
add a comment |
up vote
0
down vote
i found the solution. it was the driver. it was passing information to the primary. i had to modify the connect string to make it talk directly to the replica only.
add a comment |
up vote
0
down vote
up vote
0
down vote
i found the solution. it was the driver. it was passing information to the primary. i had to modify the connect string to make it talk directly to the replica only.
i found the solution. it was the driver. it was passing information to the primary. i had to modify the connect string to make it talk directly to the replica only.
answered Nov 10 at 14:36
pdeva
12.4k36110141
12.4k36110141
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232678%2fcalling-serverstatus-on-mongodb-replicas-returns-the-same-information%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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