change: Change the default behaviour of the daemon mode to active.

Fixes: #176
This commit is contained in:
gyptazy
2025-04-07 15:25:10 +02:00
parent f831d4044f
commit f08b823cc4
4 changed files with 5 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
changed:
- Change the default behaviour of the daemon mode to active. [#176]

View File

@@ -257,7 +257,7 @@ The following options can be set in the configuration file `proxlb.yaml`:
| | method | | memory | `Str` | The balancing method that should be used. (default: memory | choices: memory, cpu, disk)|
| | mode | | used | `Str` | The balancing mode that should be used. (default: used | choices: used, assigned)|
| `service` | | | | | |
| | daemon | | False | `Bool` | If daemon mode should be activated (default: False)|
| | daemon | | True | `Bool` | If daemon mode should be activated (default: True)|
| | `schedule` | | | `Dict` | Schedule config block for rebalancing. |
| | | interval | 12 | `Int` | How often rebalancing should occur in daemon mode (default: 12)|
| | | format | hours | `Str` | Sets the time format. (Allowed: `minutes`, `hours` | default: `hours`)|

View File

@@ -26,7 +26,7 @@ balancing:
mode: assigned
service:
daemon: False
daemon: True
schedule:
interval: 12
format: hours

View File

@@ -116,7 +116,7 @@ class Helper:
None
"""
logger.debug("Starting: get_daemon_mode.")
if proxlb_config.get("service", {}).get("daemon", False):
if proxlb_config.get("service", {}).get("daemon", True):
# Validate schedule format which changed in v1.1.1
if type(proxlb_config["service"].get("schedule", None)) != dict: