gpt4 book ai didi

mongodb - YCSB - 为什么我在互联网上的任何地方都找不到分片配置

转载 作者:可可西里 更新时间:2023-11-01 10:35:43 25 4
gpt4 key购买 nike

我看到各种关于 MongoDB 的引用,作为 YCSB 基准测试的客户端,以测试 NoSQL 数据库服务器的可扩展性/弹性。

https://github.com/brianfrankcooper/YCSB

但是,很明显基准测试需要某种分片设置,因为测试设计为在 6 到 10 台服务器计算机上运行以显示扩展性和弹性。

我无法在 Internet 上找到任何有关 MongoDB 配置的引用资料。我找不到任何发布结果的人也发布了他们的配置。

这件事真的做成功了吗?与 Cassandra、HBase 等原始 YCSB 客户端相比,结果如何。

我特别困惑,因为在 MongoDB 客户端的代码中它读到......“每个客户端线程有一个数据库实例”......见片段。

public class MongoDbClient extends DB {

    private static final Logger logger = LoggerFactory.getLogger(MongoDbClient.class);

    private Mongo mongo;
    private WriteConcern writeConcern;
    private String database;

    /**
* Initialize any state for this DB. Called once per DB instance; there is
* one DB instance per client thread.
*/
    public void init() throws DBException {
        // initialize MongoDb driver
        Properties props = getProperties();
......

但是,在 Brian Cooper YCSB 结果论文中,它指出他们运行的工作负载高达 500 个线程。

6.1 Experimental Setup

For most experiments, we used six server-class machines (dual 64-bit quad core 2.5 GHz Intel Xeon CPUs, 8 GB of RAM, 6 disk RAID-10 array and gigabit ethernet) to run each system. We also ran PNUTS on a 47 server cluster to successfully demonstrate that YCSB can be used to benchmark larger systems. PNUTS required two additional machines to serve as a configuration server and router, and HBase required an additional machine called the “master server.” These servers were lightly loaded, and the results we report here depend primarily on the capacity of the six storage servers. The YCSB Client ran on a separate 8 core machine. The Client was run with up to 500 threads, depending on the desired offered throughput. We observed in our tests that the client machine was not a bottleneck; in particular, the CPU was almost idle as most time was spent waiting for the database system to respond.

有谁知道这个基准测试的分片配置在哪里?是否有任何真正的竞争结果可以通过分片配置或为什么不需要分片的详细解释来支持。

谢谢,-罗伯特

最佳答案

我们没有将 MongoDB 作为我们最初的 YCSB 研究的一部分。 Mongo 客户端后来由另一位开发人员贡献,但我还没有针对 Mongo 运行完整的基准测试,所以我不知道客户端是否真的做了它需要做的一切。如果没有,请继续提交补丁,我会尝试包含它!

此外,“每个客户端线程一个数据库实例”注释意味着 JVM 中的数据库客户端类的一个实例,不一定是一个 MongoDB 服务器。

关于mongodb - YCSB - 为什么我在互联网上的任何地方都找不到分片配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5930061/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com