From a4d74cd90b7aae6d7ecf2a87b4048a96aa7677d9 Mon Sep 17 00:00:00 2001 From: Pawel Date: Tue, 19 May 2020 09:17:12 +0200 Subject: Deployment Prometheus and Grafana on RKE for perf tests Issue-ID: DCAEGEN2-608 Signed-off-by: Pawel Change-Id: Ib02808fa9ccd7c2d241a1598def19d55b1b54797 --- performanceTests/README.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 performanceTests/README.md (limited to 'performanceTests/README.md') 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_PRIVATE_KEY = +RKE_KUBECONFIG_FILE_PATH = +``` +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: +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 -- cgit 1.2.3-korg