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

Add refresh interval for DB resource group manager #15389

Merged

Conversation

Chaho12
Copy link
Member

@Chaho12 Chaho12 commented Dec 14, 2022

Description

Currently, the configuration is reloaded from the database every second, with max-refresh-interval of 1 hr (default).
In some cases, users might want to change refresh interval up to milliseconds unit depending on their system. So, I added refresh interval property

Tested with setting refresh interval as 10 sec.
스크린샷 2022-12-14 오전 11 51 00

I also removed refreshFailures private variable as it is not used at all, and there is no need to use it.

Additional context and related issues

Release notes

(x) Release notes are required, with the following suggested text:

# General
* Allow configuring a refresh interval for DB resource group manager with the `resource-groups.refresh-interval` config property. ({issue}`14514`)

@cla-bot cla-bot bot added the cla-signed label Dec 14, 2022
@github-actions github-actions bot added the docs label Dec 14, 2022
@Chaho12 Chaho12 requested a review from ebyhr December 14, 2022 04:35
Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

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

@Chaho12 Chaho12 force-pushed the feature/jaeho.yoo/add_frequency_resource_group branch 2 times, most recently from f555644 to 2abdaed Compare December 14, 2022 06:58
@Chaho12
Copy link
Member Author

Chaho12 commented Dec 14, 2022

Please shorten the commit title. https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md#format-git-commit-messages

Shortened it :)

@Chaho12 Chaho12 force-pushed the feature/jaeho.yoo/add_frequency_resource_group branch from 28ba257 to b89d00b Compare December 15, 2022 01:20
@Chaho12 Chaho12 force-pushed the feature/jaeho.yoo/add_frequency_resource_group branch from b89d00b to e3d9b37 Compare December 15, 2022 01:46
@ebyhr ebyhr force-pushed the feature/jaeho.yoo/add_frequency_resource_group branch from d371efc to 0a9ace6 Compare December 15, 2022 05:49
@ebyhr ebyhr merged commit 87f18c7 into trinodb:master Dec 15, 2022
@github-actions github-actions bot added this to the 404 milestone Dec 15, 2022
@ebyhr ebyhr mentioned this pull request Dec 15, 2022
@Chaho12 Chaho12 deleted the feature/jaeho.yoo/add_frequency_resource_group branch January 3, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Control the frequency of configuration reload from DB backed resource group manager
2 participants