Name: memcached
Owner: LinuxONE and Linux on z Systems Open-source Team
Description: Development repository for Chef Cookbook memcached
Created: 2016-04-12 16:35:23.0
Updated: 2016-04-12 16:35:23.0
Pushed: 2016-04-13 04:36:53.0
Homepage: https://supermarket.chef.io/cookbooks/memcached
Size: 201
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Installs/configures a single memcached instance managed by the systems init system. Also provides a custom resource to set up one or more memcached instances running under runit.
memcached_instance
provider instead.The following are node attributes are used to configure /etc/memcached.conf
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['ulimit']
- boolean true
will set the ulimit to the maxconn
valueThis 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 runit supervisor.
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
right:: 2009-2015, 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.