Raise timeouts during connection initialization

Description

We currently have:

While connect-timeout seems fine, init-query-timeout is a bit aggressive and doesn't allow clients to connect when connecting over long distances, e.g. remote clients connecting to an Astra cluster. Since this timeout is only applicable when opening new connections, I'm not sure that being so aggressive is necessary. I suggest raising init-query-timeout to a few seconds. But as a consequence, it might be a good thing too to raise connect-timeout.

Environment

None

Pull Requests

None

Activity

Show:

Alex Dutra August 20, 2020 at 11:13 AM
Edited

Note: this unfortunately does not solve people’s problems when connecting to Astra using Spring Boot, since Spring Boot forcibly overrides a few timeouts. So Spring Boot users still need to raise the timeouts manually:

Tomasz Lelek July 22, 2020 at 10:03 AM

regarding IT tests, we are already overriding the init-query-timeout with higher value, see /integration-tests/resources/application.conf:

Alex Dutra July 21, 2020 at 9:58 AM

Maybe we could detect when the connection is made to the Astra cluster and increase defaults in that case? wdyt?

But what if a user changes the timeouts in their application.conf file or programmatically? I think it is easier to have a common timeout declared in reference.conf.

Tomasz Lelek July 20, 2020 at 9:48 AM

Maybe we could detect when the connection is made to the Astra cluster and increase defaults in that case? wdyt?

Erik Merkle July 8, 2020 at 6:01 PM

Just a small note that for testing purposes, we can always override the defaults with lower values to avoid lengthening the time the tests take to run, at least for integration tests that are designed to verify timeouts.

Fixed

Assignee

Reporter

Fix versions

Pull Request

Reviewer

Priority

Created July 8, 2020 at 4:22 PM
Updated August 20, 2020 at 11:13 AM
Resolved July 24, 2020 at 6:56 PM