forked from logicalclocks/ndb-chef
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[irondb] Change to iRoNDB (logicalclocks#63)
[irondb] Initial benchmark directories [irondb] Add configuration for sysbench [irondb] Change directory name [irondb] Template sysbench multi [irondb] Initialize local_infile mysql configuration property [irondb] Add configuration files for dbt2 [irondb] Change dbt2 data directory [irondb] Rename
- Loading branch information
Showing
8 changed files
with
164 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# NUM_MYSQL_SERVERS NUM_WAREHOUSES NUM_TERMINALS | ||
2 1 1 | ||
2 2 1 | ||
2 4 1 | ||
2 8 1 | ||
2 12 1 | ||
2 16 1 | ||
2 24 1 | ||
2 32 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# NUM_MYSQL_SERVERS NUM_WAREHOUSES NUM_TERMINALS | ||
1 1 1 | ||
1 2 1 | ||
1 4 1 | ||
1 8 1 | ||
1 12 1 | ||
1 16 1 | ||
1 24 1 | ||
1 32 1 | ||
1 48 1 | ||
1 64 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,105 @@ | ||
# Run DB benchmarks | ||
benchmarks_dir = "#{node['ndb']['user-home']}/benchmarks" | ||
|
||
remote_file "#{node['ndb']['scripts_dir']}/flexAsync" do | ||
directory benchmarks_dir do | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
source "http://snurran.sics.se/hops/flexAsync" | ||
mode 0755 | ||
mode "750" | ||
action :create | ||
end | ||
|
||
template "#{node['ndb']['scripts_dir']}/flexAsync.sh" do | ||
source "flexAsync.sh.erb" | ||
sysbench_single_dir = "#{benchmarks_dir}/sysbench_single" | ||
directory sysbench_single_dir do | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode 0754 | ||
variables({ :mgmd_ip => node['ndb']['mgmd']['private_ips'][0] }) | ||
mode "750" | ||
action :create | ||
end | ||
|
||
mysqld_host = "" | ||
mysqld_hosts = "" | ||
number_of_mysqld = 0 | ||
if node['ndb'].attribute?('mysqld') | ||
number_of_mysqld = node['ndb']['mysqld']['private_ips'].length() | ||
mysqld_hosts = node['ndb']['mysqld']['private_ips'].join(',') | ||
mysqld_host = node['ndb']['mysqld']['private_ips'][0] | ||
end | ||
|
||
template "#{sysbench_single_dir}/autobench.conf" do | ||
source "autobench_sysbench.conf.erb" | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode 0750 | ||
variables({ | ||
:sysbench_instances => "1", | ||
:mysqld_hosts => mysqld_host, | ||
}) | ||
end | ||
|
||
sysbench_multi_dir = "#{benchmarks_dir}/sysbench_multi" | ||
directory sysbench_multi_dir do | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode "750" | ||
action :create | ||
end | ||
|
||
template "#{sysbench_multi_dir}/autobench.conf" do | ||
source "autobench_sysbench.conf.erb" | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode 0750 | ||
variables({ | ||
:sysbench_instances => number_of_mysqld, | ||
:mysqld_hosts => mysqld_hosts, | ||
}) | ||
end | ||
|
||
dbt2_single_dir = "#{benchmarks_dir}/dbt2_single" | ||
directory dbt2_single_dir do | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode "750" | ||
action :create | ||
end | ||
|
||
template "#{dbt2_single_dir}/autobench.conf" do | ||
source "autobench_dbt2.conf.erb" | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode 0750 | ||
variables({ | ||
:mysqld_hosts => mysqld_host, | ||
}) | ||
end | ||
|
||
cookbook_file "#{dbt2_single_dir}/dbt2_run_1.conf" do | ||
source "dbt2_run_1.conf.single" | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode 0750 | ||
end | ||
|
||
dbt2_multi_dir = "#{benchmarks_dir}/dbt2_multi" | ||
directory dbt2_multi_dir do | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode "750" | ||
action :create | ||
end | ||
|
||
template "#{dbt2_multi_dir}/autobench.conf" do | ||
source "autobench_dbt2.conf.erb" | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode 0750 | ||
variables({ | ||
:mysqld_hosts => mysqld_hosts, | ||
}) | ||
end | ||
|
||
ark "dbt2" do | ||
url node['ndb']['dbt2_binaries'] | ||
home_dir node['ndb']['root_dir'] | ||
append_env_path true | ||
action :install | ||
cookbook_file "#{dbt2_multi_dir}/dbt2_run_1.conf" do | ||
source "dbt2_run_1.conf.multi" | ||
owner node['ndb']['user'] | ||
group node['ndb']['group'] | ||
mode 0750 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Software definition | ||
# | ||
MYSQL_BIN_INSTALL_DIR="<%= node['mysql']['base_dir'] %>" | ||
BENCHMARK_TO_RUN="dbt2" | ||
# | ||
# Storage definition (empty here) | ||
# | ||
# | ||
# MySQL Server definition | ||
# | ||
SERVER_HOST="<%= @mysqld_hosts %>" | ||
# | ||
# NDB node definitions (empty here) | ||
# | ||
# | ||
# Benchmark definition | ||
# | ||
DBT2_TIME="30" | ||
DBT2_WAREHOUSES="64" | ||
DBT2_DATA_DIR="<%= node['ndb']['user-home'] %>/benchmarks/dbt2_data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Software definition | ||
# | ||
MYSQL_BIN_INSTALL_DIR="<%= node['mysql']['base_dir'] %>" | ||
BENCHMARK_TO_RUN="sysbench" | ||
# | ||
# Storage definition (empty here) | ||
# | ||
# | ||
# MySQL Server definition | ||
# | ||
SERVER_HOST="<%= @mysqld_hosts %>" | ||
# | ||
# NDB node definitions (empty here) | ||
# | ||
# | ||
# Benchmark definition | ||
# | ||
SYSBENCH_TEST="oltp_rw" | ||
SYSBENCH_INSTANCES="<%= @sysbench_instances %>" | ||
THREAD_COUNTS_TO_RUN="1;2;4;8;12;16;24;32;48;64;96;112;128" | ||
MAX_TIME="30" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters