Skip to content

Commit 428676d

Browse files
committed
Add a log to report the ComputeJob Threadpool size and queue size information (apollographql#6662)
1 parent fb3840f commit 428676d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: apollo-router/src/compute_job.rs

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ fn queue() -> &'static AgeingPriorityQueue<Job> {
4444
}
4545
});
4646
}
47+
tracing::info!(
48+
"ComputeJob Threadpool created. Threads:{} queue size:{}",
49+
pool_size,
50+
pool_size * QUEUE_SOFT_CAPACITY_PER_THREAD
51+
);
4752
AgeingPriorityQueue::soft_bounded(QUEUE_SOFT_CAPACITY_PER_THREAD * pool_size)
4853
})
4954
}

0 commit comments

Comments
 (0)