storj/satellite/satellitedb
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
..
dbx filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
satellitedbtest Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00
testdata filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
apikeys.go Add console to satellite peer (#1120) 2019-01-24 18:26:36 +02:00
bandwidthagreement.go Repair queue isolation level fix (#1466) 2019-03-14 17:12:47 -04:00
bucketusage.go Bucket usage info rollup table creation and implementation (#1340) 2019-03-06 17:54:48 +02:00
certdb.go fix saving uplink public key on satellite (#1797) 2019-04-23 15:48:57 -04:00
consoledb_test.go Console postgres tests (#1188) 2019-01-31 15:01:13 +02:00
consoledb.go ResetPassword Table and all CRUD methods. (#1916) 2019-05-13 18:53:52 +03:00
containment.go adds db layer functions for containment (#1972) 2019-05-22 10:50:22 -04:00
database.go adds db layer functions for containment (#1972) 2019-05-22 10:50:22 -04:00
irreparabledb.go remove utils.CombineErrors and utils.ErrorGroup (#1603) 2019-03-29 14:30:23 +02:00
locked.go adds db layer functions for containment (#1972) 2019-05-22 10:50:22 -04:00
lockedtx.go ConsoleDB merge and buckets table creation (#1066) 2019-01-16 15:23:28 -05:00
migrate_postgres_test.go cover all the things (#1818) 2019-04-26 16:39:11 +03:00
migrate.go filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
orders.go Remove bw from tally service + query bandwidth in rollup service (#1618) 2019-04-04 11:20:59 -04:00
overlaycache.go filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
projectaccounting.go Refactor accountingdb interface (#1897) 2019-05-10 15:05:42 -04:00
projectmembers_test.go V3-1307 combine first and last name to full name (#1569) 2019-03-27 14:33:32 +02:00
projectmembers.go fix error handling in GetByProjectID (#1604) 2019-03-29 14:55:05 +02:00
projects_test.go Console postgres tests (#1188) 2019-01-31 15:01:13 +02:00
projects.go remove utils.CombineErrors and utils.ErrorGroup (#1603) 2019-03-29 14:30:23 +02:00
regtokens.go V3-1319 Add an authorization token field for account creation backend (#1492) 2019-03-19 19:55:43 +02:00
repairqueue.go using DB time only (#2018) 2019-05-21 12:50:55 -04:00
resetpasstokens.go ResetPassword Table and all CRUD methods. (#1916) 2019-05-13 18:53:52 +03:00
storagenodeaccounting.go Refactor accountingdb interface (#1897) 2019-05-10 15:05:42 -04:00
usagerollups.go Console buckets page (#1847) 2019-05-16 13:43:46 +03:00
users_test.go V3-1307 combine first and last name to full name (#1569) 2019-03-27 14:33:32 +02:00
users.go V3-1307 combine first and last name to full name (#1569) 2019-03-27 14:33:32 +02:00
utils_test.go Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00
utils.go Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00