Remove replication prioritization
Turns out this prioritization causes stampedes right after capacity additions (especially on smaller clusters), which means the things it prioritizes don't get done for several passes anyway, which means the prioritization isn't solving the problem it was designed to do, and it causes non-productive load spikes instead. :/ Getting rid of the prioritization doesn't make things go any slower overall, could make things actually go faster since there are less collisions, and evens out the load. Change-Id: I4938bcd12d9a21fad635cfe772897e4c151f8a95
This commit is contained in:
1 changed files with 0 additions and 2 deletions
@@ -589,8 +589,6 @@ class ObjectReplicator(Daemon):
except ValueError, OSError:
continue
random.shuffle(jobs)
# Partititons that need to be deleted take priority
jobs.sort(key=lambda job: not job['delete'])
self.job_count = len(jobs)
return jobs
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.