storj/scripts
Jennifer Li Johnson 724bb44723
Remove Kademlia dependencies from Satellite and Storagenode (#2966)
What:

cmd/inspector/main.go: removes kad commands
internal/testplanet/planet.go: Waits for contact chore to finish
satellite/contact/nodesservice.go: creates an empty nodes service implementation
satellite/contact/service.go: implements Local and FetchInfo methods & adds external address config value
satellite/discovery/service.go: replaces kad.FetchInfo with contact.FetchInfo in Refresh() & removes Discover()
satellite/peer.go: sets up contact service and endpoints
storagenode/console/service.go: replaces nodeID with contact.Local()
storagenode/contact/chore.go: replaces routing table with contact service
storagenode/contact/nodesservice.go: creates empty implementation for ping and request info nodes service & implements RequestInfo method
storagenode/contact/service.go: creates a service to return the local node and update its own capacity
storagenode/monitor/monitor.go: uses contact service in place of routing table
storagenode/operator.go: moves operatorconfig from kad into its own setup
storagenode/peer.go: sets up contact service, chore, pingstats and endpoints
satellite/overlay/config.go: changes NodeSelectionConfig.OnlineWindow default to 4hr to allow for accurate repair selection
Removes kademlia setups in:

cmd/storagenode/main.go
cmd/storj-sim/network.go
internal/testplane/planet.go
internal/testplanet/satellite.go
internal/testplanet/storagenode.go
satellite/peer.go
scripts/test-sim-backwards.sh
scripts/testdata/satellite-config.yaml.lock
storagenode/inspector/inspector.go
storagenode/peer.go
storagenode/storagenodedb/database.go
Why: Replacing Kademlia

Please describe the tests:
• internal/testplanet/planet_test.go:

TestBasic: assert that the storagenode can check in with the satellite without any errors
TestContact: test that all nodes get inserted into both satellites' overlay cache during testplanet setup
• satellite/contact/contact_test.go:

TestFetchInfo: Tests that the FetchInfo method returns the correct info
• storagenode/contact/contact_test.go:

TestNodeInfoUpdated: tests that the contact chore updates the node information
TestRequestInfoEndpoint: tests that the Request info endpoint returns the correct info
Please describe the performance impact: Node discovery should be at least slightly more performant since each node connects directly to each satellite and no longer needs to wait for bootstrapping. It probably won't be faster in real time on start up since each node waits a random amount of time (less than 1 hr) to initialize its first connection (jitter).
2019-09-19 15:56:34 -04:00
..
testdata Remove Kademlia dependencies from Satellite and Storagenode (#2966) 2019-09-19 15:56:34 -04:00
waitlist Waitlist script (#573) 2018-11-06 18:43:20 +01:00
atomicalign.go scripts/atomicalign: check for proper alignment for 64bit atomics (#2580) 2019-07-17 09:26:03 -04:00
cert-gating.sh certificates config and --certs-dir fixes (#1093) 2019-01-22 13:35:48 +01:00
check-clean-directory.go jenkins: build and test web/satellite (#2908) 2019-09-05 16:32:46 +03:00
check-copyright.go jenkins: build and test web/satellite (#2908) 2019-09-05 16:32:46 +03:00
check-dbx-version.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
check-errs.go lint: add linting for errs package (#2881) 2019-08-27 19:07:12 +03:00
check-imports.go jenkins: avoid using goimports and distribute load better (#2359) 2019-06-27 21:52:50 +03:00
check-large-files.go Increase file size limit to 650 KB (#3034) 2019-09-12 13:54:44 -04:00
check-mod-tidy.go jenkins: add tidiness checks (#1824) 2019-04-24 18:33:01 +03:00
check-peer-constraints.go Enable architectural constraints (#2650) 2019-08-01 14:20:43 +03:00
check-satellite-config-lock.sh Update Notification Text to new process (#2120) 2019-06-04 22:43:07 -04:00
cover-remove-generated.go cover all the things (#1818) 2019-04-26 16:39:11 +03:00
dependencies_test.go all: enable staticcheck (#2849) 2019-08-22 13:40:15 +02:00
deploy-storagenode.sh storagenode/buildscript: Overwrite existing docker manifest file (#2934) 2019-09-04 18:55:03 +02:00
deploy-watchtower.sh Script for deploying the Docker manifest for watchtower (#3015) 2019-09-12 17:38:48 +03:00
fail-on-race.go Fail integration tests on panic (#1032) 2019-01-11 18:18:16 +02:00
gerrit-cla.py gerrit: add cla 2019-06-19 18:28:53 +00:00
install-awscli.sh Travis with go1.11 and modules (#479) 2018-10-16 20:02:00 +03:00
lockedgen.go satellite: rearrange marketing package (#2268) 2019-06-24 16:51:54 -04:00
protobuf.go scripts/protobuf.go: update drpc version for protobuf generation (#3059) 2019-09-17 13:14:38 -04:00
release.sh Fixing upload and build binaries (#1751) 2019-04-12 13:28:04 -04:00
tag-release.sh scripts/tag-release.sh: libuplink release tagging (#2256) 2019-06-24 19:53:17 +02:00
test-aio.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-aws-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-backwards.sh uplink/satellite: fix for case when inline segment is last one (#3062) 2019-09-19 01:18:14 +02:00
test-certificates.sh pkg/certificates: add authorization endpoint and refactor (#2971) 2019-09-11 10:36:44 +02:00
test-network-stalls.go Test that network stalls don't cause indefinite hangs in uplink (#1530) 2019-03-20 08:58:07 -06:00
test-sim-aws.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-sim-backwards.sh Remove Kademlia dependencies from Satellite and Storagenode (#2966) 2019-09-19 15:56:34 -04:00
test-sim-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-sim.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-uplink.sh uplink/satellite: fix for case when inline segment is last one (#3062) 2019-09-19 01:18:14 +02:00
update-satellite-config-lock.sh scripts: Fix warn message update sat config lock (#3029) 2019-09-12 18:10:22 +02:00
use-ports.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
utils.sh cmd/certificates: auth export improvements & certificates test script (#2897) 2019-09-04 19:58:38 +02:00
xunit.go jenkins: capability to use leakcheck (#2179) 2019-06-21 17:57:38 +03:00