H-Store科研入门(3)- 配置参数

本文是关于H-Store分布式内存数据库的科研入门指南,主要聚焦于系统参数配置。H-Store,源自MIT、CMU和Brown大学的学术项目,其商业版为VoltDB。内容涵盖配置文件的查看及全部可用参数的介绍,为读者提供实验参数设置的参考。
摘要由CSDN通过智能技术生成

写在前面

因为我的科研方向是内存数据库机制设计,所以就选了经典的高性能分布式内存数据库(也是关系数据库)来作为研究的工具基础,以期做出足够大贡献的改进。

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所有可供使用的配置参数其实是远远多于以上所罗列出来的。

全部参数配置

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值