Browse Source

HUE-7561 [sentry] Bump single user caching for metadata search

Romain Rigaux 8 năm trước cách đây
mục cha
commit
2c69cb6d2d

+ 1 - 1
desktop/conf.dist/hue.ini

@@ -1486,7 +1486,7 @@
   ## sentry_conf_dir=/etc/sentry/conf
 
   # Number of seconds when the privilege list of a user is cached.
-  ## privilege_checker_caching=30
+  ## privilege_checker_caching=300
 
 
 ###########################################################################

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -1488,7 +1488,7 @@
   ## sentry_conf_dir=/etc/sentry/conf
 
   # Number of seconds when the privilege list of a user is cached.
-  ## privilege_checker_caching=30
+  ## privilege_checker_caching=300
 
 
 ###########################################################################

+ 2 - 1
desktop/libs/libsentry/src/libsentry/conf.py

@@ -21,6 +21,7 @@ import os
 from django.utils.translation import ugettext_lazy as _t
 from desktop.lib.conf import Config
 
+
 LOG = logging.getLogger(__name__)
 
 
@@ -48,7 +49,7 @@ PRIVILEGE_CHECKER_CACHING=Config(
   key='privilege_checker_caching',
   help=_t('Number of seconds when the privilege list of a user is cached.'),
   type=int,
-  default=30,
+  default=60 * 5,
 )