|
1 |
| -# ProxySQL Admin tool changes |
| 1 | +# Percona build of ProxySQL Admin tool changes |
2 | 2 |
|
3 | 3 | ## Added features
|
4 | 4 |
|
5 |
| -* New option `--use-ssl` to use SSL for connections between ProxySQL and the backend database servers |
| 5 | +### `--use-ssl` |
6 | 6 |
|
7 |
| -* New option `--max-transactions-behind` to determine the maximum number of writesets |
8 |
| - that can be queued before the node is SHUNNED to avoid stale reads. The default value is 100 |
| 7 | +Enables SSL connections between ProxySQL and the backend database servers |
9 | 8 |
|
10 |
| -* New operation `--update-cluster` to update the cluster membership by adding |
11 |
| - server nodes as found. (Note that nodes are added but not removed). The |
12 |
| - `--writer-hg` option may be used to specify which Galera hostgroup to |
13 |
| - update. The `--remove-all-servers` option instructs to remove all servers |
14 |
| - from the mysql_servers table before updating the cluster. |
| 9 | +### `--max-transactions-behind` |
15 | 10 |
|
16 |
| -* Hostgroups can be specified on the command-line: `--writer-hg`, |
17 |
| - `--reader-hg`, `--backup-writer-hg`, and `--offline-hg`. Previously, |
18 |
| - these host groups were only read from the configuration file. |
| 11 | +Specifies the maximum number of writesets that can be queued before the node is SHUNNED to avoid stale reads. The default value is `100`. |
19 | 12 |
|
20 |
| -* The `--enable` and `--update-cluster` options used simultaneously have |
21 |
| - special meaning. If the cluster has not been enabled, then `--enable` is |
22 |
| - run. If the cluster has already been enabled, then `--update-cluster` is run. |
| 13 | +### `--update-cluster` |
23 | 14 |
|
24 |
| -* New command `--is-enabled` to see if a cluster has been enabled. This |
25 |
| - command checks for the existence of a row in the mysql_Galera_hostgroups |
26 |
| - table. The `--writer-hg` option may be used to specify the writer hostgroup |
27 |
| - used to search the mysql_galera_hostgroups table. |
| 15 | +Updates the cluster membership by adding newly discoveredserver nodes. Note: This operation adds nodes but does not remove them. Use [`--writer-hg`] option may be used to specify which Galera hostgroup to update. The `--remove-all-servers` option instructs to remove all servers from the mysql_servers table before updating the cluster. |
28 | 16 |
|
29 |
| -* New command `--status` to display Galera hostgroup information. This command |
30 |
| - lists all rows in the current `mysql_galera_hostgroups` table as well as all servers that belong to these hostgroups. With the `--writer-hg` option, only the information for the Galera hostgroup with that writer hostgroup is displayed. |
| 17 | +### Hostgroup options on the command-line |
31 | 18 |
|
32 |
| -* New option `--login-file` reads login credentials from an encrypted file. |
33 |
| - If the `--login-password` or `login-password-file` options are not |
34 |
| - specified, the user is prompted for the password. |
| 19 | +Hostgroups can now be set with command-line options: |
35 | 20 |
|
36 |
| -* New option `--login-password` is the key used to decrypt the encrypted |
37 |
| - login-file. You cannot use the option with the `--login-password-file`. |
| 21 | +* `--writer-hg` |
38 | 22 |
|
39 |
| -* New option `--login-password-file` reads the key from a file using the |
40 |
| - specified path. You cannot use the option with `login-password`. |
| 23 | + |
| 24 | +* `--reader-hg` |
| 25 | + |
| 26 | +* `--backup-writer-hg` |
| 27 | + |
| 28 | +* `--offline-hg`. |
| 29 | + |
| 30 | +These options were previously only available through the configuration file. |
| 31 | + |
| 32 | +### Combined use of `--enable` and `--update-cluster` |
| 33 | + |
| 34 | +When used together: |
| 35 | + |
| 36 | +* If the cluster is not yet enabled, then `--enable` is |
| 37 | + executed. |
| 38 | + |
| 39 | +* If the cluster is already enabled, then `--update-cluster` is executed. |
| 40 | + |
| 41 | +### `--is-enabled` |
| 42 | + |
| 43 | +Checks whether a cluster has been enabled by querying the `mysql_galera_hostgroups` table. Optionally, use the `--writer-hg` option to specify the writer hostgroup for the lookup. |
| 44 | + |
| 45 | + |
| 46 | +### `--status` |
| 47 | + |
| 48 | +Displays the current Galera hostgroup configuration. This option lists all rows in the current `mysql_galera_hostgroups` table, along with the servers assigned to each hostgroup. |
| 49 | + |
| 50 | +Use the `--writer-hg` option to limit the result to a specific hostgroup. |
| 51 | + |
| 52 | +### `--login-file` |
| 53 | + |
| 54 | +Reads login credentials from an encrypted file. |
| 55 | +If neither `--login-password` nor `--login-password-file` is specified, the user is prompted to enter the decryption password interactively. |
| 56 | + |
| 57 | +### `--login-password` |
| 58 | + |
| 59 | +Specifies the decryption key used to unlock the credentials stored in the `--login-file`. |
| 60 | +This option is mutually exclusive with `--login-password-file`. |
| 61 | + |
| 62 | +### `--login-password-file` |
| 63 | + |
| 64 | +Reads the decryption key from a file located at the specified path. |
| 65 | +This option is mutually exclusive with `--login-password`. |
41 | 66 |
|
42 | 67 | ## Changed features
|
43 | 68 |
|
|
69 | 94 | Galera cluster associated with that hostgroup overriding the value specified
|
70 | 95 | in the configuration file.
|
71 | 96 |
|
72 |
| -## Removed features |
| 97 | +## Removed Features |
| 98 | + |
| 99 | +### Asynchronous slave reader support |
| 100 | + |
| 101 | +The `--include-slaves` option is no longer supported. Asynchronous slave reader support has been removed. |
| 102 | + |
| 103 | +### Node priority lists |
| 104 | + |
| 105 | +ProxySQL v2 no longer supports specifying a list of nodes in priority order. Only a single node is supported. |
| 106 | + |
| 107 | +### Automatic cluster membership updates |
| 108 | + |
| 109 | +Cluster membership is no longer updated automatically. The `galera_proxysql_checker` and `galera_node_monitor` scripts are no longer run in the scheduler. |
73 | 110 |
|
74 |
| -* Asynchronous slave reader support has been removed: the `--include-slaves` |
75 |
| - option is not supported. |
| 111 | +### `pxc_maint_mode` check |
76 | 112 |
|
77 |
| -* A list of nodes in the priority order is not supported in *ProxySQL* v2. Only |
78 |
| - a single node is supported at this time. |
| 113 | +The check for the `pxc_maint_mode` variable has been removed and is no longer supported. |
79 | 114 |
|
80 |
| -* Since the galera_proxysql_checker and galera_node_monitor scripts are no |
81 |
| - longer run in the scheduler, automatic cluster membership updates are not |
82 |
| - supported. |
| 115 | +### Desynced node fallback |
83 | 116 |
|
84 |
| -* Checking the pxc_maint_mode variable is no longer supported |
| 117 | +Falling back to desynced nodes when no synced nodes are available is no longer supported. |
85 | 118 |
|
86 |
| -* Using desynced nodes if no other nodes are available is no longer supported. |
| 119 | +### Server status tracking in `mysql_servers` |
87 | 120 |
|
88 |
| -* The server status is no longer maintained in the mysql_servers table. |
| 121 | +The `mysql_servers` table no longer maintains server status information. |
89 | 122 |
|
90 | 123 | ## Limitations
|
91 | 124 |
|
92 |
| -* With `--writers-as-readers=backup` read-only nodes are not allowed. This is a limitation of ProxySQL 2.x. Note that backup is the default value of `--writers-as-readers` when `--mode=singlewrite` |
| 125 | +* With `--writers-as-readers=backup` read-only nodes are not allowed. This is a limitation of ProxySQL. Note that backup is the default value of `--writers-as-readers` when `--mode=singlewrite` |
0 commit comments