Skip to content
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

Open
wants to merge 54 commits into
base: release-chef-11.10
Choose a base branch
from
Open

Fix puma #125

wants to merge 54 commits into from

Conversation

ramonPimentel
Copy link

No description provided.

@@ -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 %>
Copy link

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vou testar

@@ -0,0 +1,23 @@
#s file to introduce tasks to be run by cron.
Copy link

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.

@@ -0,0 +1,17 @@
node[:deploy].each do |application, deploy|
template '/usr/bin/check-puma.sh' do
user 'root'
Copy link

@r4z3c r4z3c Jan 22, 2020

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']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants