Re: [pve-devel] [RFC pve-storage 7/7] stats: api: cache storage plugin status

2023-08-22 Thread Lukas Wagner
On 8/21/23 15:44, Lukas Wagner wrote: +my $status_cache = PVE::RS::Cache->pvestatd_cache(); Urgh, just noticed that I seemingly have forgotten to commit a refactoring step in `pve-storage`. Should be `Proxmox::RS::SharedCache->new("/run/pvestatd-cache")` Everything else should be the

[pve-devel] [RFC pve-storage 7/7] stats: api: cache storage plugin status

2023-08-21 Thread Lukas Wagner
Cache storage plugin status so that pvestatd and API calls can use the cached results, without having to query all storage plugins again. Signed-off-by: Lukas Wagner --- src/PVE/API2/Storage/Config.pm | 10 + src/PVE/Storage.pm | 40 -- 2 files