Skip to content

Commit

Permalink
systemctl daemon-reload for all services
Browse files Browse the repository at this point in the history
  • Loading branch information
%github_username% committed Mar 28, 2016
1 parent 4f039ca commit 1bb55df
Show file tree
Hide file tree
Showing 67 changed files with 47 additions and 15 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions .kitchen.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ provisioner:
name: chef_solo

platforms:
- name: ubuntu-14.04
# - name: centos-7.0
# - name: ubuntu-15.04
# - name: ubuntu-14.04
- name: centos-7.0
- name: ubuntu-15.04

suites:
- name: default
Expand Down
Empty file modified Berksfile
100644 → 100755
Empty file.
Empty file modified Gemfile
100644 → 100755
Empty file.
Empty file modified Guardfile
100644 → 100755
Empty file.
Empty file modified Karamelfile
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
20 changes: 11 additions & 9 deletions attributes/default.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,17 @@
default.ndb.group = "root"
default.ndb.connectstring = ""

default.ndb.DataMemory = "200"
default.ndb.DataMemory = "50"
# Calculate IndexMemory size by default, can be overriden by user.
default.ndb.IndexMemory = ""
default.ndb.NoOfReplicas = "1"
default.ndb.FragmentLogFileSize = "64M"
default.ndb.TcpBind_INADDR_ANY = "FALSE"
default.ndb.NoOfFragmentLogParts = "4"
default.ndb.MaxNoOfAttributes = "60000"
default.ndb.MaxNoOfTables = "3036"
default.ndb.MaxNoOfOrderedIndexes = "1024"
default.ndb.MaxNoOfUniqueHashIndexes = "256"
default.ndb.MaxDMLOperationsPerTransaction = "4294967295"
default.ndb.MaxDMLOperationsPerTransaction = "4297295"
default.ndb.TransactionBufferMemory = "1M"
default.ndb.MaxParallelScansPerFragment = "256"
default.ndb.MaxDiskWriteSpeed = "20M"
Expand All @@ -64,13 +63,16 @@
default.ndb.MaxAllocate = "32M"
default.ndb.DefaultHashMapSize = "3840"
default.ndb.ODirect = "0"
default.ndb.TotalSendBufferMemory = "32M"
default.ndb.OverloadLimit = "16M"
default.ndb.MaxNoOfConcurrentIndexOperations = "80000"
default.ndb.MaxNoOfConcurrentOperations = "500000"
default.ndb.MaxNoOfFiredTriggers = "10000"
default.ndb.TotalSendBufferMemory = "4M"
# 0, in which case the effective overload limit is calculated as SendBufferMemory * 0.8 for a given connection.
default.ndb.OverloadLimit = "0"
# set to several MBs to protect the cluster against misbehaving API nodes that use excess send memory and thus cause failures in communications internally in the NDB kernel.
default.ndb.MaxNoOfConcurrentScans = "500"
default.ndb.MaxNoOfConcurrentTransactions = "50000"
default.ndb.MaxNoOfConcurrentIndexOperations = "8000"
default.ndb.MaxNoOfConcurrentOperations = "10000"
default.ndb.MaxNoOfFiredTriggers = "4000"
default.ndb.MaxNoOfConcurrentTransactions = "4096"
default.ndb.MaxNoOfAttributes = "5000"

#Optimize for throughput: 0 (range 0..10)
default.ndb.SchedulerResponsiveness = 0
Expand Down
Empty file modified files/default/libaio1_0.3.109-2ubuntu1_amd64.deb
100644 → 100755
Empty file.
Empty file modified libraries/provider_ndb.rb
100644 → 100755
Empty file.
Empty file modified libraries/resource_ndb.rb
100644 → 100755
Empty file.
Empty file modified metadata.rb
100644 → 100755
Empty file.
Empty file modified providers/ixgbevf.rb
100644 → 100755
Empty file.
Empty file modified providers/mgmd.rb
100644 → 100755
Empty file.
Empty file modified providers/mysql_basic.rb
100644 → 100755
Empty file.
Empty file modified providers/mysql_ndb.rb
100644 → 100755
Empty file.
Empty file modified providers/mysqld.rb
100644 → 100755
Empty file.
Empty file modified providers/ndbd.rb
100644 → 100755
Empty file.
14 changes: 14 additions & 0 deletions providers/start.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@

end

action :systemd_reload do


bash "systemd-reload-#{new_resource.name}" do
user "root"
code <<-EOH
set -e
systemctl reload-daemon
EOH
end

end



action :flex do

Expand Down
Empty file modified providers/waiter.rb
100644 → 100755
Empty file.
Empty file modified recipes/_update-etc-hosts.rb
100644 → 100755
Empty file.
Empty file modified recipes/bench.rb
100644 → 100755
Empty file.
Empty file modified recipes/client.rb
100644 → 100755
Empty file.
Empty file modified recipes/dbt2.rb
100644 → 100755
Empty file.
Empty file modified recipes/experiment.rb
100644 → 100755
Empty file.
Empty file modified recipes/find_mysqld.rb
100644 → 100755
Empty file.
Empty file modified recipes/get_ndbapi_addrs.rb
100644 → 100755
Empty file.
Empty file modified recipes/install.rb
100644 → 100755
Empty file.
Empty file modified recipes/memcached-purge.rb
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions recipes/memcached.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
notifies :restart, "service[#{service_name}]"
end

ndb_systemd "reload_ndbd" do
action :systemd_reload
end

end

if node.kagent.enabled == "true"
Expand Down
Empty file modified recipes/mgmd-purge.rb
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions recipes/mgmd.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
variables({ :node_id => found_id })
notifies :enable, "service[#{service_name}]"
end

ndb_systemd "reload_ndbd" do
action :systemd_reload
end

end


Expand Down
Empty file modified recipes/mysqld-purge.rb
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions recipes/mysqld.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@
action :nothing
end

ndb_systemd "reload_ndbd" do
action :systemd_reload
end

end

template "mysql.cnf" do
Expand Down
Empty file modified recipes/ndbd-purge.rb
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions recipes/ndbd.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
notifies :restart, "service[#{service_name}]", :immediately
end

ndb_systemd "reload_ndbd" do
action :systemd_reload
end

end

if node.kagent.enabled == "true"
Expand Down
Empty file modified recipes/purge.rb
100644 → 100755
Empty file.
Empty file modified resources/ixgbevf.rb
100644 → 100755
Empty file.
Empty file modified resources/mgmd.rb
100644 → 100755
Empty file.
Empty file modified resources/mysql_basic.rb
100644 → 100755
Empty file.
Empty file modified resources/mysql_ndb.rb
100644 → 100755
Empty file.
Empty file modified resources/mysqld.rb
100644 → 100755
Empty file.
Empty file modified resources/ndbd.rb
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion resources/start.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
actions :start_if_not_running, :start_if_not_running_systemd, :flex
actions :systemd_reload, :start_if_not_running, :start_if_not_running_systemd, :flex

attribute :name, :kind_of => String, :name_attribute => true

Expand Down
Empty file modified resources/waiter.rb
100644 → 100755
Empty file.
Empty file modified templates/default/07_rtai.erb
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions templates/default/config.ini.erb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ MaxNoOfConcurrentScans=<%= node.ndb.MaxNoOfConcurrentScans %>

MaxNoOfConcurrentTransactions=<%= node.ndb.MaxNoOfConcurrentTransactions %>


TransactionBufferMemory=<%= node.ndb.TransactionBufferMemory %>

MaxParallelScansPerFragment=<%= node.ndb.MaxParallelScansPerFragment %>
Expand Down Expand Up @@ -153,9 +152,9 @@ DefaultHashMapSize=<%= node.ndb.DefaultHashMapSize %>
# Needs root privileges
ODirect=<%= node.ndb.ODirect %>

# total amount of memory (in bytes) to be allocated by each node for which it is set for use among all configured transporters for all types of nodes (NDB, API, etc)
TotalSendBufferMemory=<%= node.ndb.TotalSendBufferMemory %>


# This parameter specifies the time in microseconds for threads to be executed in the scheduler before sleeping.
# Default = 0. Higher value to optimize latency over throughput.
SchedulerSpinTimer=<%= node.ndb.SchedulerSpinTimer %>
Expand Down
Empty file modified templates/default/expect-ssh-keygen.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/flexAsync.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/flexAsyncRun.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/grants.sql.erb
100644 → 100755
Empty file.
Empty file modified templates/default/hosts.erb
100644 → 100755
Empty file.
Empty file modified templates/default/irqbalance.ubuntu.erb
100644 → 100755
Empty file.
Empty file modified templates/default/kill-process.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/memcached-restart.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/memcached-start.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/memcached-stop.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/memcached.erb
100644 → 100755
Empty file.
Empty file modified templates/default/memcached.service.erb
100644 → 100755
Empty file.
Empty file modified templates/default/my-ndb.cnf.erb
100644 → 100755
Empty file.
Empty file modified templates/default/my.cnf.erb
100644 → 100755
Empty file.
Empty file modified templates/default/ndb.upstart.conf.erb
100644 → 100755
Empty file.
Empty file modified templates/default/set_path.sh.erb
100644 → 100755
Empty file.
Empty file modified templates/default/ssh_config.erb
100644 → 100755
Empty file.
Empty file modified test/integration/default/serverspec/localhost/services_spec.rb
100644 → 100755
Empty file.
Empty file modified test/integration/default/serverspec/spec_helper.rb
100644 → 100755
Empty file.

0 comments on commit 1bb55df

Please sign in to comment.