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

Sync peers' host info from scheduler #3634

Open
gaius-qi opened this issue Nov 6, 2024 · 0 comments
Open

Sync peers' host info from scheduler #3634

gaius-qi opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@gaius-qi
Copy link
Member

gaius-qi commented Nov 6, 2024

Feature request:

Manager will send sync peers job to scheduler by MQ(Redis). There is too much data(peers' host), so mysql is needed to store peers' host info instead of creating a sync peers job every time.

Manager console should display peers' host info, it needs to query information from mysql.

When is sync peers triggered?

  1. Triggers every 12 hours by default and the interval is configurable.
  2. For forced triggering, the manager needs to provide a REST API for forced triggering.

Related files:

  1. https://github.com/dragonflyoss/Dragonfly2/blob/main/manager/job/sync_peers.go
  2. https://github.com/dragonflyoss/Dragonfly2/blob/main/manager/router/router.go#L188
  3. https://github.com/dragonflyoss/Dragonfly2/blob/main/scheduler/job/job.go#L466

Use case:

UI Example:

@gaius-qi gaius-qi added the enhancement New feature or request label Nov 6, 2024
@gaius-qi gaius-qi added this to the v2.2.0 milestone Nov 6, 2024
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

No branches or pull requests

2 participants