Does anyone have a solution to the storage disk be...
# replication-troubleshooting
a
Does anyone have a solution to the storage disk being maxed out after a couple of days?
✍️ 1
r
whats taking up the space logs? local destination?
a
@Robert Put yeah the logs
On an EC2
maybe its also unused docker images?
Copy code
r 100+ unused docker images (perhaps related to old connectors?) that were eating up 20GB. docker prune image -a cleaned things up, in case this thread is of use to anyone else who finds it in the future.
a
Thanks for the link but that didnt work for me
Also the prune image didnt
r
how big is the disk?
are you writing to a local destionation?
a
32GB Yeah its writing to the local destination
r
then im not sure there is much you can do, its based on the data you are pushing.. other than push less data or prune it after it gets synced what sync mode are you using? if you are using an append mode, it will keep growing for example
a
Im using the append mode
r
yeah so it will grow forever then, adding new data each replication if there is new data
full or incremental append?
https://docs.airbyte.com/understanding-airbyte/connections/ explains the 4 options. if the table is small, full overwrite may be a better ideas incremental append will grow slower than full append
This blog also dives deep into it: https://airbyte.com/blog/understanding-data-replication-modes probably a little easier to digest than the documentation
a
I understand the replication modes. The issue is that the log files occupy most of the storage disk Which is why i want to clear the logs for previous days in the workspace
r
how much data are you replicating and how often? I replicating 500million rows last night and only have a few gigs of logs
postgres -> snowflake
u
@[DEPRECATED] Marcos Marx turned this thread into Zendesk ticket 2907 to ensure timely resolution!
s
Hey @Abba, thanks for the question. How much storage have you allocated, what connectors are you using? This is a command that another user shared for deleting the logs manually on their EC2 instance. Although as Robert said, if you’re using an append sync, the logs will get bigger and you’ll have to run this command every few days.
find /var/lib/docker/volumes/airbyte_workspace/_data/ -maxdepth 1 -regex '/var/lib/docker/volumes/airbyte_workspace/_data/[0-9]+' -mtime +10 | xargs rm -rf