aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-03-18 21:26:22 +0100
committerRasmus Dahlberg <rasmus@rgdd.se>2023-03-18 21:26:22 +0100
commit86e3a2a1ec6a7acdaf14a3d11ca47964ddc80d74 (patch)
treedee7ed116ac9789c682669bc1ab13c3f013af215
parent1869581015c98062acd321dbf8fdf7db187d50c2 (diff)
Smaller default params
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index a458a51..3d9b3a7 100644
--- a/main.go
+++ b/main.go
@@ -41,8 +41,8 @@ Options:
-d, --directory: The ct-sans working directory (Default: "data")
-w, --workers: Max number of parallel download workers per log (Default: 2).
- -k, --batch-disk: Certificate batch size before persisting (Default: 1024)
- -q, --batch-req: Certificate batch size to use in request (Default: 2048)
+ -k, --batch-disk: Certificate batch size before persisting (Default: 256)
+ -q, --batch-req: Certificate batch size to use in request (Default: 128)
-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: 16s)
@@ -78,8 +78,8 @@ func main() {
opts := options{}
ctflag.String(&fs, &opts.Directory, "directory", "d", "data")
ctflag.Uint64(&fs, &opts.WorkersPerLog, "workers", "w", 2)
- ctflag.Uint64(&fs, &opts.PersistSize, "batch-disk", "k", 1024)
- ctflag.Uint64(&fs, &opts.BatchSize, "batch-req", "q", 2048)
+ ctflag.Uint64(&fs, &opts.PersistSize, "batch-disk", "k", 256)
+ ctflag.Uint64(&fs, &opts.BatchSize, "batch-req", "q", 128)
ctflag.String(&fs, &opts.HTTPAgent, "http-agent", "a", "git.cs.kau.se/rasmoste/ct-sans")
ctflag.Duration(&fs, &opts.MetricsInterval, "metrics", "m", 16*time.Second)