A part-time DBA's database operation and maintenance experience Xiaomi Technology Xx@xiaomi.com 2011

Source: Internet
Author: User

A part-time DBA's database operation and maintenance experience Xiaomi technology [email protected] 2011

Alarm Monitoring System particle size is too large, not good to use (Current status of our company)
Database status: 10 servers, HP Hp380g7 Dell R710, have done a master-slave
All SAS disks 15K RAID10
Server memory 24G
database mixed with business, not specifically for database use causing problems (Current status of our company)
Xtrabackup for backup

Database is small: 160G 70G 30G
Program Support sub-database sub-table

--------------------------
Problem

io util% 100%(Learn)
Normal IO util% should be stable in 20%~30%

disk AWAIT/SVCTM high value, often in milliseconds ( learn)
Problem:

RAID Card Battery no power (Learn)
After buying the battery, io util% drops to 10%,AWAIT/SVCTM value in 0.x milliseconds

Data data and Binlog files are divided into different disks (not done)

Kernel IO deadline scheduling algorithm
Memory swappiness=0(Learn)
attach importance to DMESG(Learn)


After architecture optimization, QPS stabilized in 1500~2000

Source compiled MySQL


permissions minimized, only CRUD permissions assigned (Already done)


Memory expansion 16g->64g, after the increase in BP, the early hours to monitor the amount of memory, open to eat swap
Solution 1: timed echo 1>/proc/sys/vm/drop_caches (Learn)
Workaround 2: During the next instance restart, Numactl-interleave all (Learn)


Bad execution plan, direct Force index

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

F

A part-time DBA's database operation and maintenance experience Xiaomi Technology [email protected] 2011

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.