Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
164a5bcb
Commit
164a5bcb
authored
16 years ago
by
Guido Trotter
Browse files
Options
Downloads
Patches
Plain Diff
locking design: talk about removing locks
Reviewed-by: iustinp
parent
040408a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/design-2.0-locking.rst
+10
-5
10 additions, 5 deletions
doc/design-2.0-locking.rst
with
10 additions
and
5 deletions
doc/design-2.0-locking.rst
+
10
−
5
View file @
164a5bcb
...
...
@@ -123,8 +123,8 @@ The API will have a way to grab one or more than one locks at the same time.
Any attempt to grab a lock while already holding one in the wrong order will be
checked for, and fail.
Adding
new
locks
~~~~~~~~~~~~~~~~
Adding
/Removing
locks
~~~~~~~~~~~~~~~~
~~~~~
When a new instance or a new node is created an associated lock must be added
to the list. The relevant code will need to inform the locking library of such
...
...
@@ -132,9 +132,14 @@ a change.
This needs to be compatible with every other lock in the system, especially
metalocks that guarantee to grab sets of resources without specifying them
explicitly.
The implementation of this will be handled in the locking library itself.
explicitly. The implementation of this will be handled in the locking library
itself.
Of course when instances or nodes disappear from the cluster the relevant locks
must be removed. This is easier than adding new elements, as the code which
removes them must own them exclusively or can queue for their ownership, and
thus deals with metalocks exactly as normal code acquiring those locks. Any
operation queueing on a removed lock will fail after its removal.
Asynchronous operations
~~~~~~~~~~~~~~~~~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment