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

Expose an endpoint to return estimate of total unique keys in cid.contact #156

Open
masih opened this issue Sep 14, 2023 · 0 comments
Open

Comments

@masih
Copy link
Member

masih commented Sep 14, 2023

Pebble exposes key count estimation, which is exposed via Pebble store implementation API.

Indexstar already knows about all of dhstore instances, configured as --backend.

Expose an endpoint in indestar /stats to return the total number of unique pebble keys. Make sure to cache the requests to pebble, since getting the estimated count is expensive. So indexstar should cache the response of /stats and update as needed with expiry of 30 minutes or so.

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