File tree Expand file tree Collapse file tree 7 files changed +8
-16
lines changed
Expand file tree Collapse file tree 7 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -28,5 +28,5 @@ serverurl=/usr/share/supervisord.sock
2828files = /etc/supervisor/conf.d/*.conf
2929
3030[program:performance_analyzer]
31- command=/usr/share/opensearch/plugins /opensearch-performance-analyzer/bin /performance-analyzer-agent /usr/share/opensearch
31+ command=/usr/share/opensearch/bin /opensearch-performance-analyzer/performance-analyzer-agent /usr/share/opensearch
3232user=1000
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ 3b7af77bf18cd2e6d27ae094175304573662bbe1
Original file line number Diff line number Diff line change 88
99# Prepare the RCA reader process for execution
1010mv " $OPENSEARCH_HOME " /plugins/opensearch-performance-analyzer/performance-analyzer-rca $OPENSEARCH_HOME
11- if [ -f " $OPENSEARCH_HOME " /bin/opensearch-performance-analyzer/performance-analyzer-agent-cli ]; then
12- mv " $OPENSEARCH_HOME " /bin/opensearch-performance-analyzer/performance-analyzer-agent-cli " $OPENSEARCH_HOME " /bin
13- rm -rf " $OPENSEARCH_HOME " /bin/opensearch-performance-analyzer
14- fi
1511mkdir -p " $OPENSEARCH_HOME " /data
1612mkdir -p " /var/lib/opensearch"
1713touch " $OPENSEARCH_HOME " /data/rca_enabled.conf
@@ -29,7 +25,7 @@ if ! grep -q '## OpenSearch Performance Analyzer' /etc/opensearch/jvm.options; t
2925 echo ' ## OpenSearch Performance Analyzer' >> /etc/opensearch/jvm.options
3026 echo " -Dclk.tck=$CLK_TCK " >> /etc/opensearch/jvm.options
3127 echo " -Djdk.attach.allowAttachSelf=true" >> /etc/opensearch/jvm.options
32- echo " -Djava.security.policy=file:///usr/share/opensearch/plugins /opensearch-performance-analyzer/config /opensearch_security.policy" >> /etc/opensearch/jvm.options
28+ echo " -Djava.security.policy=file:///usr/share/opensearch/config /opensearch-performance-analyzer/opensearch_security.policy" >> /etc/opensearch/jvm.options
3329fi
3430
3531IS_UPGRADE=false
@@ -53,7 +49,7 @@ if [ "x$IS_UPGRADE" != "xtrue" ]; then
5349
5450 elif command -v chkconfig > /dev/null; then
5551 echo " ### Non systemd distro. Please start and stop performance analyzer manually using the command: "
56- echo " sh /usr/share/opensearch/plugins /opensearch-performance-analyzer/bin /performance-analyzer-agent /usr/share/opensearch -d"
52+ echo " sh /usr/share/opensearch/bin /opensearch-performance-analyzer/performance-analyzer-agent /usr/share/opensearch -d"
5753 fi
5854fi
5955
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Description=OpenSearch Performance Analyzer
33PartOf =opensearch.service
44
55[Service]
6- ExecStart =/usr/share/opensearch/bin/performance-analyzer-agent-cli
6+ ExecStart =/usr/share/opensearch/bin/opensearch-performance-analyzer/ performance-analyzer-agent-cli
77Restart =on-failure
88User =opensearch
99Group =opensearch
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- PA_AGENT_JAVA_OPTS=" -Dlog4j.configurationFile=$OPENSEARCH_HOME /plugins /opensearch-performance-analyzer/config /log4j2.xml \
3+ PA_AGENT_JAVA_OPTS=" -Dlog4j.configurationFile=$OPENSEARCH_HOME /config /opensearch-performance-analyzer/log4j2.xml \
44 -Xms64M -Xmx64M -XX:+UseSerialGC -XX:CICompilerCount=1 -XX:-TieredCompilation -XX:InitialCodeCacheSize=4096 \
55 -XX:MaxRAM=400m"
66
Original file line number Diff line number Diff line change 1414
1515# Prepare the RCA reader process for execution
1616mv " $OPENSEARCH_HOME " /plugins/opensearch-performance-analyzer/performance-analyzer-rca $OPENSEARCH_HOME
17- if [ -f " $OPENSEARCH_HOME " /bin/opensearch-performance-analyzer/performance-analyzer-agent-cli ]; then
18- mv " $OPENSEARCH_HOME " /bin/opensearch-performance-analyzer/performance-analyzer-agent-cli " $OPENSEARCH_HOME " /bin
19- rm -rf " $OPENSEARCH_HOME " /bin/opensearch-performance-analyzer
20- fi
2117mkdir -p " $OPENSEARCH_HOME " /data
2218mkdir -p " /var/lib/opensearch"
2319touch " $OPENSEARCH_HOME " /data/rca_enabled.conf
@@ -35,7 +31,7 @@ if ! grep -q '## OpenSearch Performance Analyzer' /etc/opensearch/jvm.options; t
3531 echo ' ## OpenSearch Performance Analyzer' >> /etc/opensearch/jvm.options
3632 echo " -Dclk.tck=$CLK_TCK " >> /etc/opensearch/jvm.options
3733 echo " -Djdk.attach.allowAttachSelf=true" >> /etc/opensearch/jvm.options
38- echo " -Djava.security.policy=file:///usr/share/opensearch/plugins /opensearch-performance-analyzer/config /opensearch_security.policy" >> /etc/opensearch/jvm.options
34+ echo " -Djava.security.policy=file:///usr/share/opensearch/config /opensearch-performance-analyzer/opensearch_security.policy" >> /etc/opensearch/jvm.options
3935fi
4036
4137IS_UPGRADE=false
@@ -63,6 +59,6 @@ if [ "x$IS_UPGRADE" != "xtrue" ]; then
6359
6460 elif command -v chkconfig > /dev/null; then
6561 echo " ### Non systemd distro. Please start and stop performance analyzer manually using the command: "
66- echo " sh /usr/share/opensearch/plugins /opensearch-performance-analyzer/bin /performance-analyzer-agent /usr/share/opensearch -d"
62+ echo " sh /usr/share/opensearch/bin /opensearch-performance-analyzer/performance-analyzer-agent /usr/share/opensearch -d"
6763 fi
6864fi
You can’t perform that action at this time.
0 commit comments