kuiper.yaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. basic:
  2. # true|false, with debug level, it prints more debug info
  3. debug: false
  4. # true|false, if it's set to true, then the log will be print to console
  5. consoleLog: false
  6. # true|false, if it's set to true, then the log will be print to log file
  7. fileLog: true
  8. # How many hours to split the file
  9. rotateTime: 24
  10. # Maximum file storage hours
  11. maxAge: 72
  12. # CLI ip
  13. ip: 0.0.0.0
  14. # CLI port
  15. port: 20498
  16. # REST service ip
  17. restIp: 0.0.0.0
  18. # REST service port
  19. restPort: 9081
  20. # The global time zone from the IANA time zone database, or UTC if not set.
  21. timezone: UTC
  22. # true|false, when true, will check the RSA jwt token for rest api
  23. authentication: false
  24. # restTls:
  25. # certfile: /var/https-server.crt
  26. # keyfile: /var/https-server.key
  27. # Prometheus settings
  28. prometheus: false
  29. prometheusPort: 20499
  30. # The URL where hosts all of pre-build plugins. By default, it's at packages.emqx.net
  31. pluginHosts: https://packages.emqx.net
  32. # Whether to ignore case in SQL processing. Note that, the name of customized function by plugins are case-sensitive.
  33. ignoreCase: false
  34. sql:
  35. # maxConnections indicates the max connections for the certain database instance group by driver and dsn sharing between the sources/sinks
  36. # 0 indicates unlimited
  37. maxConnections: 0
  38. rulePatrolInterval: 10s
  39. # The default options for all rules. Each rule can override this setting by defining its own option
  40. rule:
  41. # The qos of the rule. The values can be 0: At most once; 1: At least once; 2: Exactly once
  42. # If qos is bigger than 0, the checkpoint mechanism will launch to save states so that they can be
  43. # restored for unintended interrupt or planned restart of the rule. The performance may be affected
  44. # to enable the checkpoint mechanism
  45. qos: 0
  46. # The interval in millisecond to run the checkpoint mechanism.
  47. checkpointInterval: 300000
  48. # Whether to send errors to sinks
  49. sendError: true
  50. # The strategy to retry for rule errors.
  51. restartStrategy:
  52. # The maximum retry times
  53. attempts: 0
  54. # The interval in millisecond to retry
  55. delay: 1000
  56. # The maximum interval in millisecond to retry
  57. maxDelay: 30000
  58. # The exponential to increase the interval. It can be a float value.
  59. multiplier: 2
  60. # How large random value will be added or subtracted to the delay to prevent restarting multiple rules at the same time.
  61. jitterFactor: 0.1
  62. sink:
  63. # Control to enable cache or not. If it's set to true, then the cache will be enabled, otherwise, it will be disabled.
  64. enableCache: false
  65. # The maximum number of messages to be cached in memory.
  66. memoryCacheThreshold: 1024
  67. # The maximum number of messages to be cached in the disk.
  68. maxDiskCache: 1024000
  69. # The number of messages for a buffer page which is the unit to read/write to disk in batch to prevent frequent IO
  70. bufferPageSize: 256
  71. # The interval in millisecond to resend the cached messages
  72. resendInterval: 0
  73. # Whether to clean the cache when the rule stops
  74. cleanCacheAtStop: false
  75. source:
  76. ## Configurations for the global http data server for httppush source
  77. # HTTP data service ip
  78. httpServerIp: 0.0.0.0
  79. # HTTP data service port
  80. httpServerPort: 10081
  81. # httpServerTls:
  82. # certfile: /var/https-server.crt
  83. # keyfile: /var/https-server.key
  84. store:
  85. #Type of store that will be used for keeping state of the application
  86. type: sqlite
  87. extStateType: sqlite
  88. redis:
  89. host: localhost
  90. port: 6379
  91. password: kuiper
  92. #Timeout in ms
  93. timeout: 1000
  94. sqlite:
  95. #Sqlite file name, if left empty name of db will be sqliteKV.db
  96. name:
  97. # The settings for portable plugin
  98. portable:
  99. # The executable of python. Specify this if you have multiple python instances in your system
  100. # or other circumstance where the python executable cannot be successfully invoked through the default command.
  101. pythonBin: python
  102. # control init timeout in ms. If the init time is longer than this value, the plugin will be terminated.
  103. initTimeout: 5000