Skip to content

Commit c020cc9

Browse files
authored
Update folder names (#166)
Signed-off-by: sruti1312 <[email protected]>
1 parent 5373ddb commit c020cc9

19 files changed

+18
-18
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/.settings/
77
/build
88
/.project
9-
/bin/
109
/coverage-error.log
1110
gradle.properties
1211
/src/test/resources/tmp/file_gc/

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This document walks you through the process of building and deploying the RCA fr
3939
This will not currently enforce client authentication. This feature, including full support for TLS is
4040
planned for an upcoming release.
4141

42-
a. Open pa_config/performance-analyzer.properties
42+
a. Open config/performance-analyzer.properties
4343

4444
b. Modify the certificate-file-path, private-key-file-path, and https-enabled entries
4545

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ __Metrics__: Metrics are typically served as continuous datastreams to downstrea
4949

5050
### Components
5151

52-
__Framework__: The RCA runtime operates on an `AnalysisGraph`. You can extend this class and override the `construct` method to build your own RCAs. You should specify the path to the class in the `analysis-graph-implementor` section of `pa_config/rca.conf`. The `addLeaf` and `addAllUpstreams` helper methods are useful when you define the dependencies between nodes of the graph.
52+
__Framework__: The RCA runtime operates on an `AnalysisGraph`. You can extend this class and override the `construct` method to build your own RCAs. You should specify the path to the class in the `analysis-graph-implementor` section of `config/rca.conf`. The `addLeaf` and `addAllUpstreams` helper methods are useful when you define the dependencies between nodes of the graph.
5353

5454
__Scheduler__: The scheduler invokes the `operate` method on each graph node in topological order as defined in the `AnalysisGraph`. Nodes with no dependencies can be executed in parallel. Use flow-units to share data between RCA nodes instead of shared objects to avoid data races and performance bottlenecks.
5555

pa_bin/performance-analyzer-agent renamed to bin/performance-analyzer-agent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ echo "Using JAVA_HOME: $JAVA_HOME"
2929
export JAVA_HOME=$JAVA_HOME
3030

3131
if ! echo $* | grep -E '(^-d |-d$| -d |--daemonize$|--daemonize )' > /dev/null; then
32-
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca/pa_config/log4j2.xml\ -XX:+ExitOnOutOfMemoryError
32+
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca/config/log4j2.xml\ -XX:+ExitOnOutOfMemoryError
3333
exec $OPENSEARCH_HOME/performance-analyzer-rca/bin/performance-analyzer-rca
3434
else
3535
echo 'Starting deamon'
36-
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca/pa_config/log4j2.xml\ -XX:+ExitOnOutOfMemoryError
36+
export JAVA_OPTS=-Dopensearch.path.home=$OPENSEARCH_HOME\ -Dlog4j.configurationFile=$OPENSEARCH_HOME/performance-analyzer-rca/config/log4j2.xml\ -XX:+ExitOnOutOfMemoryError
3737
exec $OPENSEARCH_HOME/performance-analyzer-rca/bin/performance-analyzer-rca &
3838

3939
pid=$!

build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ application {
3535
'-XX:MaxRAM=400m']
3636
}
3737

38-
// Include pa_config folder in the distribution.
38+
// Include PA related folder in the distribution.
3939
applicationDistribution.from(".") {
40-
include 'pa_config/*'
41-
include 'pa_bin/*'
40+
include 'config/*'
41+
include 'bin/*'
4242
}
4343

4444
distributions {
@@ -214,6 +214,8 @@ test {
214214
excludeTestsMatching 'org.opensearch.performanceanalyzer.rca.integTests.*'
215215
// TODO: Fix this test as it causes OutOfMemoryError: Java heap space error and runs forever
216216
excludeTestsMatching 'org.opensearch.performanceanalyzer.reader.OSMetricsSnapshotTests'
217+
// TODO: Fix flaky test: https://github.com/opensearch-project/performance-analyzer-rca/issues/167
218+
excludeTestsMatching 'org.opensearch.performanceanalyzer.PerformanceAnalyzerWebServerTest'
217219
}
218220
}
219221
else {
File renamed without changes.
File renamed without changes.

pa_config/opensearch_security.policy renamed to config/opensearch_security.policy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ grant codeBase "jrt:/jdk.attach" {
1313
grant codeBase "jrt:/jdk.internal.jvmstat" {
1414
permission java.security.AllPermission;
1515
};
16-
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pa_config/supervisord.conf renamed to 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/performance-analyzer-rca/pa_bin/performance-analyzer-agent /usr/share/opensearch
31+
command=/usr/share/opensearch/performance-analyzer-rca/bin/performance-analyzer-agent /usr/share/opensearch
3232
user=1000

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ RUN chown -R opensearch:0 . && \
5454
RUN unzip config/performance-analyzer-rca-2.0.0.0-rc1-SNAPSHOT.zip
5555

5656
RUN cp -r performance-analyzer-rca/* plugins/opensearch-performance-analyzer/
57-
RUN chmod 755 /usr/share/opensearch/plugins/opensearch-performance-analyzer/pa_bin/performance-analyzer-agent
57+
RUN chmod 755 /usr/share/opensearch/plugins/opensearch-performance-analyzer/bin/performance-analyzer-agent
5858
RUN chmod -R 755 /dev/shm
5959
################################################################################
6060
# Build stage 1 (the actual OpenSearch image):
@@ -118,7 +118,7 @@ RUN chgrp 0 /usr/local/bin/docker-entrypoint.sh && \
118118
chmod 0775 /usr/local/bin/docker-entrypoint.sh
119119

120120
# Bind to all interfaces so that the docker container is accessible from the host machine
121-
RUN sed -i "s|#webservice-bind-host =|webservice-bind-host = 0.0.0.0|g" /usr/share/opensearch/plugins/opensearch-performance-analyzer/pa_config/performance-analyzer.properties
121+
RUN sed -i "s|#webservice-bind-host =|webservice-bind-host = 0.0.0.0|g" /usr/share/opensearch/plugins/opensearch-performance-analyzer/config/performance-analyzer.properties
122122

123123
EXPOSE 9200 9300 9600 9650
124124

docker/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ fi
9191
if [[ -d "/usr/share/opensearch/plugins/opensearch-performance-analyzer" ]]; then
9292
CLK_TCK=`/usr/bin/getconf CLK_TCK`
9393
DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
94-
OPENSEARCH_JAVA_OPTS="-Djava.security.policy=file:///usr/share/opensearch/performance-analyzer-rca/pa_config/opensearch_security.policy -Dclk.tck=$CLK_TCK -Djdk.attach.allowAttachSelf=true $OPENSEARCH_JAVA_OPTS"
95-
/usr/bin/supervisord -c /usr/share/opensearch/performance-analyzer-rca/pa_config/supervisord.conf
94+
OPENSEARCH_JAVA_OPTS="-Djava.security.policy=file:///usr/share/opensearch/performance-analyzer-rca/config/opensearch_security.policy -Dclk.tck=$CLK_TCK -Djdk.attach.allowAttachSelf=true $OPENSEARCH_JAVA_OPTS"
95+
/usr/bin/supervisord -c /usr/share/opensearch/performance-analyzer-rca/config/supervisord.conf
9696
fi
9797

9898
run_as_other_user_if_needed /usr/share/opensearch/bin/opensearch "${open_search_opts[@]}"

src/main/java/org/opensearch/performanceanalyzer/config/PluginSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public class PluginSettings {
2121
private static final Logger LOG = LogManager.getLogger(PluginSettings.class);
2222

2323
private static PluginSettings instance;
24-
public static final String CONFIG_FILES_PATH = "pa_config/";
24+
public static final String CONFIG_FILES_PATH = "config/";
2525
private static final String DEFAULT_CONFIG_FILE_PATH =
26-
Util.PLUGIN_LOCATION + "pa_config/performance-analyzer.properties";
26+
Util.PLUGIN_LOCATION + "config/performance-analyzer.properties";
2727
private static final String METRICS_LOCATION_KEY = "metrics-location";
2828
private static final String METRICS_LOCATION_DEFAULT = "/dev/shm/performanceanalyzer/";
2929
private static final String DELETION_INTERVAL_KEY = "metrics-deletion-interval";

src/main/java/org/opensearch/performanceanalyzer/jvm/ThreadList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static ThreadState getThreadState(long threadId) {
169169

170170
// Attach to pid and perform a thread dump
171171
private static void runAttachDump(String pid, String[] args) {
172-
172+
173173
VirtualMachine vm = null;
174174
try {
175175
vm = VirtualMachine.attach(pid);

src/main/java/org/opensearch/performanceanalyzer/rca/framework/util/RcaConsts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class RcaConsts {
2222
private static final String RCA_CONF_IDLE_MASTER_FILENAME = "rca_idle_master.conf";
2323
private static final String THRESHOLDS_DIR_NAME = "thresholds";
2424
public static final String CONFIG_DIR_PATH =
25-
Paths.get(Util.READER_LOCATION, "pa_config").toString();
25+
Paths.get(Util.READER_LOCATION, "config").toString();
2626
public static final String RCA_CONF_PATH =
2727
Paths.get(CONFIG_DIR_PATH, RCA_CONF_FILENAME).toString();
2828
public static final String RCA_CONF_MASTER_PATH =

0 commit comments

Comments
 (0)