jerryshao commented on code in PR #10996:
URL: https://github.com/apache/gravitino/pull/10996#discussion_r3245682486


##########
core/src/main/java/org/apache/gravitino/Configs.java:
##########
@@ -330,6 +333,24 @@ private Configs() {}
           .longConf()
           .createWithDefault(DEFAULT_GRAVITINO_AUTHORIZATION_OWNER_CACHE_SIZE);
 
+  public static final long 
DEFAULT_GRAVITINO_AUTHORIZATION_METADATA_ID_CACHE_SIZE = 100000L;
+
+  public static final ConfigEntry<Long> 
GRAVITINO_AUTHORIZATION_METADATA_ID_CACHE_SIZE =
+      new ConfigBuilder("gravitino.authorization.jcasbin.metadataIdCacheSize")
+          .doc("The maximum size of the metadata-id cache for authorization")
+          .version(ConfigConstants.VERSION_1_3_0)
+          .longConf()
+          
.createWithDefault(DEFAULT_GRAVITINO_AUTHORIZATION_METADATA_ID_CACHE_SIZE);
+
+  public static final long 
DEFAULT_GRAVITINO_AUTHORIZATION_CHANGE_POLL_INTERVAL_SECS = 3L;
+
+  public static final ConfigEntry<Long> 
GRAVITINO_AUTHORIZATION_CHANGE_POLL_INTERVAL_SECS =
+      new 
ConfigBuilder("gravitino.authorization.jcasbin.changePollIntervalSecs")
+          .doc("The interval in seconds for polling entity and owner changes")
+          .version(ConfigConstants.VERSION_1_3_0)
+          .longConf()
+          
.createWithDefault(DEFAULT_GRAVITINO_AUTHORIZATION_CHANGE_POLL_INTERVAL_SECS);

Review Comment:
   Can you also update the doc about newly added configurations.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to