feat: migration with bulk skip exit docs
This commit is contained in:
parent
dc562c0d74
commit
50f12de6a8
|
@ -134,6 +134,7 @@ func (p *processor) handleSplitSubTask(taskItem *task.Task) error {
|
|||
"batch_size": cfg.Source.BatchSize,
|
||||
"indices": indexName,
|
||||
"elasticsearch": sourceClusterID,
|
||||
"skip_exist_documents": cfg.Target.Bulk.SkipExistDocuments,
|
||||
"queue": util.MapStr{
|
||||
"name": scrollID,
|
||||
"labels": util.MapStr{
|
||||
|
@ -190,6 +191,7 @@ func (p *processor) handleSplitSubTask(taskItem *task.Task) error {
|
|||
"batch_size_in_docs": cfg.Target.Bulk.BatchSizeInDocs,
|
||||
"invalid_queue": "bulk_indexing_400",
|
||||
"compress": cfg.Target.Bulk.Compress,
|
||||
"skip_exist_documents": cfg.Target.Bulk.SkipExistDocuments,
|
||||
},
|
||||
"max_worker_size": cfg.Target.Bulk.MaxWorkerSize,
|
||||
"num_of_slices": cfg.Target.Bulk.SliceSize,
|
||||
|
|
|
@ -92,6 +92,7 @@ type IndexMigrationBulkConfig struct {
|
|||
IdleTimeoutInSeconds int `json:"idle_timeout_in_seconds"`
|
||||
SliceSize int `json:"slice_size"`
|
||||
Compress bool `json:"compress"`
|
||||
SkipExistDocuments bool `json:"skip_exist_documents"`
|
||||
}
|
||||
|
||||
type IndexMigrationTargetConfig struct {
|
||||
|
|
Loading…
Reference in New Issue