Repository navigation
dynamic external ddm peers #911
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
4cc6222
a sketch of dynamic external ddm peers
rcgoodfellow bad4ba1
linux chores
rcgoodfellow 6743700
plumb ddmadm
rcgoodfellow 671c90b
dynamic peer shutdown logic
rcgoodfellow d91e8be
test environment for external peers, various fixes
rcgoodfellow 7a25f46
add tests, fix things uncovered by tests
rcgoodfellow 747d7ba
add combinatorial tests and fix what that surfaced
rcgoodfellow d1bf043
add GET endpoint for external peers
rcgoodfellow bf29b37
plumb stats so they work with dynamic external peers
rcgoodfellow 43a8b77
add redistribution tests and fix issues they uncovered
rcgoodfellow 9eea2ce
allow routes on qsfp through to dpd
rcgoodfellow b900076
limit ext peer removal to ext interfaces, plumb tunables
rcgoodfellow 2ea011a
check for new peers in exchange/init
rcgoodfellow 3d29fe5
remove dupe event channels vec at handler ctx level
rcgoodfellow e9478de
more tunable plumbing
rcgoodfellow ddb1989
linux bs
rcgoodfellow 20cfcc3
plumb dendrite tunable
rcgoodfellow ea4f02d
reject external peers api calls for non-transit routers
rcgoodfellow 067205a
exchange: don't hold lock across underlying tokio ops
rcgoodfellow 257b0e9
extend reach tests to include transit routers
rcgoodfellow 9be4cdb
test that all nexthops are peers
rcgoodfellow 4ba4c1f
close possible shutdown race with pull threads
rcgoodfellow 999fdd6
nicolas' feedback
rcgoodfellow 886ee97
log loop breaking, PUSH->PUT, use sled id as router id
rcgoodfellow 26fcf26
ddmadm: path element per line
rcgoodfellow 182a8df
add an explicit router-id parameter to ddmd
rcgoodfellow 23b7c04
:facepalm:
rcgoodfellow e34fe56
ajs feeback
rcgoodfellow d2bfae3
trey's feedback
rcgoodfellow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
| #: | ||
| #: name = "test-ddm-sextet" | ||
| #: variety = "basic" | ||
| #: target = "helios-3.0" | ||
| #: rust_toolchain = "stable" | ||
| #: output_rules = [ | ||
| #: "/work/*.log", | ||
| #: ] | ||
|
|
||
| source .github/buildomat/test-ddm-common.sh | ||
|
|
||
| # | ||
| # sextet tests | ||
| # | ||
|
|
||
| banner "sextet" | ||
| pfexec cargo test --release -p mg-tests test_external_peer_sextet -- --nocapture |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| // This Source Code Form is subject to the terms of the Mozilla Public | ||
| // License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| // file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
|
||
| pub use ddm_api_types_versions::latest::external_peers::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,4 +19,5 @@ | |
| pub mod admin; | ||
| pub mod db; | ||
| pub mod exchange; | ||
| pub mod external_peers; | ||
| pub mod net; | ||
12 changes: 12 additions & 0 deletions
12
ddm-api-types/versions/src/external_peers/external_peers.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // This Source Code Form is subject to the terms of the Mozilla Public | ||
| // License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| // file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
|
||
| use schemars::JsonSchema; | ||
| use serde::{Deserialize, Serialize}; | ||
| use std::collections::BTreeSet; | ||
|
|
||
| #[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, PartialEq, Eq)] | ||
| pub struct ExternalPeers { | ||
| pub address_objects: BTreeSet<String>, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| // This Source Code Form is subject to the terms of the Mozilla Public | ||
| // License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| // file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
|
||
| pub mod external_peers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.