-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Prefer replicas that have innodb buffer pool populated in PRS #16374
Prefer replicas that have innodb buffer pool populated in PRS #16374
Conversation
… check for reachability of tablets Signed-off-by: Manan Gupta <manan@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
5f46cc4
to
418b210
Compare
I was looking into the failure in I ran MariaDB and verified ☝️ - mysql> select version();
+-----------------------------------------+
| version() |
+-----------------------------------------+
| 10.10.7-MariaDB-1:10.10.7+maria~ubu2204 |
+-----------------------------------------+
1 row in set (0.00 sec)
mysql> select count(*) from performance_schema.global_status;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
mysql> select count(*) from information_schema.global_status;
+----------+
| count(*) |
+----------+
| 558 |
+----------+
1 row in set (0.01 sec)
mysql> |
Signed-off-by: Manan Gupta <manan@planetscale.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16374 +/- ##
=======================================
Coverage 68.67% 68.68%
=======================================
Files 1548 1548
Lines 199083 199146 +63
=======================================
+ Hits 136727 136780 +53
- Misses 62356 62366 +10 ☔ View full report in Codecov by Sentry. |
Is the test performing PRS on a MariaDB cluster? Given that we support only imports from MariaDB, all those tablets should be unmanaged. If we have a test that is running PRS on MariaDB we should delete that. |
Signed-off-by: Manan Gupta <manan@planetscale.com>
I looked at the code, and basically we are setting up a vitess cluster running mariadb and then run movetables from that position. For initializing the mariadb cluster, we are running PlannedReparentShard. Its working fine now too. The way to remove it would be run the replication setup queries manually (this is what we expect the users to do), but running PRS is making the testing easier. |
As long as we are not adding MariaDB specific code, it's fine to leave it for now. We just need to be aware that this could break without warning at some future point and then we'll be forced to fix the tests. |
…io#16374) Signed-off-by: Manan Gupta <manan@planetscale.com>
Description
This PR addresses the feature requested in #15946.
In the previous release we had added the ability to query global status variables in #16022. Now we can replace the use of
PrimaryStatus
that we were using for checking reachability of vttablets, by instead using the new RPC to get the innodb buffer pool data value.We use this value in sorting the vttablets for selection of the new primary.
Related Issue(s)
Checklist
Deployment Notes