skosso Posted October 17, 2014 Share Posted October 17, 2014 (edited) Salve, ho un grosso problema ieri è stato bloccato il mio servizio hosting da parte di Netsons per una violazione policy QoS:MySQL vi riporto la query e la mail ricevuta. come posso fixare il problema? vorrei evitare il passaggio ad un vps anche perché ha costi non indifferenti. Salve, il servizio di hosting è stato sospeso per la violazione delle policy QoS pubbliche e presenti all'indirizzo: https://www.netsons.com/knowledgebase.php?action=displayarticle&id=1 Nella fattispecie alcune sue query superano di gran lunga i valori consentiti. Le riporto una delle query in questione: # Time: 141015 11:06:52 # User@Host: azfbephy_francy[azfbephy_francy] @ srv-hp14.netsons.net [172.16.2.14] # Query_time: 11.782406 Lock_time: 0.000319 Rows_sent: 24 Rows_examined: 732758 use azfbephy_zshop; SET timestamp=1413364012; SELECT p.*, product_shop.*, product_shop.id_category_default, pl.*, MAX(image_shop.`id_image`) id_image, il.legend, m.name manufacturer_name, MAX(product_attribute_shop.id_product_attribute) id_product_attribute, DATEDIFF(product_shop.`date_add`, DATE_SUB(NOW(), INTERVAL 20 DAY)) > 0 AS new, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity FROM `ps_category_product` cp LEFT JOIN ps_category c ON (c.id_category = cp.id_category) LEFT JOIN `ps_product` p ON p.`id_product` = cp.`id_product` INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1) LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_shop = 1 ) LEFT JOIN ps_product_lang pl ON (pl.id_product = p.id_product AND pl.id_shop = 1 AND pl.id_lang = 1) LEFT JOIN `ps_image` i ON (i.`id_product` = p.`id_product`) LEFT JOIN ps_image_shop image_shop ON (image_shop.id_image = i.id_image AND image_shop.id_shop = 1 AND image_shop.cover=1) LEFT JOIN `ps_image_lang` il ON (image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 1) LEFT JOIN ps_manufacturer m ON (m.id_manufacturer = p.id_manufacturer) LEFT JOIN ps_product_attribute pa ON (p.id_product = pa.id_product) LEFT JOIN ps_product_attribute_shop product_attribute_shop ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.`default_on` = 1) WHERE product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") AND c.nleft >= 4 AND c.nright <= 21 AND c.active = 1 AND p.id_product IN (8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,29,30,32,34,75,81,83,86,89,91,96,98,100,188,240,242,243,244,245,246,247,248,253,254,270,271,272,273,274,275,276,277,278,287,288,290,297,303,304,305,306,307,308,309,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,368,370,373,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,425,426,428,429,430,431,433,434,435,436,437,438,439,505,506,508,509,510,511,519,520,521) GROUP BY product_shop.id_product ORDER BY cp.position asc LIMIT 24,24; Come vede i valori esaminati sono bel al di sopra dei valori consentiti e tale abuso da lei effettuato ha creato notevoli disservizi non solo sull'intero server dove sono ospitati altri siti web ma alla Supernova s.r.l. stessa. A questo punto le offriamo due alternative: - Correggere immediatamente la query in uso o il volume di dati da analizzare; - Migrare l'account cPanel su soluzione server virtuale o server dedicato; Nel secondo caso, le suggeriamo di prendere in considerazione che: 1) Le consigliamo di acquistare un server, sia esso virtuale o dedicato, con licenza cPanel e con memoria pari al doppio di quella in uso dal suo database ( ad esempio se il suo database è grande 1GB la memoria RAM minima del server dovrà essere di 2GB per un corretto funzionamento ) 2) In caso di server virtuale o dedicato + licenza cPanel MANAGED, la migrazione del suo account cPanel verso il suo nuovo ambiente verrà effettuata gratuitamente dal nostro staff. In attesa di un suo riscontro. Resto a disposizione per ulteriori chiarimenti. Cordiali Saluti, Edited October 17, 2014 by skosso (see edit history) Link to comment Share on other sites More sharing options...
skosso Posted October 17, 2014 Author Share Posted October 17, 2014 sto cercando di trovare un fix ma la vedo dura Link to comment Share on other sites More sharing options...
tuk66 Posted October 20, 2014 Share Posted October 20, 2014 Questo metodo query SQL viene da getProductByFilters() nel modulo blocklayered. Penso che il problema è con: This SQL query comes from getProductByFilters() method in the blocklayered module. I think the problem is with: Query_time: 11.782406 Lock_time: 0.000319 Rows_sent: 24 Rows_examined: 732758 e la query deve essere riscritta. and the query should be refactored. 1 Link to comment Share on other sites More sharing options...
skosso Posted October 20, 2014 Author Share Posted October 20, 2014 grazie mille... posso disattivare il modulo al momento? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now