summaryrefslogtreecommitdiffstats
path: root/performanceTests/Makefile
diff options
context:
space:
mode:
authorPawel Kasperkiewicz <pawel.kasperkiewicz@nokia.com>2020-06-04 16:56:48 +0200
committerAdam Wudzinski <adam.wudzinski@nokia.com>2020-06-04 18:52:41 +0200
commit3b6ba181623e844d5012362209d2f29616315395 (patch)
tree703abb4398d4a8e328acdaace390c140192fd5b7 /performanceTests/Makefile
parent36e09e63f779b5ebec4391f1a444ef214850e2fe (diff)
Add CPU/RAM measurements collection
Add mechanism for CPU/RAM measurements collection from k8s nodes and from JMeter VM Issue-ID: DCAEGEN2-608 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I78af2906254a19da383c7bae9ec919eadd326873
Diffstat (limited to 'performanceTests/Makefile')
-rw-r--r--performanceTests/Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/performanceTests/Makefile b/performanceTests/Makefile
index 30a3d2ea..26872fc2 100644
--- a/performanceTests/Makefile
+++ b/performanceTests/Makefile
@@ -1,4 +1,4 @@
-all: copy-performanceTests run-performanceTests copy-jmeter
+all: copy-performanceTests run-performanceTests copy-jmeter copy-collectd install-collectd
RKE_NODE_USER_AND_HOSTNAME = <RKE_USER>@<RKE_IP> # for example ubuntu@10.183.36.205
@@ -10,6 +10,9 @@ RKE_KUBECONFIG_FILE_PATH = /home/ubuntu/.kube/config.onap
JMETER_VM_USER_AND_HOSTNAME = <RKE_USER>@<VM_IP> # for example root@10.183.36.50
JMETER_VM_PRIVATE_KEY = <PEM_PRIVATE_KEY_FILE_PATH> # for example ~/.ssh/onap-5802.pem
+
+restart: clear-performanceTests remove-performanceTests remove-jmeter remove-collectd all
+
copy-performanceTests:
@echo "\n##### Copy performance tests directory to lab environment #####"
scp -r -i $(RKE_PRIVATE_KEY) ./k8s $(RKE_NODE_USER_AND_HOSTNAME):$(PERFORMANCE_TESTS_DIRECTORY)
@@ -30,6 +33,21 @@ remove-performanceTests:
ssh -i $(RKE_PRIVATE_KEY) $(RKE_NODE_USER_AND_HOSTNAME) 'bash -c "export KUBECONFIG=$(RKE_KUBECONFIG_FILE_PATH) && rm -rf $(PERFORMANCE_TESTS_DIRECTORY)"'
@echo "##### DONE #####"
+copy-collectd:
+ @echo "\n##### Copy collectd to JMeter VM #####"
+ scp -r -i $(JMETER_VM_PRIVATE_KEY) ./k8s/collectd $(JMETER_VM_USER_AND_HOSTNAME):collectd
+ @echo "##### DONE #####"
+
+install-collectd:
+ @echo "\n##### Install collectd on JMeter VM #####"
+ ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'cd collectd && make'
+ @echo "##### DONE #####"
+
+remove-collectd:
+ @echo "\n##### Remove collectd #####"
+ ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'rm -rf collectd'
+ @echo "##### DONE #####"
+
copy-jmeter:
@echo "\n##### Copy JMeter #####"
scp -r -i $(JMETER_VM_PRIVATE_KEY) ./k8s/testScenario $(JMETER_VM_USER_AND_HOSTNAME):$(PERFORMANCE_TESTS_DIRECTORY)