summaryrefslogtreecommitdiffstats
path: root/performanceTests/README.md
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2020-05-26 14:51:39 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-26 14:51:39 +0000
commitd5c7cf6980a4e017324dde4cd041ba9496d67bf8 (patch)
tree80b47dd419d164e917d6cf9d46758fd2da7ee7a3 /performanceTests/README.md
parent89e951208e78118bdf29ae90e465bd7c668b4462 (diff)
parenta4d74cd90b7aae6d7ecf2a87b4048a96aa7677d9 (diff)
Merge "Deployment Prometheus and Grafana on RKE for perf tests"
Diffstat (limited to 'performanceTests/README.md')
-rw-r--r--performanceTests/README.md69
1 files changed, 69 insertions, 0 deletions
diff --git a/performanceTests/README.md b/performanceTests/README.md
new file mode 100644
index 00000000..70e1e9b9
--- /dev/null
+++ b/performanceTests/README.md
@@ -0,0 +1,69 @@
+DCAE VESCollector PerformanceTests Environment
+==============================================
+
+This section describes how to configure VES Performance Tests environment on the RKE node
+
+### Prerequisites
+
+First of all you have to change variable in file **ves/performanceTests/Makefile:**
+```
+RKE_NODE_USER_AND_HOSTNAME = <RKE_USER>@<RKE_IP>
+RKE_PRIVATE_KEY = <PEM_PRIVATE_KEY_FILE_PATH>
+RKE_KUBECONFIG_FILE_PATH = <KUBECONFIG_FILE_PATH_ON_RKE>
+```
+Important:
+Make sure you have entered the correct configuration path(**RKE_KUBECONFIG_FILE_PATH**),
+because it is necessary for kubectl to work properly on RKE over ssh.
+
+The VES image being tested must have the buildForPerfTests profile enabled
+(how to do this is described below).
+
+### Build VES Collector with buildForPerfTests profile enabled:
+Download project VES collector (**If you didn't do it before**)
+```
+git clone "https://gerrit.onap.org/r/dcaegen2/collectors/ves"
+```
+and build project with buildForPerfTests profile
+```
+mvn clean package -PbuildForPerfTests docker:build
+```
+Push docker image to docker repository for example JFrog Artifactory.
+
+### Change VES Collector image on k8s
+
+Go to RKE node and edit deployment:
+```
+kubectl edit deployment dep-dcae-ves-collector
+```
+change image :
+```
+image: <IMAGE_NAME_FROM_REPOSITORY>
+imagePullPolicy: IfNotPresent
+```
+after saving changes VES Collector pod should restarted automatically
+
+
+###Automatic configuration and run performance tests on RKE
+
+In this step, the performance tests environment will be copied to your RKE node and Prometheus and Grafana will be deployed
+```
+make all
+```
+### Step by step configuration performance tests on RKE
+
+###1. Copy performance tests environment to RKE
+```
+make copy-performanceTests
+```
+###2. Run performance tests environment on RKE
+```
+make run-performanceTests
+```
+###3. Clear performance tests environment on RKE
+```
+make clear-performanceTests
+```
+###4. Remove performance tests environment from RKE
+```
+make remove-performanceTests
+``` \ No newline at end of file