generated from ARM-Development/arm-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes race conditions and adds some new features:
- option to simulate HTTP failures (needed for testing unstable networks) - option to change the rate at which retries are done (error backoff) - fixes bug where outgoing files logged multiple times (see line 1094 of client/client.go) - paylod = nil - adds raw bandwidth logging that includes all network traffic sent/received by client - ability to restart clients via internal server request - various fixes to accommodate linting complaints - race conditions in payload/bin.go and stage/local.go
- Loading branch information
Showing
19 changed files
with
648 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
OUT: # Outgoing configuration | ||
dirs: # Outgoing directory configuration | ||
cache : .sts/out # Used to store internal caches | ||
logs : data/log | ||
out : data/out # Directory to watch for files to send; appends "/{target}" unless overridden | ||
out-follow : true | ||
cache: .sts/out # Used to store internal caches | ||
logs: data/log | ||
out: data/out # Directory to watch for files to send; appends "/{target}" unless overridden | ||
out-follow: true | ||
sources: # Supports multiple sources where omitted entries will inherit from previous sources hierarchically | ||
- name : stsout-1 # Name of the source | ||
threads : 8 # Maximum number of concurrent connections | ||
scan-delay : 10s | ||
cache-age : 5m | ||
min-age : 5s # How old a file must be before being added to the "outgoing" queue | ||
max-age : 0s # How old a file can be before getting logged as "stale" (remains in the queue) | ||
bin-size : 20MB # The generally-desired size for a given HTTP request (BEFORE any compression) | ||
compress : 0 # Use GZIP compression level (0-9) (NOTE: bin-size is based on file size BEFORE compression) | ||
stat-payload : true # Log payload transmission stats | ||
poll-delay : 2s # How long to wait after file sent before final validation | ||
poll-interval : 5s # How long to wait between polling requests | ||
poll-attempts : 1 # How many times to "poll" for the successful reception of a file before re-sending | ||
- name: stsout-1 # Name of the source | ||
threads: 16 # Maximum number of concurrent connections | ||
scan-delay: 10s | ||
cache-age: 5m | ||
min-age: 5s # How old a file must be before being added to the "outgoing" queue | ||
max-age: 0s # How old a file can be before getting logged as "stale" (remains in the queue) | ||
bin-size: 20MB # The generally-desired size for a given HTTP request (BEFORE any compression) | ||
compress: 0 # Use GZIP compression level (0-9) (NOTE: bin-size is based on file size BEFORE compression) | ||
stat-payload: true # Log payload transmission stats | ||
stat-interval: 30s # How often to log payload transmission stats | ||
poll-delay: 2s # How long to wait after file sent before final validation | ||
poll-interval: 5s # How long to wait between polling requests | ||
poll-attempts: 1 # How many times to "poll" for the successful reception of a file before re-sending | ||
error-backoff: 0.1 # Multiplier for How long to wait before retrying after an error | ||
target: # Target-specific configuration | ||
name : stsin-1 # Name of the target | ||
http-host : localhost:1992 | ||
name: stsin-1 # Name of the target | ||
http-host: localhost:1992 | ||
tags: # Tags are for configuration based on file patterns (omitted attributes are inherited) | ||
- pattern : DEFAULT # The file "tag" pattern | ||
priority : 1 # Relative importance (higher the number, greater the importance) | ||
order : fifo # File order (fifo (first in, first out), lifo, or none) | ||
delete : true # Whether or not to delete files after reception confirmation | ||
delete-delay : 30s | ||
method : http | ||
- pattern : ^xs/ | ||
priority : 3 | ||
- pattern : ^sm/ | ||
priority : 2 | ||
- pattern : ^xl/ | ||
priority : 0 | ||
- pattern: DEFAULT # The file "tag" pattern | ||
priority: 1 # Relative importance (higher the number, greater the importance) | ||
order: fifo # File order (fifo (first in, first out), lifo, or none) | ||
delete: true # Whether or not to delete files after reception confirmation | ||
delete-delay: 30s | ||
method: http | ||
- pattern: ^xs/ | ||
priority: 3 | ||
- pattern: ^sm/ | ||
priority: 2 | ||
- pattern: ^xl/ | ||
priority: 0 | ||
rename: | ||
- from: '^(?P<pfx>[a-z]{2})/(?P<rest>.+)$' | ||
to: '{{.pfx}}/{{.rest}}.ext' | ||
- name : stsout-2 | ||
out-dir : data/out/stsin-2 # Have to override when running on the same host since the target is the same | ||
- from: "^(?P<pfx>[a-z]{2})/(?P<rest>.+)$" | ||
to: "{{.pfx}}/{{.rest}}.ext" | ||
- name: stsout-2 | ||
out-dir: data/out/stsin-2 # Have to override when running on the same host since the target is the same | ||
target: | ||
name : stsin-1 | ||
name: stsin-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
IN: # Incoming configuration. | ||
log-buffering: true # Set to true only when potentially redundant transfers it not critical | ||
sources: | ||
- stsout-1 | ||
- stsout-2 | ||
dirs: # Incoming directory configuration. | ||
stage : data/stage # Directory to stage data as it comes in; appends "source" name | ||
final : data/in # Final location for incoming files; appends "/{source}" | ||
logs : data/log # Root directory for log files | ||
server: # Server configuration. | ||
http-host : localhost | ||
http-port : 1992 # What port to listen on | ||
compress : 0 # Use GZIP compression level (0-9) on response data | ||
log-buffering: true # Set to true only when potentially redundant transfers it not critical | ||
sources: | ||
- stsout-1 | ||
- stsout-2 | ||
dirs: # Incoming directory configuration. | ||
stage: data/stage # Directory to stage data as it comes in; appends "source" name | ||
final: data/in # Final location for incoming files; appends "/{source}" | ||
logs: data/log # Root directory for log files | ||
server: # Server configuration. | ||
http-host: localhost | ||
http-port: 1992 # What port to listen on | ||
compress: 0 # Use GZIP compression level (0-9) on response data | ||
chance-of-simulated-failure: 0.10 # Chance of simulated network failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.