描述

    使用alter proxyconfig set key=value语句:

    • 更新proxy内部指定config配置项值,如果找不到指定config配置项,或者更新值为无效值,则返回响应错误码。
    • value支持单引号'value'或者双引号"value"

    示例

    1. OceanBase (admin@oceanbase)> show proxyconfig like 'fetch_bin_min_random_time';
    2. +---------------------------+-------+--------------------------------------------------------------+-------------+
    3. | name | value | info | need_reboot |
    4. +---------------------------+-------+--------------------------------------------------------------+-------------+
    5. | fetch_bin_min_random_time | 3 | min random waiting time of fetching proxy bin in hot upgrade | false |
    6. +---------------------------+-------+--------------------------------------------------------------+-------------+
    7. 1 row in set (0.01 sec)
    8. OceanBase (admin@oceanbase)> alter proxyconfig set fetch_bin_min_random_time=12m;
    9. Query OK, 0 rows affected (0.00 sec)
    10. OceanBase (admin@oceanbase)> show proxyconfig like 'fetch_bin_min_random_time';
    11. +---------------------------+-------+--------------------------------------------------------------+-------------+
    12. | name | value | info | need_reboot |
    13. +---------------------------+-------+--------------------------------------------------------------+-------------+
    14. | fetch_bin_min_random_time | 12m | min random waiting time of fetching proxy bin in hot upgrade | false |
    15. +---------------------------+-------+--------------------------------------------------------------+-------------+
    16. 1 row in set (0.00 sec)
    17. OceanBase (admin@oceanbase)> alter proxyconfig set fetch_bin_min_random_time="12s";
    18. Query OK, 0 rows affected (0.00 sec)
    19. OceanBase (admin@oceanbase)> show proxyconfig like 'fetch_bin_min_random_time';
    20. +---------------------------+-------+--------------------------------------------------------------+-------------+
    21. | name | value | info | need_reboot |
    22. +---------------------------+-------+--------------------------------------------------------------+-------------+
    23. | fetch_bin_min_random_time | 12s | min random waiting time of fetching proxy bin in hot upgrade | false |
    24. +---------------------------+-------+--------------------------------------------------------------+-------------+
    25. 1 row in set (0.00 sec)