aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-03-18 20:37:11 +0100
committerRasmus Dahlberg <rasmus@rgdd.se>2023-03-18 20:37:48 +0100
commit8ab29378ee938c7404f6ecbc6cb5a4b339bf58d7 (patch)
treea5aee208371c82cf83a22160f3eba96e226b69e2
parentd223c816323f62f7e147a44823796d6bf5fc25f3 (diff)
Tweak default parameters
Will put exactly how we run on our machine in README
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 95ec97b..a458a51 100644
--- a/main.go
+++ b/main.go
@@ -41,10 +41,10 @@ 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: 16384)
+ -k, --batch-disk: Certificate batch size before persisting (Default: 1024)
-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)
+ -m, --metrics: How often to emit metrics to stderr (Default: 16s)
`
@@ -78,10 +78,10 @@ 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", 16384)
+ ctflag.Uint64(&fs, &opts.PersistSize, "batch-disk", "k", 1024)
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)
+ ctflag.Duration(&fs, &opts.MetricsInterval, "metrics", "m", 16*time.Second)
// Parse command-line options and hardcode additional values
if err := ctflag.Parse(fs, os.Args[2:]); err != nil {