mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 17:31:03 +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 {
|
CoreOpts {
|
||||||
worker_threads: Some(16),
|
worker_threads: Some(16),
|
||||||
|
num_aggregators: Some(1),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
ShardOpts {
|
ShardOpts {
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ fn main() {
|
|||||||
tokio::runtime::Builder::new_multi_thread()
|
tokio::runtime::Builder::new_multi_thread()
|
||||||
.enable_all()
|
.enable_all()
|
||||||
.worker_threads(worker_threads)
|
.worker_threads(worker_threads)
|
||||||
|
.thread_name("telemetry_core_worker")
|
||||||
.build()
|
.build()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ fn main() {
|
|||||||
tokio::runtime::Builder::new_multi_thread()
|
tokio::runtime::Builder::new_multi_thread()
|
||||||
.enable_all()
|
.enable_all()
|
||||||
.worker_threads(worker_threads)
|
.worker_threads(worker_threads)
|
||||||
|
.thread_name("telemetry_shard_worker")
|
||||||
.build()
|
.build()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
|
|||||||
Reference in New Issue
Block a user