You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/12/15 15:31:00 UTC

[jira] [Commented] (ARTEMIS-4065) Option to use non persistent counters in paging. Rebuild them upon start if persistence is disabled on them

    [ https://issues.apache.org/jira/browse/ARTEMIS-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17648119#comment-17648119 ] 

ASF subversion and git services commented on ARTEMIS-4065:
----------------------------------------------------------

Commit af9bd7b84aad32e4fe30f2c8909e51cf7300b475 in activemq-artemis's branch refs/heads/main from Clebert Suconic
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=af9bd7b84a ]

ARTEMIS-4065 Optimize page counters to not use the journal as often

- From now on we will save snapshots of page-counters on the journal (basically for compatibility with previous verions).
  And we will recount the records on startup.

- While the rebuild is being done the value from the previous snapshot is still available with current updates.


> Option to use non persistent counters in paging. Rebuild them upon start if persistence is disabled on them
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-4065
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4065
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Clebert Suconic
>            Priority: Major
>          Time Spent: 4h 20m
>  Remaining Estimate: 0h
>
> Instead of storing records on journal for counting how many records there are in paging, the system should instead just swipe the paging system in parallel with processing data.
> The changes I'm making will take a snapshot of the current records of paging, 
> and then it will read all the pages to rebuild the counters.
> On tests I am making from a real data server, a system that had a lot of pages (700) needed less than 1 minute to rebuild the counters, and the messages were available to be delivered while the swipe was being done.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)