如何将25k记录放入运动流并通过测试工具进行确认 [英] How to put 25k record to kinesis stream and Test tool to acknowledge it
问题描述
我已经开发了一款将记录写入Amazon kinesis Stream Web服务的软件.我试图了解我们是否有任何软件工具可以让我测量我的代码在一秒钟内为Kinesis Stream生成的1个Shard的最大吞吐量. 是的,我同意这也取决于硬件配置.但是首先,我想了解通用机器,那么也许我将能够看到水平可伸缩性
I have developed a piece of software which writes record to Amazon kinesis Stream web service. i am trying to understand do we have any software tool which will allow me to measure what maximum throughput my code is generating to Kinesis Stream for 1 Shard in one second. Yes i do agree it depends on hardware configurations too. But for start i want o know for general purpose machine then might be i will able to see horizontal scalability
为此,我试图达到每秒25k条记录以写入运动学流
With this i am trying to achieve 25k records per second to write to kinesis stream
参考资料:Kinesis http://aws.amazon.com/kinesis/
Reference : Kinesis http://aws.amazon.com/kinesis/
推荐答案
我相信您可以使用 Apache JMeter 为此
- 下载并安装JMeter
- 下载 Amazon Kinesis Java客户端库并将jar放到JMeter类路径(您可以使用JMeter安装的/lib文件夹)
- 使用 JSR223采样器,"groovy"作为语言和 AmazonKinesisRecordProducerSample 作为参考,其实现的代码将记录写入流
- Download and install JMeter
- Download Amazon Kinesis Java Client Library and drop jars to JMeter classpath (you can use /lib folder of your JMeter installation)
- Using JSR223 Sampler, "groovy" as a language and AmazonKinesisRecordProducerSample as a reference implement the code which will write records to stream
请参见 Beanshell vs JSR223 vs Java JMeter脚本:您一直在等待的性能下降!指南,以获取有关安装"groovy"引擎支持和编写脚本最佳实践的说明.
See Beanshell vs JSR223 vs Java JMeter Scripting: The Performance-Off You've Been Waiting For! guide for instructions on installing "groovy" engine support and scripting best practices.
这篇关于如何将25k记录放入运动流并通过测试工具进行确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!