public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH firewall 0/3] fix #1965: cache the cluster firewall config
@ 2026-11-04 14:19 Arthur Bied-Charreton
  2026-11-04 14:19 ` [PATCH pve-firewall 1/3] firewall: run make tidy Arthur Bied-Charreton
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Arthur Bied-Charreton @ 2026-11-04 14:19 UTC (permalink / raw)
  To: pve-devel

The cluster firewall config is is not currently cached, so it is re-
parsed on every load. This can use a noticeable amount of CPU if the
firewall configuration contains large ipsets, for example.

These changes are based on an old series by Stefan Hrdlicka [0]. The
only major diff compared to that series is that the in-memory firewall
config now includes SDN ipsets. Those are not stored in cluster.fw, so
changes to those do not create new versions for it and therefore need to
be handled separately, see commit messages for details.

[0] https://lists.proxmox.com/pipermail/pve-devel/2022-November/055051.html


pve-firewall:

Arthur Bied-Charreton (3):
  firewall: run make tidy
  firewall: parser: factor out error logging
  fix #1965: firewall: cache cluster config

 src/PVE/API2/Firewall/Helpers.pm |   3 +-
 src/PVE/Firewall.pm              | 124 ++++++++++++++++++++++---------
 2 files changed, 89 insertions(+), 38 deletions(-)


Summary over all repositories:
  2 files changed, 89 insertions(+), 38 deletions(-)

-- 
Generated by murpp 0.12.1




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-05  8:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 14:19 [PATCH firewall 0/3] fix #1965: cache the cluster firewall config Arthur Bied-Charreton
2026-11-04 14:19 ` [PATCH pve-firewall 1/3] firewall: run make tidy Arthur Bied-Charreton
2026-11-04 14:19 ` [PATCH pve-firewall 2/3] firewall: parser: factor out error logging Arthur Bied-Charreton
2026-11-04 14:19 ` [PATCH pve-firewall 3/3] fix #1965: firewall: cache cluster config Arthur Bied-Charreton
2026-11-04 16:15   ` Stefan Hanreich
2026-11-05  8:19     ` Arthur Bied-Charreton
2026-11-04 16:36   ` Stefan Hanreich
2026-11-05  8:15     ` Arthur Bied-Charreton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal