-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migration: new
MigrationModule
option and copy completion message
**Motivation** allow modified replication behavior to support hotspot mitigation. Specifically we need replication jobs to complete without error when the number of replicas is maximized with respect to the available pools, even if more replicas were requested. **Modification:** * In `Job.java`: `Error` -> `Note`. The names of all related methods are changed accordingly (e.g. `addError()` -> `addNote()`). * `MigrationModule` gets new option `-target-deficit-mode=(wait|limit)` (default `wait`) determining behavior when requested replicas exceeds target pool availability: * `wait` The job will wait for new pools to become available (e.g. added to specified pool group). This is the default. * `limit` If more replicas are requested than exist available pools, the job will complete successfully (with a note) when the number of replicas is maximized for the pools currently available. * In interface `TaskCompletionHandler`: new method `taskCompletedWithNote(Task, String)` with default implementation forwarding to `taskCompleted(Task)`. * New (manually-generated) files `Task_sm.dot`, and `Task_sm.dot.png` showing the state machine model encoded by `Task.sm`. * New method in `Task.java`: `moreReplicasPossible()` for use in state transition guards. * New finite state machine (FSM) action `notifyCompletedWithInsufficientReplicas()` in `Task.java`. * In `Task.sm`, `Done` entry action `notifyCompleted()` removed in favor of per-transition actions `notifyCompleted()`, or `notifyCompletedWithInsufficientReplicas()` as appropriate. It was determined by analysis that moving the post-state-change entry action to a pre-state-change transition did not disrupt the intended semantics of the state machine. * New guarded transitions to `Done` when more replicas are requested than are possible with the target pools available currently. * `Task_sm.dot`, and `Task_sm.dot.png` updated manually to reflect the changes to the state machine. **Result:** * Partially implements #7675 * Replication jobs can be issued with `-target-deficit-mode=limit` to terminate successfully when all pools available currently have been populated with replicas, but more replicas were requested. **Target:** master **Request:** - **Patch:** https://rb.dcache.org/r/14362/ **Closes:** **Requires-notes:** yes **Requires-book:** **Acked-by:** Tigran Mkrtchyan, Dmitry Litvintsev
- Loading branch information
1 parent
bfbf240
commit f41cd3e
Showing
11 changed files
with
518 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.