-
Notifications
You must be signed in to change notification settings - Fork 25
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
Verify and document per-connection resource requirements #735
Labels
Comments
This was referenced Jan 6, 2020
See #618 for some thoughts about the current global cache in the ImmutableDB. |
That's right @nfrisby. For the default configuration for an SPO: 20 hot peers (3 or 4 fd's per connection), 50 warm peers (1 fd per connection), gives a sane number fd's. If we have a formula how to compute number of fd's per peer (which might be upstream, downstream or both), we could use it to:
|
Possibly related to #20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resources, e.g., open file handles or cached index files, should be per-client as opposed to global/shared, as it will make it easier to estimate how many resources we will need in practice. The goal is to reject new clients instead of running out of resources while trying to serve a new client. Another guiding principle: the worst case should be as good as the average case.
Document how many resources a client needs:
We can still have some bounded shared resources to optimise things.
Besides documenting the upper bound of resources each server will need, we should also verify this. We can use the
ResourceRegistry
for this: create aResourceRegistry
for each server (or, with support from the network, one registry per client), and limit the number of resources it can acquire at the same time.The text was updated successfully, but these errors were encountered: