I can see in my py code in track.py that 4 python (threads or processes) are created. I would like to customize the behaviour of each, something like (pseudo code)
if client==1 then X
if client==2 then Y
Is there something I can use in my py class to identify each client? I cannot find anything by looking around.
thanks!
I am replying some queries I load from a file. I would like each client to run just an Nth of the queries, so for instance each client 1 would run queries 1, 5, 9, client 2 would run 2, 6, 10...
I am assuming your param source is a function. If you expand it to be a class, per the docs, you can use the partition function for this purpose.
partition(self, partition_index, total_partitions) is called by Rally to "assign" the parameter source across multiple clients. Typically you can just return self. If each client needs to act differently then you can provide different parameter source instances here as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.