QnaList > Groups > Mongodb-User > Mar 2016
faq

[mongodb-user] Strange 8s Pause In Queries Via Mongos To Sharded Cluster

Hi,
Just configured a new sharded cluster (2 shards, 3 member replSet), 3 cfg, 
1 mongos.  All separate machines, mongos access via node.js on same machine 
using native driver.  All indexes include shard key.  All machines have 
more than enough RAM (16G+) and are on AWS instances with 4+ cores, 
provisioned IOPS at 1k.  Collection size is large (~9M records).  Deployed 
using Mongo Cloud Manager, all traffic between sites running on private VPN 
and traffic path is good with no delays etc.  mongos/application is 
co-located with the primary of each shard and config replSets.  CPU sitting 
at about 99% idle.
With small numbers of transactions we didn't notice.  When we try and 
insert or update large numbers of records (10k at a time) we see one or two 
seconds of activity (~500-600 inserts, ~300 updates) then it stalls for 8 
seconds, then continues on this cadence till the pool of updates/inserts 
have all been done.
During the 8s period there is traffic from mongos to admin.$cfg.  In the 
'8s cadence' file the 'in' and 'out' timestamp lines are just before the 
db.update and on the return from db.update (so the sample log shows that 
the 8s delay is within one update query and response).  This sample is from 
the /data/SimplePayGlobal_mongos_13/mongodb.log log file on the mongos 
machine.
Anyone with any ideas, it's obviously causing a big performance hit when 
the update set is large.
Thanks
Rob
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/070c5424-74e9-4d3c-995c-b57cadd424c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

asked Mar 31 2016 at 19:45

Rob Gillan 's gravatar image



Related discussions

Tagged

Group Mongodb-user

asked Mar 31 2016 at 19:45

active Mar 31 2016 at 19:45

posts:1

users:1

©2013 QnaList.com