Issue 686: Be able to prioritize sync threads
Status:  AwaitingInformation
Owner: ----
Reported by leandro....@gmail.com, Aug 25, 2010
Sometimes we have our GERRIT sync queue very long (over 10000 process), and we would like to be able to prioritize some of these threads.
Aug 25, 2010
#1 sop@google.com
Just to be clear, you have 10,000 requests in the
queue waiting for git-upload-pack on a project?

How would you like to prioritize these?  We already
have a batch/non-interactive queue that you can put
individual users into.  This is primarily meant for
automated systems like build servers, so that real
humans can still get service even though builds are
flooding the queue.  See [1].

[1] http://gerrit.googlecode.com/svn/documentation/2.1.5/config-gerrit.html#sshd.batchThreads
Status: AwaitingInformation
Sep 2, 2010
#2 leandro....@gmail.com
Hi,

Actually we would like to prioritize the tasks per id:

ssh -p 29418 localhost gerrit show-queue -w |grep waiting

c7d50e54 waiting ....          push gitsync@<server1>:<git_file_1>.git
a7d25a6b waiting ....          push gitsync@<server1>:<git_file_2>.git
07732687 waiting ....          push gitsync@<server1>:<git_file_3>.git
c1e81587 07:15:14.236          Log File Compressor
------------------------------------------------------------------------------
  13216 tasks

Sep 2, 2010
#3 sop@google.com
Wow, 13,216 tasks?

The 3 tasks you show above are replication tasks, trying to push
recent changes on this server to the remote server.  Is it just a
matter of increasing the number of threads available in the relevant
[remote] block in replication.config?
Sep 9, 2010
#4 leandro....@gmail.com
Hi,

Actually, the idea was to have someway to pioritize some of these replication tasks on the 13000 tasks queue. Is that possible?

Nov 3, 2010
#5 leandro....@gmail.com
Hi,

Kindly reminder: Any update or idea to resolve this issue?

Thanks,
Leandro.