Commit graph

35 commits

Author SHA1 Message Date
Victor Shyba
068f46d137 don't probe peers too far from the top closest 2022-03-15 15:36:00 -03:00
Victor Shyba
5c60c09fef use a dict for the active queue 2022-03-15 15:36:00 -03:00
Victor Shyba
aca4a243d6 log bottom out of peer search in debug, show short key id for find value 2022-03-15 15:36:00 -03:00
Victor Shyba
c81598aab8 wait until k peers are ready. do not double add peers 2022-03-15 15:36:00 -03:00
Victor Shyba
3f8c8e01c6 only return good (contacted) peers 2022-03-15 15:36:00 -03:00
Victor Shyba
8d90653395 reset closest peer on failure 2022-03-15 15:36:00 -03:00
Victor Shyba
01841694ad add peers from shortlist regardless, but check from other nodes 2022-03-15 15:36:00 -03:00
Victor Shyba
4851f5c300 fix distance sorting and improve logging 2022-03-15 15:36:00 -03:00
Victor Shyba
aef5f11a18 closest peer is only ready when it was contacted and isn't known to be bad 2022-03-15 15:36:00 -03:00
Victor Shyba
700f1cb8e5 dont probe and ignore bad peers 2022-03-15 15:36:00 -03:00
Victor Shyba
7e5f7c1725 simplify, genaralize to any size and fix tests 2022-03-15 15:36:00 -03:00
Victor Shyba
838fd71538 replace duplicated code 2022-03-15 15:36:00 -03:00
Victor Shyba
44e647d85d remove request_flight metric 2022-03-15 15:36:00 -03:00
Victor Shyba
39c2c0b922 change colliding bits metric to gauge 2022-03-15 15:36:00 -03:00
Victor Shyba
dbf11fe750 count bit collisions between 8 and 16 2022-03-15 15:36:00 -03:00
Victor Shyba
cc391324e4 add counter for peers with colliding bytes 2022-03-15 15:36:00 -03:00
Victor Shyba
273b4f6d3b add requests in flight and error 2022-03-15 15:36:00 -03:00
Victor Shyba
d359d25935 add request received 2022-03-15 15:36:00 -03:00
Victor Shyba
645a81cec2 add request_sent and request_time metric on dht 2022-03-15 15:36:00 -03:00
Victor Shyba
692af0cc55 prometheus: move blobs_stored and peers to SDK. add buckets_in_routing_table 2022-03-15 15:36:00 -03:00
Victor Shyba
a866621ccb do not limit DHT results by K, respect max_results 2022-03-15 15:34:09 -03:00
Victor Shyba
b45b87e72d clarify DHT debug logging on key and operation 2022-03-15 15:34:09 -03:00
Victor Shyba
60969e4817 clear cache on test assertions 2022-03-15 15:34:09 -03:00
Victor Shyba
806857c066 download from stored announcements and dont reannounce 2022-03-15 15:34:09 -03:00
Victor Shyba
8d6a7101f6 download from DHT 2022-03-15 15:34:09 -03:00
Victor Shyba
7c1c04674c dont lose results on duplicates, just warn 2022-03-15 15:34:08 -03:00
Victor Shyba
e7b5b82909 dht: use bytes hex/fromhex instead of binascii 2022-03-15 15:34:07 -03:00
Victor Shyba
a237cbd963 add dht seed node script 2022-03-15 15:34:07 -03:00
Lex Berezhny
dc1d9e1c84 upgrade pylint and fix lint errors 2021-08-20 22:36:35 -04:00
Victor Shyba
0b52d2cc15 log invalid port as a warning instead of an exception 2021-08-03 15:29:52 -03:00
Jack Robison
6a0302fec6
fix uncaught dht DecodeError 2020-05-25 10:23:11 -04:00
Victor Shyba
c7f391ca44 lint: finish dht parts 2020-01-03 03:08:15 -05:00
Victor Shyba
20c46677d0 lint dht: datastore protocol 2020-01-03 03:08:15 -05:00
Victor Shyba
10fbce056b dht constants -> CONSTANTS (linting) 2020-01-03 03:08:15 -05:00
Lex Berezhny
2968f74c6c moved lbry up one level 2020-01-01 15:57:56 -05:00