Skip to content

Conversation

@k-anshul
Copy link
Member

@k-anshul k-anshul commented Dec 19, 2025

closes https://linear.app/rilldata/issue/PLAT-324/switch-to-pull-instead-of-push-for-config-changes-from-admin-to

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@k-anshul k-anshul self-assigned this Dec 19, 2025
@k-anshul k-anshul marked this pull request as draft December 19, 2025 10:49
@k-anshul k-anshul changed the title Pull configs Pull based config changes from admin to runtime Dec 19, 2025
@k-anshul k-anshul marked this pull request as ready for review December 23, 2025 06:40
k-anshul and others added 4 commits December 29, 2025 17:38
Co-authored-by: Benjamin Egelund-Müller <b@egelund-muller.com>
}

func (r *Runtime) ReloadConfig(ctx context.Context, instanceID string) error {
return r.configReloader.reloadConfig(ctx, instanceID)
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Need to check if r.configReloader != nil {
  2. Also, shouldn't it run in the background? Since the admin service may have to call this on many runtimes at a time, and since the runtime already is capable of pulling config in the background, it'd be nice for it to just be a quick op

Copy link
Member Author

Choose a reason for hiding this comment

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

  1. It will be nice to capture the error and forward it to admin. The status of the reloads can be checked in river jobs history as well. It can also reload if required.
    Since the config reloads now happen async in admin service so it should be fine to introduce some latency.

But happy to make this change if you think otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants