Skip to content

Commit

Permalink
indexers metrics set workers to 2 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayurii authored Dec 17, 2024
1 parent 8ba1205 commit bb9b352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions logic-state-indexer/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pub fn init_server(port: u16) -> anyhow::Result<actix_web::dev::Server> {
Ok(HttpServer::new(|| App::new().service(get_metrics))
.bind(("0.0.0.0", port))?
.disable_signals()
.workers(2) // for indexers metrics server we don't need many workers
.run())
}

Expand Down
1 change: 1 addition & 0 deletions tx-indexer/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ pub(crate) fn init_server(port: u16) -> anyhow::Result<actix_web::dev::Server> {
Ok(HttpServer::new(|| App::new().service(get_metrics))
.bind(("0.0.0.0", port))?
.disable_signals()
.workers(2) // for indexer metrics server we don't need many workers
.run())
}

Expand Down

0 comments on commit bb9b352

Please sign in to comment.