Note
This parameter is available starting with V4.6.0.
Description
rest_oauth2_credential_evict_time specifies the eviction duration for REST Catalog OAuth2 credential caching.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Type | Time |
| Default value | 10m |
| Value range | [1s, 1d] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | Yes. The setting takes effect after a restart. |
Considerations
This parameter sets the eviction duration for OAuth2 credential caching. Credentials that have not been used for longer than the eviction duration are cleaned up when the periodic refresh task runs. Increase evict_time when Catalog access is very frequent to avoid frequent re-acquisition. Decrease evict_time when memory resources are tight to reduce resource usage. Supported units include microseconds (us), milliseconds (ms), seconds (s), minutes (m), hours (h), and days (d). The default unit is seconds.
Examples
Set the eviction duration for REST Catalog OAuth2 credential caching to 30 minutes.
obclient> ALTER SYSTEM SET rest_oauth2_credential_evict_time = "30m";
