Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable memcached UDP support by default #955

Merged
merged 1 commit into from
Mar 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* [BREAKING] Disable memcached UDP support by default ([#955](https://github.com/roots/trellis/pull/955))
* Git: Ignore `vagrant.local.yml`([#953](https://github.com/roots/trellis/pull/953))
* Update to PHP 7.2 ([#929](https://github.com/roots/trellis/pull/929))
* Fix `failed_when` in `template_root` check with wp-cli 1.5.0 ([#948](https://github.com/roots/trellis/pull/948))
Expand Down
1 change: 1 addition & 0 deletions roles/memcached/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ memcached_fs_file_max: 756024
memcached_listen_ip: 127.0.0.1
memcached_max_conn: 1024
memcached_port: 11211
memcached_port_udp: 0

memcached_packages_default:
memcached: "{{ apt_package_state }}"
Expand Down
5 changes: 5 additions & 0 deletions roles/memcached/templates/memcached.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
# information.
-d

# modifies the UDP port, defaulting to on.
# UDP is useful for fetching or setting small items, not as useful for manipulating large items.
# Setting this to 0 will disable it, if you're worried.
-U {{ memcached_port_udp }}

# Log memcached's output to /var/log/memcached
logfile /var/log/memcached.log

Expand Down