Commit 46cc30d
committed
Per-container Neo4j probing + ServerONLY PDB entry (v0.9.0)
Mirrors the rancher: block pattern from v0.6.0 (caches) and
v0.8.0 (apps) onto Neo4jServiceSpec. Each cluster member gets its
own SHOW DATABASES + count probe directly at
http://<primaryIpAddress>:7474 rather than going through the LB.
YAML:
- PDB Neo4j (pdb.virtualflybrain.org, 1s39, scale 3) gains a
rancher: block.
- New "PDB Neo4j -- ServerONLY (1s262)" entry (scale 2) for the
server-only PDB replica.
- KB Neo4j stays LB-fronted (single instance).
Storage: new container column on neo4j_history with automatic
migration (same pattern as cache_history in v0.6.0 and
app_history in v0.8.0). neo4j_series aggregates via
MAX(node_count) across containers per ts.
Page card: cluster summary at the top with ok-count, max node
count and a "mixed" badge when members disagree, plus a per-
container table. Falls back to LB probe transparently when the
Rancher API call fails.
/api/neo4j response reshapes to summary + containers[].
Verified end-to-end: 3 PDB + 2 ServerONLY containers enumerated
and probed in parallel; KB still queries cleanly via the LB
(1,621,245 nodes online); migration of legacy neo4j_history adds
the container column without data loss.1 parent 94d1cc1 commit 46cc30d
4 files changed
Lines changed: 296 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
5 | 23 | | |
6 | 24 | | |
7 | 25 | | |
| |||
203 | 221 | | |
204 | 222 | | |
205 | 223 | | |
| 224 | + | |
206 | 225 | | |
207 | 226 | | |
208 | 227 | | |
| |||
0 commit comments