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
Hidden members and Sharding
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
  6 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
 
Jeremy Wilson  
View profile   Translate to Translated (View Original)
 More options Jul 11 2012, 11:36 am
From: Jeremy Wilson <JWil...@keek.com>
Date: Wed, 11 Jul 2012 15:36:31 +0000
Local: Wed, Jul 11 2012 11:36 am
Subject: Hidden members and Sharding
I'd like to have an analytics replica in my setup, but I don't see how it's possible to have hidden and sharding, since mongos connects to the full replica set.

Hidden works in a single replica set situation, but when it's sharded, how can I connect to the hidden shards?


 
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.
William Z  
View profile  
 More options Jul 12 2012, 5:39 pm
From: William Z <william.z...@10gen.com>
Date: Thu, 12 Jul 2012 14:39:51 -0700 (PDT)
Local: Thurs, Jul 12 2012 5:39 pm
Subject: Re: Hidden members and Sharding

Hi Jeremy!

Unfortunately, it's not possible to query a hidden replica set member with
a sharded cluster in the current production version of MongoDB (v 2.0.6).  

In that version, the best that you can do is issue your queries with the
'SlaveOK' flag set.  This will serve as a hint to 'mongos' that it can
safely route your query to one of the secondary members of the replica
set.  

New support for "Read Tagging" is currently in development for the upcoming
release of MongoDB.  This is an extension of the existing support for
"Write Tagging".  

The current support for "Write Tagging" allows you to tag individual
members of a Replica Set.  Once you've done that, you can use special
options on the Write Concern to specify which replica set members
(actually, which tags) you'd like the write to be directed to.  

You can read more about "Write Tagging" here:
 -
http://www.mongodb.org/display/DOCS/Data+Center+Awareness#DataCenterA...

The upcoming support for "Read Tagging" will extend this functionality to
reads.  Once your MongoDB driver has been extended to support "Read
Tagging", you will be able to direct your read to a particular set of
tagged replica set members, even when you're using a sharded cluster.

The Jira issues that cover this are:
 - https://jira.mongodb.org/browse/SERVER-3358
 - https://jira.mongodb.org/browse/SERVER-4464

Please feel free to add yourself as a follower on these issues.

Let me know if you have further questions.

 -William


 
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.
Shi Shei  
View profile  
 More options Oct 5 2012, 1:22 pm
From: Shi Shei <QTRAURFUI...@spammotel.com>
Date: Fri, 5 Oct 2012 10:22:30 -0700 (PDT)
Local: Fri, Oct 5 2012 1:22 pm
Subject: Re: Hidden members and Sharding

> you will be able to direct your read to a particular set of tagged

replica set members, even when you're using a sharded cluster.

Is this true even for a hidden member (using v2.2.0)?


 
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.
William Zola  
View profile  
 More options Oct 5 2012, 11:11 pm
From: William Zola <william.z...@10gen.com>
Date: Fri, 5 Oct 2012 20:11:42 -0700 (PDT)
Local: Fri, Oct 5 2012 11:11 pm
Subject: Re: Hidden members and Sharding

Using 2.2.0, you cannot direct reads from a sharded cluster to go to a
hidden member.  

What you *can* do in 2.2.0 is to tag a particular set of nodes with a
particular tag, and direct a read to only go to those nodes.

-William


 
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.
Shi Shei  
View profile   Translate to Translated (View Original)
 More options Oct 9 2012, 10:42 am
From: Shi Shei <QTRAURFUI...@spammotel.com>
Date: Tue, 9 Oct 2012 07:42:14 -0700 (PDT)
Local: Tues, Oct 9 2012 10:42 am
Subject: Re: Hidden members and Sharding

Thanks William!
However, this means that hidden members are nearly useless in a sharded
system since they can't be reached going through mongos.
They could only be of use when connected directly to them but I don't see
many use cases for this. You could hide the member perhaps for redundancy
reasons or making backups.


 
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.
William Zola  
View profile  
 More options Oct 9 2012, 1:05 pm
From: William Zola <william.z...@10gen.com>
Date: Tue, 9 Oct 2012 10:05:01 -0700 (PDT)
Local: Tues, Oct 9 2012 1:05 pm
Subject: Re: Hidden members and Sharding

Hi Shi!

On Tuesday, October 9, 2012 7:42:14 AM UTC-7, Shi Shei wrote:

> Thanks William!
> However, this means that hidden members are nearly useless in a sharded
> system since they can't be reached going through mongos.
> They could only be of use when connected directly to them but I don't see
> many use cases for this. You could hide the member perhaps for redundancy
> reasons or making backups.

You are absolutely correct.

 -William


 
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 »