enable_compression_protocol specifies whether to enable the compression protocol.
| Attribute | Description |
|---|---|
| Parameter type | Boolean |
| Default value | True |
| Value range |
|
| Effective only after ODP restart | No |
Note
This parameter takes effect only for new connections.
Examples
Log on to OceanBase Database in proxy mode through OceanBase Database Proxy (ODP) as the root@sys user or log on to ODP as the root@proxysys user.
Here is an example of logging on to OceanBase Database in proxy mode through ODP as the root@sys user. For more information about the parameters, see Connect to an OceanBase Database tenant by using OBClient.
[admin@obtest ~]$ obclient -uroot@sys#obcluster -h10.10.10.1 -P2883 -pNotice
To use ODP commands in OceanBase Database, the IP address (
-h) and the connection port (-P) must be the address and listening port (listen_port) of ODP.Here is an example of logging on to ODP as the root@proxysys user. The IP address (
-h) is the IP address of ODP, and the connection port (-P) is the listening port (listen_port) of ODP.[admin@obtest ~]$ obclient -uroot@proxysys -h10.10.10.1 -P2883 -pRun the following command to enable the compression protocol:
obclient [(none)]> alter proxyconfig set enable_compression_protocol=True;Because the priority of
enable_ob_protocol_v2is higher than that ofenable_compression_protocol, when the OceanBase 2.0 protocol is enabled, the OceanBase 2.0 protocol is still used even if the compression protocol is enabled.Note
You can use the following command to disable the OceanBase 2.0 protocol. Note that if you disable the OceanBase 2.0 protocol in ODP V4.x, some features of ODP will be unavailable.
obclient [(none)]> alter proxyconfig set enable_ob_protocol_v2=False;