How to move elasticsearch nodes between two locationsWhen do you start additional Elasticsearch nodes?Failed to restore snapshot - IndexShardRestoreFailedException file not found in elasticsearchElasticSearch Snapshot across clusterIs it possible to use multiple index data directory in Apache Solr?Nodes loading, but Elasticsearch has 0 shardsCannot get second node started on elasticsearchElasticseach: indexing 100k small docs per sec, more indexes with 5 shards seems to give a little better performance than 1 big indexwhy won't my fluentd work with elasticsearchelasticsearch: distributing indices over multiple disk volumesElasticsearch path.data multiple disks, adding more
Overlapping circles covering polygon
Alignment of six matrices
If Captain Marvel (MCU) were to have a child with a human male, would the child be human or Kree?
When is "ei" a diphthong?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
In One Punch Man, is King actually weak?
Language involving irrational number is not a CFL
Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?
What the heck is gets(stdin) on site coderbyte?
Can I cause damage to electrical appliances by unplugging them when they are turned on?
Given this phrasing in the lease, when should I pay my rent?
Does the Crossbow Expert feat's extra crossbow attack work with the reaction attack from a Hunter ranger's Giant Killer feature?
Giving feedback to someone without sounding prejudiced
What is this high flying aircraft over Pennsylvania?
Would a primitive species be able to learn English from reading books alone?
How to make money from a browser who sees 5 seconds into the future of any web page?
Is there a distance limit for minecart tracks?
Anime with legendary swords made from talismans and a man who could change them with a shattered body
Why didn't Voldemort know what Grindelwald looked like?
What does "tick" mean in this sentence?
What happens if I try to grapple an illusory duplicate from the Mirror Image spell?
How to write Quadratic equation with negative coefficient
Why is the principal energy of an electron lower for excited electrons in a higher energy state?
Sigmoid with a slope but no asymptotes?
How to move elasticsearch nodes between two locations
When do you start additional Elasticsearch nodes?Failed to restore snapshot - IndexShardRestoreFailedException file not found in elasticsearchElasticSearch Snapshot across clusterIs it possible to use multiple index data directory in Apache Solr?Nodes loading, but Elasticsearch has 0 shardsCannot get second node started on elasticsearchElasticseach: indexing 100k small docs per sec, more indexes with 5 shards seems to give a little better performance than 1 big indexwhy won't my fluentd work with elasticsearchelasticsearch: distributing indices over multiple disk volumesElasticsearch path.data multiple disks, adding more
I have elasticsearch setup, so that it stores the data at two locations meaning in elasticsearch.yml I have
path.data: /path_one/es_data,/path_two/elasticsearch
I was hoping elasticsearch would automatically figure out where more space is available and store new incoming data wherever possible, but instead, I found it starts to crash when short of memory at any one location. So I would like to move one node from path_one to path_two.
Currently, it looks like this
ls -lha /path_one/es_data/nodes/0/indices/
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 6 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 kV32aUcET1WrlKXWOunGhg
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 T1k45bs2SUGHJ6dJniPjZg
ls -lha /path_two/elasticsearch/nodes/0/indices/
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 5 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13
T1k45bs2SUGHJ6dJniPjZg
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 XpHUz15oTbGG0Bvnf2xZsw
So my first question is, why are some of the nodes present at both locations? And my second question is whether I can just
- stop elasticsearch
- copy nodes over
- restart elasticsearch
or whether I have to do more?
EDIT: I found some messages in the logfiles which look related
[2019-03-07T17:08:21,910][WARN ][o.e.c.r.a.DiskThresholdMonitor] [WU6cQ-o] high disk watermark [90%] exceeded on [WU6cQ-oTR2Ssg3LzoI4_yg][WU6cQ-o][/var/lib/elasticsearch/elasticsearch/nodes/0] free: 984.7mb[1.6%], shards will be relocated away from this node
[2019-03-07T17:08:51,944][WARN ][o.e.g.DanglingIndicesState] [WU6cQ-o] [[paper-index/XpHUz15oTbGG0Bvnf2xZsw]] can not be imported as a dangling index, as index with same name already exists in cluster metadata
so it seems like elasticsearch is trying to move indices, but can't because there are already copies of these indices at the other location? Can I just delete the copies at the location where there is more space?
elasticsearch
add a comment |
I have elasticsearch setup, so that it stores the data at two locations meaning in elasticsearch.yml I have
path.data: /path_one/es_data,/path_two/elasticsearch
I was hoping elasticsearch would automatically figure out where more space is available and store new incoming data wherever possible, but instead, I found it starts to crash when short of memory at any one location. So I would like to move one node from path_one to path_two.
Currently, it looks like this
ls -lha /path_one/es_data/nodes/0/indices/
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 6 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 kV32aUcET1WrlKXWOunGhg
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 T1k45bs2SUGHJ6dJniPjZg
ls -lha /path_two/elasticsearch/nodes/0/indices/
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 5 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13
T1k45bs2SUGHJ6dJniPjZg
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 XpHUz15oTbGG0Bvnf2xZsw
So my first question is, why are some of the nodes present at both locations? And my second question is whether I can just
- stop elasticsearch
- copy nodes over
- restart elasticsearch
or whether I have to do more?
EDIT: I found some messages in the logfiles which look related
[2019-03-07T17:08:21,910][WARN ][o.e.c.r.a.DiskThresholdMonitor] [WU6cQ-o] high disk watermark [90%] exceeded on [WU6cQ-oTR2Ssg3LzoI4_yg][WU6cQ-o][/var/lib/elasticsearch/elasticsearch/nodes/0] free: 984.7mb[1.6%], shards will be relocated away from this node
[2019-03-07T17:08:51,944][WARN ][o.e.g.DanglingIndicesState] [WU6cQ-o] [[paper-index/XpHUz15oTbGG0Bvnf2xZsw]] can not be imported as a dangling index, as index with same name already exists in cluster metadata
so it seems like elasticsearch is trying to move indices, but can't because there are already copies of these indices at the other location? Can I just delete the copies at the location where there is more space?
elasticsearch
Hi @carl, have you checked my answer? has been of any use to you?
– glenacota
Mar 11 at 21:39
add a comment |
I have elasticsearch setup, so that it stores the data at two locations meaning in elasticsearch.yml I have
path.data: /path_one/es_data,/path_two/elasticsearch
I was hoping elasticsearch would automatically figure out where more space is available and store new incoming data wherever possible, but instead, I found it starts to crash when short of memory at any one location. So I would like to move one node from path_one to path_two.
Currently, it looks like this
ls -lha /path_one/es_data/nodes/0/indices/
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 6 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 kV32aUcET1WrlKXWOunGhg
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 T1k45bs2SUGHJ6dJniPjZg
ls -lha /path_two/elasticsearch/nodes/0/indices/
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 5 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13
T1k45bs2SUGHJ6dJniPjZg
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 XpHUz15oTbGG0Bvnf2xZsw
So my first question is, why are some of the nodes present at both locations? And my second question is whether I can just
- stop elasticsearch
- copy nodes over
- restart elasticsearch
or whether I have to do more?
EDIT: I found some messages in the logfiles which look related
[2019-03-07T17:08:21,910][WARN ][o.e.c.r.a.DiskThresholdMonitor] [WU6cQ-o] high disk watermark [90%] exceeded on [WU6cQ-oTR2Ssg3LzoI4_yg][WU6cQ-o][/var/lib/elasticsearch/elasticsearch/nodes/0] free: 984.7mb[1.6%], shards will be relocated away from this node
[2019-03-07T17:08:51,944][WARN ][o.e.g.DanglingIndicesState] [WU6cQ-o] [[paper-index/XpHUz15oTbGG0Bvnf2xZsw]] can not be imported as a dangling index, as index with same name already exists in cluster metadata
so it seems like elasticsearch is trying to move indices, but can't because there are already copies of these indices at the other location? Can I just delete the copies at the location where there is more space?
elasticsearch
I have elasticsearch setup, so that it stores the data at two locations meaning in elasticsearch.yml I have
path.data: /path_one/es_data,/path_two/elasticsearch
I was hoping elasticsearch would automatically figure out where more space is available and store new incoming data wherever possible, but instead, I found it starts to crash when short of memory at any one location. So I would like to move one node from path_one to path_two.
Currently, it looks like this
ls -lha /path_one/es_data/nodes/0/indices/
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 6 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 kV32aUcET1WrlKXWOunGhg
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13 T1k45bs2SUGHJ6dJniPjZg
ls -lha /path_two/elasticsearch/nodes/0/indices/
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 A4XXnhNdTwKILyeE39UosA
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 C2BPWKL4T3-jHIfZXNKG6g
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 c8mFFi56RAyRYNpHOUvG4g
drwxr-xr-x 5 elasticsearch elasticsearch 4.0K Mar 7 03:13 DEk-qwdnSLOHbP_-nAhSdw
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 pGmjsSJHRAiMUC5paYfjag
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Mar 7 03:13
T1k45bs2SUGHJ6dJniPjZg
drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Mar 7 03:13 XpHUz15oTbGG0Bvnf2xZsw
So my first question is, why are some of the nodes present at both locations? And my second question is whether I can just
- stop elasticsearch
- copy nodes over
- restart elasticsearch
or whether I have to do more?
EDIT: I found some messages in the logfiles which look related
[2019-03-07T17:08:21,910][WARN ][o.e.c.r.a.DiskThresholdMonitor] [WU6cQ-o] high disk watermark [90%] exceeded on [WU6cQ-oTR2Ssg3LzoI4_yg][WU6cQ-o][/var/lib/elasticsearch/elasticsearch/nodes/0] free: 984.7mb[1.6%], shards will be relocated away from this node
[2019-03-07T17:08:51,944][WARN ][o.e.g.DanglingIndicesState] [WU6cQ-o] [[paper-index/XpHUz15oTbGG0Bvnf2xZsw]] can not be imported as a dangling index, as index with same name already exists in cluster metadata
so it seems like elasticsearch is trying to move indices, but can't because there are already copies of these indices at the other location? Can I just delete the copies at the location where there is more space?
elasticsearch
elasticsearch
edited Mar 7 at 22:38
carl
asked Mar 7 at 22:04
carlcarl
1,01111743
1,01111743
Hi @carl, have you checked my answer? has been of any use to you?
– glenacota
Mar 11 at 21:39
add a comment |
Hi @carl, have you checked my answer? has been of any use to you?
– glenacota
Mar 11 at 21:39
Hi @carl, have you checked my answer? has been of any use to you?
– glenacota
Mar 11 at 21:39
Hi @carl, have you checked my answer? has been of any use to you?
– glenacota
Mar 11 at 21:39
add a comment |
1 Answer
1
active
oldest
votes
An Elasticsearch instance corresponds to one node. Setting two locations in path.data
doesn't mean that you have two nodes running on the same host, but that you're storing the data of your node on two locations (see documentation). Therefore, to answer your first question, it is to be expected that data of the same node is spread across locations.
As for your second question, I don't understand your process, mostly because I'm not sure that you're running multiple nodes.
From the Elastic documentation, all we know about data distribution across locations is that Elasticsearch stores the files related to the same shard in the same location.
Hope it helps
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55053534%2fhow-to-move-elasticsearch-nodes-between-two-locations%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
An Elasticsearch instance corresponds to one node. Setting two locations in path.data
doesn't mean that you have two nodes running on the same host, but that you're storing the data of your node on two locations (see documentation). Therefore, to answer your first question, it is to be expected that data of the same node is spread across locations.
As for your second question, I don't understand your process, mostly because I'm not sure that you're running multiple nodes.
From the Elastic documentation, all we know about data distribution across locations is that Elasticsearch stores the files related to the same shard in the same location.
Hope it helps
add a comment |
An Elasticsearch instance corresponds to one node. Setting two locations in path.data
doesn't mean that you have two nodes running on the same host, but that you're storing the data of your node on two locations (see documentation). Therefore, to answer your first question, it is to be expected that data of the same node is spread across locations.
As for your second question, I don't understand your process, mostly because I'm not sure that you're running multiple nodes.
From the Elastic documentation, all we know about data distribution across locations is that Elasticsearch stores the files related to the same shard in the same location.
Hope it helps
add a comment |
An Elasticsearch instance corresponds to one node. Setting two locations in path.data
doesn't mean that you have two nodes running on the same host, but that you're storing the data of your node on two locations (see documentation). Therefore, to answer your first question, it is to be expected that data of the same node is spread across locations.
As for your second question, I don't understand your process, mostly because I'm not sure that you're running multiple nodes.
From the Elastic documentation, all we know about data distribution across locations is that Elasticsearch stores the files related to the same shard in the same location.
Hope it helps
An Elasticsearch instance corresponds to one node. Setting two locations in path.data
doesn't mean that you have two nodes running on the same host, but that you're storing the data of your node on two locations (see documentation). Therefore, to answer your first question, it is to be expected that data of the same node is spread across locations.
As for your second question, I don't understand your process, mostly because I'm not sure that you're running multiple nodes.
From the Elastic documentation, all we know about data distribution across locations is that Elasticsearch stores the files related to the same shard in the same location.
Hope it helps
edited Mar 10 at 15:31
answered Mar 8 at 1:07
glenacotaglenacota
31619
31619
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55053534%2fhow-to-move-elasticsearch-nodes-between-two-locations%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hi @carl, have you checked my answer? has been of any use to you?
– glenacota
Mar 11 at 21:39