Skip to content

Commit

Permalink
Change nomad connection and scraping limits (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas authored Apr 18, 2024
2 parents 1010f6b + 8b45be5 commit de93eff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/cluster/scripts/run-consul.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ EOF
}
},
"telemetry": {
"prometheus_retention_time": "24h",
"prometheus_retention_time": "2h",
"disable_hostname": true
},
"limits": {
"http_max_conns_per_client": 5000
"http_max_conns_per_client": 80
},
"advertise_addr": "$instance_ip_address",
"bind_addr": "$instance_ip_address",
Expand Down
6 changes: 3 additions & 3 deletions packages/cluster/scripts/run-nomad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ log_level = "DEBUG"
log_json = true
telemetry {
collection_interval = "1s"
collection_interval = "5s"
disable_hostname = true
prometheus_metrics = true
publish_allocation_metrics = true
Expand All @@ -247,8 +247,8 @@ acl {
}
limits {
http_max_conns_per_client = 5000
rpc_max_conns_per_client = 5000
http_max_conns_per_client = 80
rpc_max_conns_per_client = 80
}
consul {
Expand Down
2 changes: 1 addition & 1 deletion packages/envd/internal/file/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ func Upload(logger *zap.SugaredLogger, w http.ResponseWriter, r *http.Request) {
return
}

logger.Info("Upload complete", "path", newFilePath)
logger.Info("Upload complete ", "path", newFilePath)
}

0 comments on commit de93eff

Please sign in to comment.