Switch default persistence to segmented-journal 95/88995/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 11 Feb 2020 17:26:32 +0000 (18:26 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Apr 2020 15:22:08 +0000 (17:22 +0200)
We want to migrate away fro leveldb persistence, this switches
the default persistence being used for new deployments to our own
segmented-journal plugin.

JIRA: CONTROLLER-1411
Change-Id: I9db4e8115ac8f31c5c331c194de1ff08a674af97
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf

index e2ec0fca9ebe74479e0a73097d29e111d5481d8d..464645b6ae3aef4f041e97fe83edcd0028739943 100644 (file)
@@ -124,13 +124,19 @@ odl-cluster-data {
 
     persistence {
       journal {
-        plugin = akka.persistence.journal.leveldb
+        # This would activate the deprecated levedb persistence plugin. This plugin was used
+        # by default by all OpenDaylight versions, but is considered not ready for production
+        # use by Akka. Magnesium defaults to segmented-file journal (below) and this option will
+        # be removed in a future release.
+        #
+        # plugin = akka.persistence.journal.leveldb
 
-        # The following activates the alternative segmented file journal. Each persistent actor
+        # The following activates the default segmented file journal. Each persistent actor
         # is stored in a separate directory, with multiple segment files. Segments are removed
         # when they are not longer required.
         #
-        # plugin = akka.persistence.journal.segmented-file
+        plugin = akka.persistence.journal.segmented-file
+
         segmented-file {
           class = "org.opendaylight.controller.akka.segjournal.SegmentedFileJournal"
           # Root directory for segmented journal storage