Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk space usage #540

Closed
rps-v opened this issue Jun 15, 2020 · 3 comments
Closed

Disk space usage #540

rps-v opened this issue Jun 15, 2020 · 3 comments

Comments

@rps-v
Copy link

rps-v commented Jun 15, 2020

We updated from 9.1.2 o 10 and after a few days of running, our server's disk space was used up. The server has 40GB of storage and was running fine on Sentry 9.1.2.
We get about ~150,000 events per day.

The culprit seems to be sentry-kafka.

root@sentry:~# docker system df -v
Local Volumes space usage:

VOLUME NAME                                                        LINKS               SIZE
sentry-kafka                                                       1                   18.55GB

How can we reduce the space usage ?
Did we miss some configuration ?

@rps-v
Copy link
Author

rps-v commented Jun 16, 2020

Found possible solution on the forum.

Add following env vars to kafka in docker-compose.yml :

...
  kafka:
    environment:
      KAFKA_LOG_RETENTION_HOURS: '24'
      KAFKA_LOG_RETENTION_BYTES: '1073741824'
      KAFKA_LOG_SEGMENT_BYTES: '107374182'
      KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: '60000'
      KAFKA_LOG_SEGMENT_DELETE_DELAY_MS: '1000'
...

@ahmadalli
Copy link
Contributor

I think it's related to #502

@BYK
Copy link
Collaborator

BYK commented Jun 18, 2020

Closing this in favor of #502 as @ahmadalli suggested.

@BYK BYK closed this as completed Jun 18, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants