这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ikreymer
Copy link
Member

@ikreymer ikreymer commented Feb 1, 2025

…ull config changes are propagated, including:

  • ensure configmap is updated for running crawl
  • ensure crawler picks up new configmap (remove subPath which prevented dynamic updates)
  • configmap recreated if lastConfigUpdate string is different between spec and status
  • exclusions changes when adding/removing exclusions
  • other raw config changes are applied
  • crawler channel, proxy, timeout, and scale settings are all applied to running crawl
  • could be first step to pause/resume crawls, but does not require pausing to make changes

@ikreymer ikreymer requested a review from tw4l February 1, 2025 21:50
@tw4l
Copy link
Member

tw4l commented Feb 4, 2025

I think this might be better suited for the 1.14 release since it's a fairly major change in app behavior. If anything, could separate out just the exclusions work for 1.13.4, but depending on the timing of 1.14 I'm not sure that's worth it.

…ull config changes *are* propagated, including:

- ensure configmap is updated for running crawl
- ensure crawler picks up new configmap (remove subPath which prevented dynamic updates)
- exclusions changes when adding/removing exclusions
- other raw config changes are applied
- crawler channel, proxy, timeout, and scale settings are all applied to running crawl
- could be first step to pause/resume crawls, but does not require pausing to make changes
@ikreymer ikreymer force-pushed the update-config-for-running-crawls branch from c2e81c7 to 24645cd Compare February 18, 2025 20:14
@ikreymer ikreymer changed the base branch from v1.13.4-release to main February 18, 2025 20:15
ikreymer added a commit that referenced this pull request Feb 18, 2025
- ensure newly added / remove exclusions are updated in the configmap that is mounted into the crawler volume
- exclusions are updated dynamically if crawler pod is running, but when crawler pod is restarted, this ensures new exclusions are also picked up
- adds a lastConfigUpdate timestamp to CrawlJob: if lastConfigUpdate in spec is different from current, the configmap is recreated
- only updates for exclusion add/remove so far, can later be expanded to other crawler settings (see: #2355 for broader running crawl config updates)
- fixes #2408
@ikreymer
Copy link
Member Author

Implementing #2409 first, which allows for updating configmap dynamically, only doing that for exclusion updates.
This will be refactored on top of #2409 later, closing for now, may become a separate PR with frontend changes to opt-in to updating running crawl.

@ikreymer ikreymer closed this Feb 18, 2025
ikreymer added a commit that referenced this pull request Feb 19, 2025
…emoved (#2409)

exclusions are already updated dynamically if crawler pod is running,
but when crawler pod is restarted, this ensures new exclusions are also
picked up:
- mount configmap in separate path, avoiding subPath, to allow dynamic
updates of mounted volume
- adds a lastConfigUpdate timestamp to CrawlJob - if lastConfigUpdate in
spec is different from current, the configmap is recreated by operator
- operator: also update image from channel avoid any issues with
updating crawler in channel
- only updates for exclusion add/remove so far, can later be expanded to
other crawler settings (see: #2355 for broader running crawl config
updates)
- fixes #2408
emma-sg pushed a commit that referenced this pull request Feb 19, 2025
…emoved (#2409)

exclusions are already updated dynamically if crawler pod is running,
but when crawler pod is restarted, this ensures new exclusions are also
picked up:
- mount configmap in separate path, avoiding subPath, to allow dynamic
updates of mounted volume
- adds a lastConfigUpdate timestamp to CrawlJob - if lastConfigUpdate in
spec is different from current, the configmap is recreated by operator
- operator: also update image from channel avoid any issues with
updating crawler in channel
- only updates for exclusion add/remove so far, can later be expanded to
other crawler settings (see: #2355 for broader running crawl config
updates)
- fixes #2408
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