https://github.com/datatok/elastic-copy
Copy data from / to elasticsearch very fast
https://github.com/datatok/elastic-copy
elasticdump elasticsearch golang parrallel
Last synced: 3 days ago
JSON representation
Copy data from / to elasticsearch very fast
- Host: GitHub
- URL: https://github.com/datatok/elastic-copy
- Owner: datatok
- License: gpl-3.0
- Created: 2020-03-03T09:33:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T09:40:40.000Z (over 4 years ago)
- Last Synced: 2026-01-14T17:38:26.146Z (5 months ago)
- Topics: elasticdump, elasticsearch, golang, parrallel
- Language: Go
- Size: 80.1 KB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elastic-copy
Copy data from / to elasticsearch very fast
## Motivation / use case
``elasticdump`` is a very nice tool for copying a single index to another server.
But sometimes, you need to copy more than a single index, and as fast as possible!
This why I build ``elasticcopy``.
## Multi threading
``elasticcopy`` is fast, because it use multi threads to copy data in parallel.
The parallel unit is a ``shard``, if you want to copy 12 indices of 3 shards, this will create 36 tasks.
## Usage
```
elasticcopy --source=http://localhost:9200 --target=http://prod:9200 --indices=events-1,events-2 --threads=12
```