| 12 | 12 | Note: 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) |
| 13 | 13 | |
| 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 | {{{ |
| | 56 | CREATE 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)); |
| | 57 | INSERT 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 | {{{ |
| | 63 | CREATE TABLE RawImagesWithoutMaximumOta (host CHAR(7), INDEX(host), ota CHAR(6), INDEX(ota), ota_count INT, INDEX(ota_count)); |
| | 64 | INSERT 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 | {{{ |
| | 69 | CREATE TABLE RawImagesWithoutMaximumOtaNoOutliers (host CHAR(7), INDEX(host), ota CHAR(6), INDEX(ota), ota_count INT, INDEX(ota_count)); |
| | 70 | INSERT INTO RawImagesWithoutMaximumOtaNoOutliers SELECT * FROM RawImagesWithoutMaximumOta; |
| | 71 | DELETE 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 | {{{ |
| | 76 | SELECT 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 | |
| | 102 | Detail of the first part of the histogram: |
| | 103 | {{{ |
| | 104 | SELECT 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 | }}} |