Skip to content

Remove the LazyTimeseriesClient in Nexus - #6925

Merged
bnaecker merged 2 commits into
mainfrom
thats-not-how-you-pool
Oct 24, 2024
Merged

bnaecker merged 2 commits into
mainfrom
thats-not-how-you-pool

Conversation

@bnaecker

Copy link
Copy Markdown
Collaborator

The LazyTimeseriesClient is a vestigial type we've used to connect to ClickHouse on-demand. This is used in Nexus, which may be created and start handling requests that require talking to ClickHouse before the server may be up or reachable.

That's obviated by the qorb connection pooling we've added in recent commits. But since it's still around, that means we create connection pools each time Nexus handles a timeseries-related request. That leads to exorbitant numbers of connections, almost all of which timeout, but which causes ClickHouse to be unable to handle new connections. This closes #6923.

The `LazyTimeseriesClient` is a vestigial type we've used to connect to
ClickHouse on-demand. This is used in Nexus, which may be created and
start handling requests that require talking to ClickHouse before the
server may be up or reachable.

That's obviated by the `qorb` connection pooling we've added in recent
commits. But since it's still around, that means we create connection
pools _each time_ Nexus handles a timeseries-related request. That leads
to exorbitant numbers of connections, almost all of which timeout, but
which causes ClickHouse to be unable to handle new connections. This
closes #6923.
@bnaecker
bnaecker requested a review from smklein October 24, 2024 00:07
@bnaecker
bnaecker enabled auto-merge (squash) October 24, 2024 00:37
@bnaecker
bnaecker merged commit 4c89247 into main Oct 24, 2024
@bnaecker
bnaecker deleted the thats-not-how-you-pool branch October 24, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClickHouse on Dogfood appears unable to spawn threads for connections

2 participants