Comments (2)
I have created server with different HG id
+--------------+-------------+------+-----------+--------+--------+-------------+-----------------+---------------------+---------+----------------+---------+
| hostgroup_id | hostname | port | gtid_port | status | weight | compression | max_connections | max_replication_lag | use_ssl | max_latency_ms | comment |
+--------------+-------------+------+-----------+--------+--------+-------------+-----------------+---------------------+---------+----------------+---------+
| 1 | 10.204.2.x1 | 3306 | 0 | ONLINE | 1000 | 0 | 1000 | 0 | 1 | 0 | |
| 2 | 10.204.2.x2 | 3306 | 0 | ONLINE | 1000 | 0 | 1000 | 0 | 1 | 0 | |
| 2 | 10.204.2.x1 | 3306 | 0 | ONLINE | 1000 | 0 | 1000 | 0 | 1 | 0 | |
| 3 | 10.204.2.x2 | 3306 | 0 | ONLINE | 1000 | 0 | 1000 | 0 | 0 | 0 | |
+--------------+-------------+------+-----------+--------+--------+-------------+-----------------+---------------------+---------+----------------+---------+
below are my rules
+---------+--------+--------------------+----------------------+-----------------------+-------+
| rule_id | active | match_digest | match_pattern | destination_hostgroup | apply |
+---------+--------+--------------------+----------------------+-----------------------+-------+
| 1 | 1 | NULL | ^SELECT.*FOR UPDATE$ | 1 | 1 |
| 2 | 1 | NULL | ^SELECT | 2 | 1 |
| 3 | 1 | 0x434117179c586021 | ^WEBORDER | 3 | 1 |
| 4 | 1 | 0x9c3f63187be28ede | NULL | 3 | 1 |
+---------+--------+--------------------+----------------------+-----------------------+-------+
with above configuration my heavy read (0x9c3f63187be28ede ) query not directly pointing to read server.
please healp
from proxysql.
Hi @NandrajM,
this issue doesn't follow the issue template, and it's a support question rather than a issue. As the issue template says:
Support questions will not be answered here. For community support, use the Google forum: https://groups.google.com/forum/#!forum/proxysql
This is properly documented. I will be replying this time, but future issues like this are likely to just be closed. You are using match_digest
which is for matching a pattern query digest (text) if you want to match the hex (0x9c3f63187be28ede
) you need to use digest
. Using one of this fields is enough (digest
, match_pattern
and match_digest
). You don't need to use several fields. For more info:
- https://proxysql.com/blog/configure-read-write-split/
- https://proxysql.com/documentation/main-runtime/#mysql_query_rules
I'm closing the issue now. Thanks.
from proxysql.
Related Issues (20)
- ProxySQL errorlog not getting picked up from proxysql.cnf in docker HOT 5
- crashes during cluster shutdown in CI testing HOT 1
- Support some form of partial cleanup of `stats_mysql_query_digest`
- Shunned writer node not becoming online HOT 8
- Intermittent "Access denied" errors HOT 1
- Different server_version per port
- Wrong column order in table mysql_servers HOT 3
- aarch64 / i686 builds fail of v2.6.2 (narrowing conversion of timeout in clickhouse) HOT 2
- Can not set servers_defaults field of mysql_hostgroup_attributes table from config file HOT 4
- Clients seeing "Lost connection to MySQL server during query" errors HOT 1
- Improve read consistency with database replicas
- config in table mysql_group_replication_hostgroups be deleted when the service is restarted HOT 6
- Documentation error: mysql-default_query_timeout default is not correctly documented HOT 1
- The same query with and without a comment results in cache misses HOT 2
- ProxySQL HOT 1
- How to Work With ProxySQL Using Single Production User HOT 1
- Possible memory leak after calling "SAVE MYSQL USERS FROM RUNTIME" HOT 1
- Backend MySQL Server Connect Error ([ERROR] Failed to mysql_real_connect()) HOT 1
- Support "SET STATEMENT" syntax HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxysql.