flush(); } $DB->query('SHOW GLOBAL STATUS'); $DBStats = $DB->to_array('Variable_name'); $DB->query('SHOW GLOBAL VARIABLES'); $DBVars = $DB->to_array('Variable_name'); $MemStats = $Cache->getStats(); $MemStats = $MemStats[array_keys($MemStats)[0]]; View::show_header("Service Stats"); if (check_perms('site_database_specifics')) { ?>
0.7) { echo ' class="invalid" '; } ?>>Database: 0.85) { echo ' class="tooltip invalid" title="Evictions begin when storage exceeds 85%" '; } ?>>Cache Storage: $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." '; } ?>>Total flushes:
Service
Threads (Active)
Cache: (%)
(%)
DB peak connections: (%)
Connections
Cache current:
Cache total:
Database total:
Booted
Cache:
Database:
Special
Cache Current Index:
Cache Total Index:
%
Cache cold moves: /s
Cache warm moves: /s
Cache moves within LRU: /s
Utilities
Cache:
Flush ratio: /s
>Cache: >Cache increment: >Cache decrement: 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: $DBStats['Questions']['Value'] / 7500) { echo ' class="tooltip invalid" title="1/7500 queries is allowed to be slow to minimize performance impact." '; } ?>>Database slow:
Activity
Total reads
Cache:
Database:
Total writes
Cache:
Database:
Get/Select (Success)
(%)
Database: (100.000%)
Set/Insert (Success)
Cache: (100.000%)
Database: (100.000%)
(%)
(%)
CAS/Update (Success)
( 0) { echo number_format(($MemStats['cas_hits'] / ($MemStats['cas_hits'] + $MemStats['cas_misses'])) * 100, 3); } else { echo '0.000'; } ?>%)
Database: (100.000%)
Deletes (Success)
Cache: (%)
Database: (100.000%)
Special
Expired unfetched:
Evicted unfetched:
Evicted:
Slabs moved:
Data read
Cache:
Database:
Data write
Cache:
Database:
>Cache: >Cache:
Concurrency
Total reads
/s
Database: /s
Total writes
/s
Database: /s
Get/Select
Cache: /s
Database: /s
Set/Insert
Cache: /s
Database: /s
Cache increment: /s
Cache decrement: /s
CAS/Updates
Cache: /s
Database: /s
Deletes
Cache: /s
Database: /s
Special
Expired unfetched: /s
Evicted unfetched: /s
Evicted: /s
Slabs moved: /s
Database slow: /s
Data read
Cache: /s
Database: /s
Data write
Cache: /s
Database: /s