<p>We are running jmx through Tauras using 2 containers in Kubernetes.
We are seeing only 50 users in results instead of 100(50*2 containers).
Can anyone please through some light if we are missing something here.
We get two jtl and checking them individual or combined the total users are same 50 only. Is it related to same Thread name being generated and logged in jtl file or something else.</p>
<h2>Here is the yml details:</h2>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: joba
  namespace: AAA
data:
  protocol: &quot;https&quot;
  serverUrl: “testurl”
  users: &quot;50”
  duration: &quot;1m&quot;
  nodeName: &quot;Nodename&quot;
  ---
apiVersion: /v1
kind: Job
metadata:
  name: perftest
  namespace: dev
spec:
  template:
    spec:
      containers:
      - args: [&quot;split -l ${users} --numeric-suffixes Test.csv Test-; /bin/bash ./Shellscripttoread_assignvariables.sh;&quot;]
        command: [&quot;/bin/bash&quot;, &quot;-c&quot;]
        env:
        - name: JobNumber
          value: &quot;00&quot;
        envFrom:
        - configMapRef:
            name: job-multi
        image: imagepath
        name: ubuntu-00
        resources:
          limits:
            memory: “8000Mi&quot;
            cpu: &quot;2880m&quot;
      - args: [&quot;split -l ${users} --numeric-suffixes Test.csv Test-; /bin/bash ./Shellscripttoread_assignvariables.sh;&quot;]
        command: [&quot;/bin/bash&quot;, &quot;-c&quot;]
        env:
        - name: JobNumber
          value: &quot;01”
        envFrom:
        - configMapRef:
            name: job-multi
        image: imagepath
        name: ubuntu-01
        resources:
          limits:
            memory: “8000Mi&quot;
            cpu: &quot;2880m&quot;
  
</code></pre>

user5235510
<p>Your YAML is very nice but it doesn't tell anything about how do you launch JMeter or what these shell scripts you invoke are doing.</p>
<p>If you just kick off 2 separate JMeter instances by means of k8s - JMeter will look at the number of active threads from the <a href="https://cwiki.apache.org/confluence/display/JMETER/JtlFiles" rel="nofollow noreferrer">.jtl file</a> and given the Sampler/Transaction names are the same JMeter &quot;thinks&quot; that the tests were executed on one engine.</p>
<p>The workaround is to add i.e. <a href="https://jmeter.apache.org/usermanual/functions.html#__machineName" rel="nofollow noreferrer">machineName()</a> or <a href="https://jmeter.apache.org/usermanual/functions.html#__machineIP" rel="nofollow noreferrer">__machineIP()</a> function to sampler/transaction labels, this way JMeter will distinguish the results coming from different instances and you will see real number of active threads.</p>
<p>The solution would be running your JMeter test in <a href="https://www.blazemeter.com/blog/how-to-perform-distributed-testing-in-jmeter" rel="nofollow noreferrer">Distributed Mode</a> so master will run in one pod, slaves in their own pods and the master will be responsible for transferring .jmx script to the slaves and collecting results from them</p>
