mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-30 00:17:59 +00:00
give tokio threads a more convenient name for monitoring purposes
This commit is contained in:
@@ -33,6 +33,7 @@ pub fn benchmark_subscribe_speed(c: &mut Criterion) {
|
||||
},
|
||||
CoreOpts {
|
||||
worker_threads: Some(16),
|
||||
num_aggregators: Some(1),
|
||||
..Default::default()
|
||||
},
|
||||
ShardOpts {
|
||||
|
||||
@@ -98,6 +98,7 @@ fn main() {
|
||||
tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.worker_threads(worker_threads)
|
||||
.thread_name("telemetry_core_worker")
|
||||
.build()
|
||||
.unwrap()
|
||||
.block_on(async {
|
||||
|
||||
@@ -107,6 +107,7 @@ fn main() {
|
||||
tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.worker_threads(worker_threads)
|
||||
.thread_name("telemetry_shard_worker")
|
||||
.build()
|
||||
.unwrap()
|
||||
.block_on(async {
|
||||
|
||||
Reference in New Issue
Block a user