(dv) 3.5 Auto-tuning your server
Overview
(mt) Media Temple has a tool that will allow you to easily optimize your (dv) Dedicated-Virtual Server 3.5. MIB (Make It Better) contains preset configurations hosted on our internal repository. These presets allow you to easily tune your server using values that have been thoroughly tested by our engineers. Whether you have a Base, Rage, Extreme, or Nitro we will provide you with just the right amount of power to get the most out of your service.
NOTE:
When your server is first set up, the proper settings are already applied. You only need to run these MIB optimizations if you:
-
Have upgraded/downgraded to a higher/lower service plan.
It is very important to do this, especially if you are downgrading your service. - Would like to revert any changes you may have made to the server configuration.
Before you start
MIB is run from the command line via SSH. Although this utility is much simpler than applying these optimizations manually, it is still recommended to have a basic understanding of SSH and Linux system administration. Please review the following KnowledgeBase articles for more in-depth information on these topics:
- (dv) An introduction to the root user
- Connecting via SSH to your server
- (dv) HOWTO: Performance tuning (Optimization)
If you currently do not have your root user enabled, please visit your AccountCenter to enable root access. For detailed instructions, please see: How do I enable root access to my (dv)?
End of Life Warning
This service has a pending End of Life. Please move to a current service as soon as possible. For more information, please see: (dv) Dedicated-Virtual 4.0: Migration Information.
CAUTION:
Use of this script implies that your agree and understand the following:
- Configuration files on your server will be altered.
- Additional files will be downloaded and installed on your server.
(See MIB changelog section below for more detail.)
Instructions
We have made MIB very easy to use. This is the most basic usage of the command, which will show you some basic options:
/usr/local/mt/bin/mib
The following list details each particular flag or option that is available.
-
--base
this will apply the optimum settings for a default (dv) Base configuration
-
--rage
this will apply the optimum settings for a default (dv) Rage configuration
-
--extreme
this will apply the optimum settings for a default (dv) Extreme configuration
-
--nitro
this will apply the optimum settings for a default (dpv) Nitro configuration
All of the above commands would be added to the end of the command above, i.e.
/usr/local/mt/bin/mib --base
Running any of the above commands will output a list of changes that will be done without actually performing them. For your safety, it will only run in test mode until you apply the "--apply" flag to your command. Thus your full command would be similar to the following:
/usr/local/mt/bin/mib --base --apply
MIB ChangeLog
Files changed
/etc/httpd/conf/httpd.conf
- Setting for timeout lowered from 120 to 20.
- Settings for prefork.c changed for optimal settings of your (dv) service type.
/etc/my.cnf
- Query Cache is enabled.
- Query Cache size is set for optimal settings of your (dv) service type.
usr/local/psa/admin/conf/httpsd.custom.include
- Is created if not already present.
- Lowers prefork.c values for Plesk preventing extra processes from being launched specifically for Plesk.
Service changes
- Apache is restarted
- MySQL is restarted
- named is disabled