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

Support simple ping mesh in agent. #6120

Merged
merged 18 commits into from
May 31, 2024

Conversation

IRONICBo
Copy link
Contributor

We need to implement a simple ping-mesh monitoring tool to get nodes connectivity latency.

Design doc(TODO): https://docs.google.com/document/d/1EdKJ8iQ3KwVBQAHaPisqHP7cgpq4RW8mD9KPWtYETbE

Issue: #5514

@IRONICBo IRONICBo changed the title feat: support simple ping mesh in agent. Support simple ping mesh in agent. Mar 19, 2024
@IRONICBo

This comment was marked as outdated.

cmd/antrea-agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/config/agent/config.go Outdated Show resolved Hide resolved
pkg/features/antrea_features.go Outdated Show resolved Hide resolved
pkg/features/antrea_features.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
@IRONICBo

This comment was marked as resolved.

@IRONICBo
Copy link
Contributor Author

IRONICBo commented Apr 8, 2024

  • support to get gw0/podCIDR from node spec.
  • support singleton CRD in nodelatencymonitor.

Maybe I need to consider about the NetworkPolicyOnly mode by using Transport Address, now only support get IP from first CIDR IP.

I0408 19:16:11.801016       1 monitor.go:249] "Connection status" Connection={"FromIP":"10.244.2.1","ToIP":"10.244.0.1","Latency":0,"Status":false,"LastUpdated":"2024-04-08T19:16:11.800804713Z","CreatedAt":"0001-01-01T00:00:00Z"}
I0408 19:16:11.801040       1 monitor.go:249] "Connection status" Connection={"FromIP":"10.244.2.1","ToIP":"10.244.2.1","Latency":97881,"Status":true,"LastUpdated":"2024-04-08T19:16:11.80070513Z","CreatedAt":"0001-01-01T00:00:00Z"}
I0408 19:16:11.801057       1 monitor.go:249] "Connection status" Connection={"FromIP":"10.244.2.1","ToIP":"10.244.1.1","Latency":0,"Status":false,"LastUpdated":"2024-04-08T19:16:11.800928351Z","CreatedAt":"0001-01-01T00:00:00Z"}

build/charts/antrea/crds/nodelatencymonitor.yaml Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store_test.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
@IRONICBo IRONICBo force-pushed the 5514-ping-mesh-monitoring-tool branch from 310d69b to b866203 Compare April 9, 2024 06:25
@IRONICBo IRONICBo requested a review from Dyanngg April 9, 2024 18:47
cmd/antrea-agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store_test.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store_test.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store_test.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
@IRONICBo
Copy link
Contributor Author

I will update my code later.

pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1alpha2/types.go Outdated Show resolved Hide resolved
@IRONICBo

This comment was marked as spam.

@IRONICBo IRONICBo force-pushed the 5514-ping-mesh-monitoring-tool branch from f6c7714 to 6915393 Compare April 22, 2024 18:19
pkg/apis/controlplane/types.go Outdated Show resolved Hide resolved
pkg/features/antrea_features.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/latency_store.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
pkg/agent/monitortool/monitor.go Outdated Show resolved Hide resolved
build/charts/antrea/crds/nodelatencymonitor.yaml Outdated Show resolved Hide resolved
@heanlan
Copy link
Contributor

heanlan commented Apr 24, 2024

Hi @antoninbas , do you know why the codecov bot is not running for this PR? @IRONICBo was asking about the codecov requirements for merging a PR

@antoninbas
Copy link
Contributor

Hi @antoninbas , do you know why the codecov bot is not running for this PR? @IRONICBo was asking about the codecov requirements for merging a PR

I don't think there has been a successful CI run yet?
For example currently, even unit tests are failing.

@IRONICBo IRONICBo force-pushed the 5514-ping-mesh-monitoring-tool branch 2 times, most recently from cea5be0 to 3c1cfef Compare April 27, 2024 00:53
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
@IRONICBo thanks for your contribution and for bearing with us through all these rounds of reviews. Please open your follow up PR with the reporting changes once this is merged.

@IRONICBo
Copy link
Contributor Author

Thanks for your careful review, and I will subsequently open follow-ups subsequent PRs for monitor tool.

Signed-off-by: Asklv <[email protected]>
@antoninbas antoninbas force-pushed the 5514-ping-mesh-monitoring-tool branch from 03dc802 to 8b02463 Compare May 30, 2024 21:39
@antoninbas
Copy link
Contributor

/test-all

@antoninbas antoninbas merged commit c3103a9 into antrea-io:main May 31, 2024
51 of 55 checks passed
@antoninbas antoninbas added the action/release-note Indicates a PR that should be included in release notes. label May 31, 2024
@luolanzone luolanzone added this to the Antrea v2.1 release milestone Jun 3, 2024
antoninbas pushed a commit that referenced this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants