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

Add support for resource management #81

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Conversation

markgoddard
Copy link

Adds CLI arguments to specify limits for:

  • S3 connections
  • Memory (bytes)
  • Threads used for CPU bound tasks (when not using Rayon)

This allows us to control the resource usage of the server and helps to
avoid exceeding open file limits, overloading upstream object stores,
and running out of memory. Currently these limits must be specified
manually.

The memory limit is fairly rough, and currently only accounts for the
size of the data returned from the S3 object
store. It does not account for decompressed data which may be larger
than the compressed size, nor does it account for operations such as
deshuffling which may require a second buffer of the same size.

Adds CLI arguments to specify limits for:

* S3 connections
* Memory (bytes)
* Threads used for CPU bound tasks (when not using Rayon)

This allows us to control the resource usage of the server and helps to
avoid exceeding open file limits, overloading upstream object stores,
and running out of memory. Currently these limits must be specified
manually.

The memory limit is fairly rough, and currently only accounts for the
size of the data returned from the S3 object
store. It does not account for decompressed data which may be larger
than the compressed size, nor does it account for operations such as
deshuffling which may require a second buffer of the same size.
@markgoddard markgoddard self-assigned this Sep 22, 2023
@markgoddard markgoddard merged commit b832823 into main Sep 22, 2023
@markgoddard markgoddard deleted the resource-management branch September 22, 2023 11:16
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

Successfully merging this pull request may close these issues.

1 participant