Skip to content
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

connection is locked to hostgroup (writer) but trying to reach hostgroup (reader) #4641

Open
suyestyle opened this issue Sep 10, 2024 · 3 comments

Comments

@suyestyle
Copy link

suyestyle commented Sep 10, 2024

ProxySQL version 2.3.2-10-g8cd66cf, codename Truls

10 is a writer group, 20 is a reader group

I encountered a problem when executing a select query statement. The following error was reported:

ProxySQL Error: connection is locked to hostgroup 10 but trying to reach hostgroup 20
@renecannao
Copy link
Contributor

Hi @suyestyle .

As the error implies, proxysql is configured to send a query to hostgroup 20, while the client connection is locked on hostgroup 10.

This is a configuration problem.
The configuration missing in the issue itself, but I would speculate you copied a pair of generic query rules not suitable for real traffic / production

@suyestyle
Copy link
Author

How should I solve this problem?

I need to tell you what configuration?

@renecannao
Copy link
Contributor

Most probably, it is a problem that you created while configuring ProxySQL .
As mentioned earlier, I would speculate you copied a pair of generic query rules not suitable for real traffic / production.

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

No branches or pull requests

2 participants