diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-03-18 16:55:50 +0000 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-03-18 17:58:25 +0100 |
commit | 5c12f6ade6ebd444f05175a658e6b70bdde5046f (patch) | |
tree | 5cb859351bca1ac2fe1b41896334c79fea045494 /main.go | |
parent | 4233dde13c61f492023166c6bafda85ba7bb08b3 (diff) |
Tune number of workers
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,9 +40,9 @@ Help: Options: -d, --directory: The ct-sans working directory (Default: "data") - -w, --workers: Number of parallel download workers per log (Default: 2) + -w, --workers: Max number of parallel download workers per log (Default: 2). -k, --batch-disk: Certificate batch size before persisting (Default: 16384) - -q, --batch-req: Certificate batch size to use in request (Default: 512) + -q, --batch-req: Certificate batch size to use in request (Default: 2048) -a, --http-agent: HTTP agent to use in all request (Default: "git.cs.kau.se/rasmoste/ct-sans") -m, --metrics: How often to emit metrics to stderr (Default: 15s) @@ -79,7 +79,7 @@ func main() { ctflag.String(&fs, &opts.Directory, "directory", "d", "data") ctflag.Uint64(&fs, &opts.WorkersPerLog, "workers", "w", 2) ctflag.Uint64(&fs, &opts.PersistSize, "batch-disk", "k", 16384) - ctflag.Uint64(&fs, &opts.BatchSize, "batch-req", "q", 512) + ctflag.Uint64(&fs, &opts.BatchSize, "batch-req", "q", 2048) ctflag.String(&fs, &opts.HTTPAgent, "http-agent", "a", "git.cs.kau.se/rasmoste/ct-sans") ctflag.Duration(&fs, &opts.MetricsInterval, "metrics", "m", 15*time.Second) |