One of MySQL optimizations: server hardware and operating system

Source: Internet
Author: User
Tags server memory

1 Server hardware optimization

When selecting a database server, you can consider the following aspects:

1) CPU: Recommended for high-performance servers such as Dell R7, R8, or R9 series servers.

2) Disk: The biggest constraint on the database server is disk I/O, if the condition can be used SSD, if the cost is limited can use the SAS hard disk, in terms of performance ssd>sas>sata. As for raid, you can use raid1+0, or RAID5 (consider the cost).

3) Memory: Dedicated database server memory recommended above 32G.


2 Operating system optimization

1) Install the system with minimal or basic installation, install only MySQL-related applications and minimize the consumption of system resources.

2) The database server is usually placed in the intranet, so you can turn off the firewall (iptables) and SELinux

3) Optimization of system kernel parameters, modification of/etc/sysctl.conf configuration file, no increase:

Net.ipv4.tcp_tw_reuse = 1

Net.ipv4.tcp_tw_recycle=1

net.ipv4.tcp_fin_timeout=10

net.ipv4.tcp_max_syn_backlog=8192




This article from "10,000 years too long, seize" blog, please be sure to keep this source http://zengwj1949.blog.51cto.com/10747365/1920743

One of MySQL optimizations: server hardware and operating system

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.