Skip to content

Behavior of Server connection string option #226

Description

@bgrainger

What strategy should the connector use when the Server connection string option contains multiple comma-delimited host names?

  • Ordered: always try the first, fall back to the second, then the third
  • Random: pick one at random
  • Round-robin: use a global synchronized index (that wraps around) and cycle through them in order

The behaviour doesn't seem to be specified in the MySQL documentation, nor described in our docs. I believe we currently do "Ordered". Do we want to provide a guarantee; if so, which behavior is most appropriate?

(I haven't checked the Connector/NET source code to see what it might have done back when it supported comma-delimited host names.)

Related to #225

CC @caleblloyd

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions