Skip to content

Commit

Permalink
Merge pull request #2116 from subspace/less-metrics-server-threads
Browse files Browse the repository at this point in the history
Reduce number of threads used by metrics server
  • Loading branch information
nazar-pc authored Oct 16, 2023
2 parents 630144d + 4ce8a04 commit 9465ad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/subspace-metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ pub fn start_prometheus_metrics_server(
endpoint.set_port(0);
});

let result = HttpServer::new(app_factory).bind(endpoints.as_slice());
let result = HttpServer::new(app_factory)
.workers(2)
.bind(endpoints.as_slice());

match result {
Ok(server) => server,
Expand Down

0 comments on commit 9465ad0

Please sign in to comment.