描述
使用alter proxyconfig set key=value
语句:
- 更新proxy内部指定config配置项值,如果找不到指定config配置项,或者更新值为无效值,则返回响应错误码。
- value支持单引号
'value'
或者双引号"value"
。
示例
OceanBase (admin@oceanbase)> show proxyconfig like 'fetch_bin_min_random_time';
+---------------------------+-------+--------------------------------------------------------------+-------------+
| name | value | info | need_reboot |
+---------------------------+-------+--------------------------------------------------------------+-------------+
| fetch_bin_min_random_time | 3 | min random waiting time of fetching proxy bin in hot upgrade | false |
+---------------------------+-------+--------------------------------------------------------------+-------------+
1 row in set (0.01 sec)
OceanBase (admin@oceanbase)> alter proxyconfig set fetch_bin_min_random_time=12m;
Query OK, 0 rows affected (0.00 sec)
OceanBase (admin@oceanbase)> show proxyconfig like 'fetch_bin_min_random_time';
+---------------------------+-------+--------------------------------------------------------------+-------------+
| name | value | info | need_reboot |
+---------------------------+-------+--------------------------------------------------------------+-------------+
| fetch_bin_min_random_time | 12m | min random waiting time of fetching proxy bin in hot upgrade | false |
+---------------------------+-------+--------------------------------------------------------------+-------------+
1 row in set (0.00 sec)
OceanBase (admin@oceanbase)> alter proxyconfig set fetch_bin_min_random_time="12s";
Query OK, 0 rows affected (0.00 sec)
OceanBase (admin@oceanbase)> show proxyconfig like 'fetch_bin_min_random_time';
+---------------------------+-------+--------------------------------------------------------------+-------------+
| name | value | info | need_reboot |
+---------------------------+-------+--------------------------------------------------------------+-------------+
| fetch_bin_min_random_time | 12s | min random waiting time of fetching proxy bin in hot upgrade | false |
+---------------------------+-------+--------------------------------------------------------------+-------------+
1 row in set (0.00 sec)