zitadel/internal/repository
Silvan 17953e9040
fix(setup): init projections (#7194)
Even though this is a feature it's released as fix so that we can back port to earlier revisions.

As reported by multiple users startup of ZITADEL after leaded to downtime and worst case rollbacks to the previously deployed version.

The problem starts rising when there are too many events to process after the start of ZITADEL. The root cause are changes on projections (database tables) which must be recomputed. This PR solves this problem by adding a new step to the setup phase which prefills the projections. The step can be enabled by adding the `--init-projections`-flag to `setup`, `start-from-init` and `start-from-setup`. Setting this flag results in potentially longer duration of the setup phase but reduces the risk of the problems mentioned in the paragraph above.
2024-01-25 17:28:20 +01:00
..
action fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
asset refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
authrequest fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
deviceauth fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
feature fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
flow refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
idp refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
idpconfig refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
idpintent fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
instance fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
keypair fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
limits fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
member refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
metadata refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
milestone fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
oidcsession fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
org fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
policy refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
project fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
pseudo feat: push telemetry (#6027) 2023-07-06 08:38:13 +02:00
quota fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
restrictions fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
session fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
settings refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
user fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
usergrant fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00