فهرست منبع

Add example of environment variables in doc(zh_CN)

Signed-off-by: Mengyi Wang <mengyi.wang@canonical.com>
Mengyi Wang 2 سال پیش
والد
کامیت
e7bccb11ab
1فایلهای تغییر یافته به همراه20 افزوده شده و 2 حذف شده
  1. 20 2
      docs/zh_CN/operation/config/configuration_file.md

+ 20 - 2
docs/zh_CN/operation/config/configuration_file.md

@@ -1,5 +1,23 @@
 # 基本配置
 # 基本配置
-eKuiper 的配置文件位于 `$ eKuiper / etc / kuiper.yaml` 中。 配置文件为 yaml 格式。
+eKuiper 的配置文件位于 `$ eKuiper / etc / kuiper.yaml` 中。 配置文件为 yaml 格式。应用程序可以通过环境变量进行配置。环境变量优先于 yaml 文件中的对应项。为了对给定的配置使用 env 变量,我们必须使用如下格式: `KUIPER__`前缀 + 由`__`连接的路径元素。例如,在配置的情况下:
+```yaml
+basic:
+  # true|false, with debug level, it prints more debug info
+  debug: false
+  # true|false, if it's set to true, then the log will be print to console
+  consoleLog: false
+  # true|false, if it's set to true, then the log will be print to log file
+  fileLog: true
+  # How many hours to split the file
+  rotateTime: 24
+  # Maximum file storage hours
+  maxAge: 72
+  # Whether to ignore case in SQL processing. Note that, the name of customized function by plugins are case-sensitive.
+  ignoreCase: true
+```
+将basic项目下debug的值设置为true是有效的 `KUIPER__BASIC__DEBUG=true`。
+
+配置ignoreCase用于在SQL处理中忽略大小写。默认情况下,它设置为 true 以符合标准 SQL。在这种情况下,摄取的数据可能不区分大小写。如果 SQL 中的列名、流定义和摄取的数据可以统一为区分大小写的名称,建议设置为 false 以获得更好的性能。
 
 
 ## 日志级别
 ## 日志级别
 
 
@@ -171,4 +189,4 @@ GET http://localhost:9081/plugins/functions/prebuild
 
 
 ## 初始化规则集
 ## 初始化规则集
 
 
-支持基于文件的流和规则的启动时配置。用户可以将名为 `init.json` 的[规则集](../restapi/ruleset.md#规则集格式)文件放入 `data` 目录,以初始化规则集。该规则集只在eKuiper 第一次启动时被导入。
+支持基于文件的流和规则的启动时配置。用户可以将名为 `init.json` 的[规则集](../restapi/ruleset.md#规则集格式)文件放入 `data` 目录,以初始化规则集。该规则集只在eKuiper 第一次启动时被导入。