You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,33 +10,36 @@
10
10
11
11
```
12
12
Application Options:
13
-
-s, --source= Source elasticsearch instance
14
-
-d, --dest= Destination elasticsearch instance
15
-
-c, --count= Number of documents at a time: ie "size" in the scroll
16
-
request (100)
17
-
-t, --time= Scroll time (1m)
18
-
--settings Copy sharding settings from source (true)
19
-
-f, --force Delete destination index before copying (false)
20
-
-i, --indexes= List of indexes to copy, comma separated (_all)
21
-
-a, --all Copy indexes starting with . (false)
22
-
-w, --workers= Concurrency (1)
13
+
-s, --source= source elasticsearch instance
14
+
-d, --dest= destination elasticsearch instance
15
+
-c, --count= number of documents at a time: ie "size" in the scroll request (100)
16
+
-t, --time= scroll time (1m)
17
+
-f, --force delete destination index before copying (false)
18
+
--shards= set a number of shards on newly created indexes
19
+
--docs-only load documents only, do not try to recreate indexes (false)
20
+
--index-only only create indexes, do not load documents (false)
21
+
--replicate enable replication while indexing into the new indexes (false)
22
+
-i, --indexes= list of indexes to copy, comma separated (_all)
23
+
-a, --all copy indexes starting with . and _ (false)
24
+
-w, --workers= concurrency (1)
25
+
--settings copy sharding settings from source (true)
26
+
--green wait for both hosts cluster status to be green before dump. otherwise yellow is okay (false)
23
27
```
24
28
25
29
26
30
## NOTES:
27
31
28
-
1. Has been tested getting data from 0.9 onto a 1.4 box. For other scenaries YMMV.
32
+
1. Has been tested getting data from 0.9 onto a 1.4 box. For other scenaries YMMV. (look out for this bug: https://github.com/elasticsearch/elasticsearch/issues/5165)
29
33
1. Copies using the [_source](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-source-field.html) field in elasticsearch. If you have made modifications to it (excluding fields, etc) they will not be indexed on the destination host.
30
34
1.```--force``` will delete indexes on the destination host. Otherwise an error will be returned if the index exists
31
35
1.```--time``` is the [scroll time](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html#scroll-search-context) passed to the source host, default is 1m. This is a string in es's format.
32
36
1.```--count``` is the [number of documents](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html#scroll-scan) that will be request and bulk indexed at a time. Note that this depends on the number of shards (ie: size of 10 on 5 shards is 50 documents)
33
37
1.```--indexes``` is a comma separated list of indexes to copy
34
38
1.```--all``` indexes starting with . and _ are ignored by default, --all overrides this behavior
35
39
1.```--workers``` concurrency when we post to the bulk api. Only one post happens at a time, but higher concurrency should give you more throughput when using larger scroll sizes.
36
-
1. Ports are required, otherwise 80 is the assumed port
40
+
1. Ports are required, otherwise 80 is the assumed port (what)
37
41
38
42
## BUGS:
39
43
40
-
1. It will not do anything special when copying the _id (copies _id from source host). If _id is remapped this probably won't do what you want.
41
-
1. Should check if the bulk index requests starts getting large (in bytes), and force a flush if that is the case. Right now we show an error if elasticsearch refuses a large request.
44
+
1. It will not do anything special when copying the _id (copies _id from source host). If _id is remapped it may not do what you want.
DocBufferCountint`short:"c" long:"count" description:"number of documents at a time: ie \"size\" in the scroll request. If 0 size will not be sent to es" default:"100"`
50
+
DocBufferCountint`short:"c" long:"count" description:"number of documents at a time: ie \"size\" in the scroll request" default:"100"`
0 commit comments