-
Notifications
You must be signed in to change notification settings - Fork 26
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
Adding an ability to set a certain check_type when setting up MySQL replication host groups #20
Conversation
Codecov Report
@@ Coverage Diff @@
## main #20 +/- ##
==========================================
+ Coverage 70.02% 70.05% +0.03%
==========================================
Files 8 8
Lines 994 995 +1
Branches 164 164
==========================================
+ Hits 696 697 +1
Misses 222 222
Partials 76 76
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know proxysql so I cannot say much about your change except some formal stuff :) You definitely need a changelog fragment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zentavr thanks for the contribution!
In addition to what @felixfontein mentioned, could you please cover the option in CI tests, see https://github.com/ansible-collections/community.proxysql/tree/main/tests/integration/targets
@zentavr could you please remove the |
…e code (Felix Fontein code review request)
@felixfontein - I had removed the mentions. |
@zentavr thanks! :) |
…aying attention at factor that we specifying different check_type per replication groups.
@Andersson007 - added CI tests |
@zentavr thanks for the tests!
|
@Andersson007 here I had found that As for your second question: As I understood you correctly, you do want to have tests with |
The tests of the module rely on 2.0.12 version of ProxySQL which has |
Not really, i meant running in check mode, i.e., passing
So, will these changes break users playbooks if they use ProxySQL versions of lower than 2.0.2?
|
any updates on this? |
@Andersson007 Currently very busy with my regular work, so I had no chance to check up your comments. |
@Andersson007 I’m ok with your proposal. |
changes: | ||
minor_changes: | ||
- Adds an ability to specify which ProxySQL check type to use when detecting | ||
a MySQL standby node in proxysql_replication_hostgroups module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do NOT modify changelogs/changelog.yaml
directly. Create a changelog fragment.
Hello @Andersson007. We do not use query_rules so heavy (we've implemented ProxySQL few month ago into our infrastructure), but the proposed features sound very interesting. |
Hello @zentavr , cool:) Thanks for the feedback! |
I'll take a look. |
Yeah, it's the same issue. The |
@markuman actually if they won't specify the check_type - nothing should happen. |
It don't looks like, because |
@markuman I see. What could be the workaround? from one side we could try to stick to the very default functionality and be compatible with old and new versions of ProxySQL. another solution could be a ProxySQL version checking before we start any SQL questions and being silent or throwing the exception of the user specified the parameter which is not supported by the ProxySQL version. |
Checking version sounds like a good solution. We do it in community.mysql:
|
modify the sql query for every version results in many if/else statements.The code gets confusing. That was what I was trying in the past. From today's perspective I would try to leave the "very default functionality" as it is. |
Implemented via #69 |
thanks you all folks! |
SUMMARY
Adds a feature described at #19
ISSUE TYPE
COMPONENT NAME
proxysql_replication_hostgroup