summaryrefslogtreecommitdiff
path: root/lib/gitlab/exclusive_lease.rb
Commit message (Collapse)AuthorAgeFilesLines
* Run background migrations with a minimum intervaldelay-background-migrationsYorick Peterse2018-01-051-0/+11
| | | | | | | | | | | | | | | This adds a minimum interval to BackgroundMigrationWorker, ensuring background migrations of the same class only run once every 5 minutes. This prevents a thundering herd problem where scheduled migrations all run at once due to their delays having been expired (e.g. as the result of a queue being paused for a long time). If a job was recently executed it's rescheduled with a delay that equals the remaining time of the job's lease. This means that if the lease expires in two minutes we only need to wait two minutes, instead of five. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/41624
* Adds exclusive lease to Git garbage collect worker.35558-only-one-garbage-collection-should-be-running-per-project-at-onceTiago Botelho2017-09-071-2/+8
|
* Support multiple Redis instances based on queue typePaul Charlton2017-07-111-10/+10
|
* Introduce #renew for ExclusiveLeasebackport-renew-exclusive-leaseGabriel Mazetto2017-06-241-1/+18
|
* Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
|
* Refine Git garbage collectionJacob Vosmaer2016-11-041-40/+26
|
* Don't schedule ProjectCacheWorker unless neededproject-cache-worker-schedulingYorick Peterse2016-10-251-1/+8
| | | | | | This changes ProjectCacheWorker.perform_async so it only schedules a job when no lease for the given project is present. This ensures we don't end up scheduling hundreds of jobs when they won't be executed anyway.
* clean up ExclusiveLeaseredis_improvementsValery Sizov2016-04-131-5/+0
|
* Add Gitlab::Redis connection poolJacob Vosmaer2016-04-041-1/+3
|
* Explain why ExclusiveLease has no #cancellease-design-commentsJacob Vosmaer2016-03-241-0/+21
| | | | [ci skip]
* Typoexpiring-lockJacob Vosmaer2016-03-101-1/+1
|
* Make comment less ambivalentJacob Vosmaer2016-03-101-2/+1
|
* Remove unnecessary random keyJacob Vosmaer2016-03-101-7/+1
|
* Improve commentJacob Vosmaer2016-03-101-2/+2
|
* Move method to UserJacob Vosmaer2016-03-101-1/+12
|
* Rename ExpiringLock to ExclusiveLeaseJacob Vosmaer2016-03-101-0/+37