Skip to content

Commit

Permalink
Enable PHP OPCache overwrites for max_wasted_percentage & `huge_cod…
Browse files Browse the repository at this point in the history
…e_pages` (#1503)

* Set defaults for `max_wasted_percentage` & `huge_code_pages`

* Enable overwrites for `max_wasted_percentage` & `huge_code_pages`
  • Loading branch information
E-VANCE authored Sep 21, 2023
1 parent fd56f62 commit c7951a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/php/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ php_opcache_max_accelerated_files: 4000
php_opcache_memory_consumption: 128
php_opcache_revalidate_freq: 60
php_opcache_validate_timestamps: 1
php_opcache_max_wasted_percentage: 5
php_opcache_huge_code_pages: 0

php_fpm_set_emergency_restart_threshold: false
php_fpm_emergency_restart_threshold: 0
Expand Down
2 changes: 2 additions & 0 deletions roles/php/templates/php-fpm.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ opcache.validate_timestamps = {{ php_opcache_validate_timestamps }}
opcache.enable_file_override = {{ php_opcache_enable_file_override }}
opcache.revalidate_freq = {{ php_opcache_revalidate_freq }}
opcache.fast_shutdown = {{ php_opcache_fast_shutdown }}
opcache.max_wasted_percentage = {{ php_opcache_max_wasted_percentage }}
opcache.huge_code_pages = {{ php_opcache_huge_code_pages }}

0 comments on commit c7951a6

Please sign in to comment.