-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat/cmds: hide peers info default in bitswap stat #5820
feat/cmds: hide peers info default in bitswap stat #5820
Conversation
eff877f
to
52534b6
Compare
In theory, I completely agree with this. Unfortunately, in practice, it changes a long-standing stable interface. @whyrusleeping thoughts? At the moment, this command is kind of painful due to this issue. |
I pretty much always pipe this command to That said, 'bitswap partners' are really supposed to just be peers we are 'actively' trading data with. 'every peer you are connected to' really shouldnt be in that list.. |
maybe for now, default verbose to true, that way we can use I'm also not against this change as is, but if we go forward with it, we should do a bit of due dilligence to see if anyone is parsing the output of this command and using it for something |
I'd suggest not changing the default. It seems monitoring/troubleshooting related and therefore the kind of thing that people might well call in a script (like to check the health of their cluster or something). And because it's a little bit arcane it seems like marginal benefit for a change that's hard to estimate the impact of. |
So, as long as we don't change the json output, we should mitigate the damage (although yes, someone is probably parsing the text...). Maybe a solution is to just fix this by only showing real bitswap peers. We can probably record a simple "active" refcount for each peer. However, that will have to wait until the current bitswap refactor is done. |
👍 Interesting.
Flip-flop'ing here but if we're comfortable changing the default behavior in the future, and it has little (no?) worth now, maybe it's actually better to merge this and we'll improve the bitswap peers listing when we get to it. I guess right now this is roughly equivalent to I can imagine lots of per-peer bitswap stats that might be neat but that would definitely change the json. |
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.
I've done some soul searching on this and, really, I don't think anyone will complain about this change. We're changing what is effectively a debugging interface (which not even the webui uses.
Everyone here seems quite happy because ipfs bitswap stat
currently sucks so, (yolo).
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
52534b6
to
ca4ba6c
Compare
Fixed: #5763
License: MIT
Signed-off-by: Overbool overbool.xu@gmail.com