I want to load test a distributed application and I decided to go with Locust. The problem I am facing is that there are number of different inputs to this application and I to avoid the repetition of these inputs.
For example: Lets consider there are 4 inputs (A,B,C,D). Now I am reading these inputs from a file and posting on the application's API. The problem is that if I have a task to post input A to the API, all the threads that I spawn will post "A" to the API, making it repetitive. I want a mechanism where I can feed different inputs to the different threads(users) that get spawned.
Is there a way so that I can either get control of the threads(users) or simply feed them different inputs?
You may be able to use the running User’s greenlet identifier
They are not unique across locust workers, but maybe you arent running distributed.