]> git.openstreetmap.org Git - chef.git/blob - roles/stormfly-04.rb
Increase replication slots
[chef.git] / roles / stormfly-04.rb
1 name "stormfly-04"
2 description "Master role applied to stormfly-04"
3
4 default_attributes(
5   :hardware => {
6     :shm_size => "38g"
7   },
8   :networking => {
9     :interfaces => {
10       :external_ipv4 => {
11         :interface => "bond0",
12         :role => :external,
13         :family => :inet,
14         :address => "140.211.167.100",
15         :bond => {
16           :slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
17         }
18       },
19       :external_ipv6 => {
20         :interface => "bond0",
21         :role => :external,
22         :family => :inet6,
23         :address => "2605:bc80:3010:700::8cd3:a764"
24       }
25     }
26   },
27   :postgresql => {
28     :versions => ["12"],
29     :settings => {
30       :defaults => {
31         :work_mem => "300MB",
32         :maintenance_work_mem => "10GB",
33         :random_page_cost => "1.5",
34         :effective_cache_size => "60GB",
35         :fsync => "on",
36         :effective_io_concurrency => "100"
37       }
38     }
39   },
40   :nominatim => {
41     :state => "standalone",
42     :enable_backup => false,
43     :enable_git_updates => true,
44     :dbadmins => %w[lonvia tomh],
45     :dbcluster => "12/main",
46     :postgis => "2.5",
47     :flatnode_file => "/ssd/nominatim/nodes.store",
48     :logdir => "/ssd/nominatim/log",
49     :fpm_pools => {
50       "nominatim.openstreetmap.org" => {
51         :max_children => 100
52       }
53     },
54     :tablespaces => {
55       "dosm" => "/ssd/tablespaces/dosm",
56       "iosm" => "/ssd/tablespaces/iosm",
57       "dplace" => "/ssd/tablespaces/dplace",
58       "iplace" => "/ssd/tablespaces/iplace",
59       "daddress" => "/ssd/tablespaces/daddress",
60       "iaddress" => "/ssd/tablespaces/iaddress",
61       "dsearch" => "/ssd/tablespaces/dsearch",
62       "isearch" => "/ssd/tablespaces/isearch",
63       "daux" => "/ssd/tablespaces/daux",
64       "iaux" => "/ssd/tablespaces/iaux"
65     }
66   }
67 )
68
69 run_list(
70   "role[osuosl]",
71   "role[hp-g9]",
72   "role[geodns]",
73   "role[nominatim]"
74 )