-
Notifications
You must be signed in to change notification settings - Fork 806
Closed
Description
Hi,
we are experiencing an issue on our 7.14 clusters that after setting cluster.max_shards_per_node manually the collector failed to unmarshal it.
cluster_settings.go:160 msg="failed to fetch and decode cluster settings stats" err="json: cannot unmarshal object into Go struct field Cluster.defaults.cluster.max_shards_per_node of type string"
The version we are using is 1.2.1, yet the code responsible for this part didn't seem to be changed between 1.2.1 and 1.3.0.
After some investigation we found that
- Without cluster.max_shards_per_node being set manually, the response json from /_cluster/settings?include_defaults would be like
{ "defaults": { "cluster": { "max_shards_per_node.frozen": "3000", "max_shards_per_node": "1000" } }
- With cluster.max_shards_per_node being set manually as a persistent setting, the response json would become
{ "persistent": { "cluster": { "max_shards_per_node": "2000" } }, "defaults": { "cluster": { "max_shards_per_node": { "frozen": "3000" } } } }
This seems to be the reason for this error.
Any ideas?
msvaljek, svenmueller, zzwshow and kbiernat
Metadata
Metadata
Assignees
Labels
No labels