-
Notifications
You must be signed in to change notification settings - Fork 22
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 index counts configurable and disable by default #2070
Conversation
Index count is enabled by default across both ingestion and find server. While we look into how to do it without extensive lock contention make the feature configurable and disable it by default on both ingest and find server.
a392141
to
e9e0b28
Compare
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2070 +/- ##
==========================================
- Coverage 47.95% 47.62% -0.33%
==========================================
Files 94 92 -2
Lines 10306 10266 -40
==========================================
- Hits 4942 4889 -53
- Misses 4790 4810 +20
+ Partials 574 567 -7
☔ View full report in Codecov by Sentry. |
Maybe we just get rid of these counters, if we are going to support unique multihash counts in database. Persisting this is already expensive in a local datastore, because we keep counts per context ID. |
I think from visibility perspective we want both, i.e. globally unique CID count, and unique index record count. The former tells us the number of destinations and the latter tells us how many ways there are to get there. Having said that, if we have to pick the former is perhaps more important to know. Considering the work on measuring the latter, it's worthwhile keeping this capability but optimising it such that it has minimal impact on ingest rate I think. |
One thing that we can do to reduce read contention is to move this out of the info reported providers info, and make it require a separate request or only use the counters to update metrics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets consider removing the counters from the provider info to reduce read contention. Or, at least remove from the single provider read which is used to populate find results.
Index count is enabled by default across both ingestion and find server. While we look into how to do it without extensive lock contention make the feature configurable and disable it by default on both ingest and find server.
Relates to #2062