Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to get the number of current servers which are not down from the c++ client
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gmail  
View profile   Translate to Translated (View Original)
 More options Jul 27 2012, 1:37 am
From: gmail <fly...@gmail.com>
Date: Fri, 27 Jul 2012 13:37:42 +0800
Local: Fri, Jul 27 2012 1:37 am
Subject: How to get the number of current servers which are not down from the c++ client

Hi:
when I use replica set , and make w=3 when use the c++ client to insert data , if one of the mongod down ,How to get the number of current servers which are not down from the c++ client ?

gmail


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristina Chodorow  
View profile  
 More options Jul 30 2012, 10:55 am
From: Kristina Chodorow <krist...@10gen.com>
Date: Mon, 30 Jul 2012 07:55:17 -0700 (PDT)
Local: Mon, Jul 30 2012 10:55 am
Subject: Re: How to get the number of current servers which are not down from the c++ client

There's no automatic way.  You would have to call isMaster on the primary
and then try to connect to each of the hosts in the host list.  

That is one reason we have the w="majority" option: it has almost the same
safety properties as w=(total # of members) but will still work if a node
is down.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »