Note
This parameter is available starting with V4.6.0.
Overview
rest.oauth2_credential_evict_time specifies the eviction duration for the OAuth2 credential cache of REST Catalog.
Privilege requirements
Query parameters \
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify parameters.\
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Time |
| Default Value | 10 minutes |
| Value range | [1s, 1d] |
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | Yes, it takes effect after a restart. |
Usage instructions
Sets the eviction duration for the OAuth2 cache. Credentials that have not been used for more than the eviction duration will be cleaned up during regular refresh tasks. You can increase the evict_time when catalog access is very frequent to avoid frequent re-obtaining. When memory resources are tight, you can decrease the evict_time to reduce resource consumption. Supported units include microseconds (us), milliseconds (ms), seconds (s), minutes (m), hours (h), and days (d). The default is seconds.
Usage examples
Set the eviction duration for the REST Catalog OAuth2 credential cache to 30 minutes.
obclient> ALTER SYSTEM SET rest_oauth2_credential_evict_time = "30m";
