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

fix(enginenetx): periodically trim statistics #1317

Merged
merged 17 commits into from
Sep 27, 2023
Merged

fix(enginenetx): periodically trim statistics #1317

merged 17 commits into from
Sep 27, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Sep 27, 2023

If we're running the enginenetx code inside an environment that sprays ~random IP addresses during DNS lookup, we're going to end up using quite a large amount of statistics. While this amount of statistics could potentially be great in general, we need to be mindful of memory and disk occupation as well as of the overhead of serializing and deserializing.

To address these concerns, add the arbitrary rule that we don't want more than ten domain-endpoint entries and implement code to zap old and/or always-failing entries. The code will run when loading the entries, when serializing them, and periodically while the *Network is up and running.

See ooni/probe#2531

If we're running the enginenetx code inside an environment that
sprays ~random IP addresses during DNS lookup, we're going to end
up using quite a large amount of statistics.

While this amount of statistics could potentially be great in
general, we need to be mindful of memory and disk occupation as
well as of the overhead of serializing and deserializing.

To address these concerns, add the arbitrary rule that we don't
want more than ten domain-endpoint entries and implement code to
zap old and/or always-failing entries.

The code will run when loading the entries, when serializing them,
and periodically while the `*Network` is up and running.

See ooni/probe#2531
@bassosimone bassosimone merged commit 47f5952 into master Sep 27, 2023
@bassosimone bassosimone deleted the issue/2531 branch September 27, 2023 12:06
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
If we're running the enginenetx code inside an environment that sprays
~random IP addresses during DNS lookup, we're going to end up using
quite a large amount of statistics. While this amount of statistics
could potentially be great in general, we need to be mindful of memory
and disk occupation as well as of the overhead of serializing and
deserializing.

To address these concerns, add the arbitrary rule that we don't want
more than ten domain-endpoint entries and implement code to zap old
and/or always-failing entries. The code will run when loading the
entries, when serializing them, and periodically while the `*Network` is
up and running.

See ooni/probe#2531
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