跳到主要内容

4.5.0 升级说明

查看变更内容

单机模式

  • 数据备份

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

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

    source /entrypoint.sh && mongodbResetTemplateMessage

集群模式

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

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

    ---

    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: wps
    namespace: default
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: wps
    template:
    metadata:
    labels:
    app: wps
    annotations:
    md-update: "20230831112233"
    spec:
    containers:
    - name: wps
    image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.5.0
    env:
    - name: ENV_SERVERID
    value: "single:wps"
    resources:
    limits:
    cpu: "24"
    memory: 20480Mi
    requests:
    cpu: "0.01"
    memory: 64Mi
    readinessProbe:
    tcpSocket:
    port: 9017
    initialDelaySeconds: 10
    periodSeconds: 10
    livenessProbe:
    tcpSocket:
    port: 9017
    initialDelaySeconds: 180
    periodSeconds: 10

    ---

    apiVersion: v1
    kind: Service
    metadata:
    name: wps
    namespace: default
    spec:
    selector:
    app: wps
    ports:
    - name: http-wps
    port: 9017
    targetPort: 9017
  • 微服务升级到 4.5.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 commonbase /init/mongodb/4.5.0/commonbase/DDL.txt
      source /entrypoint.sh && mongodbExecute mdservicedata /init/mongodb/4.5.0/mdservicedata/DDL.txt
      source /entrypoint.sh && mongodbExecute mdapps /init/mongodb/4.5.0/mdapps/DDL.txt