Skip to content

Mongodb slow query #5805

@chain312

Description

@chain312

SUMMARY

Mongodb slow query

STACKSTORM VERSION

st2 3.7.8, on python 3.8.10

OS, environment, install method

docker deployment

Steps to reproduce the problem

When I input 20,000 pieces of data at a time in a short time, the problem of slow query by mongodb occurs. It takes more than ten seconds to read a piece of data. The cpu of the host where the mongodb container is located is 32G, the memory is 128G, and the utilization rate is not high.
The remaining 80% cpu.
image
Memory remaining 90%
image
Query time
image
Size and number of action _ execution _ scheduling _ queue _ item _ d _ b tables
3f0eb2c465156d3ef40d50ea3e55a01

Expected Results

Mongo read time is reduced so that I can run more action.

Actual Results

I entered 20,000 pieces of data into the playbook.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions