Skip to content

Commit

Permalink
Implement Override the default size of each slab page
Browse files Browse the repository at this point in the history
  • Loading branch information
elgerpostema committed Feb 5, 2013
1 parent 51af7b0 commit 0b300f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
$package_ensure = 'present',
$logfile = '/var/log/memcached.log',
$max_memory = false,
$item_size = false,
$lock_memory = false,
$listen_ip = '0.0.0.0',
$tcp_port = 11211,
Expand Down
6 changes: 6 additions & 0 deletions templates/memcached.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ logfile <%= logfile -%>

# Number of threads to use to process incoming requests.
-t <%= processorcount %>

<% if @item_size -%>
# Override the default size of each slab page
-I <%= item_size %>
<% end -%>

3 changes: 3 additions & 0 deletions templates/memcached_sysconfig.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ end
if @udp_port
result << '-U ' + udp_port
end
if @item_size
result << '-I ' + item_size
end
result << '-t ' + processorcount
-%><%= result.join(' ') -%>"

0 comments on commit 0b300f8

Please sign in to comment.