Commit a4ce471f authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

archwiki: add apcu caching to the archwiki

With apcu caching the wiki get's ~ 40 req/s more and the latency of the
wiki lowers.
parent 3f40f533
......@@ -41,7 +41,7 @@
mariadb_innodb_file_per_table: True, tags: ["mariadb"] }
- { role: sudo, tags: ['sudo'] }
- { role: uwsgi, tags: ['uwsgi'] }
- { role: php-fpm, php_extensions: ['bcmath', 'curl', 'gd', 'iconv', 'intl', 'mysqli', 'pdo_pgsql', 'pgsql', 'sockets', 'zip'], zend_extensions: ['opcache'], tags: ["php-fpm"] }
- { role: php-fpm, php_extensions: ['apcu', 'bcmath', 'curl', 'gd', 'iconv', 'intl', 'mysqli', 'pdo_pgsql', 'pgsql', 'sockets', 'zip'], zend_extensions: ['opcache'], tags: ["php-fpm"] }
- { role: memcached, tags: ['memcached'] }
- { role: archweb, tags: ["archweb"] }
- { role: security_tracker, security_tracker_domain: "security.archlinux.org", security_tracker_dir: "/srv/http/security-tracker", tags: ["security_tracker"] }
......
......@@ -5,7 +5,7 @@
when: 'archwiki_domain is defined'
- name: install packages
pacman: name=git,php-intl state=present
pacman: name=git,php-intl,php-apcu state=present
- name: make archwiki user
user: name="{{ archwiki_user }}" shell=/bin/false home="{{ archwiki_dir }}" createhome=no
......@@ -70,6 +70,9 @@
notify:
- restart php-fpm@{{ archwiki_user }}
- name: set php-apcu value
copy: src=20-apcu.ini dest=/etc/php/conf.d/20-apcu.ini
- name: start and enable systemd socket
service: name=php-fpm@{{ archwiki_user }}.socket state=started enabled=true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment