หัวข้อ: สอบถาม :: มีอีเมลจาก Hostgator กับฐานข้อมูล เริ่มหัวข้อโดย: Railway ที่ 14 กุมภาพันธ์ 2013, 16:11:39 โค๊ด: This message is to advise you of a temporary block placed on your database. The database was found to be consuming an inordinate amount of processor time, to the point of degrading overall system performance. While we do limit each account to no more than 25% of a system's CPU in our terms of service, we do not actively disable accounts until they greatly exceed that number, which is what happened in this case. Requests to this database may become degraded by limiting the maximum number of queries or connections for a limited amount of time, or if there are sustained issues, ultimately we may be forced to block access to this database until the issue has been resolved. จับใจความได้ว่าผมใช้การคิวรี่ฐานข้อมูลเยอะเกินไป ผมทำเว็บปั่น โดยใช้วิธีดึงข้อมูลมาเก็บไว้ในฐานข้อมูลครับ แล้วเรียกไปแสดง ผมไม่ทราบว่าปัญหามันเกิดจากอะไร เกิดจากการที่บอทเข้ามาบ่อยเกินไปหรือไม่ เพราะผมจะ ping ทุกซับโดเมนครับ เพราะถ้าเป็นคนเข้า 1 โดเมน คนเข้าไม่เกิน 40คน/วัน ตอนนี้ทำอยู่ 2 โดเมน ปัญหานี้ไม่น่าจะเกิดรบกวนท่านที่เคยโดนแนะนำด้วยครับ ตอนนี้เว็บเข้าได้ แต่คิวรี่ข้อมูลมาแสดงไม่ได้เลยครับ หัวข้อ: Re: สอบถาม :: มีอีเมลจาก Hostgator กับฐานข้อมูล เริ่มหัวข้อโดย: tdelphi ที่ 14 กุมภาพันธ์ 2013, 16:24:19 อ่านคราวๆ เขาหมายถึง ใช้คำสั่ง query ดึงข้อมูลที่ทำงาน "นานเกินไป" จนเกินปัญหา table locking เยอะๆ จนมีผลต่อ performance รวมของเครื่อง
ทางแก้คือ 1. ตรวจสอบ code ว่าดึงช้อมูลทีละเยอะๆ เกินไปหรือเปล่า แต่ใช้แค่ 1 record อะไรแบบนี้ 2. ลองปรับ table type เป็น innodb จะช่วยเรื่อง table locking ได้ 3. หาสาเหตให้พบว่า เกิดจากคำสั่งอะไร และมาจาก code ส่วนไหน หัวข้อ: Re: สอบถาม :: มีอีเมลจาก Hostgator กับฐานข้อมูล เริ่มหัวข้อโดย: Railway ที่ 14 กุมภาพันธ์ 2013, 16:28:44 เว็บคนเข้าไม่เยอะนะครับ เกี่ยวกับบอทเข้าด้วยรึป่าว เดี๋ยวจะตรวจสอบ code ใหม่อีกครั้งครับ เพราะเพิ่ง run เว็บใหม่ไป ไม่รู้เขียนโค้ด loop อยู่รึป่าว
หัวข้อ: Re: สอบถาม :: มีอีเมลจาก Hostgator กับฐานข้อมูล เริ่มหัวข้อโดย: Railway ที่ 14 กุมภาพันธ์ 2013, 17:14:25 ตอนนี้เข้าเว็บไม่ได้แย้ว T_TT
Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. หัวข้อ: Re: สอบถาม :: มีอีเมลจาก Hostgator กับฐานข้อมูล เริ่มหัวข้อโดย: zidit ที่ 14 กุมภาพันธ์ 2013, 18:23:04 ตอนนี้เข้าเว็บไม่ได้แย้ว T_TT Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. น่าจะโดนระงับแล้วครับผม ระงับเฉพาะเว็บที่มีปัญหา ไม่ใช่ทั้ง acc ปัญหาหลักๆ คือ mysql ทำงานหนักครับ ทำให้กระทบต่อคนอื่น ลองเช็คสคิป เช็คปลั๊กอินว่ามีตัวไหน ทำงานหนักบ้าง |