e3: exec to use half of CPU's by default

This commit is contained in:
alex.sharov 2023-03-22 10:17:03 +07:00
parent 4087510c2e
commit f69f7095bb

View File

@ -71,7 +71,7 @@ var LightClientGPO = gasprice.Config{
var Defaults = Config{
Sync: Sync{
UseSnapshots: false,
ExecWorkerCount: 2,
ExecWorkerCount: estimate.ReconstituteState.WorkersHalf(), //only half of CPU, other half will spend for snapshots build/merge/prune
ReconWorkerCount: estimate.ReconstituteState.Workers(),
BodyCacheLimit: 256 * 1024 * 1024,
BodyDownloadTimeoutSeconds: 30,