@@ -24,6 +24,7 @@ import (
2424 "io/ioutil"
2525 "os"
2626 "path/filepath"
27+ "runtime/pprof"
2728 "strings"
2829 "sync"
2930 "time"
@@ -208,9 +209,11 @@ func MakeFull(log logging.Logger, rootDir string, cfg config.Local, phonebookAdd
208209 return nil , err
209210 }
210211
211- node .cryptoPool = execpool .MakePool (node )
212- node .lowPriorityCryptoVerificationPool = execpool .MakeBacklog (node .cryptoPool , 2 * node .cryptoPool .GetParallelism (), execpool .LowPriority , node )
213- node .highPriorityCryptoVerificationPool = execpool .MakeBacklog (node .cryptoPool , 2 * node .cryptoPool .GetParallelism (), execpool .HighPriority , node )
212+ node .cryptoPool = execpool .MakePool (node , "worker" , "cryptoPool" )
213+ node .lowPriorityCryptoVerificationPool = execpool .MakeBacklog (node .cryptoPool , 2 * node .cryptoPool .GetParallelism (),
214+ execpool .LowPriority , node , "worker" , "lowPriorityCryptoVerificationPool" )
215+ node .highPriorityCryptoVerificationPool = execpool .MakeBacklog (node .cryptoPool , 2 * node .cryptoPool .GetParallelism (),
216+ execpool .HighPriority , node , "worker" , "highPriorityCryptoVerificationPool" )
214217 node .ledger , err = data .LoadLedger (node .log , ledgerPathnamePrefix , false , genesis .Proto , genalloc , node .genesisID , node .genesisHash , []ledger.BlockListener {}, cfg )
215218 if err != nil {
216219 log .Errorf ("Cannot initialize ledger (%s): %v" , ledgerPathnamePrefix , err )
@@ -378,8 +381,9 @@ func (node *AlgorandFullNode) startMonitoringRoutines() {
378381 node .monitoringRoutinesWaitGroup .Add (2 )
379382 go node .txPoolGaugeThread (node .ctx .Done ())
380383 // Delete old participation keys
381- go node .oldKeyDeletionThread (node .ctx .Done ())
382-
384+ pprof .Do (context .Background (), pprof .Labels ("worker" , "oldKeyDeletionThread" ), func (_ context.Context ) {
385+ go node .oldKeyDeletionThread (node .ctx .Done ())
386+ })
383387 // TODO re-enable with configuration flag post V1
384388 //go logging.UsageLogThread(node.ctx, node.log, 100*time.Millisecond, nil)
385389}
0 commit comments