mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
index segments by maximum by 2 workers #4041
This commit is contained in:
parent
47f492663e
commit
c896807bfe
@ -1102,8 +1102,8 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R
|
||||
if workers < 1 {
|
||||
workers = 1
|
||||
}
|
||||
if workers > 4 {
|
||||
workers = 4
|
||||
if workers > 2 {
|
||||
workers = 2 // 4 workers get killed on 16Gb RAM
|
||||
}
|
||||
if err := snapshotsync.BuildIndices(ctx, cfg.snapshots, cfg.snapshotDir, *chainID, cfg.tmpdir, cfg.snapshots.IndicesAvailable(), workers, log.LvlInfo); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user