-
Notifications
You must be signed in to change notification settings - Fork 122
Updated configuration details for Management and KVM Agent services #623
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
base: 4.20
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -57,6 +57,27 @@ For more information about memory issues, see "FAQ: Memory" at `Tomcat | |||||
| Wiki. <http://wiki.apache.org/tomcat/FAQ/Memory>`_ | ||||||
|
|
||||||
|
|
||||||
| Disable Omit Stack Trace | ||||||
| ------------------------ | ||||||
|
|
||||||
| JVM by default stop printing some stack traces in the logs. To enable print stack traces always: | ||||||
|
|
||||||
| #. Edit the cloudstack-management.service configuration file at: | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| /etc/default/cloudstack-management | ||||||
|
|
||||||
| #. Add the command-line parameter -XX:-OmitStackTraceInFastThrow to disable omit stack trace flag in JVM so that all | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| the stack traces are always printed on the logs. This flag is enabled by default in JVM to omit the stack traces | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| for certain exceptions that are thrown frequently. Printing of the stack traces might impact performance, and is not | ||||||
| recommended for production, so it's better to disable this flag for troubleshooting or debugging purposes when required. | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| JAVA_OPTS="... -XX:-OmitStackTraceInFastThrow" | ||||||
|
|
||||||
|
|
||||||
| Set Database Buffer Pool Size | ||||||
| ----------------------------- | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -310,6 +310,71 @@ sudoers file: | |||||
| cloudstack ALL=NOPASSWD: /usr/bin/cloudstack-setup-agent | ||||||
| Defaults:cloudstack !requiretty | ||||||
|
|
||||||
| Limit Resources For the Agent Service | ||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||||||
|
|
||||||
| #. Edit the cloudstack-agent.service file at: | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| /usr/lib/systemd/system/cloudstack-agent.service | ||||||
|
|
||||||
| #. You can set the following resource controls in the cloudstack-agent service: | ||||||
|
|
||||||
| - Limit the number of file descriptors | ||||||
|
|
||||||
| Default configuration is usually higher, set to lower number explicitly when required. It is observed | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| that the average FDs for a host with 40 VMs was 380, we can reserve +20% based on the requirement. Example | ||||||
| shown below. | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| LimitNOFILE=1500 | ||||||
|
|
||||||
| - Limit the memory usage | ||||||
|
|
||||||
| You can limit the memory usage. For example, set to 2500MB (2500 * 1024 * 1024 bytes) as shown below. | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| MemoryMax=2500M | ||||||
|
|
||||||
| - Limit the CPU quota | ||||||
|
|
||||||
| You can control the CPU allocation. For example,set to allow 2 full cores worth of CPU time as shown below. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| CPUQuota=200% | ||||||
|
|
||||||
| #. Reload and restart the cloudstack-agent service after changing any of the resource controls: | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| sudo systemctl daemon-reload | ||||||
| sudo systemctl restart cloudstack-agent | ||||||
|
|
||||||
|
|
||||||
| Disable Omit Stack Trace | ||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||||||
|
|
||||||
| JVM by default stop printing some stack traces in the logs. To enable print stack traces always: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| #. Edit the cloudstack-agent.service configuration file at: | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| /etc/default/cloudstack-agent | ||||||
|
|
||||||
| #. Add the command-line parameter -XX:-OmitStackTraceInFastThrow to disable omit stack trace flag in JVM so that all | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| the stack traces are always printed on the logs. This flag is enabled by default in JVM to omit the stack traces | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| for certain exceptions that are thrown frequently. Printing of the stack traces might impact performance, and is not | ||||||
| recommended for production, so it's better to disable this flag for troubleshooting or debugging purposes when required. | ||||||
|
|
||||||
| .. code:: bash | ||||||
|
|
||||||
| JAVA_OPTS="... -XX:-OmitStackTraceInFastThrow" | ||||||
|
|
||||||
|
|
||||||
| Configure CPU model for KVM guest (Optional) | ||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||||||
|
|
||||||
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.