browsertrix/chart/templates
Ilya Kreymer 4bea7565bc
load handling: scale up redis only when crawler pods running (#1009)
Operator: Modified init behavior to only load redis when at least one crawler pod available:
- waits for at least one crawler pod to be available before starting redis pod, to avoid situation where many crawler pods are in pending mode, but redis pods are still running.
- redis statefulset starts at scale of 0
- once crawler pod becomes available, redis sts is scaled to 1 (via `initRedis==true` status)
- crawl remains in 'starting' or 'waiting_capacity' state until pod becomes available without redis pod running
- set to 'running' state only after redis and at least one crawler pod is available
- if no crawler pods available after running, or, if stuck in starting for >60 seconds, switch to 'waiting_capacity' state
- when switching to 'waiting_capacity', also scale down redis to 0, wait for crawler pod to become available, only then scale up redis to 1, and get back to 'running'

other tweaks:
- add new status field 'initRedis', default to false, not displayed
- crawler pod: consider 'ContainerCreating' state as available, as container will not be blocked by resource limits
- add a resync after 3 seconds when waiting for crawler pod or redis pod to become available, configurable via 'operator_fast_resync_secs'
- set_state: if not updating state, ensure state reflects actual value in db
2023-07-26 08:40:05 -07:00
..
backend.yaml Refactor to use new operator on backend (#789) 2023-04-24 18:30:52 -07:00
configmap.yaml load handling: scale up redis only when crawler pods running (#1009) 2023-07-26 08:40:05 -07:00
frontend.yaml nginx: enable worker processes autotune to correctly set the number of processes for nginx, possible fix for #780 (#785) 2023-04-21 18:13:22 -07:00
ingress.yaml Uploads API: BaseCrawl refactor + Initial support for /uploads endpoint (#937) 2023-07-07 09:13:26 -07:00
minio.yaml chart / deployment fixes to run on microk8s: (fixes #385) (#387) 2022-11-30 09:21:58 -08:00
mongo.yaml Upgrade to mongo 6 and use sortArray for workflow crawls (#764) (#765) 2023-04-11 18:22:07 -07:00
namespaces.yaml
operators.yaml Refactor to use new operator on backend (#789) 2023-04-24 18:30:52 -07:00
role.yaml Refactor to use new operator on backend (#789) 2023-04-24 18:30:52 -07:00
secrets.yaml Rename api / nginx settings -> backend / frontend, set pull policy job images (#504) 2023-01-18 20:21:36 -08:00
signer.yaml Rename api / nginx settings -> backend / frontend, set pull policy job images (#504) 2023-01-18 20:21:36 -08:00