[Bug] Some cluster settings will not save changes.
Describe the bug
The following settings will not retain any changes.
- Predictive Load Balancing
- Score Weights
- CPU Baseline
When I attempt to change the settings they will visually change and "Settings saved" will pop up in the corner. Within a few seconds the setting will revert back to it's original state.
I seem to be able to change all of the other settings on this page.
Steps to Reproduce
- Click on Cluster.
- Click on Settings.
- Attempt to enable Predictive Load Balancing or change the CPU Baseline.
- Wait several seconds.
Expected behavior
Setting change is retained.
Environment
- PegaProx Version: 0.9.8.2
- Installation Method: Install script
- OS: Debian 13
- Browser: Firefox 150
- Behind Reverse Proxy? No
- UI? Modern
Logs
I couldn't find any log messages that were relevant.
Screenshots
Checklist
- [X] I have searched existing issues to make sure this is not a duplicate
- [X] I am using the latest version of PegaProx
Hey @SeeJayEmm — confirmed root-cause. Those three (predictive_balancing, score weights, cpu_baseline) were already API-settable on the in-memory PegaProxConfig, but the save_config dict that round-trips into SQLite never got the corresponding entries, and the schema didn't have the columns either. So the value got accepted, "Settings saved" toast fired, then on the next config reload it was simply not there. Other fields on that page work because they were in the dict from day one.
Plumbing fix is queued — save_config dict, ALTER TABLE migrations for the new columns, save_cluster INSERT, both read-back paths (get_all_clusters / get_cluster), and PegaProxConfig.init. Should land in the next beta.
PegaProx is donation-funded, https://opencollective.com/pegaprox if you'd like to chip in.
— MK
Hey @SeeJayEmm, this one was already in our hands — the load-balancer settings (predictive_balancing, score weights, cpu_baseline) were being applied to the in-memory cluster config object but the save_config() dict was never extended to include those keys, so they reverted on the next reload. Fix landed in v0.9.9 (released a couple days ago) — see pegaprox/core/config.py for the relevant lines.
Easiest path: upgrade via Settings → Updates (or bash update.sh if you installed via the script). Should hold after that.
Closing as fixed — reopen if it still misbehaves on 0.9.9 with logs from /var/log/pegaprox/ matching the timestamp of the failed save. While I'm here: project lives off donations, https://opencollective.com/pegaprox if it ever spares you a debug session.
— Marcus