[PR #5791] IP-Tag: Optimizations / Guide / Manual Execution #6095

Closed
opened 2025-11-20 07:09:04 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/community-scripts/ProxmoxVE/pull/5791

State: closed
Merged: Yes


✍️ Description

  • Improved performance defaults in iptag.conf:
    • Reduced MAX_PARALLEL_LXC_CHECKS and LXC_BATCH_SIZE
    • Increased TTLs for LXC/VM IP/status cache
  • Systemd service optimization:
    • Changed Restart=alwaysRestart=on-failure
    • Increased RestartSec=110 to avoid restart loops
  • Main loop now persistent:
    • Added while true loop in main() to avoid immediate exit
  • Manual execution support:
    • Added /usr/local/bin/iptag-run
      • Allows users to execute IP-Tag once manually without running the background service

Link: #5701

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.
**Original Pull Request:** https://github.com/community-scripts/ProxmoxVE/pull/5791 **State:** closed **Merged:** Yes --- ## ✍️ Description - **Improved performance defaults** in `iptag.conf`: - Reduced `MAX_PARALLEL_LXC_CHECKS` and `LXC_BATCH_SIZE` - Increased TTLs for LXC/VM IP/status cache - **Systemd service optimization**: - Changed `Restart=always` → `Restart=on-failure` - Increased `RestartSec=1` → `10` to avoid restart loops - **Main loop now persistent**: - Added `while true` loop in `main()` to avoid immediate exit - **Manual execution support**: - Added `/usr/local/bin/iptag-run` - Allows users to execute IP-Tag once manually without running the background service ## 🔗 Related PR / Issue Link: #5701 ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [x] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs.
saavagebueno added the pull-request label 2025-11-20 07:09:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#6095