Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance degradation in resource_api version #1214

Open
2fa opened this issue Apr 9, 2024 · 0 comments
Open

Performance degradation in resource_api version #1214

2fa opened this issue Apr 9, 2024 · 0 comments

Comments

@2fa
Copy link
Contributor

2fa commented Apr 9, 2024

Describe the Bug

After testing latest version of firewall module i've noticed that puppet applies catalog significantly longer compared to the previous version.

After a bit of strace it looks like new version makes several iptables-save calls every time it applies each rule.

Old version
~# grep -c "execve(\"/usr/sbin/iptables-save" strace1.out
60

New version
~# grep -c "execve(\"/usr/sbin/iptables-save" strace2.out
296

For some machines catalog application time increased more than 2x (from 50 to 120 seconds, for example).

Expected Behavior

Firewall resource should not make multiple iptables-save calls for each rule.

Environment

  • Version [3.1.0 and 8.0.1]
  • Platform [Ubuntu 20.04]

Additional Context

It is related to #1100

@2fa 2fa mentioned this issue Sep 10, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants