I'm trying to find a way to keep Stellar disk usage in check. I only care about the last 24 hours or so of transactions and don't want to over-provision the instance
I started a docker container using the quick start
docker run --rm -it -p "8000:8000" -v "/home/ec2-user/stellar:/opt/stellar" --name stellar stellar/quickstart --pubnet
and updated ~/stellar/core/etc/stellar-core.cfg
, adding these lines
AUTOMATIC_MAINTENANCE_PERIOD=60
AUTOMATIC_MAINTENANCE_COUNT=500
CATCHUP_COMPLETE=false
which after reading this question leads me to believe it will constrain the disk, yet the disk usage of my 30GB disk continues to climb until it consumes 100%.
The reset to 25% usage is after I kill the container and delete ~/stellar
I've also tried
docker exec 6 stellar-core http-command maintenance
but nothing good happens with disk, it just reports No work performed
What am I missing?
curl localhost:11626/getcursor
? It's a common set up to have a horizon cursor, in this case core will not free the resources that horizon (or whatever other app with cursor) didn't fetch yet.{"cursors":[{"cursor":24563082,"id":"HORIZON"}]}
. Not sure whether that is expected or not.