Yehiel Mizrahi
06/08/2025, 1:44 PMpolicy
table size in Db is only 5 Mb (we are using AWS managed MySQL 8.0 DB), but policy_retention
table size is 66 Gb (another issue that I want to address - can we configure this so Cerbos will keep only limited policy changes history or we need to do a scheduled deletion by ourselves?). The policy caching settings are the default ones.
Thank you!oguzhan
policy_revision
table. They are named policy_on_delete
, polic_on_insert
, and policy_on_update
in the MySQL schema.
You could drop all of those triggers, or only some set of them (Ex: leave only policy_on_delete
so that you have a backup of deleted policies) without any problem.
Clearing all rows in policy_revision
table to save some space is OK, too.
For the OOM problem,
how is memory requests/limits configured for cerbos?Yehiel Mizrahi
06/11/2025, 8:20 AM".cerbos.yaml": |-
server:
# Configure Cerbos to listen on a Unix domain socket.
grpcListenAddr: "127.0.0.1:3593"
# Note that adminAPI will be enabled only for PermissionsService
adminAPI:
enabled: false
storage:
driver: mysql
mysql:
dsn: ${MYSQL_USERNAME}:${MYSQL_PASSWORD}@tcp(${MYSQL_HOST}:3306)/${MYSQL_DATABASE}
compile:
cacheDuration: 60s
and these are the settings for Cerbos resource requirements:
containers:
- name: cerbos
image: "<http://ghcr.io/cerbos/cerbos:0.40.0|ghcr.io/cerbos/cerbos:0.40.0>"
resources:
requests:
memory: "512Mi"
cpu: "1000m"
limits:
memory: "512Mi"
cpu: "1000m"
oguzhan
Yehiel Mizrahi
06/11/2025, 9:14 AMYael Margalit
06/18/2025, 3:48 PM