diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2025-03-12 18:18:45 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2025-03-12 18:18:45 +0100 |
commit | c32a70494dc025c707f1a5e59d2078abf094236a (patch) | |
tree | a8d6818c195da2c05c2946ff1cd7b779d4703878 | |
parent | 67e80038c395ac26739ba4802b504862643edc21 (diff) |
Update manually tuned worker counters for today
-rw-r--r-- | utils_ct.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/utils_ct.go b/utils_ct.go index 5e6e07b..b294b5e 100644 --- a/utils_ct.go +++ b/utils_ct.go @@ -37,22 +37,22 @@ func logs(md metadata.Metadata) (logs []metadata.Log) { } // maxWorkers reduces the number of workers for logs that don't appreciate too -// much parallel fetching (errors), or for which performance is equal or worse. -// Warning: this may be system-dependent, determined "by-hand" on 2023-03-18. +// much parallel fetching (status 429), or for which performance is equal or +// worse. Warning: system / location depended, updated 2025-03-12 from EU. func maxWorkers(log metadata.Log, workers uint64) int { - if max := 40; strings.Contains(*log.Description, "Argon") && int(workers) > max { - return max + if max := 12; strings.Contains(*log.Description, "Argon") && int(workers) > max { + return max // 3x more because in the US (make up for EU latency) } - if max := 16; strings.Contains(*log.Description, "Google") && int(workers) > max { + if max := 4; strings.Contains(*log.Description, "Google") && int(workers) > max { return max } if max := 4; strings.Contains(*log.Description, "Cloudflare") && int(workers) > max { return max } - if max := 12; strings.Contains(*log.Description, "Let's Encrypt") && int(workers) > max { + if max := 4; strings.Contains(*log.Description, "Let's Encrypt") && int(workers) > max { return max } - if max := 5; strings.Contains(*log.Description, "Sectigo") && int(workers) > max { + if max := 2; strings.Contains(*log.Description, "Sectigo") && int(workers) > max { return max } if max := 2; strings.Contains(*log.Description, "DigiCert") && int(workers) > max { |