Prerequisites
- Mobile Services installed on OpenShift cluster
Steps 1. Provision Metrics APB in your project by following the steps in docs 2. !TODO! Review this step: Clone https://github.com/aerogear/voyager-server , login to docker and inside the cloned repo, run cd examples && NAMESPACE="<your-dockerhub-id>" CI=true TAG=latest ../scripts/publishExamples.sh metrics 3. Provision Data Sync APB by following the steps in docs ^ !TODO! edit the link and use following parameters:
- Sync Application Name: test
- Sync Application Docker image: docker.io/aerogear/voyager-server-example-metrics
- Sync Application Docker image version: latest
- Sync App Port: 4000
- rest of parameters doesn't matter (use whatever you want)
4. Visit Grafana URL, login with OpenShift credentials and expand Data Sync row in Mobile Services Dashboard 5. Visit the link to your Sync app dashboard 6. On the top right corner click on the time button and switch to "Last 5 minutes" Verify that "Number of pods", "Version", "Current memory usage", "Memory usage in time", "Current CPU usage" and "CPU usage in time" are showing some values. 7. In OpenShift, scale up your sync-app-test application (to 2 pods in total) 8. When the scaling is complete, go back to Grafana and hit the refresh button on the top right corner Verify that the "Number of pods" counter has changed and also "Memory/CPU usage in time" graphs are displaying values for each pods and their average Trello link |