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

Regularly reload provisioners from DB #1754

Open
ndtretyak opened this issue Mar 7, 2024 · 0 comments
Open

Regularly reload provisioners from DB #1754

ndtretyak opened this issue Mar 7, 2024 · 0 comments
Assignees
Labels
enhancement needs triage Waiting for discussion / prioritization by team

Comments

@ndtretyak
Copy link

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

If I understood the code correctly, the PUT /provisioners/{name} updates the provisioner object in the local cache of the instance that processes the request, and then this provisioner is saved to the database. However, it appears that all other instances connected to this database do not receive the updated configuration until a restart occurs. Would it be possible to introduce a goroutine that periodically calls ReloadAdminResources to ensure all instances are consistently updated?

@ndtretyak ndtretyak added enhancement needs triage Waiting for discussion / prioritization by team labels Mar 7, 2024
@hslatman hslatman self-assigned this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

No branches or pull requests

2 participants