Reduce metric writes and preserve scheduler history
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ fi
|
||||
|
||||
mkdir -p "$CONFIG" "$ROOT_PREFIX/run/urbm" "$ROOT_PREFIX/var/lib/urbm"
|
||||
if [ -d "$OLD_CONFIG" ]; then
|
||||
for item in config.json runs.json backup-metrics.json secrets; do
|
||||
for item in config.json runs.json backup-metrics.json backup-metrics.jsonl secrets; do
|
||||
if [ -e "$OLD_CONFIG/$item" ] && [ ! -e "$CONFIG/$item" ]; then
|
||||
cp -a "$OLD_CONFIG/$item" "$CONFIG/$item"
|
||||
fi
|
||||
|
||||
+6
-1
@@ -2,13 +2,18 @@
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "urbm">
|
||||
<!ENTITY author "Michael Roll">
|
||||
<!ENTITY version "2026.07.13.r010">
|
||||
<!ENTITY version "2026.07.13.r011">
|
||||
<!ENTITY pluginURL "https://git.casaderoll.de/michael/URBM/raw/branch/main/dist/urbm.plg">
|
||||
<!ENTITY packageURL "https://git.casaderoll.de/michael/URBM/raw/branch/main/dist/urbm-&version;-x86_64-1.txz">
|
||||
<!ENTITY packageSHA256 "REPLACE_DURING_RELEASE">
|
||||
]>
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="7.0.0" support="https://git.casaderoll.de/michael/URBM/issues" icon="urbm.png">
|
||||
<CHANGES>
|
||||
### 2026.07.13.r011
|
||||
- Use durable backup measurements when deciding whether a scheduled job needs a catch-up run, even after activity history was cleared.
|
||||
- Append one compact JSON-lines record per completed backup instead of rewriting the full metric history for every queue state change.
|
||||
- Migrate the existing `backup-metrics.json` automatically to `backup-metrics.jsonl` and compact in batches after the file exceeds 5,500 records while retaining the newest 5,000.
|
||||
|
||||
### 2026.07.13.r010
|
||||
- Return an empty JSON array instead of `null` when no dashboard backup measurements exist yet.
|
||||
- Make the WebGUI tolerate empty or invalid metric responses so the rest of the interface remains available.
|
||||
|
||||
Reference in New Issue
Block a user