I first ran the follow command
cd /data1/onpremise && { time docker-compose run --rm worker cleanup --days 1; } &> /data1/logs/cleanup.log
{ time docker exec -i $(docker ps --format "table {{.Names}}"|grep postgres) vacuumdb -U postgres -d postgres -v -f --analyze; } &> /data1/logs/vacuumdb.log
the disk from 92% to 74% But Kafka still takes up a lot of space
i set the .env as follows:
SENTRY_EVENT_RETENTION_DAYS=7
KAFKA_LOG_RETENTION_HOURS=12
KAFKA_LOG_RETENTION_BYTES=5000000000
KAFKA_LOG_SEGMENT_BYTES=1000000000
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS=300000
KAFKA_LOG_SEGMENT_DELETE_DELAY_MS=60000
but this did not have any effect ? How to make it work ? or it is a error setting?
Can anyone help me ? sorry , my english is poor, thanks