在部署Sentry自托管版时,默认的配置对低配置的服务器不太友好,可以通过调整如下参数优化:
通过修改Kafka启动参数限制内存占用,docker-compose.yml
增加:
zookeeper:
environment:
KAFKA_HEAP_OPTS: "-Xmx512M -Xms256M"
kafka:
environment:
KAFKA_HEAP_OPTS: "-Xmx512M -Xms256M"
通过修改Health Check间隔降低资源占用,.env
修改:
HEALTHCHECK_INTERVAL=60s
HEALTHCHECK_TIMEOUT=120s
HEALTHCHECK_RETRIES=3
发表回复