No response data When using Cassandra JMeter

I am new to JMeter and Cassandra and trying to use the Apache Jmeter Cassandra plugin to test the target

https://github.com/Netflix/CassJMeter/wiki

Following the steps below, I was able to configure the JMeter Cassandra plugin.

  • In the JMeter console, I created a new ThreadGroup-> CassandraProperties and set all the properties associated with Cassandra. enter image description here

  • SchemaProperties features added as shown below. enter image description here

  • Added Cassandra Get Range snippet enter image description here

But when I start testing, I get a success response in the sample, but my response data is empty enter image description here

My Users table is not empty, using cql, I can request data, its scheme looks like this:

CREATE TABLE users ( user_name text, gender text, password text, PRIMARY KEY ((user_name)) ) WITH bloom_filter_fp_chance=0.010000 AND caching='KEYS_ONLY' AND comment='' AND dclocal_read_repair_chance=0.100000 AND gc_grace_seconds=864000 AND index_interval=128 AND read_repair_chance=0.000000 AND replicate_on_write='true' AND populate_io_cache_on_flush='false' AND default_time_to_live=0 AND speculative_retry='99.0PERCENTILE' AND memtable_flush_period_in_ms=0 AND compaction={'class': 'SizeTieredCompactionStrategy'} AND compression={'sstable_compression': 'LZ4Compressor'}; 

So, when I start the Jmeter console, should I get 100 counting results and some response data is also correct? I am stuck here and cannot understand ... any help would be appreciated.

+5
source share
1 answer

You can check out the blazemeter tutorial on the Cassandra script in JMeter:

  • download the driver jar file. After that, you can add the downloaded jar file to the JMeters class path

  • add Cassandra dependencies and add them to the JMeter class path, as well

  • Add -> Sampler -> JSR223 Sampler

  • Send request

eg:

 import com.datastax.driver.core.Session; import com.datastax.driver.core.Cluster; Cluster cluster = Cluster.builder().addContactPoint("127.0.0.1").build(); Session session = cluster.connect("test_keyspace"); def results = session.execute("SELECT * FROM users"); session.close(); cluster.close();` 

you can get Cassandra load testing through JMeter, regardless of the version of Cassandra you have. Using Groovy's scripting language, you don’t have to worry about what Cassandra functionality is supported by JMeter, because you can do the operations yourself

0
source

Source: https://habr.com/ru/post/1210533/


All Articles