Skip to content

Commit e802fdc

Browse files
Update README.md
Adjust readme to reflect new logic of parsing STATUS
1 parent 84d9d3d commit e802fdc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ Unlock the full potential of your database integrating ReadySet and ProxySQL by
66
This scheduler executes the following steps:
77

88
1. Locks an in disk file (configured by `lock_file`) to avoid multiple instances of the scheduler to overlap their execution.
9-
2. If `mode=(All|HealthCheck)` - Query `mysql_servers` and check all servers that have `comment='Readyset` (case insensitive) and `hostgroup=readyset_hostgroup`. For each server it checks if it can connect to Readyset and validate if `Snapshot Status` is `Completed`. In case it cannot connect or Readyset is still performing snapshot it adjust the server status to `SHUNNED` in ProxySQL.
10-
3. If `mode=(All|QueryDiscovery)` Query the table `stats_mysql_query_digest` finding queries executed at `source_hostgroup` by `readyset_user` and validates if each query is supported by Readyset. The rules to order queries are configured by [Query Discovery](#query-discovery) configurations.
9+
2. If `mode=(All|HealthCheck)` - Query `mysql_servers` and check all servers that have `comment='Readyset` (case insensitive) and `hostgroup=readyset_hostgroup`. For each server it checks if it can connect to Readyset and validate the output of `Status` and act as follow:
10+
* `Online` - Adjust the server status to `ONLINE` in ProxySQL.
11+
* `Maitenance Mode` - Adjust the server status to `OFFLINE_SOFT` in ProxySQL.
12+
* `Snapshot In Progress` - Adjust the server status to `SHUNNED` in ProxySQL.
13+
4. If `mode=(All|QueryDiscovery)` Query the table `stats_mysql_query_digest` finding queries executed at `source_hostgroup` by `readyset_user` and validates if each query is supported by Readyset. The rules to order queries are configured by [Query Discovery](#query-discovery) configurations.
1114
3. If the query is supported it adds a cache in Readyset by executing `CREATE CACHE FROM __query__`.
1215
4. If `warmup_time_s` is NOT configure, a new query rule will be added redirecting this query to Readyset
1316
5. If `warmup_time_s` is configured, a new query rule will be added to mirror this query to Readyset. The query will still be redirected to the original hostgroup

0 commit comments

Comments
 (0)