splunk / observability-workshop

To get started, please proceed to The Splunk Observability Cloud Workshop Homepage.
https://splunk.github.io/observability-workshop/latest/
Apache License 2.0
89 stars 64 forks source link

APM Load Generator #155

Closed aishvaryaps closed 1 year ago

aishvaryaps commented 1 year ago

For APM Demo Set up we are using Splunk Observability workshop Online Boutique application. Referring to this repository to deploy files. We are using Load Generator to create traffic for Online Boutique. We have observed that this load generator stops abruptly very often nowadays on its own. We have hosted the setup on GKE cluster. What can be the potential cause of this load generator stopping? Because the traffic stops on its own, the APM service maps are distorted. We have multiple corporate client-side APM demos happening and this distorted map disturbs the client demo flow.

Also can I know how to run the load test with API so that I can schedule a cron job to restart the load test every hour. I tried the below API , but its not working curl POST 'http://34.xxx.xx.131/swarm?user_count=10&spawn_rate=10&host=http://frontend:80' I got this from developer tools of Boutique Application

rcastley commented 1 year ago

@aishvaryaps Can you run some tests in your environments by editing the deployment.yaml and replace:

image: quay.io/signalfuse/microservices-demo-loadgenerator:433c23881a

with

image: quay.io/signalfuse/microservices-demo-loadgenerator:latest

If this works, then I will commit the fix in the repo.

Many thanks!

rcastley commented 1 year ago

@aishvaryaps Regarding the API your syntax is incorrect, try using:

curl -X POST http://192.168.205.135:82/swarm   -H "content-type: application/x-www-form-urlencoded; charset=UTF-8" -d "user_count=100&spawn_rate=10&host=http://frontend:80"

NOTE: You need to include the port (82) in the request URL.

aishvaryaps commented 1 year ago

Hello @rcastley Thank you for the correct API I was able to create a script to trigger traffic using /swarm API Give me 2-3 days I will deploy the latest image (image: quay.io/signalfuse/microservices-demo-loadgenerator:latest) (probably on a weekend) Since there are demos going on, i cannot edit the deployment yaml

rcastley commented 1 year ago

@aishvaryaps Have you had a chance to test?

Many thanks!

rcastley commented 1 year ago

Closing due to age