2 # Copyright 2013-2014, whitestar
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 $LOAD_PATH.push("#{File.dirname(__FILE__)}/_lib")
18 #${chef-repo}/roles/_lib/grid.rb
22 description 'Pleiades DataNode node'
27 'role[ganglia-gmond]',
31 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
33 mcast_addr = Grid::CLUSTERS[:pleiades][:datanodes][:mcast_addr]
43 'name' => 'DataNode00000',
44 'owner' => Grid::DOMAIN
48 'udp_send_channels' => [
50 'mcast_join' => mcast_addr,
56 'udp_recv_channels' => [
58 'mcast_join' => mcast_addr,
65 ## automatic multi/uni-cast
66 'gmond_conf_type' => 'automatic',
68 'cluster_name_prefix' => 'DataNode', # DataNode#####
69 'cast_mode' => 'uni', # or multi
70 'domain' => 'grid.example.com',
71 'node_prefix' => 'dn',
72 'digit_nums' => '5', # dn#####
73 'padstr' => '0', # dn00000
74 'first_node_num' => '0', # 1st node: dn00000.grid.example.com
75 'last_node_num' => '999', # last node: dn00999.grid.example.com
76 'head_node_nums' => '2', # heads of the 1st cluster: dn0000{0..1}.grid.example.com
77 'cluster_size' => '40', # heads of the 2nd cluster: dn0004{0..1}.grid.example.com
78 'mcast_join' => mcast_addr, # multi-cast mode only
80 'ttl' => '1', # multi-cast mode only
81 'bind' => '239.2.11.71' # multi-cast mode only