Skip to content

When querying a (large) class on a non-existing, parse causes huge amounts of iOPS on Mongo #4327

Closed
@SebC99

Description

@SebC99

Issue Description

I have a collection (parse class) with more than 8M documents in it, and when we make a query on a non-indexed field, or even worse on a non-existing field (by mistake), it leads to huge amount of iOPS on MongoDB instances, which leads to a hang of the parse server becoming unreachable (timeout issues).
When I run the same queries via a mongo shell, it takes some time (around 10-20 seconds) but never leads to those kind of amount of iOPS... whereas it should be the exact same query.

Below is a screen capture of the MongoDB metrics, showing the IOPS peak at 10:54 (corresponding to the parse query), and then the IOPS "non peak" at 11:01, 11:03, 11:06 corresponding to the same query via Mongo Shell (reproduced 3 times to be sure).

MongoDB Metrics

Any idea?

Environment Setup

  • Server

    • parse-server version: 2.6.5
    • Operating System: Amazon Linux
    • Hardware: EC2 M1 Instance
    • Localhost or remote server? AWS (or localhost)
  • Database

    • MongoDB version: 3.4
    • Storage engine: wiredTiger
    • Hardware: EC2 M1 Instances
    • Localhost or remote server? Mongo Atlas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions