added auto-refresh on a daily basis (configurable)

This commit is contained in:
amy
2026-11-15 17:41:38 -07:00
parent 0d576e4b55
commit 8c7c7c9f91
3 changed files with 121 additions and 52 deletions
+5 -2
View File
@@ -181,13 +181,16 @@ type AmConfig struct {
} `yaml:"uploads"`
} `yaml:"posting"`
Tuning struct {
WorkerTasks int `yaml:"workerTasks"`
Timeouts struct {
WorkerTasks int `yaml:"workerTasks"`
IPRangeLoadAttempts int `yaml:"ipRangeLoadAttempts"`
IPRangeRefresh string `yaml:"ipRangeRefresh"`
Timeouts struct {
HttpRead int `yaml:"httpRead"`
HttpWrite int `yaml:"httpWrite"`
HttpIdle int `yaml:"httpIdle"`
PageExecute int `yaml:"pageExecute"`
PageRender int `yaml:"pageRender"`
IPRangeLoad int `yaml:"ipRangeLoad"`
} `yaml:"timeouts"`
Queues struct {
AuditWrites int `yaml:"auditWrites"`
+3
View File
@@ -102,12 +102,15 @@ posting:
- "image/png"
tuning:
workerTasks: 4
ipRangeLoadAttempts: 3
ipRangeRefresh: "24h"
timeouts:
httpRead: 30
httpWrite: 30
httpIdle: 120
pageExecute: 15
pageRender: 15
ipRangeLoad: 10
queues:
auditWrites: 16
contextRecycle: 16