-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Operator refactor to control pods + pvcs directly instead of statefulsets #1149
Commits on Sep 1, 2023
-
convert operator to control pods/pvcs directly
add redis_storage param
Configuration menu - View commit details
-
Copy full SHA for deed92d - Browse repository at this point
Copy the full SHA deed92dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf5c194 - Browse repository at this point
Copy the full SHA cf5c194View commit details
Commits on Sep 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ad6ffce - Browse repository at this point
Copy the full SHA ad6ffceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 278fb82 - Browse repository at this point
Copy the full SHA 278fb82View commit details
Commits on Sep 3, 2023
-
priority classes: add priority classes for each additional crawl replica
set 'max_crawl_scale' in values.yaml to indicate max possible scale, used to create crawl-instance-{0, N} priority classes, each with lower priority allows crawl instance 0 to preempt crawls with more instances (and lower priorities) eg. 2nd instance of a crawl can preempt 3rd instance of another, and a new crawl (1st instance) can preempt 2nd instance of another crawl
Configuration menu - View commit details
-
Copy full SHA for e28f0b3 - Browse repository at this point
Copy the full SHA e28f0b3View commit details
Commits on Sep 5, 2023
-
- ensure redis pod is deleted last - start deletion in background as soon as crawl is done - operator may call finalizer with old state: if not finished but in finalizer, attempt to cancel, and throw 400 if already canceled - recreate redis in finalizer from yaml to avoid change event
Configuration menu - View commit details
-
Copy full SHA for ac5ee06 - Browse repository at this point
Copy the full SHA ac5ee06View commit details -
- support reconciling desired and actual scale - if desired scale is lower, attempt to gracefully shutdown each instance via new redis 'stopone' key - once each instance above > desired scale exit successfully, adjust the status.scale down to clean up pods. also clean up redis per-instance state when scaling down
Configuration menu - View commit details
-
Copy full SHA for 6aeaa97 - Browse repository at this point
Copy the full SHA 6aeaa97View commit details -
redis: pause redis container (set initRedis to false) if no crawlers …
…have been running for >60 seconds, not immediately
Configuration menu - View commit details
-
Copy full SHA for d7202a6 - Browse repository at this point
Copy the full SHA d7202a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51aa164 - Browse repository at this point
Copy the full SHA 51aa164View commit details -
resource usage: add resources to crawljob status
add placeholder for adding podmetrics as related resources fix canceled condition
Configuration menu - View commit details
-
Copy full SHA for 59052e2 - Browse repository at this point
Copy the full SHA 59052e2View commit details
Commits on Sep 6, 2023
-
- async add_crawl_errors_to_db() call creates its own redis connection, as other one is supposed to be closed by caller - remove unneeded 'sync_db_state_if_finished' - delete job after crawl finished tasks - log if crawl finished but not yet deleted on next update
Configuration menu - View commit details
-
Copy full SHA for b95365c - Browse repository at this point
Copy the full SHA b95365cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5302fad - Browse repository at this point
Copy the full SHA 5302fadView commit details -
Configuration menu - View commit details
-
Copy full SHA for d356b14 - Browse repository at this point
Copy the full SHA d356b14View commit details
Commits on Sep 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0b49bbc - Browse repository at this point
Copy the full SHA 0b49bbcView commit details
Commits on Sep 8, 2023
-
switch pod childPolicy to OnDelete to avoid recreate loops in edgecases:
- pods explicitly deleted if spec.restartTime != status.restartTime, then updates status.restartTime - use force_restart to remove pods for one sync response to force deletion - update to latest metacontroller v4.11.0 - add --restartOnError flag for crawler
Configuration menu - View commit details
-
Copy full SHA for 36990be - Browse repository at this point
Copy the full SHA 36990beView commit details -
Update backend/btrixcloud/operator.py
Co-authored-by: Tessa Walsh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0c6f24c - Browse repository at this point
Copy the full SHA 0c6f24cView commit details -
Update backend/btrixcloud/operator.py
Co-authored-by: Tessa Walsh <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fb95872 - Browse repository at this point
Copy the full SHA fb95872View commit details -
cancel crawl test: just wait until page is found, not necessarily done
Configuration menu - View commit details
-
Copy full SHA for 263c5e2 - Browse repository at this point
Copy the full SHA 263c5e2View commit details
Commits on Sep 10, 2023
-
- add 'fail_crawl()' to be used for failing a crawl, which handles ad…
…ditional logging for failed crawls, if enabled - print logs: print logs for default container - also print pod status on failure - use mark_finished(... 'canceled') for canceled crawl - tests: also check other finished states to avoid stuck in infinite loop if crawl fails - tests: disable disk utilization check, which adds unpredictability to crawl testing!
Configuration menu - View commit details
-
Copy full SHA for fa444d1 - Browse repository at this point
Copy the full SHA fa444d1View commit details