<commit_before>name "pummelzacken"
description "Master role applied to pummelzacken"

default_attributes(
  :networking => {
    :interfaces => {
      :internal_ipv4 => {
        :interface => "em1",
        :role => :internal,
        :family => :inet,
        :address => "10.0.0.20"
      },
      :external_ipv4 => {
        :interface => "em2",
        :role => :external,
        :family => :inet,
        :address => "192.168.127.12"
      }
    }
  },
  :postgresql => {
    :settings => {
      :defaults => {
        :listen_addresses => "10.0.0.20",
        :shared_buffers => "10GB",
        :work_mem => "160MB",
        :maintenance_work_mem => "10GB",
        :random_page_cost => "1.5",
        :effective_cache_size => "60GB"
      }
    }
  },
  :nominatim => {
    :flatnode_file => "/ssd/nominatim/nodes.store",
    :database => {
      :cluster => "9.3/main",
      :dbname => "nominatim",
      :postgis => "2.1"
    },
    :fpm_pools => {
      :www => {
        :port => "8000",
        :pm => "dynamic",
        :max_children => "60"
      },
      :bulk => {
        :port => "8001",
        :pm => "static",
        :max_children => "10"
      }
    },
    :redirects => {
      :reverse => "dulcy.openstreetmap.org",
      :search => "dulcy.openstreetmap.org",
      :details => "dulcy.openstreetmap.org"
    }
  },
  :hardware => {
    :grub => {
      # lock kernel to 3.16.0-46 due to some issue with igb driver
      # see https://github.com/openstreetmap/operations/issues/45
      # for more information.
      :kernel => "3.16.0-46"
    }
  }
)

run_list(
  "role[ucl-wolfson]",
  "role[nominatim-master]"
)<commit_msg>Revert "redicrect further nominatim traffic to dulcy"<commit_after>name "pummelzacken"
description "Master role applied to pummelzacken"

default_attributes(
  :networking => {
    :interfaces => {
      :internal_ipv4 => {
        :interface => "em1",
        :role => :internal,
        :family => :inet,
        :address => "10.0.0.20"
      },
      :external_ipv4 => {
        :interface => "em2",
        :role => :external,
        :family => :inet,
        :address => "192.168.127.12"
      }
    }
  },
  :postgresql => {
    :settings => {
      :defaults => {
        :listen_addresses => "10.0.0.20",
        :shared_buffers => "10GB",
        :work_mem => "160MB",
        :maintenance_work_mem => "10GB",
        :random_page_cost => "1.5",
        :effective_cache_size => "60GB"
      }
    }
  },
  :nominatim => {
    :flatnode_file => "/ssd/nominatim/nodes.store",
    :database => {
      :cluster => "9.3/main",
      :dbname => "nominatim",
      :postgis => "2.1"
    },
    :fpm_pools => {
      :www => {
        :port => "8000",
        :pm => "dynamic",
        :max_children => "60"
      },
      :bulk => {
        :port => "8001",
        :pm => "static",
        :max_children => "10"
      }
    },
    :redirects => {
      :reverse => "dulcy.openstreetmap.org"
    }
  },
  :hardware => {
    :grub => {
      # lock kernel to 3.16.0-46 due to some issue with igb driver
      # see https://github.com/openstreetmap/operations/issues/45
      # for more information.
      :kernel => "3.16.0-46"
    }
  }
)

run_list(
  "role[ucl-wolfson]",
  "role[nominatim-master]"
)
{'fraction_non_alphanumeric': 0.18031278748850046, 'fraction_numerical': 0.041704998466728, 'mean_word_length': 1.9047195013357079, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 87, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3268059', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1193, 'n_words': 200}