FlowSphera 2.11.1 release notes
Two fixes for servers that often lose power: broken database parts cleaned up in full, and a start that waits for the network
FlowSphera 2.11.1 brings two fixes for servers that often lose power.
Broken database parts no longer pile up
When the power goes out, the newest data ClickHouse was writing may never reach the disk. At the next start ClickHouse sets those parts aside and goes on; FlowSphera sums the affected statistics again from the records and tells you in an event Database recovered after an unclean stop. The parts set aside were meant to be removed later, but they were removed only 500 a day, only after 30 days, and not when ClickHouse could not read the part's name. On a server with frequent power cuts they piled up into tens of thousands of small folders.
From 2.11.1 every broken part set aside more than 7 days ago is removed, thousands a second. A part that cannot be removed is named in the collector's log and does not hold up the others. Your data is not touched: these parts are the unreadable leftovers ClickHouse already set aside.
Starting before the router
After a power cut the router is often the last to come up. A FlowSphera bound to a named interface (FT_BIND,
FT_WEB_BIND) found that interface still without an address, stopped, and was started again every few seconds until
the address came. Now it waits for the address up to 5 minutes, says so once in its log and starts listening as
soon as the address is there.
Upgrade
Click Upgrade now in Settings → General → Updates, or run sudo flowsphera upgrade. Settings and data are kept.