mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-18 19:44:21 +01:00
14 lines
3.4 KiB
HTML
14 lines
3.4 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>21.3. Set Database Buffer Pool Size</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.0.0-incubating-en-US-1-" /><link rel="home" href="index.html" title="CloudStack Administrator's Guide" /><link rel="up" href="tuning.html" title="Chapter 21. Tuning" /><link rel="prev" href="increase-management-server-max-memory.html" title="21.2. Increase Management Server Maximum Memory" /><link rel="next" href="set-monitor-total-vm-limits-per-host.html" title="21.4. Set and Monitor Total VM Limits per Host" /></head><body><p id="title"><a class="left" href="http://cloudstack.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://docs.cloudstack.org"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="increase-management-server-max-memory.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="set-monitor-total-vm-limits-per-host.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="set-database-buffer-pool-size" lang="en-US"><div class="titlepage"><div><div><h2 class="title" id="set-database-buffer-pool-size">21.3. Set Database Buffer Pool Size</h2></div></div></div><div class="para">
|
||
It is important to provide enough memory space for the MySQL database to cache data and indexes:
|
||
</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
|
||
Edit the Tomcat configuration file:
|
||
</div><pre class="programlisting">/etc/my.cnf</pre></li><li class="listitem"><div class="para">
|
||
Insert the following line in the [mysqld] section, below the datadir line. Use a value that is appropriate for your situation. We recommend setting the buffer pool at 40% of RAM if MySQL is on the same server as the management server or 70% of RAM if MySQL has a dedicated server. The following example assumes a dedicated server with 1024M of RAM.
|
||
</div><pre class="programlisting">innodb_buffer_pool_size=700M</pre></li><li class="listitem"><div class="para">
|
||
Restart the MySQL service.
|
||
</div><pre class="programlisting"># service mysqld restart</pre></li></ol></div><div class="para">
|
||
For more information about the buffer pool, see "The InnoDB Buffer Pool" at <a href="http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.html">MySQL Reference Manual</a>.
|
||
</div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="increase-management-server-max-memory.html"><strong>Prev</strong>21.2. Increase Management Server Maximum Memory</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="set-monitor-total-vm-limits-per-host.html"><strong>Next</strong>21.4. Set and Monitor Total VM Limits per Host</a></li></ul></body></html>
|