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

Make heartbeat intervals configurable in Frontend and Datanode #1792

Closed
MichaelScofield opened this issue Jun 20, 2023 · 4 comments · Fixed by #1864
Closed

Make heartbeat intervals configurable in Frontend and Datanode #1792

MichaelScofield opened this issue Jun 20, 2023 · 4 comments · Fixed by #1864
Assignees
Labels
C-enhancement Category Enhancements good first issue Good for newcomers

Comments

@MichaelScofield
Copy link
Collaborator

What type of enhancement is this?

Configuration

What does the enhancement do?

Currently the heartbeat intervals are hardcoded to 5 seconds in both Frontend and Datanode. It's better to set them in config files.

Implementation challenges

No response

@MichaelScofield MichaelScofield added C-enhancement Category Enhancements good first issue Good for newcomers Distributed labels Jun 20, 2023
@ccjeff
Copy link
Contributor

ccjeff commented Jun 24, 2023

Hi I'm new to the project and I'd like to have a try with the issue. Is this issue still open to be worked on? Thanks!

@WenyXu
Copy link
Member

WenyXu commented Jun 24, 2023

Hi I'm new to the project and I'd like to have a try with the issue. Is this issue still open to be worked on? Thanks!

😙

@ccjeff
Copy link
Contributor

ccjeff commented Jun 29, 2023

Hi, I just want to clarify some questions before opening the PR for this issue. For the Datanode I have updated the MetaClientOptions structure to include the heartbeat_interval_millis which was hard-coded in the instance before. However, I've noticed that in Frontend the HeartbeatTask is using report_interval. Is this field what I should be changing to make it configurable? I found they were using different time units (milliseconds in the data node and seconds in Frontend) so I wasn't sure if they were intended to be designed differently. Thank you :)

@MichaelScofield
Copy link
Collaborator Author

@ccjeff thx!

  • there are two heartbeat interval configs: heartbeat_interval_millis for datanode and report_interval for frontend. I think it's better to unify them to one name: heartbeat_interval_millis
    • use milliseconds of course
  • for datanode, heartbeat_interval_millis is better placed in DatanodeOptions
  • for frontend, heartbeat_interval_millis is better placed in FrontendOptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category Enhancements good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants