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 {