mderevyankoaqa / jmeter-influxdb2-listener-plugin

Influx DB v2.0 listener plugin for Apache JMeter. Provides the possibility to see the online dashboard (aggregation table, errors, the response body of failures).
Apache License 2.0
112 stars 39 forks source link

Active user not matching the current active user #73

Open rhiadechavez opened 1 year ago

rhiadechavez commented 1 year ago

Hi, I have been using your jmeter-influx plugins from quite sometime now. and currently using it again with another project. :) Unfortunately, I'm having issue with the count of active users while running my JMeter Test.

The set-up was hosted in Amazon EC2. 3 JMeters in 3 EC2 Instance and 1 EC2 instance for Grafana and influxdb server. EC2 # 1 - has a JMeter set-up of concurrent users of 250 users EC2 # 2 - has a JMeter set-up of concurrent users of 250 users. EC2 # 3 - has a JMeter set-up of concurrent users of 125 users.

and those JMeter will run simultaneously, technically it will increase the # of active users in the Grafana. However, it doesn't match with the 3 JMeter concurrent users running. In addition, in my last run the total users was only showed was 153 users, but it JMeter it's running roughly around 300 users.

Fortunately, I'm getting the Aggregate report for the 3 JMeter running on the EC2 instance. Is just that the active users seem doesn't match.

VirtualUser screenshot

mderevyankoaqa commented 1 year ago

Hi @rhiadechavez. There are no summarizers to make a sum of the users from the servers you are using. Each server EC2 # 1, 2, 3 writes the users started from his side. So EC2 # 1 puts to db the number 150 users, then the same EC2 # 2 and etc. On the chart, you can make the queries themselves to make a sum of users from your servers.

But for now, as the result, you see the of avg. of value each server put --> in our example its 150 users.

There is the settings to differentiate the servers from the plugin. And then you will able to make aggregations - in your case it's the sum. Make a plus of the users from EC2 # 1 and EC2 # 2 and so on...

image

Have you got an idea?

BR, Mike

Goat2285 commented 10 months ago

Hey all,

So I ran into the same issue, and I did try to do the sum but it isnt advisable as we will have to sum each graph query and that might make mistakes, And the biggest thing for me was not to loose trust in the dashboard by my bad query mistakes,

So my work around was, instead of each slave reporting back to influxdb directly, let the master jmeter machine rather report back to influxdb.

Then it all works as created.