IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 6 and Version 7 of Raw_Images_Files_in_Nebulous


Ignore:
Timestamp:
Feb 29, 2012, 12:50:24 PM (14 years ago)
Author:
Serge CHASTEL
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Raw_Images_Files_in_Nebulous

    v6 v7  
    1212Note: 60 nodes are hosting the data (namely: ipp006, ipp007, ipp008, ipp009, ipp010, ipp011, ipp012, ipp013, ipp014, ipp015, ipp016, ipp017, ipp018, ipp019, ipp020, ipp021, ipp023, ipp024, ipp025, ipp026, ipp027, ipp028, ipp029, ipp030, ipp031, ipp032, ipp033, ipp034, ipp035, ipp036, ipp037, ipp038, ipp039, ipp040, ipp041, ipp042, ipp043, ipp044, ipp045, ipp046, ipp047, ipp048, ipp049, ipp050, ipp051, ipp052, ipp053, ipp054, ipp055, ipp056, ipp057, ipp058, ipp059, ipp060, ipp061, ipp062, ipp063, ipp064, ipp065, ipp066)
    1313
    14 On the ippc11 mysql server, the FilesStatistics database was created:
     14On the ippc11 mysql server, the {{{FilesStatistics}}} database was created:
    1515{{{
    1616CREATE DATABASE FilesStatistics;
     
    3333   {{{SELECT host, SUM(how_many)-580145 AS adiff, (SUM(how_many)-580145)/580145*100 AS rdiff FROM RawImages GROUP BY host;}}}
    3434 * View without the directory information: {{{CREATE VIEW RawImagesSimple AS (SELECT host, ota, SUM(how_many) AS ota_count FROM RawImages GROUP BY host, ota);}}}
     35
     36=== Maxima in terms of ota counts ===
    3537 * To get the maximum in terms of ota counts for each host (we also display the argmax), run the following statement:
    3638{{{
     
    3840}}}
    3941   * Two otas are not displayed: ota23 and ota35. This means that no node has a majority of ota23 and ota35. However there are 301127 ota23 on ipp015 (while the maximum on this host is reached for ota43 with 305879) and 308061 ota35 on ipp013 (Max on this host for ota20: 310086). The absolute difference between the maximum ota count and the ota count for ota23 and ota35 is however acceptable (~4,000 and ~2,000) if it is compared to the total number of otas (~300,000).
    40    * Some nodes have a relative small number of exposures: ipp026 (63678), ipp045(13804), ipp064(8736), ipp066(95218)
     42   * Some nodes have a relative small number of exposures: ipp026 (63678), ipp045(13804), ipp064(8736), ipp066(95218). We know those nodes had problems in the past and can exclude them from our study. We will refer to them as "outlier nodes".
    4143   * Two otas are shown twice: ota17 (ipp060 and ipp026) and ota34 (ipp023 and ipp045) but for each of them one of the nodes has a small number of exposures. Nothing to worry about here too.
    42    * The table containing the maxima by ota is {{{RawImagesMaximaByOta}}}
     44   * Without the outlier nodes (ipp026, ipp045, ipp064, and ipp066):
     45     * Mean max count: 274682
     46     * Stdev max count: 41327
     47     * Max of max count: 376716
     48     * Min of max count: 201702
     49     * Hosts with abs(max count - mean > 3*stdev): 0
     50     * Hosts with abs(max count - mean > 2*stdev): 1 => ipp033 (+102034)
     51     * Hosts with abs(max count - mean > 1*stdev): 12 (i.e. 5 nodes with max count greater than mean+sigma; 7 with max count less than mean-sigma)
     52     * Queries derived from {{{SELECT RI1.host, RI1.ota, max_ota_count-274682 AS delta FROM RawImagesSimple RI1 JOIN (SELECT MAX(RI2.ota_count) AS max_ota_count, host FROM RawImagesSimple RI2 WHERE host != 'ipp026' AND host != 'ipp045' AND host != 'ipp064' AND host != 'ipp066' GROUP BY host) RI3 ON RI3.max_ota_count = RI1.ota_count AND RI3.host=RI1.host ORDER BY delta DESC;}}}
     53
     54   * A table containing the maxima by ota was created: {{{RawImagesMaximaByOta}}}
     55{{{
     56CREATE TABLE RawImagesMaximaByOta (id INT PRIMARY KEY AUTO_INCREMENT, host CHAR(7), INDEX(host), ota CHAR(6), INDEX(ota), max_ota_count INT, INDEX(max_ota_count));
     57INSERT INTO RawImagesMaximaByOta SELECT NULL, RI1.host, RI1.ota, max_ota_count FROM RawImagesSimple RI1 JOIN (SELECT MAX(RI2.ota_count) AS max_ota_count, host FROM RawImagesSimple RI2 WHERE host != 'ipp026' AND host != 'ipp045' AND host != 'ipp064' AND host != 'ipp066' GROUP BY host) RI3 ON RI3.max_ota_count = RI1.ota_count AND RI3.host=RI1.host;
     58}}}
     59
     60=== Are OTAs which are not supposed to be targeted on one host evenly spread? ===
     61 * Table based on RawImagesSimple without the maximum ota counts is named: {{{RawImagesWithoutMaximumOta}}}
     62{{{
     63CREATE TABLE RawImagesWithoutMaximumOta (host CHAR(7), INDEX(host), ota CHAR(6), INDEX(ota), ota_count INT, INDEX(ota_count));
     64INSERT INTO RawImagesWithoutMaximumOta SELECT host, ota, ota_count FROM RawImagesSimple WHERE (SELECT COUNT(*) FROM RawImagesMaximaByOta WHERE RawImagesMaximaByOta.host = RawImagesSimple.host AND RawImagesMaximaByOta.ota = RawImagesSimple.ota) = 0 AND host != 'ipp026' AND host != 'ipp045' AND host != 'ipp064' AND host != 'ipp066';
     65}}}
     66
     67 * Remove the outliers from the {{{RawImagesWithoutMaximumOta}}} table:
     68{{{
     69CREATE TABLE RawImagesWithoutMaximumOtaNoOutliers (host CHAR(7), INDEX(host), ota CHAR(6), INDEX(ota), ota_count INT, INDEX(ota_count));
     70INSERT INTO RawImagesWithoutMaximumOtaNoOutliers SELECT * FROM RawImagesWithoutMaximumOta;
     71DELETE FROM RawImagesWithoutMaximumOtaNoOutliers WHERE ota_count>300000;  -- (Those are the "missing but there" ota23 and ota35)
     72}}}
     73
     74 * Now to get the histogram of the values in RawImagesWithoutMaximumOta:
     75{{{
     76SELECT ROUND(ota_count, -4) AS bucket, COUNT(*), RPAD('', LN(COUNT(*)), '*') AS bar FROM RawImagesWithoutMaximumOtaNoOutliers GROUP  BY bucket;
     77
     78!!!!!! NOTE THE USE OF THE LOGARITHMIC SCALE FOR THE '*' !!!!!!!
     79
     80+--------+----------+----------+
     81| bucket | COUNT(*) | bar      |
     82+--------+----------+----------+               i.e.:
     83|      0 |     2349 | ******** |      2349 different otas have a count 0 to 10000 on one of the nodes
     84|  10000 |      819 | *******  |           
     85|  20000 |       10 | **       |
     86|  30000 |       63 | ****     |       
     87|  40000 |       12 | **       |
     88|  50000 |       10 | **       |
     89|  60000 |        6 | **       |
     90|  70000 |        7 | **       |
     91|  80000 |        8 | **       |
     92|  90000 |        1 |          |
     93| 100000 |        6 | **       |
     94| 110000 |        5 | **       |
     95| 130000 |        1 |          |
     96| 140000 |        3 | *        |
     97| 180000 |        1 |          |
     98| 190000 |        1 |          |
     99+--------+----------+----------+
     100}}}
     101
     102Detail of the first part of the histogram:
     103{{{
     104SELECT ROUND(ota_count, -2) AS bucket, COUNT(*), RPAD('', (COUNT(*)/10), '*') AS bar FROM RawImagesWithoutMaximumOtaNoOutliers GROUP  BY bucket LIMIT 100;
     105
     106!!! NO LOG SCALE FOR THIS ONE BUT A SCALING BY 1/10 !!!
     107
     108+--------+----------+-----------------+
     109| bucket | COUNT(*) | bar             |
     110+--------+----------+-----------------+
     111|    100 |        1 |                 |
     112|    200 |       16 | **              |
     113|    300 |       12 | *               |
     114|    400 |       13 | *               |
     115|    500 |       18 | **              |
     116|    600 |       39 | ****            |
     117|    700 |       50 | *****           |
     118|    800 |       32 | ***             |
     119|    900 |       42 | ****            |
     120|   1000 |       32 | ***             |
     121|   1100 |       48 | *****           |
     122|   1200 |       56 | ******          |
     123|   1300 |       48 | *****           |
     124|   1400 |       34 | ***             |
     125|   1500 |       38 | ****            |
     126|   1600 |       45 | *****           |
     127|   1700 |       42 | ****            |
     128|   1800 |       72 | *******         |
     129|   1900 |      107 | ***********     |
     130|   2000 |      130 | *************   |
     131|   2100 |      152 | *************** |
     132|   2200 |      134 | *************   |
     133|   2300 |      131 | *************   |
     134|   2400 |       87 | *********       |
     135|   2500 |       62 | ******          |
     136|   2600 |       68 | *******         |
     137|   2700 |       58 | ******          |
     138|   2800 |       48 | *****           |
     139|   2900 |       58 | ******          |
     140|   3000 |       56 | ******          |
     141|   3100 |       40 | ****            |
     142|   3200 |       59 | ******          |
     143|   3300 |       41 | ****            |
     144|   3400 |       43 | ****            |
     145|   3500 |       46 | *****           |
     146|   3600 |       34 | ***             |
     147|   3700 |       36 | ****            |
     148|   3800 |       32 | ***             |
     149|   3900 |       30 | ***             |
     150|   4000 |       29 | ***             |
     151|   4100 |       27 | ***             |
     152|   4200 |       23 | **              |
     153|   4300 |       37 | ****            |
     154|   4400 |       21 | **              |
     155|   4500 |       25 | ***             |
     156|   4600 |       17 | **              |
     157|   4700 |       26 | ***             |
     158|   4800 |       27 | ***             |
     159|   4900 |       19 | **              |
     160|   5000 |       18 | **              |
     161|   5100 |       22 | **              |
     162|   5200 |       21 | **              |
     163|   5300 |       31 | ***             |
     164|   5400 |       18 | **              |
     165|   5500 |       17 | **              |
     166|   5600 |       29 | ***             |
     167|   5700 |       21 | **              |
     168|   5800 |       28 | ***             |
     169|   5900 |       33 | ***             |
     170|   6000 |       32 | ***             |
     171|   6100 |       24 | **              |
     172|   6200 |       20 | **              |
     173|   6300 |       27 | ***             |
     174|   6400 |       24 | **              |
     175|   6500 |       16 | **              |
     176|   6600 |       14 | *               |
     177|   6700 |       21 | **              |
     178|   6800 |       18 | **              |
     179|   6900 |       25 | ***             |
     180|   7000 |       12 | *               |
     181|   7100 |       12 | *               |
     182|   7200 |       20 | **              |
     183|   7300 |       11 | *               |
     184|   7400 |       19 | **              |
     185|   7500 |       14 | *               |
     186|   7600 |       22 | **              |
     187|   7700 |       21 | **              |
     188|   7800 |       12 | *               |
     189|   7900 |       14 | *               |
     190|   8000 |       16 | **              |
     191|   8100 |        7 | *               |
     192|   8200 |        5 | *               |
     193|   8300 |       12 | *               |
     194|   8400 |       11 | *               |
     195|   8500 |       10 | *               |
     196|   8600 |        3 |                 |
     197|   8700 |       15 | **              |
     198|   8800 |        8 | *               |
     199|   8900 |        7 | *               |
     200|   9000 |        8 | *               |
     201|   9100 |       10 | *               |
     202|   9200 |        5 | *               |
     203|   9300 |        7 | *               |
     204|   9400 |        5 | *               |
     205|   9500 |        4 |                 |
     206|   9600 |        5 | *               |
     207|   9700 |        4 |                 |
     208|   9800 |        5 | *               |
     209|  10000 |        6 | *               |
     210|  10100 |        5 | *               |
     211+--------+----------+-----------------+
     212}}}