BMS-HOSxP Community
HOSxP => MySQL => ข้อความที่เริ่มโดย: manoi ที่ พฤษภาคม 10, 2009, 18:34:37 PM
-
XtraDB คือ Innodb ที่มีการนำ Patch จาก google มาใส่ และมีการปรับปรุงการทำงานหลายจุด เช่นเพิ่ม innodb_adaptive_check_point หรือปรับปรุงรูปแบบการรายงานผล Innodb status ปกติ XtraDB จะสามารถ Download ได้จาก http://www.percona.com/mysql/5.1.34-5/RPM/rhel5/ แต่จะมีเฉพาะรุ่น 64 bit ผมเลยเอา Source มาลอง Compile ใหม่ให้เป็นรุ่น 32 bit จะได้ทดสอบใน VMWare / VirtualBox ได้ หรือจะลงใน Linux ที่เป็น 32 bit ก็ได้ครับ
ว่ากันว่า XtraDB นั้น ในเรื่องของ Scalability ถือว่าดีว่า MySQL 5.1 มาก (เฉพาะ Innodb Engine ดีกว่า 1.5 ถึง 4 เท่า) และโดยรวมแล้วก็ถือว่าดีกว่า MySQL 5.4 เช่นกัน โดยเฉพาะหากเปิดใช้งาน innodb_adaptive_checkpoint ที่มากับ XtraDB ตามรูปครับ (สังเกตุ ช่วง Peak ขาลง)
(http://spreadsheets.google.com/pub?key=rYZB2dd2j1pQsvWs2kFvTsg&oid=10&output=image)
ที่มาของรูป http://www.mysqlperformanceblog.com/2009/05/01/54-cpu-bound-tpcc-like-load/
Download ได้ที่ attachment ของกระทู้นี้ครับ
-
ติดตั้งเหมือนกับ MySQL ทุกอย่างครับ (ไม่ต้องลง Percona-XtraDB)
-
MySQL-shared-percona-5.1.34-5.rhel5.x86_64.rpm
MySQL-client-percona-5.1.34-5.rhel5.x86_64.rpm
MySQL-server-percona-5.1.34-5.rhel5.x86_64.rpm
xtrabackup-0.6-1.rhel5.src.rpm
แล้ว my.cnf ต้องแก้อะไรเพิ่มไหมครับ
นอกจาก โดยเพิ่ม section
[xtrabackup]
target_dir=/mysqlbackup
datadir=/var/lib/mysql
อ้างอิง
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=9623.0
-
เพิ่ม Configuration นี้เข้าไปใน my.cnf ด้วยนะครับ
innodb_adaptive_checkpoint = 1
innodb_io_capacity = 10000
innodb_write_io_threads = 16
innodb_read_io_threads = 16
-
อาจารย์ครับ สรุปว่า ให้ใช้ตัวนี้แทนตัวเดิมใช้ไหมครับ อาจารย์ ----->
MySQL-shared-percona-5.1.34-5.rhel5.x86_64.rpm
MySQL-client-percona-5.1.34-5.rhel5.x86_64.rpm
MySQL-server-percona-5.1.34-5.rhel5.x86_64.rpm
xtrabackup-0.6-1.rhel5.src.rpm
แล้ว my.cnf ต้องแก้อะไรเพิ่มไหมครับ
นอกจาก โดยเพิ่ม section
[xtrabackup]
target_dir=/mysqlbackup
datadir=/var/lib/mysql
และเพิ่ม ------> ใน my.cnf
เพิ่ม Configuration นี้เข้าไปใน my.cnf ด้วยนะครับ
innodb_adaptive_checkpoint = 1
innodb_io_capacity = 10000
innodb_write_io_threads = 16
innodb_read_io_threads = 16
ผมเข้าใจถูต้องมะครับ
-
น่าทดลอง ขอบพระคุณครับ
-
ติดตั้งเหมือนปกติ ครับ .....รู้สึก เร็วขึ้นนิดหนึ่ง ;D ;D ;D ;D ;D
จะเปลี่ยนมาเป็นตัวนี้แล้ว
-
http://dimitrik.free.fr/db_STRESS_BMK_XtraDB_Percona_2009.html#note_5296
-
Percona XtraDB FAQ
Q: Why XtraDB ?
A: eXtra performance, eXtra scalability, eXtra features.
Q: What is the license? Is it free?
A: We distribute the storage engine under **GPLv2** license, and it is absolutely free to use. No dual-licensing. No community and enterprise separation.
Q: Do I need to convert all my tables to the XtraDB engine?
A: NO. The XtraDB plugin is designed to be used instead of InnoDB, and is fully compatible with your existing InnoDB tables and server settings. To create new tables you still use CREATE TABLE … ENGINE=InnoDB.
Q: How do I install XtraDB?
A: It depends. There are several ways:
install into running MySQL 5.1. In this case installation procedure is the same as installation of InnoDB plugin. We have shared library prepared for x86_64 platforms.
install MySQL-5.1.30-percona binaries with build-in XtraDB. We have x86_64 RPMS for RedHat / CentOS 4 and 5 systems.
install from sources. Non trivial way, you need percona-xtradb.tar.gz with source code and then follow installation from sources for InnoDB
Q: How do I uninstall XtraDB?
A: uninstall is the exactly the same as for InnoDB plugin
Q: How can I revert back to InnoDB?
A: Just uninstall XtraDB and use the InnoDB plugin instead. You don't need to convert any of your data files, modify any settings, or make any other changes. If you want to revert back to the version of InnoDB that is shipped with the official MySQL builds (e.g. not the InnoDB plugin) then you can use the InnoDB plugin's downgrade procedure.
Q: What is the risk? Can it corrupt my database?
A: Although we tested it as well as we can, there is always a risk. XtraDB modifies InnoDB kernel significantly, and it is possible there are some bugs. No one has reported any crashing or corruption issues so far.
Q: Where can I report bugs?
A: We accept bugs in Launchpad bug tracker
Q: Is commercial support available?
A: Yes, Percona provides commercial support for XtraDB. If you are interested, please contact us to discuss.
Q: How can I request a new feature?
A: You can request it on the Launchpad Blueprints, or discuss in public groups Percona Dev or Percona discussion
http://www.percona.com/docs/wiki/percona-xtradb:info:faq
-
ทดสอบ 5.1.34 แล้วยังพบ bug ค้นหาชื่อผู้ป่วยตาม soundex แล้วทำให้ MySQL restart ตัวเองอยู่นะครับ แนะนำให้ใช้ MySQL 5.1.30 ก่อนนะครับ
-
ผมลง CentOS 5.3 32 bit ลงได้ทุกอย่าง reboot shutdown หลายครั้งทำงานได้ตามปกติ แต่พอลง MySQL 5.1.34 32 bit ลงได้ปกติ แต่พอ reboot ใหม่ เครื่องไม่ยอม boot เลยครับ จึ่งต้องกลับมาใช้ MySQL 5.1.33 32 bit ( server เป็น HP 150 xenon เครื่องเก่าไม่รองรับ 64 bit )
-
ไม่น่าจะเกี่ยวกันนะครับ มันค้างตรงไหนครับ
-
ทดสอบ 5.1.34 แล้วยังพบ bug ค้นหาชื่อผู้ป่วยตาม soundex แล้วทำให้ MySQL restart ตัวเองอยู่นะครับ แนะนำให้ใช้ MySQL 5.1.30 ก่อนนะครับ
จริงด้วยครับ ลองแล้ว เป็นจริงๆ mysql5.1.24 xtradb ก็เป็น ขอถอย เป็น 5.1.30xtradb
ขอบพระคุณครับ
-
ทดสอบ 5.1.34 แล้วยังพบ bug ค้นหาชื่อผู้ป่วยตาม soundex แล้วทำให้ MySQL restart ตัวเองอยู่นะครับ แนะนำให้ใช้ MySQL 5.1.30 ก่อนนะครับ
อ. หมายถึง 5.1.34-XtraDB หรือป่าวครับ
-
ทดสอบ 5.1.34 แล้วยังพบ bug ค้นหาชื่อผู้ป่วยตาม soundex แล้วทำให้ MySQL restart ตัวเองอยู่นะครับ แนะนำให้ใช้ MySQL 5.1.30 ก่อนนะครับ
อ. หมายถึง 5.1.34-XtraDB หรือป่าวครับ
5.1.34-XtraDB >>>>>เป็นครับ ผมก็เลยจะถอย เป็น 5.1.30 xtradb
-
เรียบร้อยครับ MySQL5.1.30 XtraDB ไม่เป็นแล้วครับ
MySQL-client-percona-5.1.30-3.rhel5.x86_64.rpm
MySQL-shared-percona-5.1.30-3.rhel5.x86_64.rpm
MySQL-server-percona-5.1.30-3.rhel5.x86_64.rpm
-
รูปครับ
-
เรียบร้อยครับ MySQL5.1.30 XtraDB ไม่เป็นแล้วครับ
MySQL-client-percona-5.1.30-3.rhel5.x86_64.rpm
MySQL-shared-percona-5.1.30-3.rhel5.x86_64.rpm
MySQL-server-percona-5.1.30-3.rhel5.x86_64.rpm
ทดสอบแล้ว
จะมีปัญหาเฉพาะ MySQL5.1.34 XtraDB และ MySQL5.1.33 - MySQL5.1.34
-
MySQL 5.0.81 ก็ออกมาแล้วครับ เมื่อต้นเดือน
-
อ.mn น่าจะ rebuild MySQL 5.1.30 XtraDB 32bit บ้างนะครับ จะได้ลองเล่นที่เครื่องธรรมดา
-
จะขอทดสอบบ้างครับ อ. ;D
รบกวนขอ my.cnf สำหรับ ram 6 G ด้วยครับ อ. ;D ;D ;D
-
จะอัพ เกรต mysql 5.1.30 32 bit เป็น mysql percona xtraDB 5.1.42 32 bit
เครื่อง server slave ครับ :D
-
;D ;D ;D Xtradb มี i386(32bit) ให้ใช้แล้วครับลองดู
http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.45-10/RPM/rhel5/i386/
-
;D ;D ;D Xtradb มี i386(32bit) ให้ใช้แล้วครับลองดู
http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.45-10/RPM/rhel5/i386/
ขอบพระคุณครับ กำลังเล่นอยู่เลยครับ
;D ;D ;D ;D ;D
-
http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.45-10.1/RPM/
-
ผมลองลงแล้วยังใช้ไม่ได้ครับ
Cent OS 5.5 64 BIT
ขึ้น ERROR
[root@localhost ~]# rpm -qa | grep -i '^mysql-'
MySQL-shared-percona-5.1.42-9.1.rhel5
MySQL-client-percona-5.1.42-9.1.rhel5
MySQL-server-percona-5.1.42-9.1.rhel5
[root@localhost ~]# service mysql restart
Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: World-writable config file '/etc/my.cnf' is ignored
Shutting down MySQL......... [ OK ]
Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: World-writable config file '/etc/my.cnf' is ignored
Starting MySQL.
แนบไฟ log error ให้ดู กับ my.cnf ของ อ.บอย
-
;D ;D ดูตรงมุมบนสุด [client] มันเป็นแบบนี้มั้ยครับถ้าพิมพ์ตกก็ start ไม่ขึ้นนะครับ