写在前面
因为我的科研方向是内存数据库机制设计,所以就选了经典的高性能分布式内存数据库(也是关系数据库)来作为研究的工具基础,以期做出足够大贡献的改进。
H-Store是由MIT,CMU,Brown大学联合开发的用于学术的分布式内存数据库,它的商业版本是voltDB。H-Store是开源的,所以你可以完全可以研读它的源码,做出任意的修改并发布。H-Store下载地址是:https://github.com/apavlo/h-store,主页是在http://hstore.cs.brown.edu/。
本次内容主要介绍H-Store的实验相关参数。
Properties文件
通过git方式下载hstore后可前往hstore/properties
查看配置文件,输入命令:
vim default.properties
即可在vim编辑器中阅读相关配置。默认的配置文件信息罗列如下:
## ------------------------------------------------------------
## Global Parameters
## ------------------------------------------------------------
# Temporary Directory
global.temp_dir = ${output.dir}/
# Options used when logging into client/server hosts
# We assume that there will be no spaces in paths or options listed here
global.sshoptions = -x
# What hostname to use for various default parameters
# This can't be removed from this file
global.defaulthost = localhost
## ------------------------------------------------------------
## Benchmark Client Parameters
## ------------------------------------------------------------
# The amount of memory to allocate for each client process (in MB)
client.memory = 512
# Default client host name
client.hosts = ${global.defaulthost}
# The number of txns that each client submits (per ms)
# Actual TXN rate sent to cluster will be:
# TXNRATE * CLIENTCOUNT * PROCESSESPERCLIENT
client.txnrate = 1000
# Number of clients hosts to use in the benchmark
# You can define the list of hosts use ${client.hosts}
client.count = 1
# Number of threads to use per benchmark client host
client.threads_per_host = 10
# How long should the client run (milliseconds)
client.duration = 60000
# How long should the system be allowed to warmup (milliseconds)
# Any stats collected during this period are not counted.
client.warmup = 10000
# Polling interval (milliseconds)
client.interval = 10000
# Benchmark Database Scale Factor
client.scalefactor = 1.0
# Client Log Directory
client.log_dir = ${global.temp_dir}/logs/clients
## ------------------------------------------------------------
## Site Parameters
## ------------------------------------------------------------
# The amount of memory to allocate for each site (in MB)
site.memory = 2048
# Site Log Directory
site.log_dir = ${global.temp_dir}/logs/sites
但是H-Store所有可供使用的配置参数其实是远远多于以上所罗列出来的。
全部参数配置
- http://hstore.cs.brown.edu/documentation/configuration/properties-file/
- http://hstore.cs.brown.edu/documentation/configuration/properties-file/global/
- http://hstore.cs.brown.edu/documentation/configuration/properties-file/client/
- http://hstore.cs.brown.edu/documentation/configuration/properties-file/site/