26#ifndef MYSQLROUTER_ROUTING_INCLUDED
27#define MYSQLROUTER_ROUTING_INCLUDED
332 const std::string &
name);
Type
supported protocols
Definition: base_protocol.h:32
static constexpr int kDefaultConnectTimeout
Definition: mysql_session.h:155
constexpr std::string_view kDefaultServerSslCipherBootstrap
Default server SSL cipher written to the configuration file on bootstrap.
Definition: routing.h:180
constexpr unsigned int kDefaultSslSessionCacheSize
Default SSL session cache size.
Definition: routing.h:115
constexpr std::string_view kDefaultServerSslModeBootstrap
Default client SSL mode written to the configuration file on bootstrap.
Definition: routing.h:170
constexpr std::string_view kDefaultClientSslModeBootstrap
Default client SSL mode written to the configuration file on bootstrap.
Definition: routing.h:145
uint16_t get_default_port(RoutingBootstrapSectionType section_type)
Definition: routing.cc:149
constexpr std::string_view kDefaultXRwSectionName
Definition: routing.h:241
constexpr std::string_view kDefaultClassicRwSectionName
Definition: routing.h:239
constexpr std::string_view kDefaultServerSslCrlFileBootstrap
Default server SSL CRL file written to the configuration file on bootstrap.
Definition: routing.h:200
RoutingStrategy get_routing_strategy(const std::string &value)
Returns RoutingStrategy for its literal representation.
Definition: routing.cc:87
constexpr std::string_view kDefaultServerSslCurvesBootstrap
Default server SSL curves written to the configuration file on bootstrap.
Definition: routing.h:185
constexpr std::string_view kDefaultServerSslMode
Default server SSL mode used when none is configured.
Definition: routing.h:165
constexpr std::string_view kDefaultBindAddress
Default bind address used when no bind address is configured.
Definition: routing.h:72
RoutingStrategy get_default_routing_strategy(RoutingBootstrapSectionType section_type)
Definition: routing.cc:166
AccessMode get_access_mode(const std::string &value)
Returns AccessMode for its literal representation.
Definition: routing.cc:60
constexpr std::string_view kDefaultClientSslCurvesBootstrap
Default client SSL curves written to the configuration file on bootstrap.
Definition: routing.h:155
constexpr std::chrono::seconds kDefaultWaitForMyWritesTimeout
Default Wait For My Writes timeout.
Definition: routing.h:135
constexpr std::string_view kDefaultRwSplitSectionName
Definition: routing.h:243
constexpr std::string_view kDefaultServerSslCaPathBootstrap
Default server SSL CA path written to the configuration file on bootstrap.
Definition: routing.h:195
RoutingBootstrapSectionType
Definition: routing.h:223
constexpr unsigned int kDefaultNetBufferLength
Default net buffer length.
Definition: routing.h:85
AccessMode get_default_access_mode(RoutingBootstrapSectionType section_type)
Definition: routing.cc:215
std::string get_routing_strategy_names(bool metadata_cache)
Get comma separated list of all routing stategy names for a given routing type (metadata cache or sta...
Definition: routing.cc:94
constexpr bool kDefaultConnectionSharing
Default connection sharing status.
Definition: routing.h:210
constexpr std::chrono::seconds kDefaultConnectRetryTimeout
Default Connect Retry timeout.
Definition: routing.h:125
constexpr bool kDefaultSslSessionCacheMode
Default SSL session cache mode.
Definition: routing.h:110
std::string get_access_mode_name(AccessMode access_mode) noexcept
Returns literal name of given access mode.
Definition: routing.cc:72
AccessMode
Definition: routing.h:259
RoutingStrategy
Routing strategies supported by Routing plugin.
Definition: routing.h:265
@ kRoundRobinWithFallback
constexpr std::chrono::seconds kDefaultSslSessionCacheTimeout
Default SSL session cache timeout.
Definition: routing.h:120
constexpr std::string_view kDefaultClassicRoSectionName
Definition: routing.h:240
constexpr std::chrono::milliseconds kDefaultConnectionSharingDelay
delay in milliseconds before an idling connection may be moved to the pool when connection sharing is...
Definition: routing.h:99
constexpr uint64_t kDefaultMaxTotalConnections
Default maximum total connections handled by all the routing endpoints.
Definition: routing.h:215
constexpr bool kDefaultWaitForMyWrites
Default Wait For My Writes timeout.
Definition: routing.h:130
constexpr uint16_t kDefaultPortClassicRw
Definition: routing.h:231
constexpr bool kDefaultRequireEnforce
Default for the configuration option determining if the Router enforces the router_require attribute ...
Definition: routing.h:221
RoutingBootstrapSectionType get_section_type_from_routing_name(const std::string &name)
Definition: routing.cc:122
constexpr std::chrono::seconds kDefaultClientConnectTimeout
Timeout waiting for handshake response from client.
Definition: routing.h:93
constexpr std::string_view kDefaultBindAddressBootstrap
Default bind address written to the config file during bootstrap.
Definition: routing.h:77
constexpr std::string_view kDefaultClientSslCipherBootstrap
Default client SSL cipher written to the configuration file on bootstrap.
Definition: routing.h:150
constexpr std::string_view kDefaultClientSslDhParamsBootstrap
Default client SSL DH params written to the configuration file on bootstrap.
Definition: routing.h:160
constexpr uint16_t kDefaultPortRwSplit
Definition: routing.h:235
constexpr std::string_view kDefaultClientSslMode
Default client SSL mode used when none is configured.
Definition: routing.h:140
constexpr int kDefaultMaxConnections
Max number of active routes for this routing instance.
Definition: routing.h:51
RoutingMode
Modes supported by Routing plugin.
Definition: routing.h:246
constexpr int kDefaultWaitTimeout
Timeout for idling clients (in seconds).
Definition: routing.h:45
bool get_default_router_require_enforce(RoutingBootstrapSectionType section_type)
Definition: routing.cc:227
constexpr std::string_view kDefaultServerSslVerify
Default server SSL verify.
Definition: routing.h:175
constexpr std::chrono::seconds kDefaultDestinationConnectionTimeout
Timeout connecting to destination (in seconds).
Definition: routing.h:58
constexpr std::string_view kDefaultServerSslCaBootstrap
Default server SSL CA written to the configuration file on bootstrap.
Definition: routing.h:190
constexpr uint16_t kDefaultPortClassicRo
Definition: routing.h:232
constexpr std::string_view kDefaultXRoSectionName
Definition: routing.h:242
constexpr std::string_view kDefaultNamedSocket
Definition: routing.h:237
std::string get_routing_strategy_name(RoutingStrategy routing_strategy) noexcept
Returns literal name of given routing strategy.
Definition: routing.cc:114
std::string get_destinations_role(RoutingBootstrapSectionType section_type)
Definition: routing.cc:182
constexpr std::string_view kDefaultServerSslCrlPathBootstrap
Default server SSL CRL path written to the configuration file on bootstrap.
Definition: routing.h:205
BaseProtocol::Type get_default_protocol(RoutingBootstrapSectionType section_type)
Definition: routing.cc:139
bool get_default_connection_sharing(RoutingBootstrapSectionType section_type)
Definition: routing.cc:223
std::string get_access_mode_names()
Get comma separated list of all access mode names.
Definition: routing.cc:66
constexpr std::chrono::seconds kDefaultUnreachableDestinationRefreshInterval
The number of seconds that MySQL Router waits between checking for reachability of an unreachable des...
Definition: routing.h:105
constexpr uint16_t kDefaultPortXRo
Definition: routing.h:234
constexpr uint16_t kDefaultPortXRw
Definition: routing.h:233
std::string get_default_routing_name(RoutingBootstrapSectionType section_type)
Definition: routing.cc:198
constexpr unsigned long long kDefaultMaxConnectErrors
Maximum connect or handshake errors per host.
Definition: routing.h:67
case opt name
Definition: sslopt-case.h:29
double seconds()
Definition: task.cc:310