GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Documentation
  • Privacy Statement
  • License Agreement
  • Contact Us

This view

  • Original page
  • New address

GeezerVison is showing docs.voltdb.com — 5.2. Determining Sites Per Host

  • Volt Active Data
  • Developer Hub
  • Books
    • VoltDB Tutorial
    • Using VoltDB
    • VoltDB Guide to Performance and Customization
    • VoltDB Administrator's Guide
    • Volt Kubernetes Administrator's Guide
    • VoltDB Quick Reference
  • VoltDB V16
    • VoltDB V16
    • VoltDB V15.3 LTS
    • VoltDB V14.3 LTS
    • VoltDB V13.3 LTS
    • VoltDB V12.3 LTS
    • VoltDB V11.4
    • VoltDB V10.2
    • VoltDB V9.3
5.2. Determining Sites Per Host

Planning Guide

  • Preface▶
    • 1. Organization of this Manual
    • 2. Other Resources
  • 1. The Planning Process
  • 2. Proof of Concept▶
    • 2.1. Effective Partitioning
    • 2.2. Designing the Stored Procedures
  • 3. Choosing Hardware▶
    • 3.1. The Dimensions of Hardware Sizing
    • 3.2. Sizing for Throughput
    • 3.3. Sizing for Capacity
    • 3.4. Sizing for Durability
  • 4. Sizing Memory▶
    • 4.1. Planning for Database Capacity
      • 4.1.1. Sizing Database Tables
      • 4.1.2. Sizing Database Indexes
      • 4.1.3. An Example of Database Sizing
    • 4.2. Distributing Data in a Cluster
      • 4.2.1. Data Memory Usage in Clusters
      • 4.2.2. Memory Requirements for High Availability (K-Safety)
    • 4.3. Planning for the Server Process (Java Heap Size)
      • 4.3.1. Attributes that Affect Heap Size
      • 4.3.2. Guidelines for Determining Java Heap Size
  • 5. Benchmarking▶
    • 5.1. Benchmarking for Performance
      • 5.1.1. Designing Your Benchmark Application
      • 5.1.2. How to Measure Throughput
      • 5.1.3. How to Measure Latency
    • 5.2. Determining Sites Per Host

5.2. Determining Sites Per Host

Another important goal for benchmarking is determining the optimal number of sites per host. Each VoltDB server can host multiple partitions, or "sites". The ideal number of sites per host is related to the number of processor cores available on the server. However, it is not an exact one-to-one relationship. Usually, the number of sites is slightly lower than the number of cores.

The equation becomes even more complex with hyperthreading, which "virtualizes" multiple processors for each physical core. Hyperthreading can improve the number of sites per host that a VoltDB server can support. But again, not in direct proportion to a non-hyperthreaded server.

Important

In general, VoltDB performs best with between 4 and 16 sites per host. However, you should never exceed 24 sites per host, even if the number of processor cores might support more, because the processing required to manage so many sites begins to conflict with the data processing.

The easiest way to determine the optimal number of sites per host is by testing, or benchmarking, against the target application. The process for determining the correct number of sites for a specific hardware configuration is as follows:

  1. Create a benchmark application that measures the optimal throughput, as described in Section 5.1, “Benchmarking for Performance”.

  2. Run the benchmark application multiple times, each time increasing the number of sites per host for the database.

  3. Make note of the optimal throughput for each run and graph the optimal TPS against the number of sites per host.

As the number of sites per host increases, the optimal throughput increases as well. However, at some point, the number of sites exceeds the number of threads that the hardware can support, at which point the throughput levels out, or even decreases, as contention occurs in the processor. Figure 5.2, “Determining Optimal Sites Per Host” shows the results graph of a hypothetical benchmark of sites per host for a quad core server. In this case, the optimal number of sites per host turned out to be three.

Figure 5.2. Determining Optimal Sites Per Host

Determining Optimal Sites Per Host

By graphing the relationship between throughput and partitions using a benchmark application, it is possible to maximize database performance for the specific hardware configuration you will be using.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.