# FoundationDB cluster setup

**URL:** <https://forums.foundationdb.org/t/foundationdb-cluster-setup/1641>\
**Category:** Using FoundationDB\
**Tags:** performance\
**Created:** [September 20, 2019, 12:56pm UTC](https://forums.foundationdb.org/t/foundationdb-cluster-setup/1641 "2019-09-20T12:56:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![alexmiller](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/alexmiller/32/326_2.png) [@alexmiller](https://forums.foundationdb.org/u/alexmiller)\
**Post date:** [September 21, 2019, 4:55am UTC](https://forums.foundationdb.org/t/foundationdb-cluster-setup/1641/9 "2019-09-21T04:55:58Z")

</div>

> [@Karthikn6793](#):
>
> And for latency test I should use only one instance right?
> 
> We have planned to use YCSB for testing. Do you any idea about how to configure this?

I would expect that for benchmarking a three machine cluster, you could probably get away with only having one (other) machine driving the benchmarking load.

Someone did contribute a [YCSB backend for FoundationDB](https://github.com/brianfrankcooper/YCSB/pull/1162). However, YCSB isn’t a great benchmarking tool for transactional databases, and particularly not for FoundationDB. In a transaction, the first operation done pays a cost of fetching and calculating a read version, which is frequently a 1-2ms operation. A transaction can then do any number of reads within 5 seconds, with a point read typically taking ~0.3ms. YCSB does one read or one write per transaction, so it ends up turning into a benchmark of getting read versions instead of reads or writes to the database. See [How to scale foundation db reads - #4 by alexmiller](https://forums.foundationdb.org/t/how-to-scale-foundation-db-reads/1108/4) for a deep analysis of this sort of workload.

So YCSB will give you an idea of how a YCSB-like workload would run on FDB, but not anything that cleanly extrapolates to what your application would do with FDB. If you’d still like to run YCSB, then our friends at PingCAP very generously included FDB in their go port of YCSB also [ANN: benchmark FoundationDB with Go YCSB](https://forums.foundationdb.org/t/ann-benchmark-foundationdb-with-go-ycsb/318) . There are benchmarks that you can find that were meant to be better tests of transactional databases: YCSB+T, TCSB, or TPC-C, but I’m not aware of a FDB backend for any of them.

We’ve previously encouraged folk to use the same workload generating tools that we use for performance tests internally. You can find some examples of doing so in [Why doesn't my cluster performance scale when I double the number of machines? - #12 by alexmiller](https://forums.foundationdb.org/t/why-doesnt-my-cluster-performance-scale-when-i-double-the-number-of-machines/640/12) and searching for “multitest” gives other threads as well.

---

_[View the full topic](https://forums.foundationdb.org/t/foundationdb-cluster-setup/1641)._
