From 41cb6cfe63bbb4f5fc3ae7fdd08ec4652b21669f Mon Sep 17 00:00:00 2001 From: vinllen Date: Sat, 13 Apr 2019 12:22:07 +0800 Subject: [PATCH] set default parallel to 64 --- conf/redis-shake.conf | 4 ++-- src/redis-shake/main/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/redis-shake.conf b/conf/redis-shake.conf index 72873fa..66f2b35 100644 --- a/conf/redis-shake.conf +++ b/conf/redis-shake.conf @@ -16,8 +16,8 @@ http_profile = 9320 # runtime.GOMAXPROCS, 0 means use cpu core number: runtime.NumCPU() ncpu = 0 -# parallel routines number used in RDB file syncing. -parallel = 4 +# parallel routines number used in RDB file syncing. default is 64. +parallel = 32 # input RDB file. read from stdin, default is stdin ('/dev/stdin'). # used in `decode` and `restore`. diff --git a/src/redis-shake/main/main.go b/src/redis-shake/main/main.go index f725153..d22dc11 100644 --- a/src/redis-shake/main/main.go +++ b/src/redis-shake/main/main.go @@ -178,7 +178,7 @@ func sanitizeOptions(tp string) error { } if conf.Options.Parallel == 0 { // not set - conf.Options.Parallel = 1 + conf.Options.Parallel = 64 // default is 64 } else if conf.Options.Parallel > 1024 { return fmt.Errorf("parallel[%v] should in (0, 1024]", conf.Options.Parallel) } else {