简体   繁体   English

Apache Ignite和Yardstick

[英]Apache Ignite and Yardstick

Is there anybody who can explain me about Apache Ignite and Yardstick? 有没有人可以向我解释有关Apache Ignite和Yardstick的信息?

To my knowledge, Yardstick is a benchmark tool of Apache Ignite. 据我所知,Yardstick是Apache Ignite的基准测试工具。

I know how to run Apache Ignite and how to set its memory capacity. 我知道如何运行Apache Ignite以及如何设置其内存容量。 (I know the default is 1 GB) (我知道默认值为1 GB)

When I ran Ignite it shows: 当我运行Ignite时,它显示:

[15:37:06] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4, heap=4.0GB]

When I ran yardstick to benchmark it, Ignite shows: 当我运行基准进行基准测试时,Ignite显示:

[15:37:06] Topology snapshot [ver=2, servers=1, clients=1, CPUs=4, heap=6.0GB]

So why 2.0GB was increased? 那么为什么增加了2.0GB? How can I modify it? 我该如何修改?

Also, this is what I know. 另外,这就是我所知道的。 Apache Ignite takes some amount of memory from the machine and using Yardstick, it can test the performance like cache.put() things within the memory took by Ignite. Apache Ignite从计算机上获取了一些内存,并使用Yardstick,它可以测试Ignite占用的内存中的性能,例如cache.put()之类的性能。 If it is correct then heap shouldn't be increased from 4.0GB to 6.0GB because Yardstick can benchmark within the memory (4.0GB) 如果正确,则不应将堆从4.0GB增加到6.0GB,因为Yardstick可以在内存(4.0GB)中进行基准测试

Is there anybody who can explain me about this? 有谁可以向我解释一下吗?

Yardstick starts Ignite nodes with one of two roles: server or driver . Yardstick使用两个角色之一启动Ignite节点: 服务器驱动程序

Drivers generate workload and measure performance and useful statistics. 驱动程序生成工作负载并评估性能和有用的统计信息。 These are usually client nodes. 这些通常是客户端节点。

Servers form a core set of nodes, that process the workload, that is generated by drivers. 服务器形成一组核心节点,用于处理由驱动程序生成的工作负载。

Each node is usually run in a separate process. 每个节点通常在单独的进程中运行。 Each one uses as much heap as you give it. 每个堆都使用您提供的堆。

Looks like you started a server node manually and it has 4 GB of heap configured, and Yardstick driver has 2 GB. 看起来您是手动启动了一个服务器节点,并且它已配置了4 GB的堆,而Yardstick驱动程序具有2 GB。 That's how 4+2 gives 6 :) 那就是4 + 2给出6的方式:)

PS If you use shell scripts, distributed with Ignite binaries, to run benchmarks, you can specify number of nodes and their configurations in a property file. PS如果使用随Ignite二进制文件分发的Shell脚本来运行基准,则可以在属性文件中指定节点数及其配置。 Yardstick will start server nodes itself, and you won't have to do it manually. Yardstick本身将启动服务器节点,您无需手动进行。

Here is an example of such property file with comments for all configured properties: https://github.com/apache/ignite/blob/master/modules/yardstick/config/benchmark-atomic.properties 这是带有所有已配置属性的注释的此类属性文件的示例: https : //github.com/apache/ignite/blob/master/modules/yardstick/config/benchmark-atomic.properties

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM