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

Improve peer uptime metrics calculation by checking reliable public domains #2708

Open
dilshat opened this issue Nov 8, 2018 · 3 comments
Open

Comments

@dilshat
Copy link
Member

dilshat commented Nov 8, 2018

We can periodically check public domains such as google.com and a few others and report results to Bazaar.
Based on this Bazaar can calculate peer uptime better

@dilshat
Copy link
Member Author

dilshat commented Nov 8, 2018

by @niclash :

Point is basically to report availability over a much longer period than the reporting interval to Bazaar.
For instance, in the metrics, provide availability for last 24 hours, 7 days and 1 month.
And Bazaar can choose how to present that, but otherwise doesn't need to rely on heartbeats
Because it is more likely that Bazaar is down

@dilshat
Copy link
Member Author

dilshat commented Nov 8, 2018

@dilshat dilshat self-assigned this Nov 13, 2018
@dilshat dilshat added this to the 8.0.3 milestone Nov 15, 2018
@dilshat
Copy link
Member Author

dilshat commented Dec 14, 2018

This approach has potential problems. Malicious user can edit /etc/hosts file and setup local counterparts of such public servers to respond. Instead of this, would not it be better to have Bazaar send ping commands to a random public server known only to Bazaar or rely on heartbeats to determine peer availability?

@dilshat dilshat removed this from the 8.0.3 milestone Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant