Skip to content

Commit face218

Browse files
dthainbtovar
authored andcommitted
Increase the minimum file transfer time to 60 seconds.
Rationale: Although 10 seconds ought to be plenty for an epsilon-sized file, consider what happens when streaming a large directory. A large set of files gets pushed over to the worker, which stuffs everything in the buffer/cache. Suddenly, when the buffer cache is full, transfers stutter as data is pushed to disk. The transfer time of a single item may be affected as much by what came before, than by its own size. An even better solution would take into account the time to transfer everything prior to this item. But until we have that more sophisticated approach, this change will make things a little more stable.
1 parent a674c98 commit face218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

work_queue/src/work_queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5036,7 +5036,7 @@ struct work_queue *work_queue_create(int port)
50365036
q->asynchrony_multiplier = 1.0;
50375037
q->asynchrony_modifier = 0;
50385038

5039-
q->minimum_transfer_timeout = 10;
5039+
q->minimum_transfer_timeout = 60;
50405040
q->foreman_transfer_timeout = 3600;
50415041
q->transfer_outlier_factor = 10;
50425042
q->default_transfer_rate = 1*MEGABYTE;

0 commit comments

Comments
 (0)