]> git.openstreetmap.org Git - chef.git/blob - roles/orm.rb
increase shared buffers for poldi
[chef.git] / roles / orm.rb
1 name "orm"
2 description "Master role applied to orm"
3
4 default_attributes(
5   :devices => {
6     :ssdvol1tune => {
7       :comment => "Tune scheduler for SSD",
8       :type => "block",
9       :bus => "ata",
10       :serial => "Samsung_SSD_840_PRO_Series_S12SNEAD411116P",
11       :attrs => {
12         "queue/scheduler" => "noop",
13         "queue/nr_requests" => "256"
14       }
15     },
16     :ssdvol2tune => {
17       :comment => "Tune scheduler for SSD",
18       :type => "block",
19       :bus => "ata",
20       :serial => "Samsung_SSD_840_PRO_Series_S12SNEAD411110E",
21       :attrs => {
22         "queue/scheduler" => "noop",
23         "queue/nr_requests" => "256"
24       }
25     },
26     :arecavol1tune => {
27       :comment => "Tune scheduler for Areca",
28       :type => "block",
29       :bus => "scsi",
30       :serial => "2001b4d2049002450",
31       :attrs => {
32         "queue/scheduler" => "deadline",
33         "queue/nr_requests" => "512"
34       }
35     },
36     :arecavol2tune => {
37       :comment => "Tune scheduler for Areca",
38       :type => "block",
39       :bus => "scsi",
40       :serial => "2001b4d2037331399",
41       :attrs => {
42         "queue/scheduler" => "deadline",
43         "queue/nr_requests" => "512"
44       }
45     },
46     :arecavol3tune => {
47       :comment => "Tune scheduler for Areca",
48       :type => "block",
49       :bus => "scsi",
50       :serial => "2001b4d2060246956",
51       :attrs => {
52         "queue/scheduler" => "deadline",
53         "queue/nr_requests" => "512"
54       }
55     }
56   },
57   :munin => {
58     :plugins => {
59       :ipmi_fans => {
60         :Sys6 => { :graph => "no" },
61         :Sys8 => { :graph => "no" }
62       },
63       :sensors_fan => {
64         :fan3 => { :graph => "no" },
65         :fan4 => { :graph => "no" },
66         :fan5 => { :graph => "no" },
67         :fan6 => { :graph => "no" },
68         :fan7 => { :graph => "no" },
69         :fan8 => { :graph => "no" },
70         :fan9 => { :graph => "no" },
71         :fan10 => { :graph => "no" },
72         :fan11 => { :graph => "no" },
73         :fan12 => { :graph => "no" }
74       },
75       :sensors_volt => {
76         :contacts => "null",
77       }
78     }
79   },
80   :networking => {
81     :interfaces => {
82       :external_ipv4 => {
83         :interface => "eth0",
84         :role => :external,
85         :family => :inet,
86         :address => "193.63.75.98"
87       },
88       :external_ipv6 => {
89         :interface => "eth0",
90         :role => :external,
91         :family => :inet6,
92         :address => "2001:630:12:500:2e0:81ff:fec5:2a8c"
93       }
94     }
95   },
96   :postgresql => {
97     :versions => [ "9.1" ],
98     :settings => {
99       :defaults => {
100         :shared_buffers => "8GB",
101         :maintenance_work_mem => "7144MB",
102         :effective_cache_size => "16GB"
103       }
104     }
105   },
106   :sysctl => {
107     :postgres => {
108       :comment => "Increase shared memory for postgres",
109       :parameters => { 
110         "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
111         "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
112       }
113     }
114   },
115   :tile => {
116     :node_file => "/store/database/nodes",
117     :styles => {
118       :default => {
119         :tile_directories => [
120           { :name => "/store/tiles/default-low", :min_zoom => 0, :max_zoom => 17 },
121           { :name => "/store/tiles/default-high", :min_zoom => 18, :max_zoom => 19 }
122         ]
123       }
124     }
125   }
126 )
127
128 override_attributes(
129   :networking => {
130     :nameservers => [ "8.8.8.8", "8.8.4.4" ]
131   }
132 )
133
134 run_list(
135   "role[ic]",
136   "role[tile]"
137 )