Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update allocation.asciidoc #6035

Closed
wants to merge 1 commit into from
Closed

Update allocation.asciidoc #6035

wants to merge 1 commit into from

Conversation

markwalkom
Copy link
Contributor

It's minor, but I've added the percentage representations in brackets as it took me a couple of attempts to figure out I wasn't supposed to be using an actual percentage, eg 80%/90%, but a decimal representation of the value, eg 0.80/0.90.

That should make it a lot clearer for others.

It's minor, but I've added the percentage representations in brackets as it took me a couple of attempts to figure out I wasn't supposed to be using an actual percentage, eg 80%/90%, but a decimal representation of the value, er 0.80/0.90.

That should make it a lot clearer for others.
@jpountz
Copy link
Contributor

jpountz commented May 5, 2014

Both notations are supposed to work. Can you please provide us with the command that didn't work so that we can look into what went wrong?

@jpountz jpountz self-assigned this May 5, 2014
@markwalkom
Copy link
Contributor Author

Using sense, updating from 0.99 to 99%;
[2014-05-05 16:43:36,286][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.threshold_enabled] from [true] to [true]
[2014-05-05 16:43:36,287][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.low] to [0.95]
[2014-05-05 16:43:36,287][WARN ][node.settings ] [na0-esd-a-001.campmon.net] failed to refresh settings for [org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider$ApplySettings@7a4aea84]
org.elasticsearch.ElasticsearchParseException: Unable to parse high watermark: [99%]
at org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider$ApplySettings.onRefreshSettings(DiskThresholdDecider.java:96)
at org.elasticsearch.node.settings.NodeSettingsService.clusterChanged(NodeSettingsService.java:84)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:428)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:134)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2014-05-05 16:43:36,287][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.threshold_enabled] from [true] to [true]
[2014-05-05 16:43:36,287][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.low] to [0.95]
[2014-05-05 16:43:36,287][WARN ][node.settings ] [na0-esd-a-001.campmon.net] failed to refresh settings for [org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider$ApplySettings@7fd52606]
org.elasticsearch.ElasticsearchParseException: Unable to parse high watermark: [99%]
at org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider$ApplySettings.onRefreshSettings(DiskThresholdDecider.java:96)
at org.elasticsearch.node.settings.NodeSettingsService.clusterChanged(NodeSettingsService.java:84)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:428)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:134)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2014-05-05 16:43:36,289][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.threshold_enabled] from [true] to [true]
[2014-05-05 16:43:36,289][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.low] to [0.95]
[2014-05-05 16:43:36,289][WARN ][node.settings ] [na0-esd-a-001.campmon.net] failed to refresh settings for [org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider$ApplySettings@601a8ef6]
org.elasticsearch.ElasticsearchParseException: Unable to parse high watermark: [99%]
at org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDecider$ApplySettings.onRefreshSettings(DiskThresholdDecider.java:96)
at org.elasticsearch.node.settings.NodeSettingsService.clusterChanged(NodeSettingsService.java:84)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:428)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:134)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

This is the curl;
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.disk.watermark.high" : "99%"
}
}

Then setting back to 0.99
[2014-05-05 16:43:56,500][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.threshold_enabled] from [true] to [true]
[2014-05-05 16:43:56,500][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.low] to [0.95]
[2014-05-05 16:43:56,500][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.high] to [0.99]
[2014-05-05 16:43:56,501][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.threshold_enabled] from [true] to [true]
[2014-05-05 16:43:56,501][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.low] to [0.95]
[2014-05-05 16:43:56,501][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.high] to [0.99]
[2014-05-05 16:43:56,501][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.threshold_enabled] from [true] to [true]
[2014-05-05 16:43:56,501][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.low] to [0.95]
[2014-05-05 16:43:56,501][INFO ][cluster.routing.allocation.decider] [na0-esd-a-001.campmon.net] updating [cluster.routing.allocation.disk.watermark.high] to [0.99]

Using this curl;
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.allocation.disk.watermark.high" : "0.99"
}
}

I'm running ES 1.1.1 on Ubuntu 12.04, Oracle JRE 1.7.0_u55.

@jpountz
Copy link
Contributor

jpountz commented May 5, 2014

OK, I just understood why I was confused. There is indeed an issue with Elasticsearch 1.1 but this is fixed in current development code and the fix will be part of the upcoming 1.2.0 release. See #5690 for more information.

@jpountz jpountz closed this May 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants