flush(); } $DB->prepared_query('SHOW GLOBAL STATUS'); $DBStats = $DB->to_array('Variable_name'); $MemStats = $Cache->getStats(); View::show_header("Service Stats"); ?>
| Service | |
|---|---|
| Threads (Active) | |
| Cache: | =number_format($MemStats['threads'])?> (100.000%) |
| 0.7) { echo ' class="invalid" '; } ?>>Database: | =number_format($DBStats['Threads_created']['Value'])?> (=number_format(($DBStats['Threads_connected']['Value'] / $DBStats['Threads_created']['Value']) * 100, 3)?>%) |
| Connections | |
| Cache: | =number_format($MemStats['total_connections'])?> |
| Database: | =number_format($DBStats['Connections']['Value'])?> |
| Special | |
| Cache Current Index: | =number_format($MemStats['curr_items'])?> |
| Cache Total Index: | =number_format($MemStats['total_items'])?> |
| 0.85) { echo ' class="tooltip invalid" title="Evictions begin when storage exceeds 85%" '; } ?>>Cache Storage: | =Format::get_size($MemStats['bytes'])?> (=number_format(($MemStats['bytes'] / $MemStats['limit_maxbytes']) * 100, 3);?>%) |
| Utilities | |
| Cache: | |
| Activity | |
|---|---|
| Total Reads | |
| Cache: | =number_format($MemStats['cmd_get'])?> |
| Database: | =number_format($DBStats['Com_select']['Value'])?> |
| Total Writes | |
| Cache: | =number_format($MemStats['cmd_set'])?> |
| Database: | =number_format($DBStats['Com_insert']['Value'] + $DBStats['Com_update']['Value'])?> |
| Get/Select (Success) | |
| >Cache: | =number_format($MemStats['get_hits'])?> (=number_format(($MemStats['get_hits'] / $MemStats['cmd_get']) * 100, 3);?>%) |
| Database: | =number_format($DBStats['Com_select']['Value'])?> (100.000%) |
| Set/Insert (Success) | |
| Cache: | =number_format($MemStats['cmd_set'])?> (100.000%) |
| Database: | =number_format($DBStats['Com_insert']['Value'])?> (100.000%) |
| Increment/Decrement (Success) | |
| >Cache Increment: | =number_format($MemStats['incr_hits'])?> (=number_format(($MemStats['incr_hits'] / ($MemStats['incr_hits'] + $MemStats['incr_misses'])) * 100, 3);?>%) |
| >Cache Decrement: | =number_format($MemStats['decr_hits'])?> (=number_format(($MemStats['decr_hits'] / ($MemStats['decr_hits'] + $MemStats['decr_misses'])) * 100, 3);?>%) |
| CAS/Update (Success) | |
| 0 && $MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses']) < 0.7) { echo ' class="tooltip invalid" title="More than 30% of the issued CAS commands were unnecessarily wasting time and resources." ' ; } elseif ($MemStats['cas_hits']==0) { echo ' class="tooltip notice" title="Disable CAS with the -C parameter and save resources since it is not used." ' ; } ?>>Cache: | =number_format($MemStats['cas_hits'])?> ( 0) { echo number_format(($MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses'])) * 100, 3); } else { echo '0.000'; } ?>%) |
| Database: | =number_format($DBStats['Com_update']['Value'])?> (100.000%) |
| Deletes (Success) | |
| >Cache: | =number_format($MemStats['delete_hits'])?> (=number_format(($MemStats['delete_hits'] / ($MemStats['delete_hits'] + $MemStats['delete_misses'])) * 100, 3);?>%) |
| Database: | =number_format($DBStats['Com_delete']['Value'])?> (100.000%) |
| Special | |
| $MemStats['uptime'] / 7 * 24 * 3600) { echo ' class="tooltip invalid" title="Flushing the cache on a regular basis defeats the benefits of it, look into using cache transactions, or deletes instead of global flushing where possible." '; } ?>>Cache Flushes: | =number_format($MemStats['cmd_flush'])?> |
| 0) { echo ' class="invalid" '; } ?>>Cache Evicted: | =number_format($MemStats['evictions'])?> |
| $DBStats['Questions']['Value'] / 7500) { echo ' class="tooltip invalid" title="1/7500 queries is allowed to be slow to minimize performance impact." '; } ?>>Database Slow: | =number_format($DBStats['Slow_queries']['Value'])?> |
| Data Read | |
| Cache: | =Format::get_size($MemStats['bytes_read'])?> |
| Database: | =Format::get_size($DBStats['Bytes_received']['Value'])?> |
| Data Write | |
| Cache: | =Format::get_size($MemStats['bytes_written'])?> |
| Database: | =Format::get_size($DBStats['Bytes_sent']['Value'])?> |
| Concurrency | |
|---|---|
| Total Reads | |
| >Cache: | =number_format($MemStats['cmd_get'] / $MemStats['uptime'], 5)?>/s |
| Database: | =number_format($DBStats['Com_select']['Value'] / $DBStats['Uptime']['Value'], 5)?>/s |
| Total Writes | |
| >Cache: | =number_format($MemStats['cmd_set'] / $MemStats['uptime'], 5)?>/s |
| Database: | =number_format(($DBStats['Com_insert']['Value'] + $DBStats['Com_update']['Value']) / $DBStats['Uptime']['Value'], 5)?>/s |
| Get/Select | |
| Cache: | =number_format($MemStats['get_hits'] / $MemStats['uptime'], 5)?>/s |
| Database: | =number_format($DBStats['Com_select']['Value'] / $DBStats['Uptime']['Value'], 5)?>/s |
| Set/Insert | |
| Cache: | =number_format($MemStats['cmd_set'] / $MemStats['uptime'], 5)?>/s |
| Database: | =number_format($DBStats['Com_insert']['Value'] / $DBStats['Uptime']['Value'], 5)?>/s |
| Increment/Decrement | |
| Cache Increment: | =number_format($MemStats['incr_hits'] / $MemStats['uptime'], 5)?>/s |
| Cache Decrement: | =number_format($MemStats['decr_hits'] / $MemStats['uptime'], 5)?>/s |
| CAS/Updates | |
| Cache: | =number_format($MemStats['cas_hits'] / $MemStats['uptime'], 5)?>/s |
| Database: | =number_format($DBStats['Com_update']['Value'] / $DBStats['Uptime']['Value'], 5)?>/s |
| Deletes | |
| Cache: | =number_format($MemStats['delete_hits'] / $MemStats['uptime'], 5)?>/s |
| Database: | =number_format($DBStats['Com_delete']['Value'] / $DBStats['Uptime']['Value'], 5)?>/s |
| Special | |
| Cache Flushes: | =number_format($MemStats['cmd_flush'] / $MemStats['uptime'], 5)?>/s |
| Cache Evicted: | =number_format($MemStats['evictions'] / $MemStats['uptime'], 5)?>/s |
| Database Slow: | =number_format($DBStats['Slow_queries']['Value'] / $DBStats['Uptime']['Value'], 5)?>/s |
| Data Read | |
| Cache: | =Format::get_size($MemStats['bytes_read'] / $MemStats['uptime'])?>/s |
| Database: | =Format::get_size($DBStats['Bytes_received']['Value'] / $DBStats['Uptime']['Value'])?>/s |
| Data Write | |
| Cache: | =Format::get_size($MemStats['bytes_written'] / $MemStats['uptime'])?>/s |
| Database: | =Format::get_size($DBStats['Bytes_sent']['Value'] / $DBStats['Uptime']['Value'])?>/s |