Feature #224

make threadcount of scheduler easily configurable

Added by Michael Krkoska 925 days ago. Updated 924 days ago.

Status:Closed Start:07/24/2009
Priority:Normal Due date:
Assigned to:- % Done:

100%

Category:-
Target version:-

Description

Hi,

in schedule mode a quartz Scheduler is used. It is configured to use three worker threads for indexing.

I got an exception during index merge after a file lock acquire operation timed out. I guess two big indexes were to be merged into the main index and the waiting thread got the timeout. The indexing process was broken, after restarts nothing happened.

I believe that indexing single-threaded will avoid this problem, and it will lower the load on the svn server: Running three threads crawling the server doesn't seem nice to the other svn users.

Configuring the number of threads of the scheduler is easily done by editing the quartz.properties, but this file is hidden away in the jar. Maybe move it to etc/? Or document the possibility to override this parameter via -D switch, which seems to be possible.

Bye,
Michael

History

Updated by Karl Heinz Marbaise 924 days ago

Hi Michael,

I got an exception during index merge after a file lock acquire operation timed out.

Which kind of exception?

I guess two big indexes were to be merged into the main index and the waiting thread got the timeout. The indexing process was broken, after restarts nothing happened.

Hm...sounds not good...

I believe that indexing single-threaded will avoid this problem, and it will lower the load on the svn server: Running three threads crawling the server doesn't seem nice to the other svn users.

There is only a single thread which scan a repository not more...For every repository a single scan thread will be created...if you have observed different things i have to take a look for this...

Configuring the number of threads of the scheduler is easily done by editing the quartz.properties, but this file is hidden away in the jar.

Put the quartz.properties into the etc folder...

Kind regards
Karl Heinz Marbaise

Updated by kama - 924 days ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset r409.

Also available in: Atom PDF