Giter Club home page Giter Club logo

Comments (2)

NandrajM avatar NandrajM commented on June 24, 2024

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.

JavierJF avatar JavierJF commented on June 24, 2024

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:

I'm closing the issue now. Thanks.

from proxysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.