Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / WConfd @ 0d1d2d22

Name Size
ConfigState.hs 1.3 kB
ConfigWriter.hs 4.5 kB
Core.hs 3.5 kB
DeathDetection.hs 3 kB
Language.hs 2.4 kB
Monad.hs 6.8 kB
Server.hs 3.4 kB

Latest revisions

# Date Author Comment
0d1d2d22 03/07/2014 05:22 pm Petr Pudlak

Write the configuration only if it changed

.. to avoid expensive operation when they're not actually needed.
Comparing the two objects in memory is much less costly that
distributing the configuration.

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

1e0d1a19 03/07/2014 05:22 pm Petr Pudlak

Add a helper to ConfigWriter for creating async. workers

In particular, stateful workers that can fail with an error, in which
case the error is logged and the state remains unchanged.

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

f3010b75 03/07/2014 10:57 am Klaus Aehlig

Also clean up stale livelock files

Upon detection of a stale livelock, make WConfD also
try to clean it up. We can safely ignore any failures,
as the Ganeti resources are already freed, and the worst
thing that can happen is an empty file left over in the...

db0d2ee9 03/06/2014 05:35 pm Klaus Aehlig

In WConfD run a cleanup task

Add the cleanup task for locks of died owners to WConfD,
as a separate thread.

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

b57c50de 03/06/2014 05:35 pm Klaus Aehlig

Provide a periodic lock cleanup task

Provide a task that periodically checks for all locks
owners whether they are still alive. If not, it cleans
up their locks.

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

bacb44fe 03/06/2014 05:35 pm Klaus Aehlig

Add a function to detect death of a job

With jobs running in processes different from the lock management soon,
we need to detect if a job holding locks dies, in order to release the
resources.

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

1d4febbd 03/04/2014 05:03 pm Klaus Aehlig

Write lock state to disk after updates

Make use of asynchronous worker to save to log status after every
update. The answer to the query is only returned, once the state
is saved on disk. Note that replication of the lock status is not
necessary, as all jobs will be gone if the master node goes away....

5d7ac40f 03/03/2014 06:05 pm Klaus Aehlig

Export opportunistic lock union through WConfd

Make WConfD provide a function to opportunistically allocate
locks.

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

66927d09 03/03/2014 06:05 pm Klaus Aehlig

Export lock intersection through WConfD

Export the functionality to restrict the owned locks to a given set.

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

b4d1b49f 03/03/2014 06:05 pm Klaus Aehlig

Export freeLocks through WConfD

Export the functionality to free all locks of a given
owner.

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

View revisions

Also available in: Atom