CDLUC3 / mrt-doc

Documentation and Information regarding the Merritt repository
8 stars 4 forks source link

Storage "Fix" Framework #1876

Open terrywbrady opened 5 months ago

terrywbrady commented 5 months ago

Note: Requires new Inventory mrt-zk implementation.

The Merritt system will implement a framework for applying fixes to cloud storage and cloud storage keys.

Fix Operations

changeToken

fix Nuxeo cloud storage keys that contain a "changeToken" url parameter

Backup Node

A new storage node will be created at SDSC for object backup. This bucket will contain a backup of an object. This is not an object replica.

Storage Endpoint: POST /fix/NODE/ARK?fix=FIX_OPERATION&run=true

Merritt Admin Tool

Queuing logic is TBD

terrywbrady commented 5 months ago

Moving to Sprint 103 since David is not working on this yet.

dloy commented 3 months ago

Some issues to consider:

Content

A couple of content issues to note from Nuxeo testing

dloy commented 2 months ago

Question of one-off vs. zookeeper control vs, db monitor

I see the procedure for handling Fix falling into 3 categories:

one-off local management

Process

A simple process that will probably not be duplicated moving forward.

For changeToken this would be a series of API calls with verification:

Advantage

Disadvantage

programmed control flow

Process

A flow controlled process is created to control what happens next. The flow control is at the same level as update - copy is not an API but rather a step in the flow control

For changeControl - create zookeeper flow that includes each step normally handled by each service.

This includes:

Advantage

Disadvantage

one-off with db status

Process

Identical to one-off local management but includes an additional step after API calls to report to a db Process Table an ok completion or of an error that occurred during the one-off handling.

Rerun logic on this would update the single db entry.

This db entry update would be either a direct update or more likely an API call (replic?) to modify the single entry for this item (ark?)

Process Table entry format

The Process Table would require periodic cleanup.

Advantage

Disadvantage

My Recommendation

Go with the Process Table model. Requires additional setup for creation of table and setting values