<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#44546A;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#44546A'>Chia bảng theo ngày đối với bảng có dung lượng cao<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> OpenCPS [mailto:opencps-bounces@lists.opencps.vn] <b>On Behalf Of </b>Nguyen The Nghia<br><b>Sent:</b> Thursday, March 24, 2016 6:18 PM<br><b>To:</b> Open Core Public Services general mailing list<br><b>Subject:</b> Re: [OpenCPS] OpenCPS database engine?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:black'>Dear!<br><br>Hiện tại bên mình đang sử dụng hệ thống db cluster mariadb galera.<br>Cấu hình hiện tại:  3 node db + 1 manager/control. (Máy ảo, CPU Xeon2.1 Ghz x 8core, Ram 24G, Hdd 150G )<br>DB: Hiện chạy 3 schema, trong đó có 2 bảng dung lượng > 20 Gb<br>                            1 vài bảng dung lượng ~1G còn lại đa số khoảng 1-2M<br>Performent:   Hiện tại tổng connect vào lúc cao điểm: ~200 connecttion/server <br>              Dung lượng dữ liệu tăng:  2Gb /1 tháng ( do lưu trữ nội dung văn bản vào trong DB )<br>                    <br>Vấn đề gặp phải: Khi update, sửa, optimize .. liên quan đến các bảng có dung lương lớn 20G trên thì hệ thống gần như đơ luôn trong khoảng 1-2h.<br>Ngoài ra, do trước đây con server control/monitor cài bản Mysql Galera Cluster ( có đòi bản quyền) nên 1 số trường hợp khi đang update liên quan đến các bảng lớn ( có dung lượng > 20G) + lỗi mạng thì các node thường bị out khỏi cluster, gần như không thể join lại được vào hệ thống cluster.<br>Khi cluster bị lỗi 1 trong các node, thì tốc độ đáp ứng của DB rất chậm thậm chí còn chậm hơn 1 node nếu chạy mysql bình thương.<br><br>Rất mong các bạn giúp đỡ giải quyết vấn đề trên. Mình sẵn sàng cung cấp teamview để các bạn vào kiểm tra chi tiết.<br><br>Thanks and Brg!<br><br>----- On Mar 22, 2016, at 5:02 PM, Truong Anh Tuan <<a href="mailto:tuanta@iwayvietnam.com">tuanta@iwayvietnam.com</a>> wrote:<br><br><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:black'>On 03/22/2016 04:25 PM, Ta Tuan Anh wrote:<br>> DBt lưu không quá lớn.<br>> Toàn bộ dữ liệu file lưu trên FS<br><br>Có sizing chưa? (chưa thấy ai nói về con số, toàn "ước chừng" :D )<br><br>> Nếu DB Maria ngon hơn MySQL và dùng đơn giản như MySQL thì nên dùng. Tuy<br>> nhiên cần check lại bọn Liferay đã support dùng Maria ngon chưa hay<br>> không thôi.<br><br>MariaDB hơn đứt MySQL; tuy nhiên, còn có một số option khác nữa, tùy<br>thuộc vào các điều kiện cụ thể về lượng data, tỷ trọng đọc/ghi...<br>Xem lại link tôi gửi trong thư đầu [1] nhé!<br><br>-- <br>Rgds,<br>Tuan<br><br>[1] <a href="http://lists.opencps.vn/pipermail/opencps/2016-March/000094.html">http://lists.opencps.vn/pipermail/opencps/2016-March/000094.html</a><br>_______________________________________________<br>POST RULES: <a href="https://github.com/VietOpenCPS/doc/wiki/Mailing-list-guidelines">https://github.com/VietOpenCPS/doc/wiki/Mailing-list-guidelines</a><br>_______________________________________________<br>OpenCPS mailing list<br><a href="mailto:OpenCPS@lists.opencps.vn">OpenCPS@lists.opencps.vn</a><br><a href="http://lists.opencps.vn/mailman/listinfo/opencps">http://lists.opencps.vn/mailman/listinfo/opencps</a><o:p></o:p></span></p></div></div></div></body></html>