<commit_before>name "piwik"
description "Role applied to all Piwik servers"

default_attributes(
  :apache => {
    :mpm => "prefork"
  },
  :mysql => {
    :settings => {
      :mysqld => {
        :innodb_buffer_pool_instances => "8",
        :innodb_buffer_pool_size => "16GB",
        :innodb_flush_log_at_trx_commit => "2"
      }
    }
  }
)

run_list(
  "recipe[piwik]"
)
<commit_msg>Increase MaxRequestWorkers for piwik<commit_after>name "piwik"
description "Role applied to all Piwik servers"

default_attributes(
  :apache => {
    :mpm => "prefork",
    :prefork => {
      :max_request_workers => 450
    }
  },
  :mysql => {
    :settings => {
      :mysqld => {
        :innodb_buffer_pool_instances => "8",
        :innodb_buffer_pool_size => "16GB",
        :innodb_flush_log_at_trx_commit => "2"
      }
    }
  }
)

run_list(
  "recipe[piwik]"
)

{'fraction_non_alphanumeric': 0.14467592592592593, 'fraction_numerical': 0.01273148148148148, 'mean_word_length': 2.777292576419214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '2587940', 'n_tokens_mistral': 345, 'n_tokens_neox': 328, 'n_words': 54}