Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Why did not released hdd space after deleteSnapshots? #41

Open
AndreyLadniy opened this issue Feb 23, 2018 · 9 comments
Open

Why did not released hdd space after deleteSnapshots? #41

AndreyLadniy opened this issue Feb 23, 2018 · 9 comments

Comments

@AndreyLadniy
Copy link

AndreyLadniy commented Feb 23, 2018

I try use deleteSnapshots but only have incresed space usage. I can't undestand, plugin only stores additional DeleteEvent and don't delete it from the stream in fact?

@t3hnar
Copy link
Contributor

t3hnar commented Feb 23, 2018

Yes, EventStore is an immutable append only storage.

@gregoryyoung
Copy link

gregoryyoung commented Feb 23, 2018 via email

@AndreyLadniy
Copy link
Author

Yes, EventStore is an immutable append only storage.

This leads to the inability to use the ES through EventStore.Akka.Persistence in production. In my case with frequent snapshots I have 25% for bussines events and 75% for snapshot events with a simple test.

@t3hnar
Copy link
Contributor

t3hnar commented Feb 23, 2018

@AndreyLadniy you still can set up different storage for snapshots, and keep using event store for events

@gregoryyoung
Copy link

Why do you need your old snapshots? Is something as simple as setting maxCount on snapshot streams enough for you?

@AndreyLadniy
Copy link
Author

AndreyLadniy commented Feb 24, 2018

@t3hnar Thanks, I already thought about it, if no solutions can be made with the the ES and do it so.
@gregoryyoung I don't need old snapshots, I need only the one last. I can't undestand how it can be made if maxCount can be setted for the concrete stream, but shapshots stream contains the snapshot of every PersistentActor.

@t3hnar
Copy link
Contributor

t3hnar commented Feb 24, 2018

@AndreyLadniy could you please double check, there should be separate snapshot stream per persistenceId

@AndreyLadniy
Copy link
Author

I try use maxCount for every snapshot stream. maxCount hides old snapshots, but uses hdd space which releases with scavege only.
So deleteSnapshots can't be used as a part of akka-persistence (for disk space releasing), but deletion can be done with ES side with manual updating maxCount and periodic scavenge

@gregoryyoung
Copy link

gregoryyoung commented Feb 26, 2018 via email

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