Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-494

Weight calculation favors servers without connections

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.3.0
    • Component/s: readconnroute
    • Labels:
      None

      Description

      If two servers are configured, one with a weight of 100 and the other with a weight of 1, and 50 connections are made to a service using readconnroute one of the connections will always go to the server with the lower weight. This is caused by the use of the actual amount of connections divided by the server weight as the basis of the server selection process.

      This behavior does not correctly represent the documented behavior and instead of the amount of connections, the amount of connections + 1 should be used for the calculation.

        Attachments

          Activity

            People

            • Assignee:
              markus makela markus makela
              Reporter:
              markus makela markus makela
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: