Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Plugin is always disabled #199

Open
kesyk opened this issue Sep 7, 2020 · 4 comments
Open

Plugin is always disabled #199

kesyk opened this issue Sep 7, 2020 · 4 comments
Assignees

Comments

@kesyk
Copy link

kesyk commented Sep 7, 2020

I am deploying opendistro elasticsearch as single node. And since last week i cannot make this plugin work(before it had worked and i did not change something). In logs i see:

[2020-09-07T11:21:24,156][INFO ][c.a.o.e.p.h.c.PerformanceAnalyzerConfigAction] [a7d349060c8c] PerformanceAnalyzer Enabled: false

I have tried different PCs with fresh docker, deploying by single run command and docker-compose files that are in official documentation.
I POSTed to localhost:9200/_opendistro/_performanceanalyzer/config and /_opendistro/_performanceanalyzer/cluster/config with {"enabled": true} or {"pa_enabled": true}. Anyway it does not work.
Every time i redeploy it, i clear everything from docker with docker system prune -a --volumes
Es version: 1.9.0.

@Franckiboy15
Copy link

I have the same issue, any news on what prevent the plugin to start?

@kesyk
Copy link
Author

kesyk commented Nov 30, 2020 via email

@Franckiboy15
Copy link

I just update from 1.10.1 to 1.11.0 and I got the same issue
I know that previously it was working on 1.9.0 since I got the issue that the Index was growing indefinitely.
As it been disable since then in the docker version?

@ktkrg ktkrg assigned sruti1312 and unassigned ktkrg Jan 15, 2021
@sruti1312
Copy link
Contributor

During startup, cluster API to disable PA does not work. We are working on fixing this (#232)

This is a problem only during startup. After re-enabling PA (cluster_state=3), the disable option for PA works fine.

[ec2-user@ip-10-212-47-103 logs]$ curl localhost:9200/_opendistro/_performanceanalyzer/cluster/config -H 'Content-Type: application/json' -d '{"enabled": false}'
{"currentPerformanceAnalyzerClusterState":3,"shardsPerCollection":0,"batchMetricsRetentionPeriodMinutes":7}
[ec2-user@ip-10-212-47-103 logs]$ curl -XGET localhost:9200/_opendistro/_performanceanalyzer/cluster/config
{"currentPerformanceAnalyzerClusterState":3,"shardsPerCollection":0,"batchMetricsRetentionPeriodMinutes":7}

From logs:

[2020-10-30T16:05:08,008][INFO ][o.e.c.s.ClusterSettings  ] [c4d4a248a38f4230f583d5cd1cf475ee] updating [cluster.metadata.perf_analyzer.state] from [] to [0]
[ec2-user@ip-10-212-47-103 logs]$ curl -s 'localhost:9200/_cluster/settings?pretty&include_defaults&flat_settings' | grep perf
  "cluster.metadata.perf_analyzer.state" : "0",
  "cluster.metadata.perf_analyzer.config.overrides" : "",
  "cluster.metadata.perf_analyzer.pa_node_stats_setting" : "1",

Intermittent solution:

  1. Disabling RCA followed by disabling PA works.
curl localhost:9200/_opendistro/_performanceanalyzer/rca/cluster/config -H 'Content-Type: application/json' -d '{"enabled":false}'
curl localhost:9200/_opendistro/_performanceanalyzer/cluster/config -H 'Content-Type: application/json' -d '{"enabled": false}'
  1. Use Node API's.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants