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
Logging related information
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
 
Russell Smith  
View profile  
 More options Oct 5 2012, 2:27 am
From: Russell Smith <r...@rainforestapp.com>
Date: Thu, 4 Oct 2012 23:27:37 -0700
Local: Fri, Oct 5 2012 2:27 am
Subject: Re: [mongodb-user] Logging related information
Well, you can get where the chunks are and the ranges for the keys from the config servers directly, however I guess you've seen this already. I would think you can do this with mongosniff for each of the shards, however it's a little hacky.

However, if your queries modify data, if would suggest reading it back directly from each replica set looking for a match - this would be really easy. Once you know which shard it hit you can work out the exact chunk from the config server data.

Russ
Rainforest  |  +1-650-919-3216 |  rainforestqa.com

On Oct 4, 2012, at 11:04 PM, Mainak Ghosh <famousmai...@gmail.com> wrote:


 
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.
Mainak Ghosh  
View profile  
 More options Oct 5 2012, 11:33 am
From: Mainak Ghosh <famousmai...@gmail.com>
Date: Fri, 5 Oct 2012 08:33:52 -0700 (PDT)
Local: Fri, Oct 5 2012 11:33 am
Subject: Re: [mongodb-user] Logging related information

Hi,

Thanks Russ. So the problem is I am generating the query and insert (no
update) operation from a script. Now as the script runs MongoDB will do its
balancing stuff. During this scripts' execution I want to capture the shard
hit information for every read query executed. Now the script is a blackbox
to me and I cannot change it. Do you think I can use mongosniff somehow in
that case as well? I had changed mongodb's logging to be verbose but it did
not help. I am not completely sure Mongo logs this information at all. For
mongosniff I have to use the diagnostic logging functionality I believe.
How can I do that without taking the mongo deployment down?

Thanks and Regards,
Mainak.


 
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.
Russell Smith  
View profile  
 More options Oct 5 2012, 11:59 am
From: Russell Smith <r...@rainforestapp.com>
Date: Fri, 5 Oct 2012 08:58:34 -0700
Local: Fri, Oct 5 2012 11:58 am
Subject: Re: [mongodb-user] Logging related information
Hi Mainak,

You could by connecting a new mongos and making the script go through that. You should then be able to see where it's connecting to. If there are lots of queries you'll probably want to modify mongosniff to log to disk in a nicer format though.

May I ask what you're trying to achieve with this? Working out which chunks are hottest?

Russ
Rainforest  |  +1-650-919-3216 |  rainforestqa.com

On Oct 5, 2012, at 8:33 AM, Mainak Ghosh <famousmai...@gmail.com> wrote:


 
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.
Russell Smith  
View profile  
 More options Oct 5 2012, 12:00 pm
From: Russell Smith <r...@rainforestapp.com>
Date: Fri, 5 Oct 2012 08:59:41 -0700
Local: Fri, Oct 5 2012 11:59 am
Subject: Re: [mongodb-user] Logging related information
Hi Mainak,

You could by connecting a new mongos and making the script go through that. You should then be able to see where it's connecting to. If there are lots of queries you'll probably want to modify mongosniff to log to disk in a nicer format though.

May I ask what you're trying to achieve with this? Working out which chunks are hottest?

Russ
Rainforest  |  +1-650-919-3216 |  rainforestqa.com

On Oct 5, 2012, at 8:33 AM, Mainak Ghosh <famousmai...@gmail.com> wrote:


 
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.
Mainak Ghosh  
View profile  
 More options Oct 5 2012, 12:10 pm
From: Mainak Ghosh <famousmai...@gmail.com>
Date: Fri, 5 Oct 2012 11:10:17 -0500
Local: Fri, Oct 5 2012 12:10 pm
Subject: Re: [mongodb-user] Logging related information

Hi Russel,

I am planning to use MongoDB for heavy data and before starting out I want
to tests its performance. This is a part of that.

I am new to MongoDB so first thanks for your help. It is giving me a
direction to go to. Though I completely do not understand this mongosniff
technique. Can you please break it down a bit further?

Thanks and Regards,
Mainak.

--
Mainak Ghosh

 
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.
Russell Smith  
View profile  
 More options Oct 5 2012, 12:16 pm
From: Russell Smith <r...@rainforestapp.com>
Date: Fri, 5 Oct 2012 09:16:18 -0700
Local: Fri, Oct 5 2012 12:16 pm
Subject: Re: [mongodb-user] Logging related information
http://www.mongodb.org/display/DOCS/mongosniff

It's like tcp dump but specifically for the mongo protocol. You'd need to set it up to forward mongo connections and then watch / process the output of where things were going. There may be a way of getting this from mongos directly (as it's doing the routing) but if there is I can't find it / don't know of it.

Russ
Rainforest  |  +1-650-919-3216 |  rainforestqa.com

On Oct 5, 2012, at 9:10 AM, Mainak Ghosh <famousmai...@gmail.com> wrote:


 
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 »