Defer up to maxEntrySize flushes by default 00/111100/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Mar 2024 04:09:55 +0000 (05:09 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Mar 2024 04:18:04 +0000 (05:18 +0100)
commit5efa65cd92e63c9eba8fdfd6b935463c314b4ad7
tree35bd80017c8567ffad8553e7ddfeb1fad3184084
parent67b69d39102b1bb2b057ef08d5406c9200012d8e
Defer up to maxEntrySize flushes by default

Batching flushes has performance benefits in terms of throughput.
Keeping the flush size at maxEntrySize makes the flush times more
consistent, as the journal's syncs will be amortized to fit writing
maxEntrySize'd entries.

JIRA: CONTROLLER-2108
Change-Id: Ie385738f65d9503fdeeed6a9e0b5ced37fde7fd3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-akka-segmented-journal/src/main/java/org/opendaylight/controller/akka/segjournal/SegmentedFileJournal.java
opendaylight/md-sal/sal-akka-segmented-journal/src/test/resources/SegmentedFileJournalTest.conf
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf
opendaylight/md-sal/sal-distributed-datastore/src/test/resources/segmented.conf