-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix puma #125
base: release-chef-11.10
Are you sure you want to change the base?
Fix puma #125
Conversation
puma/templates/default/puma.conf.erb
Outdated
@@ -38,7 +38,7 @@ before_fork do | |||
PumaWorkerKiller.config do |config| | |||
config.ram = <%= OpsWorks::Helper.total_memory(@node) %> | |||
config.frequency = ENV.fetch('PWK_FREQUENCY') { 10 } | |||
config.percent_usage = ENV.fetch('PWK_PERCENT_USAGE') { 0.40 } | |||
config.percent_usage = <%= @environment['PWK_PERCENT_USAGE'].present? ? @environment['PWK_PERCENT_USAGE'].to_f : 0.40 %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
se o to_f resolve, o que acha de fazer:
(ENV.fetch('PWK_PERCENT_USAGE') { 0.40 }).to_f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vou testar
6934666
to
077f9a2
Compare
puma/templates/default/crontab.erb
Outdated
@@ -0,0 +1,23 @@ | |||
#s file to introduce tasks to be run by cron. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acho que não precisa mais desse carinha.
puma/recipes/check.rb
Outdated
@@ -0,0 +1,17 @@ | |||
node[:deploy].each do |application, deploy| | |||
template '/usr/bin/check-puma.sh' do | |||
user 'root' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acho que aqui vale a pena utilizar o usuário padrão, que pode ser obtido com node['deployer']['user']
e node['deployer']['group']
No description provided.