-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal queries should use paging (ControlConnection) #331
Comments
|
They should use paging. Sorry for the confusion. |
@roydahan - looks important to me. Can we asses complexity/risk? |
I just tried to reproduce this with cqlsh that I had installed on my machine ( For example, when cqlsh connects to the node, I see that the
...and I can see that two unpaged queries pop up: However, I do see that this metric starts with a non-zero value (~121) right after booting up the node. Moreover, this metric grows by itself every 10 seconds. I either have some unexplained source of queries, or internal queries can increase this metric after all. It looks like the fault lies on both sides and we might have closed the Scylla issue premeturely... |
now that I took a look again on the title of the PR... it's "Metadata/Schema paginated queries" the control connection, learning about topology, probably doesn't do pagination the issue we had back then was with setup that has lots of keyspaces and tables (more than 1000), and it was slowing or might fail the initial connections. so setup with hundreds of nodes, might be a bit problematic with pagination |
A different path we pursue in the Java driver is scylladb/java-driver#312 - we add USING TIMEOUT to the schema fetch, to be more patient than either the default client or server potentially low timeouts, when pulling the schema, which may be large. |
Non-paged reads are an anti-pattern and we recommend users not to use them. Scylla has metrics that counts them and in scylla-monitoring we have a dashboard that displays it.
In investigation of scylladb/scylladb#5983 we observed that the python driver issues non-paged reads to fetch schema after noticing schema change. When there are lots of clients connected at once this can lead to a large increase of the non-paged reads metric which can be confusing for the user, and confusing+concerning to the core developers - in the aforementioned issue we thought that Scylla itself was doing non-paged reads.
Internal queries should be change to use paging in order to reduce the confusion.
The text was updated successfully, but these errors were encountered: