Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make program enrolment batch size configurable #628

Open
kneckinator opened this issue Oct 15, 2024 · 0 comments
Open

Make program enrolment batch size configurable #628

kneckinator opened this issue Oct 15, 2024 · 0 comments

Comments

@kneckinator
Copy link
Contributor

kneckinator commented Oct 15, 2024

To ensure that the OpenSPP can be tuned better to a given hardware, the batch size of the enrolment job should be configurable.
Today, it is hard-coded to 10,000.

Making this configurable will ensure that we can run multiple batches in parallel without causing MemoryErrors, while at the same time benefitting from good throughput and allowing enrolments into multiple programs to happen in parallel.

The configuration should be done through an environment variable, which is read as the server starts. This allows for DevOps to tune this setting without having access to the OpenSPP web interface, and without redeploying any files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant