--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, what you suggest is possible in theory. However instead of downloading the whole file you could access an individual entry remotely from a machine running chronicle engine.
Eg.
X writes messages.
Messages are copied to Y as a whole file or progressively. X deletes files successfully written to Y.
X needs an old entry and looks locally first or to Y to get a copied entry.
Peter.
You can check the amount of space used with du -k file. The file itself can use 256 KB for initial indexes so of you wrote 100 KB it might use up to 400 KB. You can tune this down if the overhead or block size is too large.
Peter.
On 23 Jun 2016, at 14:36, Vachagan Balayan <vachagan...@gmail.com> wrote:I can prepare a sample app that will show this, just by creating a queue with rollup of MINUTE and filling with say 1M dataand when rollup happens you'll see 80M file (on macos or ubuntu linux)...
You can reduce the chunk size to say 1 MB however for long term storage I suggest compressing the files and it should be around 1/10th the size.
On 23 Jun 2016, at 17:56, Vachagan Balayan <vachagan...@gmail.com> wrote:
Thanks Rob, it seems that i've been configuring wrong queue instance with the small block size, and the one who actually wrote were going with the default block size...
There us a call back when the file has rolled. You can use this to trigger a compression however I assume most people use a cron job.
Regards, Peter.