-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: Decompose the pool and balancer crates
* Pool::update_pool is replaced with a narrower API: * Avoids need for unneeded allocations; * Slightly modifies the p2c endpoint update metrics, removing the DNE label. * Split up crates: * Move the pool trait to a minimal crate * Move the balancer's P2cPool types into a library crate * Rename NewBalancePeakEwma to NewBalance
- Loading branch information
Showing
26 changed files
with
494 additions
and
461 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,9 @@ | ||
[package] | ||
name = "linkerd-pool" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[dependencies] | ||
tower-service = "0.3" |
This file contains 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,34 @@ | ||
[package] | ||
name = "linkerd-pool-p2c" | ||
version = "0.1.0" | ||
authors = ["Linkerd Developers <[email protected]>"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[dependencies] | ||
ahash = "0.8" | ||
futures = { version = "0.3", default-features = false } | ||
indexmap = "1" | ||
prometheus-client = "0.22" | ||
rand = { version = "0.8", features = ["small_rng"] } | ||
tokio = { version = "1", features = ["rt", "sync", "time"] } | ||
tracing = "0.1" | ||
|
||
linkerd-error = { path = "../../error" } | ||
linkerd-metrics = { path = "../../metrics" } | ||
linkerd-pool = { path = ".." } | ||
linkerd-stack = { path = "../../stack" } | ||
|
||
[dependencies.tower] | ||
version = "0.4.13" | ||
default-features = false | ||
features = ["load", "ready-cache"] | ||
|
||
[dev-dependencies] | ||
futures-util = { version = "0.3", default-features = false } | ||
linkerd-tracing = { path = "../../tracing" } | ||
parking_lot = "0.12" | ||
quickcheck = { version = "1", default-features = false } | ||
tokio-test = "0.4" | ||
tower-test = "0.4" |
Oops, something went wrong.