Skip to content

Commit 0bb0a19

Browse files
committed
Update PA directories from plugins to root
Signed-off-by: sruti1312 <[email protected]>
1 parent 3753639 commit 0bb0a19

File tree

7 files changed

+8
-16
lines changed

7 files changed

+8
-16
lines changed

config/supervisord.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ serverurl=/usr/share/supervisord.sock
2828
files = /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
3232
user=1000

licenses/performanceanalyzer-rca-2.0.0.0-alpha1-SNAPSHOT.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3b7af77bf18cd2e6d27ae094175304573662bbe1

packaging/deb/postinst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ fi
88

99
# Prepare the RCA reader process for execution
1010
mv "$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
1511
mkdir -p "$OPENSEARCH_HOME"/data
1612
mkdir -p "/var/lib/opensearch"
1713
touch "$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
3329
fi
3430

3531
IS_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
5854
fi
5955

packaging/opensearch-performance-analyzer.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=OpenSearch Performance Analyzer
33
PartOf=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
77
Restart=on-failure
88
User=opensearch
99
Group=opensearch

packaging/performance-analyzer-agent-cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

packaging/rpm/postinst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ fi
1414

1515
# Prepare the RCA reader process for execution
1616
mv "$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
2117
mkdir -p "$OPENSEARCH_HOME"/data
2218
mkdir -p "/var/lib/opensearch"
2319
touch "$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
3935
fi
4036

4137
IS_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
6864
fi

0 commit comments

Comments
 (0)