我有一个用Spring Boot编写的只有GET和POST方法的REST服务。 GET/POST方法从cassandra集群中检索/发布数据。 我试着同时运行100个用户测试REST服务。 我JMeter的配置是:REST使用Jmeter的服务负载测试
当我运行这个测试,最初的几个要求它提供错误和半请求成功。 这里是
然后我检查错误的原因在结果树,发现这个响应数据结果表:
{"timestamp":1474278650822,"status":500,"error":"Internal Server Error","exception":"com.datastax.driver.core.exceptions.NoHostAvailableException","message":"org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)","path":"/post"}
我无法弄清楚,为什么它没有前几个请求连接到cassandra群集。
我是cassandra,REST服务和jmeter的新手。任何人都可以指出我正在犯什么错误。 注意:我已使用Postman测试了我的REST服务,它的功能很好,既有GET和POST请求。
谢谢,我不知道池的大小。我会研究它。 – hmachahary