Skip to content

Master remote provider

Pamphile Roy requested to merge feature-batcave into develop

Types of changes

What types of changes does your code introduce? Check all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue),
  • New feature (non-breaking change which adds functionality),
  • Breaking change (fix or feature that would cause existing functionality to change),
  • Documentation.

All following must be checked:

  • I have checked there is no similar merge request on the track,
  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Description

Allow the definition of multiple hosts in settings:

"hosts": [
    {
        "hostname": "localhost",
        "remote_root": "TTA",
        "weight": 0.8
    },
    {
        "hostname": "localhost",
        "remote_root": "TTB",
        "weight": 0.4
    }
]

Option weight allows to define load sharing between hosts. This option is optional and normalized so that sum of weights can be greater than 1 to allow user to have its own convention.

Merge request reports