weixin_39792519
2020-12-02 08:45 阅读 0

Debugging oplog hints

The biggest performance bottleneck we're experiencing in our app right not is that oplog is disabled, despite setting up a replica set as described here.

image

It would be great if Kadira drilled down into the reasons for that, e.g. - no MONGO_OPLOG_URL env var - query with limit or skip but without sort - special operators

该提问来源于开源项目:meteorhacks/kadira

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

10条回答 默认 最新

  • weixin_39877898 weixin_39877898 2020-12-02 08:45

    Yes. Dan.

    This is possible with our upcoming query analyzer which hints indexes. I will add this kind of discovery as well.

    On Wednesday, June 11, 2014, Dan Dascalescu notifications.com wrote:

    The biggest performance bottleneck we're experiencing in our app right not is that oplog is disabled. It would be great if Kadira drilled down into the reasons for that, e.g. - no MONGO_OPLOG_URL env var - query with limit or skip but without sort https://github.com/meteor/meteor/issues/1947 - special operators

    — Reply to this email directly or view it on GitHub https://github.com/meteorhacks/kadira/issues/1.

    Arunoda Susiripala I curate Meteor Weekly - Check it out! http://meteorhacks.com/meteor-weekly/?utm_source=email-footer&utm_medium=email&utm_campaign=meteorweekly

    点赞 评论 复制链接分享
  • weixin_39877898 weixin_39877898 2020-12-02 08:45

    I think. we can simply show the reason and how to fix it directly on the trace.

    点赞 评论 复制链接分享
  • weixin_39877898 weixin_39877898 2020-12-02 08:45

    Started to work on this feature: https://github.com/meteorhacks/kadira/tree/check-for-oplog

    点赞 评论 复制链接分享
  • weixin_39792519 weixin_39792519 2020-12-02 08:45

    Awesome! I managed to get oplog working, but it still takes a LOT of time:

    image

    点赞 评论 复制链接分享
  • weixin_39877898 weixin_39877898 2020-12-02 08:45

    Btw.

    Your query takes time Add some relavent indexes

    On Sunday, June 15, 2014, Dan Dascalescu notifications.com wrote:

    Awesome! I managed to get oplog working, but it still takes a LOT of time:

    [image: image] https://cloud.githubusercontent.com/assets/33569/3279735/0d0075d0-f414-11e3-92b4-622e3783769d.png

    — Reply to this email directly or view it on GitHub https://github.com/meteorhacks/kadira/issues/1#issuecomment-46101478.

    Arunoda Susiripala

    http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

    点赞 评论 复制链接分享
  • weixin_39877898 weixin_39877898 2020-12-02 08:45

    Hope, we can close this now: https://kadira.io/academy/optimize-your-app-for-oplog/

    点赞 评论 复制链接分享
  • weixin_39792519 weixin_39792519 2020-12-02 08:45

    Indeed, I needed a composite index, which is now added. Need to check the oplog usage, but let's close for now. Great work on the oplog optimization tips!

    点赞 评论 复制链接分享
  • weixin_39877898 weixin_39877898 2020-12-02 08:45

    Cool. Thanks.

    Arunoda Susiripala

    http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

    On Thu, Jun 19, 2014 at 11:36 PM, Dan Dascalescu notifications.com wrote:

    Closed #1 https://github.com/meteorhacks/kadira/issues/1.

    — Reply to this email directly or view it on GitHub https://github.com/meteorhacks/kadira/issues/1#event-133208201.

    点赞 评论 复制链接分享
  • weixin_39792519 weixin_39792519 2020-12-02 08:45

    BTW, https://kadira.io/blog/ should perhaps include the oplog article?

    点赞 评论 复制链接分享
  • weixin_39877898 weixin_39877898 2020-12-02 08:45

    It's on academy.

    On Friday, June 20, 2014, Dan Dascalescu notifications.com wrote:

    BTW, https://kadira.io/blog/ should perhaps include the oplog article?

    — Reply to this email directly or view it on GitHub https://github.com/meteorhacks/kadira/issues/1#issuecomment-46638215.

    Arunoda Susiripala

    http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

    点赞 评论 复制链接分享

相关推荐