Skip to main content

5.0.0 升级说明

查看变更内容

注意

升级到 5.0.0+ 前请确保 Docker 版本在 20.10.16 及以上,如果低于此版本,请先升级 Docker。可通过 docker -v 命令查看 Docker 版本。

单机模式

  • 数据备份

  • 数据集成服务升级到 1.17.1.500未启用则无需升级),参考 数据集成服务升级(跨版本) 💥

  • 微服务升级到 5.0.0,参考 微服务升级

  • 升级完成后,执行 docker exec -it $(docker ps | grep community | awk '{print $1}') bash 进入微服务应用容器内,重置多语言消息模板:

    source /entrypoint.sh && mongodbResetTemplateMessage

集群模式

  • 对数据存储相关的服务器进行备份

  • 数据集成服务升级到 1.17.1.500未启用则无需升级),参考 数据集成服务升级(跨版本) 💥

  • 文件存储服务升级到 1.5.0,参考 文件存储服务升级

  • 微服务应用 service.yaml默认:/data/mingdao/script/kubernetes/service.yaml) 中新增 reportconsumer 服务,默认配置如下,根据实际需要自行调整参数值

    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: reportconsumer
    namespace: default
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: reportconsumer
    template:
    metadata:
    labels:
    app: reportconsumer
    annotations:
    md-update: "20230610150218"
    spec:
    containers:
    - name: reportconsumer
    image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:5.0.0
    env:
    - name: ENV_SERVERID
    value: "single:reportconsumer"
    resources:
    limits:
    cpu: "24"
    memory: 20480Mi
    requests:
    cpu: "0.01"
    memory: 64Mi
    readinessProbe:
    exec:
    command: ["pgrep", "-f", "/usr/local/MDPrivateDeployment/reportconsumer/mdreport-consumer-1.0.0-SNAPSHOT.jar --spring.config.location=/usr/local/MDPrivateDeployment/reportconsumer/application-www.properties"]
    initialDelaySeconds: 10
    periodSeconds: 10
    livenessProbe:
    exec:
    command: ["pgrep", "-f", "/usr/local/MDPrivateDeployment/reportconsumer/mdreport-consumer-1.0.0-SNAPSHOT.jar --spring.config.location=/usr/local/MDPrivateDeployment/reportconsumer/application-www.properties"]
    initialDelaySeconds: 180
    periodSeconds: 10
  • 微服务升级到 5.0.0,参考 微服务升级

  • 进入控制节点的 config Pod 中执行相关命令,具体步骤如下:

    1. 进入 config Pod :kubectl exec -it $(kubectl get pod | grep config | awk '{print $1}') bash

    2. 执行以下脚本

      source /entrypoint.sh && mongodbResetTemplateMessage
      source /entrypoint.sh && mongodbExecute mdapps /init/mongodb/5.0.0/mdapps/DDL.txt
      source /entrypoint.sh && mongodbExecute mdmap /init/mongodb/5.0.0/mdmap/DDL.txt