storj/internal/testplanet
Cameron 4058c29ca4
filter duplicate node IPs (#1890)
* add last_ip field to dbx model node, generate dbx

* add last_ip to node proto, generate pb

* migrate

* resolve address in transport.DialNode, update lastIp in cache.UpdateAddress

* use net.SplitHostPort to isolate host address from port

* define DistinctIPs flag

* add test for GetIP

* select last_ip when querying for nodes

* if distinctIPs flag == true, query for nodes with distinct IPs

* some basic tests

* change last_ip to field 14 in proto

* remove comments

* check err

* change distinctIPs to distinctIP

* exclude IPs from newNodes in query for reputable nodes

* add index on last_ip

* only add to excludedIPs if flag is true

* test half new nodes returns distinct IPs

* fix alignment

* add test

* rework ip filter query, add retry logic, add switch for database driver

* add retry to SelectNewNodes

* change discovery intervals so IPs don't get overwritten

* remove TestGetIP

* edit updating node stats in test

* split exclude into nodeIDs and IPs

* separate non-distinct IP query into other function

* trigger checks

* remove else block
2019-05-22 16:06:27 -04:00
..
planet_test.go Refactor pb.Node protobuf (#1785) 2019-04-22 12:07:50 +03:00
planet.go filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
reconfigure.go dial node/address with bad server cert (#1342) 2019-02-26 19:35:16 +01:00
run_test.go Ensure that tally tests run against postgres (#1227) 2019-02-05 16:23:45 +02:00
run.go Refactor pb.Node protobuf (#1785) 2019-04-22 12:07:50 +03:00
uplink_test.go Download is hanging when one node is not responsive (#1764) 2019-04-25 10:17:26 +02:00
uplink.go transport: separate dial from request timeouts (#1940) 2019-05-10 14:26:25 +03:00