Skip to content
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

gRPC bandwidth tracking #346

Merged
merged 12 commits into from
Dec 10, 2023
Merged

gRPC bandwidth tracking #346

merged 12 commits into from
Dec 10, 2023

Conversation

aspect
Copy link
Collaborator

@aspect aspect commented Dec 2, 2023

This PR is a refactoring of #334 with a slightly reduced footprint. I went over #334 and carefully re-grafted only the changes specific to gRPC internals. @biryukovmaxim did excellent work building this.

Once this is merged I will be adding this to the upcoming PR that contains metrics refactoring.

utils/src/grpc.rs Outdated Show resolved Hide resolved
utils/src/lib.rs Outdated Show resolved Hide resolved
utils/src/grpc.rs Outdated Show resolved Hide resolved
…tower in /utils/tower and rename connection counters to TowerConnectionCounters
utils/src/hyper.rs Outdated Show resolved Hide resolved
utils/src/hyper.rs Outdated Show resolved Hide resolved
utils/src/hyper.rs Outdated Show resolved Hide resolved
utils/Cargo.toml Show resolved Hide resolved
utils/Cargo.toml Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
kaspad/src/daemon.rs Outdated Show resolved Hide resolved
protocol/p2p/src/core/adaptor.rs Outdated Show resolved Hide resolved
rpc/service/src/service.rs Outdated Show resolved Hide resolved
rpc/service/src/service.rs Outdated Show resolved Hide resolved
tiram88
tiram88 previously approved these changes Dec 10, 2023
utils/Cargo.toml Show resolved Hide resolved
@tiram88 tiram88 merged commit 88ab9e2 into kaspanet:master Dec 10, 2023
6 checks passed
@tiram88 tiram88 deleted the grpc-bandwidth branch December 10, 2023 17:45
smartgoo pushed a commit to smartgoo/rusty-kaspa that referenced this pull request Jun 18, 2024
* grpc bandwidth tracking

* split module into 'hyper' and 'grpc'

* migrate gRPC connection counters and tower middleware to kaspa-utils-tower in /utils/tower and rename connection counters to TowerConnectionCounters

* sort dependencies

* sort dependencies

* update naming & channel closure-related comment

* remove not needed clone

* rename to p2p_tower_counters and grpc_tower_counters

* remove bincode from kaspa-utils dev-deps

* fix sort in rpc/service

* re-adding bincode due to failing tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants