Benchto ![Build Status](https://camo.githubusercontent.com/395ac44b9ffdb8f5fa8271ff0fc373d307479950d6f3f97c9af6596f54d83abd/68747470733a2f2f7472617669732d63692e636f6d2f70726573746f73716c2f62656e6368746f2e7376673f6272616e63683d6d6173746572)
The purpose of Benchto project is to provide easy and manageable way to define, run and analyze macro benchmarks in clustered environment. Understanding behaviour of distributed systems is hard and requires good visibility into state of the cluster and internals of tested system. This project was developed for repeatable benchmarking of Hadoop SQL engines, most importantly Presto.
Benchto consists of two main components: benchto-service
and benchto-driver
. To utilize all features of Benchto, it is also recommended to configure Graphite and Grafana. Image below depicts high level architecture:
-
benchto-service - persistent data store for benchmark results. It exposes REST API and stores results in relational DB (Postgres). Driver component calls API to store benchmark execution details which are later displayed by webapp which is bundled with service. Single instance of benchto-service can be shared by multiple benchmark drivers.
-
benchto-driver - standalone java application which loads definitions of benchmarks (benchmark descriptors) and executes them against tested distributed system. If cluster monitoring is in place, driver collects various metrics (cpu, memory, network usage) regarding cluster resource utilization. Moreover it adds graphite events which can be later displayed as Grafana annotations. All data is stored in service for later analysis.
-
monitoring - cluster monitoring is optional, but highly recommended to fully understand performance characteristics of tested system. It is assumed that Graphite/Carbon is used as metrics store and Grafana for clusters dashboards. There is no limitation on metric agents deployed on cluster hosts.
-
benchto-generator - map reduce job for generating benchmark data. You can configure number of rows, type of the row (ex. BIGINT, INT, DOUBLE, DECIMAL(38,8)), output format (ORC, TEXT) and number of output files. More details can be found in benchto-generator module README file.