Skip to content

Release v19.154.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 23:43
d22f667

Kernels now start, roll out and hold memory more predictably in production: busy silos wait out startup instead of terminating, start-before-stop rollouts can converge, cold-start load is bounded per silo, idle unsubscribed observers are released, and observer and job state can be monitored (part of #5796).

Added

  • Observer state and job progress are published as metrics: failed and quarantined partitions and running state per observer (reported only while an observer needs attention, then as zero for a short while after it recovers), resident observers per event store, namespace and type, running catch-up and replay jobs, catch-up and replay progress per observer, and cratis.chronicle.event_sequence.append.duration as a histogram in seconds. The maximum number of series per metric can be set with Telemetry:MetricSeriesLimit (#4610)
  • Opt-in standby for start-before-stop rollouts (Clustering:SingleWriterLease:Standby). A replacement kernel waiting for the single-writer lease reports ready with a Standby status so Azure Container Apps, Cloud Run and Kubernetes rolling updates can stop the old instance. Event processing starts only once the lease is held, client calls during standby fail with a retryable status, and Clustering:SingleWriterLease:StandbyStartupTimeout bounds how long a kernel that holds the lease may keep reporting standby while it starts (#5238)
  • observers:maxConcurrentSubscriptions bounds how many observer subscriptions and failed-partition recoveries a silo runs at once across all event stores. By default it is sized to the machine's CPUs
  • observers:idleDeactivationAfter releases an observer that has no subscription and no pending work after it has been idle for that many seconds (900 by default, 0 turns it off). Releasing an idle observer frees about 40 KB of memory, and a benchmark in Benchmarks/Chronicle.Benchmarks.Kernel measures what an activation retains (#5792)

Changed

  • cratis.chronicle.observer.successful_observations now also counts events delivered by catch-up, replay and retry jobs, tagged with cratis.replay, so dashboards show the throughput of replays and catch-ups as well as live delivery
  • A required startup step whose calls time out against this silo or an active sibling that is busy catching up now waits with backoff, without counting attempts and while the kernel stays unready, instead of terminating the process after its retries. The wait is bounded by Startup:BusySiloWaitLimit, two hours by default (#5676)
  • The store entitlements notice is given once the silo is active instead of before the kernel binds its ports, so a kernel enforcing store entitlements binds and reports liveness while it joins a cluster with a backlog (#4040)

Fixed

  • A kernel rollout converges under load: a subscribe that times out against a busy observer is retried on the same stream instead of failing the client's stream, reactor and reducer streams in the .NET client reconnect with a jittered backoff that grows while streams keep failing, failed-partition recovery shares the per-silo bound with subscriptions, and a client using chronicle+srv keeps retrying while no kernel is published yet instead of failing its first connect (#4068)