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

Separate requests for certain sets of CIDs in wantlist-client #3

Open
mrd0ll4r opened this issue Nov 11, 2021 · 0 comments
Open

Separate requests for certain sets of CIDs in wantlist-client #3

mrd0ll4r opened this issue Nov 11, 2021 · 0 comments

Comments

@mrd0ll4r
Copy link
Member

We should have some system to add sets of CIDs to the wantlist-client such that wantlist entries for them get tagged in prometheus.

I'm thinking of maybe a system that watches a given directory and reads lists of CIDs from files.
Something like:

...
+-- watched-dir
     |-- nft.cids.list 
     |-- libgen.cids.list    
     |...
     +-- foo.cids.list

And we tag them in prometheus based on the file name, nft, libgen, etc.
Everything that doesn't match gets some other tag (or none?)

For now we can probably store them (as bytes) in a HashMap.
If things get big (> 1M tracked CIDs, back of the envelope calculation) we could think of something more fancy :)

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