bestResponseTime And Loadbalancestrategy in MySQL Connector/J (Doc ID 1394313.1)

Last updated on MARCH 14, 2017

Applies to:

MySQL Connectors - Version 5.1 and later
Information in this document applies to any platform.

Goal

The documentation describes "bestResponseTime" in loadBalanceStrategy as "the driver will route the request to the host that had the best response time for the previous transaction".

The question is: how to measure this response time?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms