-
Notifications
You must be signed in to change notification settings - Fork 813
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
[elasticsearch] Remove hostname matching logic #1657
[elasticsearch] Remove hostname matching logic #1657
Conversation
fa18ec5
to
e0a3bc4
Compare
# Check the interface addresses against the primary address | ||
return primary_addrs in ips | ||
for metric in stats_metrics: | ||
desc = stats_metrics[metric] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick but this loop can be simplified: for metric, desc in stats_metrics.iteritems()
. This way is also usually faster than iterating and looking up by key
e0a3bc4
to
8cbf5ac
Compare
Thanks for the review @talwai ! I've changed the loop. |
8cbf5ac
to
cc7f3f4
Compare
The hostname matching is not needed anymore as: - since PR #1181 we only ask the _local node for stats when `is_external` is set to `false` - we don't match the hostname at all when `is_external` is `true` Matching hostnames can also filter out legitimate data when the local elasticsearch node reports a different hostname. See also issue #457
It makes more sense overall, cluster_stats must be used when the user targets an external URL (not localhost) and he wants to get stats for a whole cluster, otherwise it will only query for the local node by default.
Test new ES releases, add new branch 1.6.x. Also not run the kill task in the `before_cache` section so that SKIP_CLEANUP still works for instance.
dab560a
to
317ccf8
Compare
…h-hostname-matching [elasticsearch] Remove hostname matching logic
Changes Unknown when pulling 317ccf8 on olivielpeau/remove-elasticsearch-hostname-matching into ** on master**. |
The hostname matching is not needed anymore as:
is_external
is set tofalse
is_external
istrue
Matching hostnames can also filter out legitimate data when the
local elasticsearch node reports a different hostname.
See also issue #457