鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

升级

  • 支持23.0.0升级到23.0.T30版本。
  • 支持23.0.0升级到24.0.RC1版本。

前提条件

  • 已将所需升级的鲲鹏DevKit软件包下载到本地,并确认软件包与服务器硬件平台一致。
  • 获取软件包后,需要校验软件包,确保与网站上的原始软件包一致,详细步骤请参见软件数字签名
  • 升级前请确认鲲鹏DevKit可以正常使用。
  • 工具默认安装在“/opt/DevKit”目录,升级前请确认安装空间至少保留8GB。
  • 不支持在分析任务执行过程中升级,请确保升级时没有任务在运行。
  • 升级过程中请勿执行Ctrl+Z、Ctrl+C和重启操作系统。
  • 根据当前系统安装的鲲鹏DevKit模式(CLI或Web模式)进行升级。Web模式只支持root用户升级,CLI模式支持普通用户和root用户升级。
  • 如果出现端口冲突,在系统端口足够情况下,会自动分配可用的端口。

升级操作

  1. 使用SSH远程登录工具,进入Linux操作系统命令行界面。
  2. 鲲鹏DevKit软件包拷贝到服务器自定义目录下,执行以下命令进行升级。
    1
    2
    cd /opt/DevKit/tools
    ./upgrade.sh /home/DevKit-All-x.x.x-Linux-kunpeng.tar.gz
    

    其中,“/opt/DevKit/tools”为升级前版本安装路径,“/home”为用户自定义目录。

  3. 升级鲲鹏DevKit过程。
    回显信息如下(以Web模式为例):
      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
      Start upgrading, please wait ...
      Decompressing files ...
      Decompressing files success.
      Start upgrading Kunpeng DevKit, please wait ...
      Do not press Ctrl+Z or Ctrl+C or restart the system during the upgrade.
      The system uses yum to manage packages.
    devkit:x:1124:1124::/home/devkit:/sbin/nologin
    userdel: user devkit is currently used by process 44671
    userdel: devkit home directory (/home/devkit) not found
      Start upgrading the Devkit Framework, please wait ...
      The system uses yum to manage packages.
      Entry parameter mode
      Selected install_path: /opt
    
    Check install path permission
      Check install path permission Success
    
    Check install path space
      Check install path space Success
    The user name and password–based access mode will be used for installation.
    
    Check the environment.
      Check the file tool package: OK
      Check the passwd tool package: OK
    ...
    ...
    ...
    Check the zlib-devel tool package: OK
    
    Check whether DevKit is installed.
      DevKit is not installed, continue
    
    Installation environment check result:
      SequenceNumber     CheckItem                           CheckResult    Suggestion
      [1]                installation user                   ok             N/A
      [2]                sudo permission                     ok             N/A
      [3]                su permission                       ok             N/A
      [4]                pam_rootok                          ok             N/A
      [5]                sudoers configuration file          ok             N/A
      [6]                devkit user                         ok             N/A
      [7]                service configuration file          ok             N/A
      [8]                tool installation path              ok             N/A
      [9]                user home directory                 ok             N/A
      [10]               framework dependency                ok             N/A
      [11]               devkitworkers                       ok             The tool will create 10 users (default devkitworker1-10) to execute background tasks. All the users belong to the devkit user group and have the same user permissions.
    
      Check environment success
    
    Start obtaining installation parameters.
    
    The following parameters will be used for deployment:
      ++++++++++++++++++++++++++++++++++++++++++++++++
      OS_TYPE                       : CentOS
      TOOL_VERSION                  : x.x.x
      INSTALL_TOOL                  : framework
      INSTALL_PATH                  : /opt
      NGINX_IP                      : x.x.x.x
      EXTERNAL_IP                   : x.x.x.x
      NGINX_PORT                    : 8086
      PLUGIN_GUNICORN_PORT          : 7996
      GRPC_SERVER_IP                : x.x.x.x
      GRPC_LISTEN_PORT              : 50052
      HTTP_LISTEN_PORT              : 8002
      ++++++++++++++++++++++++++++++++++++++++++++++++
    
    DevKit Configuration Generation
    Locking password for user devkit.
    passwd: Success
    
    Deal devkit user env
      The environment of the devkit user is configured successfully.
    
    Decompressing files ...
      Decompressing files success
    
    Start to create multiple users.
      devkitworker1 is created successfully.
      devkitworker2 is created successfully.
      devkitworker3 is created successfully.
      devkitworker4 is created successfully.
      devkitworker5 is created successfully.
      devkitworker6 is created successfully.
      devkitworker7 is created successfully.
      devkitworker8 is created successfully.
      devkitworker9 is created successfully.
      devkitworker10 is created successfully.
    
    Install python environment
      Install python3
      Install python_venv
    
    Config libffi path
      The libffi path is configured successfully.
    
    Configure venv packages path
      Configure venv packages path Success
    no crontab for devkit
    
    Install third-party tools.
      Configure nginx... please wait
      Make nginx... please wait
      Make install nginx... please wait
      Install nginx Success
    
    It may take a few minutes to generate the certificate. Please wait...
      Encrypting passphase success!
      Generate the certificate Success
      Certificate generated successfully. You can import the root certificate to the browser to mask security alarms when you access the tool. The root certificate is stored in /opt/DevKit/rsa/ca.crt.
    
    Migrations for 'certificatemanager':
      /opt/DevKit/devkitframework/certificatemanager/migrations/0001_initial.py
        - Create model CertStatus
    ...
    ...
    ...
    /opt/DevKit/devkitplugins/java-perf-backup /home/devkit_package/DevKit-upgrade/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-All-24.0.RC1-Linux-Kunpeng/plugin_java_perf_upgrade/DevKit-Java-Perf-x.x.x-Linux-Kunpeng
    /home/devkit_package/DevKit-upgrade/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-All-x.x.x-Linux-Kunpeng/plugin_java_perf_upgrade/DevKit-Java-Perf-x.x.x-Linux-Kunpeng
    applying REPORT_ALARM_JFR_COUNT=8
    applying THOR_SERVER_LOG_LEVEL=INFO
    applying THOR_CERTIFICATE_EARLY_WARNING_DAYS=90
    applying HEAP_ALARM_COUNT=8
    applying REPORT_MAX_JFR_COUNT=15
    applying STACK_DEPTH_NUM=16
    applying DEFAULT_SALT=QejPWKzJj8RSYBuKBCj5gGJShM4TEKRH
    applying HEAP_MAX_COUNT=10
    applying HEAP_MAX_SIZE=1024
    applying REFRESH_WORKING_KEY_IS_SUCCEED=
    applying REFRESH_WORKING_KEY_DATE=
    registering service DevKit for Java as id java_perf to systemd
    
    Created symlink from /etc/systemd/system/multi-user.target.wants/java_perf.service to /usr/lib/systemd/system/java_perf.service.
    service registration towards systemd as OK.
    starting the service
    service DevKit for Java is active
    
    checking service status
    service status DevKit for Java is OK.
    remove java-perf-backup folder
    DevKit for Java has been upgraded successfully on your system.
    
      Upgrade java_perf succeeded.
    Delete /home/devkit_package/DevKit-upgrade/DevKit-All-x.x.x-Linux-Kunpeng/DevKit-All-x.x.x-Linux-Kunpeng/plugin_java_perf_upgrade successful
      Start devkit nginx service, please wait...
      Start DevKit service success
      Successfully upgraded the porting plug-in in /opt/DevKit/devkitplugins/porting.
      Successfully upgraded the affinity plug-in in /opt/DevKit/devkitplugins/affinity.
      Successfully upgraded the devtools plug-in in /opt/DevKit/devkitplugins/devtools.
      Successfully upgraded the debugger plug-in in /opt/DevKit/devkitplugins/debugger.
      Successfully upgraded the sys_perf plug-in in /opt/DevKit/devkitplugins/sys_perf.
      Successfully upgraded the java_perf plug-in in /opt/DevKit/devkitplugins/java_perf.
      Successfully upgraded the Kunpeng Devkit Advisor in /opt/DevKit.
    

    升级失败的情况下,升级脚本会自动将工具回退到升级前的版本。