---
server:
  addr: 0.0.0.0:9999 # listing port
  request_timeout: 3 # second
  response_timeout: 120 # second, for pprof change it to 120

mysql:
  driver: mysql # define which driver use to connect db, only support `mysql`
  dsn: <username>:<password>@tcp(<host>:<port>)/<db>?charset=utf8mb4&parseTime=True&loc=Local
  max_open_conns: 20
  max_idle_conns: 10
  max_life_conns: 60

log:
  level: "info"
  format: "json"

flink:
  client_path: /path/to/client
  image: /path/to/image:tag
  rest_exposed_type: NodePort # NodePort for dev, LoadBalancer for production
  cmd:
    - local:///opt/flink/lib/executor-1.0.jar
    - /opt/sql/input.sql
  service_account: mimir-flink-sa
  persistence:
    checkpoint_base_dir: s3://bucket/path/to/dir # currently only s3 is supported
    savepoint_base_dir: s3://bucket/path/to/dir # currently only s3 is supported
    s3:
      access_key: ACCESS_KEY # required for non-EKS deployment, will override default credential
      secret_key: SECRET_KEY # required for non-EKS deployment, will override default credential
      endpoint: s3.cn-north-1.amazonaws.com.cn

k8s:
  in_cluster: true # set to false if run the service out of k8s
  kube_config_path: /path/to/.kube/config

security:
  trusted-ca-file: /path/to/ca.pem
  cert-file: /path/to/server.pem
  key-file: /path/to/server-key.pem

sink:
  db-secret: mimir

table-checker:
  image: g