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
Message from discussion Querying Sharded and Replicated System

Received: by 10.52.21.68 with SMTP id t4mr26447120vde.8.1335802427110;
        Mon, 30 Apr 2012 09:13:47 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.220.155.137 with SMTP id s9ls1279019vcw.3.gmail; Mon, 30 Apr
 2012 09:13:38 -0700 (PDT)
Received: by 10.52.21.83 with SMTP id t19mr456083vde.18.1335802418640;
        Mon, 30 Apr 2012 09:13:38 -0700 (PDT)
Date: Mon, 30 Apr 2012 09:13:38 -0700 (PDT)
From: Ed Brown <edbrownv...@gmail.com>
To: mongodb-user@googlegroups.com
Message-ID: <13222428.834.1335802418299.JavaMail.geo-discussion-forums@ynjj16>
In-Reply-To: <CA+BGGQq9iF-a16FoVrYxuhjT=SkDOmD-RSx4B4SiAy4S83upxA@mail.gmail.com>
References: <30076218.735.1335742852320.JavaMail.geo-discussion-forums@yny11>
 <CA+BGGQq9iF-a16FoVrYxuhjT=SkDOmD-RSx4B4SiAy4S83upxA@mail.gmail.com>
Subject: Re: [mongodb-user] Querying Sharded and Replicated System
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_832_2284842.1335802418297"

------=_Part_832_2284842.1335802418297
Content-Type: multipart/alternative; 
	boundary="----=_Part_833_15084010.1335802418297"

------=_Part_833_15084010.1335802418297
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit



On Sunday, April 29, 2012 8:10:31 PM UTC-4, Max Schireson wrote:
>
> http://www.mongodb.org/display/DOCS/Connecting+to+Replica+Sets+from+Clients
>
> You don't need a mongos unless you are sharding. Details vary with he 
> driver you are using.
>

That's my question, I am sharding. So I understand that I need the mongos, 
but do I need the mongos on the replicated servers to be able to query the 
secondary or will mongos handle querying the secondary if I specify 
"slaveOK"?


-- Max
> On Apr 29, 2012 4:40 PM, "Ed Brown" <edbrownv...@gmail.com> wrote:
>
>> I have a Mongo system set up so that it is sharded and contains a replica 
>> set. I want to load documents into the primary and query against the 
>> secondary. Do I need to have "mongos" processes for both the primary and 
>> the secondary system or do I just have mongos processes for the primary and 
>> when I  want to query, I specify "slaveOK"?
>>
>> Thanks.
>>
>> ---
>> Ed Brown
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "mongodb-user" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/mongodb-user/-/ZppwBoX_mfAJ.
>> To post to this group, send email to mongodb-user@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> mongodb-user+unsubscribe@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/mongodb-user?hl=en.
>>
>
On Sunday, April 29, 2012 8:10:31 PM UTC-4, Max Schireson wrote:
>
> http://www.mongodb.org/display/DOCS/Connecting+to+Replica+Sets+from+Clients
>
> You don't need a mongos unless you are sharding. Details vary with he 
> driver you are using.
>
> -- Max
> On Apr 29, 2012 4:40 PM, "Ed Brown" <edbrownv...@gmail.com> wrote:
>
>> I have a Mongo system set up so that it is sharded and contains a replica 
>> set. I want to load documents into the primary and query against the 
>> secondary. Do I need to have "mongos" processes for both the primary and 
>> the secondary system or do I just have mongos processes for the primary and 
>> when I  want to query, I specify "slaveOK"?
>>
>> Thanks.
>>
>> ---
>> Ed Brown
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "mongodb-user" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/mongodb-user/-/ZppwBoX_mfAJ.
>> To post to this group, send email to mongodb-user@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> mongodb-user+unsubscribe@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/mongodb-user?hl=en.
>>
>
------=_Part_833_15084010.1335802418297
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<br><br>On Sunday, April 29, 2012 8:10:31 PM UTC-4, Max Schireson wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><p><a href="http://www.mongodb.org/display/DOCS/Connecting+to+Replica+Sets+from+Clients" target="_blank">http://www.mongodb.org/<wbr>display/DOCS/Connecting+to+<wbr>Replica+Sets+from+Clients</a></p>
<p>You don't need a mongos unless you are sharding. Details vary with he driver you are using.</p></blockquote><div><br></div><div>That's my question, I am sharding. So I understand that I need the mongos, but do I need the mongos on the replicated servers to be able to query the secondary or will mongos handle querying the secondary if I specify "slaveOK"?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<p>-- Max</p>
<div class="gmail_quote">On Apr 29, 2012 4:40 PM, "Ed Brown" &lt;<a href="mailto:edbrownv...@gmail.com" target="_blank">edbrownv...@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a Mongo system set up so that it is sharded and contains a replica set. I want to load documents into the primary and query against the secondary. Do I need to have "mongos" processes for both the primary and the secondary system or do I just have mongos processes for the primary and when I &nbsp;want to query, I specify "slaveOK"?<div>
<br></div><div>Thanks.</div><div><br></div><div>---</div><div>Ed Brown</div><div><br></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "mongodb-user" group.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/mongodb-user/-/ZppwBoX_mfAJ" target="_blank">https://groups.google.com/d/<wbr>msg/mongodb-user/-/ZppwBoX_<wbr>mfAJ</a>.<br> 
To post to this group, send email to <a href="mailto:mongodb-user@googlegroups.com" target="_blank">mongodb-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:mongodb-user%2Bunsubscribe@googlegroups.com" target="_blank">mongodb-user+unsubscribe@<wbr>googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/mongodb-user?hl=en" target="_blank">http://groups.google.com/<wbr>group/mongodb-user?hl=en</a>.<br>


</blockquote></div>
</blockquote><br>On Sunday, April 29, 2012 8:10:31 PM UTC-4, Max Schireson wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><p><a href="http://www.mongodb.org/display/DOCS/Connecting+to+Replica+Sets+from+Clients" target="_blank">http://www.mongodb.org/<wbr>display/DOCS/Connecting+to+<wbr>Replica+Sets+from+Clients</a></p>
<p>You don't need a mongos unless you are sharding. Details vary with he driver you are using.</p>
<p>-- Max</p>
<div class="gmail_quote">On Apr 29, 2012 4:40 PM, "Ed Brown" &lt;<a href="mailto:edbrownv...@gmail.com" target="_blank">edbrownv...@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a Mongo system set up so that it is sharded and contains a replica set. I want to load documents into the primary and query against the secondary. Do I need to have "mongos" processes for both the primary and the secondary system or do I just have mongos processes for the primary and when I &nbsp;want to query, I specify "slaveOK"?<div>
<br></div><div>Thanks.</div><div><br></div><div>---</div><div>Ed Brown</div><div><br></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "mongodb-user" group.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msg/mongodb-user/-/ZppwBoX_mfAJ" target="_blank">https://groups.google.com/d/<wbr>msg/mongodb-user/-/ZppwBoX_<wbr>mfAJ</a>.<br> 
To post to this group, send email to <a href="mailto:mongodb-user@googlegroups.com" target="_blank">mongodb-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:mongodb-user%2Bunsubscribe@googlegroups.com" target="_blank">mongodb-user+unsubscribe@<wbr>googlegroups.com</a>.<br>

For more options, visit this group at <a href="http://groups.google.com/group/mongodb-user?hl=en" target="_blank">http://groups.google.com/<wbr>group/mongodb-user?hl=en</a>.<br>


</blockquote></div>
</blockquote>
------=_Part_833_15084010.1335802418297--

------=_Part_832_2284842.1335802418297--