|
215 | 215 |
|
216 | 216 | /* NB : ADD CHECKS IF NODES ARE NOT HOMOGENOUS MEM / NUM CPU etc */ |
217 | 217 |
|
218 | | -SET CONSTRAINT VERSION < 7.0 |
| 218 | +SET CONSTRAINT VERSION < 7.0; |
219 | 219 |
|
220 | 220 | s = select "available_bin_names", "available-bin-names" from NAMESPACE save; |
221 | | -r = group by NAMESPACE do s > 3200; |
| 221 | +r = group by NAMESPACE do s > 6400; |
222 | 222 | ASSERT(r, True, "Low namespace available bin names.", "LIMITS", WARNING, |
223 | | - "Listed node[s] have low available bin name (< 3200) for corresponding namespace[s]. Maximum unique bin names allowed per namespace are 32k. Please run 'show statistics namespace like available' to get actual values. Possible improperly modeled data.", |
| 223 | + "Listed node[s] have low available bin name (< 6400) for corresponding namespace[s]. Maximum unique bin names allowed per namespace are 64k. Please run 'show statistics namespace like available' to get actual values. Possible improperly modeled data.", |
224 | 224 | "Namespace available bin names check."); |
225 | 225 |
|
226 | 226 |
|
|
329 | 329 | ASSERT(warn, True, "Low namespace disk available pct.", "OPERATIONS", WARNING, |
330 | 330 | "Listed namespace[s] have lower than normal (< 20 %) available disk space. Probable cause - namespace size misconfiguration.", |
331 | 331 | "Namespace disk available pct check."); |
| 332 | + |
| 333 | +SET CONSTRAINT VERSION >= 7.1.0; |
| 334 | +used_bytes = select "index_used_bytes" as "stats" from NAMESPACE.STATISTICS save; |
| 335 | +stop_used_bytes = select "indexes-memory-budget" as "stats" from NAMESPACE.CONFIG save; |
| 336 | +budget_configured = do stop_used_bytes > 0; |
| 337 | +critical = do used_bytes <= stop_used_bytes; |
| 338 | +ASSERT(critical, True, "High namespace index memory used pct (stop-write enabled).", "OPERATIONS", CRITICAL, |
| 339 | + "Listed namespace[s] have higher than normal memory usage for indexes. Probable cause - namespace size misconfiguration.", |
| 340 | + "Critical Namespace index memory used pct check.", budget_configured); |
332 | 341 |
|
333 | 342 | SET CONSTRAINT VERSION >= 7.0.0; |
334 | 343 | used = select "data_used_pct" as "stats" from NAMESPACE.STATISTICS save; |
|
1567 | 1576 | "Non-zero sindex background ops query error check"); |
1568 | 1577 |
|
1569 | 1578 | // Should be constrained to just 5.7 |
1570 | | -SET CONSTRAINT VERSION < 6.0 |
| 1579 | +SET CONSTRAINT VERSION < 6.0; |
1571 | 1580 |
|
1572 | 1581 | // Scan Background OPS statistics |
1573 | 1582 | s = select "scan_ops_bg_complete" as "cnt" from NAMESPACE.STATISTICS; |
|
1592 | 1601 | "Listed namespace[s] show non-zero scan background ops errors. Please run 'show statistics namespace like scan_ops_bg' to see values.", |
1593 | 1602 | "Non-zero scan background ops error check"); |
1594 | 1603 |
|
1595 | | -SET CONSTRAINT VERSION > 3.9 |
| 1604 | +SET CONSTRAINT VERSION > 3.9; |
1596 | 1605 |
|
1597 | 1606 | // Scan Agg statistics |
1598 | 1607 | s = select "scan_aggr_complete" as "cnt" from NAMESPACE.STATISTICS; |
|
1754 | 1763 |
|
1755 | 1764 | // XDR Write statistics |
1756 | 1765 |
|
1757 | | -SET CONSTRAINT VERSION < 4.5.1 |
| 1766 | +SET CONSTRAINT VERSION < 4.5.1; |
1758 | 1767 |
|
1759 | 1768 | s = select "xdr_write_success" as "cnt", "xdr_client_write_success" as "cnt" from NAMESPACE.STATISTICS; |
1760 | 1769 | t = select "xdr_write_timeout" as "cnt" from NAMESPACE.STATISTICS; |
|
1950 | 1959 | "Namespace partition-tree-sprigs check for Community edition", |
1951 | 1960 | e); |
1952 | 1961 |
|
| 1962 | +# Should be further restricted to < 7.0; |
1953 | 1963 | SET CONSTRAINT VERSION >= 4.2; |
1954 | 1964 |
|
1955 | 1965 | cs = select "cluster_size" from SERVICE.STATISTICS; |
|
0 commit comments