Hi Egemen,
On 13.03.14 15:56, Egemen wrote:
Hi all,
We used akka-persistence to persist messages to replay in case of
failure during processing. As soon as we process messages
successfully, we delete them permanently from leveldb using
*deletemessage(sequenceNr, true)* method.
For performance reasons, you should use deleteMessages(toSequenceNr,
true) here, either on scheduler events (e.g. every hour) or after a
certain number of messages (e.g. every 1M messages)
However, our journal directory size is now 300M after >1M messages. I
know that leveldb runs background job for compaction to reduce the
disk size.
Is there any way to trigger cleaning leveldb tables to reduce the disk
size?
not from the akka-persistence API. Please consult the LevelDB docs for
details about when compactions are running.
Cheers,
Martin
or
Is there any property in akka-persistence to clean journal permanently?
Regards,
Egemen
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google
Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to akka-user+unsubscr...@googlegroups.com
<mailto:akka-user+unsubscr...@googlegroups.com>.
To post to this group, send email to akka-user@googlegroups.com
<mailto:akka-user@googlegroups.com>.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
--
Read the docs: http://akka.io/docs/
Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.