Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / Locking @ 98b11317

Name Size
Allocation.hs 17.8 kB
Locks.hs 9.8 kB
Types.hs 1.5 kB
Waiting.hs 7.9 kB

Latest revisions

# Date Author Comment
98b11317 04/09/2014 11:58 am Klaus Aehlig

Export the underlying allocation from a waiting structure

...so that all kind of diagnostic tasks can be carried out without
duplicating the functionality on the waiting structure. Note that
we still do not export the constructor so that we can change the...

3eb96afc 04/09/2014 11:58 am Klaus Aehlig

Add functions to update locks in a waiting structure

Add functions to update the lock allocation structure and also
compute all the consequences of the update, if it succeeds. Optionally,
requests that cannot be fulfilled immediately, it can be added to
the pendig requests....

dc1e4874 04/09/2014 11:58 am Klaus Aehlig

Add data structure for lock waiting

To avoid jobs polling on locks, and also to ensure that the
most important of the waiting jobs obtains a lock, add a
data structure to keep track of who is waiting for which locks.

Signed-off-by: Klaus Aehlig <>...

b355c758 04/09/2014 11:58 am Klaus Aehlig

Derive Ord for LockRequests

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

d1dd8525 04/07/2014 10:53 am Klaus Aehlig

Switch to ClientType as identifier

...instead of Either String JobId.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

79a25c7b 04/07/2014 10:53 am Klaus Aehlig

Instance JSON ClientType

Make ClientType a JSON instance, in the way lock owners are
already encoded in JSON on the Python side.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

caa39a5d 04/07/2014 10:53 am Klaus Aehlig

Add a type for the entity owning a lock

While it is unlikely that lock owners will ever be represented by
something different than a job id or, exceptionally, a string, this
type will still improves type checking. Additionally, it will allow
us to make it a separate instance of JSON and thus simplify the...

d00aadee 04/04/2014 06:20 pm Klaus Aehlig

Export lock name

...as locks are queried by name.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

6ea23205 04/04/2014 06:13 pm Klaus Aehlig

Add a function to provide all the full lock state

This function will be used to provide the information required
to answer lock queries.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

22f3fc92 04/04/2014 06:13 pm Klaus Aehlig

Add a function to obtain all active locks

Add a function that extracts from a LockAllocation the list
of all locks that are in use (directly or indirectly).

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

View revisions

Also available in: Atom