michaelklishin / cassandra-chef-cookbook

Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Apache License 2.0
163 stars 228 forks source link

Set FD_LIMIT by appropriate node attribute #138

Closed GennadySpb closed 10 years ago

vkhatri commented 10 years ago

@GennadySpb @michaelklishin ulimit configuration in debian init script could/should be deprecated in favor of user_limit resource.

GennadySpb commented 10 years ago

@vkhatri What exactly resource you mean?

michaelklishin commented 10 years ago

@vkhatri is it built-in or are you suggesting using something like chef-limit? I'm happy with either, by the way.

vkhatri commented 10 years ago

@GennadySpb sorry for the typo, i meant the ulimit resource user_ulimit node['cassandra']['user'] is already configuring the required limits for C* user/service.

I think we can disable it in the init script.

-FD_LIMIT=<%= node.cassandra.limits.nofile %>
-    ulimit -l unlimited
-    ulimit -n "$FD_LIMIT"
vkhatri commented 10 years ago

@michaelklishin yes, recipe cassandra::tarball uses chef-limit cookbook to set the user limits. rhel platform_family init script does not set any ulimit, we just have to disable it for debian platform_family init script too.