Name: chef-memcached
Owner: Datadog, Inc.
Description: Development repository for Chef Cookbook memcached
Forked from: chef-cookbooks/memcached
Created: 2017-09-19 19:11:04.0
Updated: 2017-09-19 19:16:51.0
Pushed: 2017-11-27 15:00:45.0
Homepage: https://supermarket.chef.io/cookbooks/memcached
Size: 333
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Provides a custom resource for installing instances of memcached. Also ships with a default recipe that uses attributes to configure a single memcached instance on a host.
The following are node attributes are used to configure the command line options of memcached if using the default.rb recipe. They are not used if using the memcached_instance custom resource.
memcached['memory']
- maximum memory for memcached instances.memcached['user']
- user to run memcached as.memcached['port']
- TCP port for memcached to listen on.memcached['udp_port']
- UDP port for memcached to listen on.memcached['listen']
- IP address for memcache to listen on, defaults to 0.0.0.0 (world accessible).memcached['maxconn']
- maximum number of connections to accept (defaults to 1024)memcached['max_object_size']
- maximum size of an object to cache (defaults to 1MB)memcached['logfilepath']
- path to directory where log file will be written.memcached['logfilename']
- logfile to which memcached output will be redirected in $logfilepath/$logfilename.memcached['threads']
- Number of threads to use to process incoming requests. The default is 4.memcached['experimental_options']
- Comma separated list of extended or experimental options. (array)memcached['extra_cli_options']
- Array of single item options suchas -L for large pages.memcached['ulimit']
- maxfile limit to set (needs to be at least maxconn)This cookbook can be used to to setup a single memcached instance running under the system's init provider by including memcached::default
on your runlist. The above documented attributes can be used to control the configuration of that service.
The cookbook can also within other cookbooks in your infrastructure with the memcached_instance
custom resource. See the documentation below for the usage and examples of that custom resource.
Adds or removes an instance of memcached running under the system's native init system (sys-v, upstart, or systemd). For backwards compatibility there is also a runit provider that can be used if desired.
Create a new memcached instance named super_custom_memcached:
ached_instance 'super_custom_memcached' do
rt 11_212
mory 128
Stop and disable the super_custom_memcached instance:
ached_instance 'super_custom_memcached' do
tion :remove
Specify the runit provider to maintain legacy behavior (including optional usage of legacy actions)
ached_instance_runit 'super_custom_memcached' do
tion :create
right:: 2009-2016, Chef Software, Inc
right:: 2009, 37signals
nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.