4 Replies Latest reply on Mar 12, 2015 12:07 PM by mylos78

    When is the journal cleaned up ?

    mylos78

      Hi all!

      I'm planning to use a replication (instead of shared store) for a cluster of WildFly nodes. However, from the documentation I can read that the full journal is replicated. So my question is: will the journal be rolled or cleaned when the messages are delivered ? or it will keep growing until I delete manually it ?

      Thanks!

      Mylos

        • 1. Re: When is the journal cleaned up ?
          ataylor

          as messages, transactions etc are delivered/commited they are removed from the journal.

          • 2. Re: When is the journal cleaned up ?
            mylos78

            Thanks Andy!

            So if my understanding is correct, what will be replicated through the network is only the journal with messages which have not been delivered, right ?

            Thanks!

            • 3. Re: When is the journal cleaned up ?
              jbertram

              So if my understanding is correct, what will be replicated through the network is only the journal with messages which have not been delivered, right ?

              No, that's not quite right.  Every time a persistent (i.e durable) message is sent to a queue that message is written to the journal and that journal write is then replicated from the live to the backup.  When a persistent message is consumed from a queue another journal update is made and that update is also replicated from the live to the backup.  There's no meaningful sense of "messages which have not been delivered" in relation to journal replication.

              • 4. Re: When is the journal cleaned up ?
                mylos78

                Thanks for pointing out this Justin.