feat(supercomputer,experimental): expand thermal, RAM, disk, paradox APIs
Thermal hottest peer and sample clear, RAM pool reset, disk stripe missing shards, paradox clock/merge helpers, mycelium top donors. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -111,6 +111,20 @@ class HyperP2PDiskStripe extends EventEmitter {
|
||||
return stripe.shards.size / stripe.pathCount
|
||||
}
|
||||
|
||||
dropStripe (stripeId) {
|
||||
return this._stripes.delete(String(stripeId))
|
||||
}
|
||||
|
||||
missingShards (stripeId) {
|
||||
const stripe = this._stripes.get(stripeId)
|
||||
if (!stripe) return []
|
||||
const out = []
|
||||
for (let i = 0; i < stripe.pathCount; i++) {
|
||||
if (!stripe.shards.has(i)) out.push(i)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
getStats () {
|
||||
return clusterStats(this._stats, PROTOCOL, {
|
||||
open: this._stripes.size,
|
||||
|
||||
Reference in New Issue
Block a user