Branch: refs/heads/release/0.23.0
Home:
https://github.com/hawkular/hawkular-metrics
Commit: 6a6fe706991001f5cbec426c53434cfbc8f0c048
https://github.com/hawkular/hawkular-metrics/commit/6a6fe706991001f5cbec4...
Author: John Sanda <jsanda(a)redhat.com>
Date: 2017-01-31 (Tue, 31 Jan 2017)
Changed paths:
A job-scheduler/src/main/java/org/hawkular/metrics/scheduler/impl/Lock.java
M job-scheduler/src/main/java/org/hawkular/metrics/scheduler/impl/LockManager.java
M job-scheduler/src/main/java/org/hawkular/metrics/scheduler/impl/SchedulerImpl.java
Log Message:
-----------
[HWMETRICS-570] initial support for automatic lock renewal
The idea is to prevent a job execution lock from expiring while the job is
running without placing too much extra load on Cassandra. job execution locks
will automatically renew once more than half the time to their expiration has
passed. If a lock is set to expire in one hour for example, then it will renew
in 30 minutes.
Single execution jobs locks have a hard coded timeout of 30 minutes. That value
is completely arbitrary. I did not want a value to small resulting in lots of
lock renewal queries.
Repepating job lock timeouts are based on the job interval. The timeout is 25%
more than the interval. The compression job runs every two hours, so the lock
timeout will be 2.5 hours and will renew in 75 minutes.
Commit: 6e56dc4b604fd44d428f189c6ef59695371688bd
https://github.com/hawkular/hawkular-metrics/commit/6e56dc4b604fd44d428f1...
Author: Stefan Negrea <stefannegrea(a)users.noreply.github.com>
Date: 2017-02-01 (Wed, 01 Feb 2017)
Changed paths:
A job-scheduler/src/main/java/org/hawkular/metrics/scheduler/impl/Lock.java
M job-scheduler/src/main/java/org/hawkular/metrics/scheduler/impl/LockManager.java
M job-scheduler/src/main/java/org/hawkular/metrics/scheduler/impl/SchedulerImpl.java
Log Message:
-----------
Merge pull request #749 from jsanda/release/0.23.0-hwkmetrics-570
[HWMETRICS-570] initial support for automatic lock renewal
Compare:
https://github.com/hawkular/hawkular-metrics/compare/ddfc5cc58035...6e56d...