-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Feature added autotune #140
Conversation
f114772
to
b07bd12
Compare
Hi @alexbacchin My concerns:
I really appreciate your effort and honestly, I would be happy if we can use such universal formulae everywhere. But unfortunately, in a real production we need to tune such settings manually for each concrete installation. |
Hi @legal90, In regards the Synchrony, I can change the calculation to leave memory for it. |
Seems reasonable in principle :) although have not tested, and not sure the maintenance burden |
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.
Overall, this is a lot of code for something which could be set by admin after 1 min thinking. Do we really need this?
recipes/default.rb
Outdated
@@ -22,6 +22,7 @@ | |||
include_recipe 'confluence::database' if settings['database']['host'] == '127.0.0.1' | |||
include_recipe "confluence::linux_#{node['confluence']['install_type']}" | |||
include_recipe 'confluence::configuration' | |||
include_recipe 'confluence::autotune' if settings['autotune']['enabled'] == true |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
attributes/default.rb
Outdated
|
||
# If you don't want total system memory to be automatically discovered through | ||
# Ohai, uncomment the following line and set your own value in kB. | ||
# default['jira']['autotune']['total_memory'] = '1048576kB' # 1024m |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
attributes/default.rb
Outdated
@@ -60,6 +60,17 @@ | |||
default['confluence']['database']['type'] = 'mysql' | |||
default['confluence']['database']['user'] = 'confluence' | |||
|
|||
# Types include: 'mixed', 'dedicated', 'shared' | |||
# 'mixed' - Confluence and DB run on the same system |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
I performed the updates based on @anuriq feedback. |
thanks! |
Cool to see this go in. I authored the auto tune feature in the Jira cookbook. For future readers: it was heavily based on the auto tune feature of the Postgresql cookbook. 😄 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am using this cookbook for the last few days and setting up jvm memory can be tricky if you don't have much Java experience.
As this was based on the Jira cookbook, I have ported the autotune recipe to the confluence cookbook.
Even the default setting for autotune is false. When used, it will make confluence run better and utilize better the server memory.