zitadel/internal
Silvan d3bb9c9b3b
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.

(cherry picked from commit 17953e9040)
2024-01-26 07:41:11 +01:00
..
actions refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
activity fix: add https status to activity log (#6978) 2023-11-28 16:56:29 +01:00
admin/repository/eventsourcing fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
api fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
auth/repository fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
auth_request/repository refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
authz fix: correctly respect maxFailureCount (#7143) 2024-01-04 15:46:25 +00:00
command fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
config refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
crypto fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
database fix(query): escape wildcards in text search (#7131) (#7135) 2024-01-02 16:27:36 +01:00
domain fix(login): correct rendering of idps (#7151) 2024-01-05 14:35:51 +00:00
eventstore fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
form refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
i18n refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
iam refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
id chore(Makefile): add go generate target (#6944) 2023-11-22 10:56:43 +00:00
idp fix(idp): provide id_token for tenant id based azure ad (#7188) 2024-01-10 15:02:17 +00:00
integration fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
logstore perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
migration fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
net perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
notification fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
org refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
project refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
protoc merge main into next 2023-10-19 12:34:00 +02:00
qrcode docs(legal): Updated agreements and policies v2 (#3823) 2022-06-15 08:30:58 +02:00
query fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
renderer refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
repository fix(setup): init projections (#7194) 2024-01-26 07:41:11 +01:00
static feat: block instances (#7129) 2024-01-17 10:16:48 +00:00
statik chore: initial version of a devcontainer (#6352) 2023-08-15 10:49:05 +02:00
telemetry refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
test feat: protos refactoring 2021-03-09 10:30:11 +01:00
user refactor: cleanup unused code (#7130) 2024-01-02 14:26:31 +00:00
view/repository fix: add RollbackUnlessCommitted for gorm transactions (#7197) 2024-01-10 23:02:50 +00:00
webauthn refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
zerrors refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00