You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "wenbingshen (via GitHub)" <gi...@apache.org> on 2023/07/10 06:21:48 UTC

[GitHub] [bookkeeper] wenbingshen opened a new issue, #4025: BP-63: Force Reschedule Auditor tasks

wenbingshen opened a new issue, #4025:
URL: https://github.com/apache/bookkeeper/issues/4025

   **BP**
   
   This is the master ticket for tracking BP-63 :
   Proposal PR - #3964 
   
   ### Motivation
   Currently, the Bookie can reschedule Auditor check tasks in several ways, excluding the auditorBookieTask as it provides a separate mechanism to trigger task reexecution. This BP specifically discusses AuditorCheckAllLedgersTask/AuditorPlacementPolicyCheckTask/AuditorReplicasCheckTask:
   
   1: The Bookie provides three execution times based on ZooKeeper, checkallledgersctime/placementpolicycheckctime/replicascheckctime. By updating these execution times, we can dynamically adjust the execution frequency of auditor tasks, but it requires restarting the Auditor process or reopening the Auditor election to trigger task execution.
   
   2: By using the ForceAuditorChecksCmd tool, which is still based on the underlying logic of the first point, restarting the Auditor or performing an election is also necessary to trigger task execution.
   
   3: The Decommission and RecoveryBookie tools tend to focus on executing recovery logic and only check and recover a specific subset of Bookie services.
   
   The above methods are complex and have poor stability when rescheduling the Auditor check tasks in a cluster.
   
   ### Proposal
   
   Therefore, I propose further optimizing the rescheduling of Auditor tasks.
   
   1: The Auditor monitors the persistent znode path /ZK_LEDGERS_ROOT_PATH/underreplication/scheduleAuditor.
   2: Users modify the task ctime using the ForceAuditorChecksCmd tool and forcefully create the above znode path using the force parameter.
   3: The Auditor creates callbacks through scheduleAuditor to reschedule the aforementioned three tasks.
   4: After the Auditor completes rescheduling the tasks, the scheduleAuditor node is deleted.
   5: When the Auditor starts, it deletes the old scheduleAuditor node to avoid logical confusion.
   
   This way, we can trigger the scheduling and execution of Auditor tasks through an online interface without relying on service restart or re-election.
   
   ### Compatibility, Deprecation, and Migration Plan
   
   There are no compatibility issues. This BP introduces a new trigger flag that does not affect the original logic and does not involve any changes to other existing public APIs. There is no deprecation or migration plan.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] BP-63: Force Reschedule Auditor tasks [bookkeeper]

Posted by "dlg99 (via GitHub)" <gi...@apache.org>.
dlg99 commented on issue #4025:
URL: https://github.com/apache/bookkeeper/issues/4025#issuecomment-2140723628

   Does this new functionality do anything that is not covered by REST API?
   https://bookkeeper.apache.org/docs/4.10.0/admin/http/#endpoint-apiv1autorecoverytrigger_audit
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org