forked from openstreetmap/chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
katla.rb
84 lines (82 loc) · 2.04 KB
/
katla.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name "katla"
description "Master role applied to katla"
default_attributes(
:devices => {
:store_slow => {
:comment => "RAID array mounted on /store/arrays/slow",
:type => "block",
:bus => "scsi",
:serial => "3600605b005a0609019290f178be8de77",
:attrs => {
"queue/scheduler" => "deadline",
"queue/nr_requests" => "975",
"queue/rq_affinity" => "2"
}
},
:store_fast => {
:comment => "RAID array mounted on /store/arrays/fast",
:type => "block",
:bus => "scsi",
:serial => "3600605b005a0726019d062ae23b426fd",
:attrs => {
"queue/scheduler" => "deadline",
"queue/nr_requests" => "975",
"queue/rq_affinity" => "2"
}
},
:store_ssd_1 => {
:comment => "First disk of RAID array mounted on /store/arrays/ssd",
:type => "block",
:bus => "ata",
:serial => "INTEL_SSDSC2BA400G3_BTTV3141041E400HGN",
:attrs => {
"queue/scheduler" => "noop"
}
},
:store_ssd_2 => {
:comment => "Second disk of RAID array mounted on /store/arrays/ssd",
:type => "block",
:bus => "ata",
:serial => "INTEL_SSDSC2BA400G3_BTTV3141044Q400HGN",
:attrs => {
"queue/scheduler" => "noop"
}
}
},
:networking => {
:interfaces => {
:internal_ipv4 => {
:interface => "bond0",
:role => :internal,
:family => :inet,
:address => "10.0.32.40",
:bond => {
:slaves => %w[eth0 eth1]
}
}
}
},
:postgresql => {
:settings => {
:defaults => {
:shared_buffers => "64GB",
:work_mem => "64MB",
:maintenance_work_mem => "1GB",
:effective_cache_size => "180GB"
}
}
},
:sysctl => {
:postgres => {
:comment => "Increase shared memory for postgres",
:parameters => {
"kernel.shmmax" => 66 * 1024 * 1024 * 1024,
"kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
}
}
}
)
run_list(
"role[bytemark]",
"role[db-slave]"
)