What's New
New updates and improvements to Hatchbox.io
← BackRemoving SASL for Memcached by default
Update
If you're using the Dalli gem for Memcached support in Ruby, you may have noticed that the latest major version (5.0) has removed SASL support as well as the binary protocol in favor of the meta protocol for memcached.
Since memcached only runs on the internal private network and is also firewalled, new memcached instances won't have SASL configured since it already runs in a trusted network. This will make it automatically compatible with Dalli 5.0+.
This change only applies to new Memcached instances. To remove SASL for existing memcached instances, you can run the following script as root:
Since memcached only runs on the internal private network and is also firewalled, new memcached instances won't have SASL configured since it already runs in a trusted network. This will make it automatically compatible with Dalli 5.0+.
This change only applies to new Memcached instances. To remove SASL for existing memcached instances, you can run the following script as root:
#!/usr/bin/env bash set -eou pipefail # Remove SASL config sed -i "/^-S/d" /etc/memcached.conf # Restart systemctl restart memcached
Check out the Dalli 5 upgrade guide for more details.