vasquez
vasquez

Reputation: 581

Non-time-based RollCycles?

Chronicle Queue has the notion of RollCycles which determine when an appender will switch to a new file. Would it be possible to have RollCycles based on other criteria, for instance of current file size? It would switch to a new file if the current one will exceed a certain file size or number of records.

Upvotes: 1

Views: 38

Answers (1)

Peter Lawrey
Peter Lawrey

Reputation: 533482

There isn't a means of doing this as currently, the internal representation is time-based.

Instead, I suggest rolling often enough that the files are not too large. You can use roll cycles of 1, 5, 10, 15, 20, 30, 60, 120, 240, and 360 minutes, instead of daily.

Upvotes: 1

Related Questions