Skip to content

Conversation

chlins
Copy link
Member

@chlins chlins commented Jul 31, 2025

This pull request simplifies the codebase by removing functionality related to seed peer cluster management and the ManagerAnnouncer component. The changes streamline the configuration and announcement logic by focusing on the scheduler while eliminating unused fields, functions, and dependencies.

Removal of seed peer cluster-related functionality:

  • Removed the cluster_id and keepalive_interval fields from the SeedPeer struct in dragonfly-client-config/src/dfdaemon.rs, along with their associated default values and validation logic. [1] [2] [3] [4] [5]

Removal of ManagerAnnouncer:

  • Deleted the ManagerAnnouncer struct and its implementation, including methods for announcing seed peer information to the manager, in dragonfly-client/src/announcer/mod.rs. This also removed the associated gRPC client and request types from the imports. [1] [2]

Description

Related Issue

Motivation and Context

Screenshots (if appropriate)

@chlins chlins added the enhancement New feature or request label Jul 31, 2025
Signed-off-by: chlins <chlins.zhang@gmail.com>
@chlins chlins force-pushed the refactor/remove-seed-peer-announcement branch from 55017c7 to 7ef781a Compare August 4, 2025 03:42
Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

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

Depends on the merge of dragonflyoss/dragonfly#4235.

Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

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

LGTM

@chlins chlins enabled auto-merge (squash) August 8, 2025 03:11
Copy link
Contributor

@LunaWhispers LunaWhispers left a comment

Choose a reason for hiding this comment

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

lgtm

@chlins chlins merged commit 2cca5c7 into main Aug 8, 2025
7 checks passed
@chlins chlins deleted the refactor/remove-seed-peer-announcement branch August 8, 2025 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants