Skip to content

Commit

Permalink
Merge pull request #244 from lkiesow/t/mh-12898-download-dist-job-load
Browse files Browse the repository at this point in the history
MH-12898, Fix download distribution job load defaults
  • Loading branch information
staubesv committed May 22, 2018
2 parents 78c1569 + d4b1d25 commit 1429f61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#The load on the system introduced by creating a distribute job
#Each job involves copying the output file to the final output directory which can be expensive depending on file size
#Since this will fairly quickly add up, these should be relatively expensive, but not cripplingly so
# The load on the system introduced by creating a distribute job Each job involves copying the output file to the final
# output directory. If possible, hard-linking is used for this which makes the job less expensive. If hard-linking if
# not possible, you might want to increase this value.
# Default: 0.2
#job.load.download.distribute=0.2

job.load.download.distribute = 1.0

#The load on the system introduced by creating a retract job
#Each job involves deleting the output file from the final output directory
#This is a quick and inexpensive operation, so we can run a lot of these in parallel

job.load.download.retract = 0.1
# The load on the system introduced by creating a retract job. Each job involves deleting the output file from the
# final output directory. This is a quick and inexpensive operation, so we can run a lot of these in parallel.
# Default: 0.1
#job.load.download.retract=0.1
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ private enum Operation {
private static final long TIMEOUT = 60000L;

/** The load on the system introduced by creating a distribute job */
public static final float DEFAULT_DISTRIBUTE_JOB_LOAD = 0.1f;
public static final float DEFAULT_DISTRIBUTE_JOB_LOAD = 0.2f;

/** The load on the system introduced by creating a retract job */
public static final float DEFAULT_RETRACT_JOB_LOAD = 1.0f;
public static final float DEFAULT_RETRACT_JOB_LOAD = 0.1f;

/** The key to look for in the service configuration file to override the {@link DEFAULT_DISTRIBUTE_JOB_LOAD} */
public static final String DISTRIBUTE_JOB_LOAD_KEY = "job.load.download.distribute";
Expand Down

0 comments on commit 1429f61

Please sign in to comment.