From 57f5e3bf935cfe84968b1236f13a88501a87395a Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 25 Sep 2024 21:35:57 +0800 Subject: [PATCH] use ela-lib v1.0.21 --- README.md | 9 +++++++-- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3983a4d..2ba5983 100644 --- a/README.md +++ b/README.md @@ -73,8 +73,14 @@ tasks: # tasks which is executed orderly. - source_index: "sample_hello" target_index: "sample_hello" + + slice_size: 5 # search with slice number which is the parallelism size, default is 20. + scroll_size: 5000 # scroll size which is used to scroll data from source index, default is 10000. + buffer_count: 3000 # buffer count which is used to buffer data to sync, default is 100000. + compare_parallelism: 5 # compare parallelism which is used to compare data in parallel index pairs, default is 20. + scroll_time: 10 # scroll time which is used to scroll data from source index, default is 10 minutes. + parallelism: 12 # parallelism which is used to sync data in parallel index pairs, default is 12. action: compare - force: true - name: task3 source_es: es5 @@ -84,6 +90,5 @@ tasks: # tasks which is executed orderly. source_index: "sample_hello" target_index: "sample_hello" action: sync_diff - force: true ``` diff --git a/go.mod b/go.mod index f7ab9bb..556c924 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/CharellKing/ela go 1.23.0 require ( - github.com/CharellKing/ela-lib v1.0.19 + github.com/CharellKing/ela-lib v1.0.21 github.com/spf13/viper v1.19.0 ) diff --git a/go.sum b/go.sum index 83f7df6..3c23086 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/CharellKing/ela-lib v1.0.19 h1:YnYxyRO8fMiAQGnqjOiVC92NfCMN1BtGPDOJsy7GkiU= -github.com/CharellKing/ela-lib v1.0.19/go.mod h1:f0LBjns3zok0ejHTgmMncP5fAKH61sPSwEGegVcW9NI= +github.com/CharellKing/ela-lib v1.0.21 h1:uEodd8k/Oc8WBoz9DcoEo8BDvTg2IOcpgGiflJrzJTA= +github.com/CharellKing/ela-lib v1.0.21/go.mod h1:f0LBjns3zok0ejHTgmMncP5fAKH61sPSwEGegVcW9NI= github.com/alitto/pond v1.9.1 h1:OfCpIrMyrWJpn34f647DcFmUxjK8+7Nu3eoVN/WTP+o= github.com/alitto/pond v1.9.1/go.mod h1:xQn3P/sHTYcU/1BR3i86IGIrilcrGC2LiS+E2+CJWsI= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY=