Skip to content

Limiting resources while building search indexes #332

Description

@FoxxMD

My instance runs on a machine with less than the recommended cpu cores (4-5 vcpu). It takes about 12 hours to rebuild search indexes using python -m sir reindex right now.

However, my instance is also very low traffic. I don't mind that it takes so long but what I do care about it saturating all my cores for 12 hours while also trying to serve requests.

Is it possible to limit the number of cores or overall cpu usage used by reindex? I'd prefer to be able to limit it to 80% of total cpu even if it means longer reindexing times, so that my server is still responding in a reasonable amount of time to requests. I see there are some options in indexer.ini but I don't know what, if anything, should be modified here.

Thanks

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