zitadel/cmd
Silvan 77cd430b3a
refactor(handler): cache active instances (#9008)
# Which Problems Are Solved

Scheduled handlers use `eventstore.InstanceIDs` to get the all active
instances within a given timeframe. This function scrapes through all
events written within that time frame which can cause heavy load on the
database.

# How the Problems Are Solved

A new query cache `activeInstances` is introduced which caches the ids
of all instances queried by id or host within the configured timeframe.

# Additional Changes

- Changed `default.yaml`
  - Removed `HandleActiveInstances` from custom handler configs
- Added `MaxActiveInstances` to define the maximal amount of cached
instance ids
- fixed start-from-init and start-from-setup to start auth and admin
projections twice
- fixed org cache invalidation to use correct index

# Additional Context

- part of #8999
2024-12-06 11:32:53 +00:00
..
admin chore: test server for direct resource access 2023-04-24 20:40:31 +03:00
build fix: allow version to be overwritten by build again (#4656) 2022-11-07 09:50:44 +00:00
encryption feat: action v2 signing (#8779) 2024-11-28 10:06:52 +00:00
hooks feat: support whole config as env (#6336) 2024-02-16 16:04:42 +00:00
initialise refactor(eventstore): move push logic to sql (#8816) 2024-12-04 13:51:40 +00:00
key feat: api v2beta to api v2 (#8283) 2024-07-26 22:39:55 +02:00
mirror feat: action v2 signing (#8779) 2024-11-28 10:06:52 +00:00
ready feat(v3alpha): web key resource (#8262) 2024-08-14 14:18:14 +00:00
setup refactor(handler): cache active instances (#9008) 2024-12-06 11:32:53 +00:00
start refactor(handler): cache active instances (#9008) 2024-12-06 11:32:53 +00:00
tls fix: enable env vars in setup steps (and deprecate admin subcommand) (#3871) 2022-06-27 10:32:34 +00:00
defaults.yaml refactor(handler): cache active instances (#9008) 2024-12-06 11:32:53 +00:00
zitadel.go fix(mirror): read config correctly (#8330) 2024-07-18 14:00:58 +00:00