浏览代码

HUE-8337 [impala] Lower some more the idle query/session timeouts

Romain Rigaux 7 年之前
父节点
当前提交
cf0914e97f
共有 3 个文件被更改,包括 10 次插入10 次删除
  1. 4 4
      apps/impala/src/impala/conf.py
  2. 3 3
      desktop/conf.dist/hue.ini
  3. 3 3
      desktop/conf/pseudo-distributed.ini.tmpl

+ 4 - 4
apps/impala/src/impala/conf.py

@@ -27,7 +27,7 @@ from desktop.lib.conf import ConfigSection, Config, coerce_bool, coerce_csv, coe
 from desktop.lib.exceptions import StructuredThriftTransportException
 from desktop.lib.paths import get_desktop_root
 
-from impala.impala_flags import get_ssl_server_certificate, get_max_result_cache_size, is_impersonation_enabled
+from impala.impala_flags import get_max_result_cache_size, is_impersonation_enabled
 from impala.settings import NICE_NAME
 
 
@@ -84,15 +84,15 @@ QUERY_TIMEOUT_S = Config(
   help=_t("If QUERY_TIMEOUT_S > 0, the query will be timed out (i.e. cancelled) if Impala does not do any work"
           " (compute or send back results) for that query within QUERY_TIMEOUT_S seconds."),
   type=int,
-  default=600
+  default=300
 )
 
 SESSION_TIMEOUT_S = Config(
   key="session_timeout_s",
   help=_t("If SESSION_TIMEOUT_S > 0, the session will be timed out (i.e. cancelled) if Impala does not do any work"
-          " (compute or send back results) for that session within SESSION_TIMEOUT_S seconds. Default: 30 min."),
+          " (compute or send back results) for that session within SESSION_TIMEOUT_S seconds. Default: 15 min."),
   type=int,
-  default=30 * 60
+  default=15 * 60
 )
 
 CONFIG_WHITELIST = Config(

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

@@ -1103,11 +1103,11 @@
 
   # If > 0, the query will be timed out (i.e. cancelled) if Impala does not do any work
   # (compute or send back results) for that query within QUERY_TIMEOUT_S seconds.
-  ## query_timeout_s=600
+  ## query_timeout_s=300
 
   # If > 0, the session will be timed out (i.e. cancelled) if Impala does not do any work
-  # (compute or send back results) for that session within SESSION_TIMEOUT_S seconds (default 30 min).
-  ## session_timeout_s=1800
+  # (compute or send back results) for that session within SESSION_TIMEOUT_S seconds (default 15 min).
+  ## session_timeout_s=900
 
   # Override the desktop default username and password of the hue user used for authentications with other services.
   # e.g. Used for LDAP/PAM pass-through authentication.

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

@@ -1105,11 +1105,11 @@
 
   # If > 0, the query will be timed out (i.e. cancelled) if Impala does not do any work
   # (compute or send back results) for that query within QUERY_TIMEOUT_S seconds.
-  ## query_timeout_s=600
+  ## query_timeout_s=300
 
   # If > 0, the session will be timed out (i.e. cancelled) if Impala does not do any work
-  # (compute or send back results) for that session within SESSION_TIMEOUT_S seconds (default 30 min).
-  ## session_timeout_s=1800
+  # (compute or send back results) for that session within SESSION_TIMEOUT_S seconds (default 15 min).
+  ## session_timeout_s=900
 
   # Override the desktop default username and password of the hue user used for authentications with other services.
   # e.g. Used for LDAP/PAM pass-through authentication.