CN115629785A - Upgrading method, electronic device and storage medium - Google Patents

Upgrading method, electronic device and storage medium Download PDF

Info

Publication number
CN115629785A
CN115629785A CN202211523316.XA CN202211523316A CN115629785A CN 115629785 A CN115629785 A CN 115629785A CN 202211523316 A CN202211523316 A CN 202211523316A CN 115629785 A CN115629785 A CN 115629785A
Authority
CN
China
Prior art keywords
upgraded
processor
manager
equipment
processor manager
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211523316.XA
Other languages
Chinese (zh)
Other versions
CN115629785B (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Moore Threads Technology Co Ltd
Original Assignee
Moore Threads Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Moore Threads Technology Co Ltd filed Critical Moore Threads Technology Co Ltd
Priority to CN202211523316.XA priority Critical patent/CN115629785B/en
Publication of CN115629785A publication Critical patent/CN115629785A/en
Application granted granted Critical
Publication of CN115629785B publication Critical patent/CN115629785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure relates to the field of information processing technologies, and in particular, to an upgrade method, an electronic device, and a storage medium, where the upgrade method includes: determining at least one processor manager or equipment to be upgraded in at least one processor; sending upgrade data to the equipment to be upgraded, and enabling the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal, or enabling the equipment to be upgraded to abandon the management of at least one processor corresponding to the equipment to be upgraded; receiving upgrade feedback generated by the equipment to be upgraded in response to the upgrade data; and under the condition that the upgrade feedback is successful, restarting the equipment to be upgraded, and adding the restarted equipment to be upgraded into the business process as upgraded equipment or enabling the upgraded equipment to recover the management of a processor corresponding to the upgraded equipment. The disclosed embodiments may automatically upgrade a processor or processor manager.

Description

Upgrading method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to an upgrade method, an electronic device, and a storage medium.
Background
With the development of the processor industry, developers gradually start to use additional processors to process data, so as to increase the actual processing speed of each business function. In the case of an upgrade (for example, an upgrade of a driver or firmware), the processor or the processor manager usually causes an interruption of the service flow responsible for the processor or the processor manager, which is not favorable for continuously providing the service function. Therefore, how to provide a better upgrading method is a technical problem that developers need to solve urgently.
Disclosure of Invention
The present disclosure proposes an upgrade technical solution.
According to an aspect of the present disclosure, there is provided an upgrade method applied to a processor manager or a management terminal, the processor manager being connected to at least one processor, the management terminal being connected to at least one processor manager, the upgrade method including: determining the at least one processor manager or a device to be upgraded in the at least one processor; sending upgrade data to the equipment to be upgraded, and enabling the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal, or enabling the equipment to be upgraded to abandon the management of at least one processor corresponding to the equipment to be upgraded; receiving upgrade feedback generated by the equipment to be upgraded in response to the upgrade data; and restarting the equipment to be upgraded under the condition that the upgrade feedback is successful, and adding the restarted equipment to be upgraded into the business process as upgraded equipment or enabling the upgraded equipment to recover the management of a processor corresponding to the upgraded equipment.
In a possible implementation manner, the sending upgrade data to the device to be upgraded and enabling the device to be upgraded to exit a service process responsible for the processor manager or the management terminal includes: determining one current upgrading device in the devices to be upgraded, sending upgrading data to the current upgrading device, and enabling the current upgrading device to exit a service process in charge of the processor manager or the management terminal; the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by the current upgrade equipment in response to the upgrade data; the restarting of the equipment to be upgraded and the joining of the restarted equipment to be upgraded as the upgraded equipment to the business process comprise the following steps: and restarting the current upgrading equipment, adding the restarted current upgrading equipment into the business process as upgraded equipment, and re-executing the equipment to be upgraded currently in the equipment to be upgraded until the equipment to be upgraded is upgraded completely.
In a possible implementation manner, the determining a current upgrading device in the devices to be upgraded includes any one of: determining one current device to be upgraded in the devices to be upgraded according to a preset rule or a device list to be upgraded through the upgraded devices; and determining one current device to be upgraded in the devices to be upgraded according to a preset device list to be upgraded.
In a possible implementation manner, the sending upgrade data to the device to be upgraded and enabling the device to be upgraded to exit from a service process in charge of the processor manager or the management terminal includes: determining a group of current upgrading equipment groups in the equipment to be upgraded, sending upgrading data to the current upgrading equipment groups, and enabling at least one current upgrading equipment in the current upgrading equipment groups to exit a service process responsible for the processor manager or the management terminal; the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by at least one current upgrade device in the current upgrade device group in response to the upgrade data; the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting at least one current upgrading device in the current upgrading device group, adding the restarted at least one current upgrading device in the current upgrading device group as an upgraded device into the business process, and re-executing the step of determining a group of current upgrading device groups in the devices to be upgraded until the devices to be upgraded are upgraded.
In a possible implementation manner, the determining a set of current upgrade device groups in the devices to be upgraded includes any one of: determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset rule or an equipment group list to be upgraded by at least one piece of upgraded equipment in the upgraded equipment group; and determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset equipment group list to be upgraded.
In a possible implementation manner, the sending upgrade data to the device to be upgraded and enabling the device to be upgraded to exit from a service process in charge of the processor manager or the management terminal includes: sending upgrade data to all equipment to be upgraded, and enabling all the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal; the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by all the equipment to be upgraded in response to the upgrade data; the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting the successfully upgraded equipment to be upgraded, and adding the restarted equipment to be upgraded into the business process as the upgraded equipment.
In a possible implementation manner, the business process of causing the device to be upgraded to exit the responsibility of the processor manager or the management terminal includes at least one of the following: determining whether the equipment to be upgraded finishes the current task corresponding to the current business process, and stopping sending a new task to the equipment to be upgraded under the condition that the equipment to be upgraded finishes the current task corresponding to the current business process; stopping sending a new task to the equipment to be upgraded, determining whether the equipment to be upgraded finishes the existing task, and determining that the equipment to be upgraded exits from a business process responsible for the processor manager or the management terminal under the condition of determining that the equipment to be upgraded finishes the existing task.
In a possible embodiment, the restarting the device to be upgraded comprises at least one of: receiving a restart completion message sent after the equipment to be upgraded is upgraded and automatically restarted; sending a restart instruction to the equipment to be upgraded, and receiving a restart completion message sent by the equipment to be upgraded in response to the restart instruction; the restart instruction is used for indicating the equipment to be upgraded to restart.
In one possible embodiment, the upgrade method comprises at least one of: the upgrading method is applied to a processor manager or a management terminal, and under the condition that the processor manager is not the equipment to be upgraded, the upgrading method sends upgrading data to the equipment to be upgraded and comprises the following steps: sending upgrading data locally stored by a processor manager or a management terminal to at least one of a processor manager corresponding to the processor to be upgraded, the processor to be upgraded and the processor manager to be upgraded; the upgrade data is to perform at least one of: firmware upgrading is carried out on the processor to be upgraded or the processor manager to be upgraded through the processor manager, and firmware upgrading is carried out on the processor to be upgraded or the processor manager to be upgraded; under the condition that the processor manager is the device to be upgraded, sending upgrade data to the device to be upgraded comprises: and reading the locally stored upgrading data.
In a possible implementation, the device to be upgraded is a processor manager to be upgraded; the upgrade data is drive upgrade data; and the drive upgrading data is used for upgrading the drive corresponding to the processor managed by the processor manager to be upgraded.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to relinquish management of at least one processor corresponding to the device to be upgraded includes: determining a managed processor manager corresponding to the processor manager to be upgraded according to the configured managed rule; controlling the processor manager to be upgraded to give up management of at least one processor corresponding to the processor manager and to perform at least one of: sending a first hosting start instruction to the hosting processor manager; wherein the first managed start instruction is to instruct the managed processor manager to manage at least one processor that the processor manager to be upgraded relinquishes to manage; sending a second escrow start instruction to the at least one processor that relinquishes management; wherein the second escrow start instruction is to instruct the at least one processor that relinquishes management to join the escrow processor manager.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to relinquish management of at least one processor corresponding to the device to be upgraded includes: sending a hosting starting instruction to at least one processor corresponding to the processor manager to be upgraded; the hosting start instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to autonomously select a hosting processor manager according to a preset rule or a manager list and connect the hosting processor manager.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to relinquish management of at least one processor corresponding to the device to be upgraded includes: restarting the processor manager to be upgraded to generate management failure of the processor; the management failure is used for autonomously selecting a managed processor manager and connecting the managed processor manager under the condition that at least one processor corresponding to the equipment to be upgraded detects the management failure.
In a possible implementation, the upgrade method further includes any one of: the causing the device to be upgraded to abandon management of at least one processor corresponding to the device to be upgraded includes: sending a abandon management instruction to the processor manager to be upgraded or at least one processor corresponding to the processor manager to be upgraded, and receiving an instruction execution result sent by the processor manager to be upgraded or the at least one processor corresponding to the processor manager to be upgraded in response to the abandon management instruction; wherein the relinquish management instruction is to instruct the processor manager to be upgraded to relinquish management of its corresponding at least one processor.
In a possible implementation, the upgraded device is an upgraded processor manager, and the causing the upgraded device to resume management of a processor corresponding to the upgraded device includes: sending a hosting end message to the hosting processor manager; wherein the hosting end message is used for instructing the hosting processor manager to abandon the management of the processor corresponding to the processor manager to be upgraded; receiving an execution result sent by the managed processor manager in response to the managed end message; sending a hosting switchback instruction to the hosting processor manager under the condition that the execution result is that the hosting is finished successfully; the managed switching-back instruction is used for instructing at least one managed processor manager to send a first switching-back instruction to at least one processor corresponding to the processor manager to be upgraded and giving up management of the processor corresponding to the processor manager to be upgraded; the first rollback instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to send a management instruction to the processor manager to be upgraded according to a first preset rule; the management instruction is used for indicating the processor manager to be upgraded to determine whether to manage at least one processor corresponding to the processor manager to be upgraded according to a second preset rule and the current management capability; wherein the hosting end message and the hosting switchback instruction have an instruction merging condition.
In a possible embodiment, the determining, according to the configured hosting rule, a hosting processor manager corresponding to the processor manager to be upgraded includes at least one of: determining at least one managed processor manager corresponding to the processor manager to be upgraded according to a managed sequence rule configured by the processor manager to be upgraded; determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the load state corresponding to each processor manager; and determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager.
In a possible implementation manner, the determining, according to a hosting sequence rule configured by the processor manager to be upgraded, at least one hosted processor manager corresponding to the processor manager to be upgraded includes: sequentially determining at least one processor manager with the load smaller than a threshold value according to a hosting sequence rule configured by the manager to be upgraded, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded; the instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded according to a managed sequence rule configured by any one of the processor manager, the management terminal and the processor until the at least one processor which is abandoned is managed by the managed processor manager.
In one possible embodiment, the ability to receive a host is inversely related to at least one of: the total amount of processors currently managed by the processor manager and the current load state of the processor manager; the determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager includes: determining a hosting sequence according to the total amount of processors currently managed by the processor manager and/or the current load state of the processor manager; wherein the order of hosting of the processor managers that are currently managed with a smaller total number of processors and/or are currently less loaded is earlier than the order of hosting of the processor managers that are currently managed with a larger total number of processors and/or are currently more loaded; sending the hosting sequence to a processor or sequentially determining at least one processor manager according to the hosting sequence, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded; wherein the hosting order is to instruct the processor to determine its corresponding hosting processor manager; the instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded until the at least one processor which is abandoned is managed by the managed processor manager.
In a possible implementation manner, the determining a managed processor manager corresponding to the processor manager to be upgraded includes: under the condition that the managed processor managers corresponding to the processor manager to be upgraded are determined to be managed unsuccessfully, enabling the device to be upgraded to exit a business process responsible for the processor manager or the management terminal, wherein the business process comprises the following steps: and giving up the management of the processor corresponding to the processor manager to be upgraded.
In a possible implementation manner, the upgrading method is applied to a processor manager, and the device to be upgraded is a processor to be upgraded; the upgrade data is firmware upgrade data; the firmware upgrading data is used for upgrading the firmware in the processor to be upgraded.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded or a processor to be upgraded, and the upgrading method further includes: detecting an abnormal event corresponding to the equipment to be upgraded in the upgrading process; in the case of detecting the abnormal event in the device to be upgraded, performing at least one of the following: generating prompt information according to the abnormal event; saving the abnormal event; repairing the abnormal event; and saving the abnormal event and the repair result.
In one possible embodiment, the upgrade data includes: an upgrade package or upgrade package address; the upgrade package address is used for indicating the storage position of the upgrade package.
In one possible implementation, the processor manager includes: at least one of a management processor and a server; wherein the management processor is configured to manage processors of other processors; the management processor is connected with the server or the management terminal and is connected with at least one processor.
According to an aspect of the present disclosure, there is provided an electronic device including a processor manager or a management terminal, the processor manager being connected to at least one processor, the management terminal being connected to at least one processor manager, the electronic device including: the device to be upgraded determining module is used for determining the at least one processor manager or the device to be upgraded in the at least one processor; the upgrading data sending module is used for sending upgrading data to the equipment to be upgraded, enabling the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal, or enabling the equipment to be upgraded to give up management on at least one processor corresponding to the equipment to be upgraded; the upgrade feedback receiving module is used for receiving upgrade feedback generated by the equipment to be upgraded in response to the upgrade data; and the business process restarting module is used for restarting the equipment to be upgraded under the condition that the upgrade feedback is successful, and adding the restarted equipment to be upgraded into the business process as upgraded equipment or enabling the upgraded equipment to recover the management of a processor corresponding to the upgraded equipment.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
In the embodiment of the present disclosure, the at least one processor manager or the device to be upgraded in the at least one processor may be determined, then upgrade data is sent to the device to be upgraded, the device to be upgraded is made to exit from a service process in charge of the processor manager or a management terminal, or the device to be upgraded is made to abandon management of the at least one processor corresponding to the device to be upgraded, then upgrade feedback generated by the device to be upgraded in response to the upgrade data is received, and finally, the device to be upgraded is restarted when the upgrade feedback is successful, and the restarted device to be upgraded is used as an upgraded device to join the service process, or the upgraded device is made to resume management of the processor corresponding to the upgraded device. The upgrading method provided by the embodiment of the disclosure can automatically upgrade the processor or the processor manager, and is beneficial to reducing the manual upgrading cost.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a reference schematic diagram of a system architecture provided according to an embodiment of the present disclosure.
Fig. 2 shows a reference schematic diagram of a system architecture provided according to an embodiment of the present disclosure.
Fig. 3 shows a reference schematic diagram of a system architecture provided according to an embodiment of the present disclosure.
Fig. 4 shows a reference schematic diagram of a system architecture provided according to an embodiment of the present disclosure.
Fig. 5 shows a reference schematic diagram of a system architecture provided according to an embodiment of the present disclosure.
Fig. 6 shows a reference schematic diagram of a system architecture provided according to an embodiment of the present disclosure.
Fig. 7 shows a flowchart of an upgrade method provided according to an embodiment of the present disclosure.
Fig. 8 shows a flowchart of an upgrade method provided according to an embodiment of the present disclosure.
Fig. 9 shows a reference schematic diagram of an upgrade method provided according to an embodiment of the present disclosure.
Fig. 10 shows a reference schematic diagram of an upgrade method provided according to an embodiment of the present disclosure.
Fig. 11 shows a block diagram of an electronic device provided in accordance with an embodiment of the present disclosure.
Fig. 12 shows a block diagram of an electronic device provided in accordance with an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a variety or any combination of at least two of a variety, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In the related art, the processor or the processor manager usually causes complete interruption of the service during the upgrade process, which is not favorable for the application of the processor or the processor manager in a high-reliability scenario. In addition, the manual upgrade is performed in the scene of processor cluster, so that the labor cost is high.
In view of this, an embodiment of the present disclosure provides an upgrade method, which may determine at least one processor manager or a device to be upgraded in the at least one processor, and then send upgrade data to the device to be upgraded, and enable the device to be upgraded to exit a service flow in charge of the processor manager or a management terminal, or enable the device to be upgraded to abandon management of at least one processor corresponding to the device to be upgraded, and then receive upgrade feedback generated by the device to be upgraded in response to the upgrade data, and finally restart the device to be upgraded when the upgrade feedback is successful, and add the restarted device to be upgraded as an upgraded device to the service flow, or enable the upgraded device to recover management of the processor corresponding to the upgraded device. The upgrading method provided by the embodiment of the disclosure can automatically upgrade the processor or the processor manager, and is beneficial to reducing the manual upgrading cost.
The processor according to the embodiment of the present disclosure may be any Processing device capable of executing data Processing operations, such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a display adapter, and a sound adapter. The processor manager according to the embodiment of the present disclosure may be a server or a management processor, and may be configured to centrally manage processors connected to the server or the management processor. Referring to fig. 1 to 6, fig. 1 to 6 are schematic reference diagrams illustrating six system architectures provided by the embodiment of the present disclosure. The system architecture may be used to support the execution of user-side service functions. In combination with the GPU scenario, the processor is represented as a GPU (or referred to as a GPU card), the processor manager is represented as a GPU card (management card) or a server, and the management terminal is represented as a communication distribution system. Referring to fig. 1 to 6, in which the architecture of fig. 1 is such that a processor manager (refer to the server in fig. 1) corresponds to one processor (refer to the GPU card in fig. 1), the architecture of fig. 2 is such that a processor manager (refer to the server in fig. 2) corresponds to a plurality of processors (refer to GPU cards 0 to GPU card N in fig. 2, that is, N GPU cards, the number of N is not limited), the architecture of fig. 3 includes a plurality of processor managers (refer to server a to server N in fig. 3), each processor manager may correspond to a plurality of processors (refer to GPU card 00 to GPU card 30 in fig. 3, which corresponds to server a, or GPU card 0N to GPU card 3N, which corresponds to server N), the architecture of fig. 4 may replace part or all of the server manager cards in the architecture of fig. 3, the manager cards may be responsible for managing the corresponding processors, may be responsible for implementing the management functions of the processors connected thereto, and may also be responsible for implementing part or all of the operation functions in the business, and the disclosed operation flow is not limited in this embodiment. The architecture of fig. 5 is such that the management terminal (refer to the communication distribution system in fig. 5) corresponds to a plurality of processor managers (refer to server a to server N in fig. 5), each of which may correspond to another processor manager (refer to GPU card 0 (management card) in fig. 5, or GPU card 3 (management card)), GPU card 0 (management card) may correspond to a plurality of processors (refer to GPU card 00 to GPU card 30 in fig. 5), and GPU card 3 (management card) may correspond to a plurality of processors (refer to GPU card 0N to GPU card 3N in fig. 5). The hardware structures of the GPU card and the GPU management card can be the same and are represented as processors, wherein the GPU management card is configured with functions of managing other processors by developers. The architecture of fig. 6 is such that the management terminal (refer to the communication distribution system in fig. 6) corresponds to a plurality of processor managers (refer to server a to server N in fig. 6), where each processor manager may correspond to a plurality of processors (refer to GPU card 00 to GPU card 30 in fig. 6, or GPU card 0N to GPU card 3N). Furthermore, the above system architecture is described by way of example only, for example: some of the servers and management cards in the architectures of fig. 3 and 4 may not have GPU cards, or the number of GPU cards corresponding to each server or management card may be different, and the embodiments of the present disclosure are not limited herein. In one example, the processor manager includes: at least one of a management processor and a server. Wherein the management processor is configured to manage processors of other processors. The management processor is connected with the server or the management terminal and is connected with at least one processor. It should be understood that the processor manager may be a dedicated manager or a non-dedicated manager, the dedicated manager may be responsible for control of the processor, the non-dedicated manager may be responsible for control of the processor, processing of business processes at the processor level, and the like, and the disclosed embodiments are not limited thereto.
Referring to fig. 7, fig. 7 is a flowchart illustrating an upgrading method provided according to an embodiment of the present disclosure. The upgrade method is applied to a processor manager or a management terminal, the processor manager is connected with at least one processor, the management terminal is connected with at least one processor manager, as shown in fig. 7, the upgrade method includes:
step S100, determining the at least one processor manager or the device to be upgraded in the at least one processor. For example, the device to be upgraded may be any processor manager or processor that needs to perform driver upgrade or firmware upgrade, and a developer may also set a preset rule to select the device to be upgraded in the processor manager or processor, for example: and when the driver update or the firmware upgrade exists, the processor or the processor manager needing to be upgraded can be manually selected through the management terminal. For another example, the processor managers or processors may be grouped, and then upgraded for the processor managers or processors in a specific group, and a developer may flexibly set the processor managers or processors according to actual needs, which is not limited herein in the embodiments of the present disclosure.
Step S200, sending upgrade data to the equipment to be upgraded, and enabling the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal, or enabling the equipment to be upgraded to abandon the management of at least one processor corresponding to the equipment to be upgraded. For example, the execution order may be arbitrarily arranged between sending the upgrade data and exiting the service, and the embodiment of the present disclosure is not limited herein. In one example, the upgrade data may include: upgrade package or upgrade package address. The upgrade package address is used for indicating the storage position of the upgrade package.
In a possible implementation manner, the business process of causing the device to be upgraded to exit the responsibility of the processor manager or the management terminal includes at least one of the following: determining whether the equipment to be upgraded finishes the current task corresponding to the current business process, under the condition that the equipment to be upgraded finishes the current task corresponding to the current business process, stopping sending a new task to the equipment to be upgraded or sending a new task to the equipment to be upgraded, determining whether the equipment to be upgraded finishes the existing task, and under the condition that the equipment to be upgraded finishes the existing task, determining that the equipment to be upgraded exits the business process responsible for the processor manager or the management terminal. The embodiment of the disclosure can ensure that the upgrading is started again under the condition that the equipment to be upgraded has completed the existing task, so as to reduce the probability of loss and error of the data to be processed.
In a possible implementation manner, the upgrading method is applied to a processor manager or a management terminal, and in a case that the processor manager is not the device to be upgraded, the sending upgrade data to the device to be upgraded includes: and sending upgrading data locally stored by a processor manager or a management terminal to at least one of a processor manager corresponding to the processor to be upgraded, the processor to be upgraded and the processor manager to be upgraded. The upgrade data is to perform at least one of: and upgrading the firmware of the processor to be upgraded or the processor manager to be upgraded through the processor manager, and upgrading the firmware of the processor to be upgraded or the processor manager to be upgraded. When the processor manager is the device to be upgraded, the sending upgrade data to the device to be upgraded includes: and reading the locally stored upgrading data. In embodiments of the present disclosure, the following scenarios may be supported: the upgrading data can be received at the server level, and then the processor managed by the server is controlled by the server to be upgraded, namely the processor is upgraded by the server. The processor may be configured as a manager, and the processor may be configured as a GPU card and the processor manager may be configured as a GPU management card, for example, the GPU card may be configured as a GPU management card, the upgrade data may be sent to the GPU card managed by the GPU management card for upgrade, or the upgrade data may be sent directly to the GPU card to be upgraded. However, in a case where the processor manager serves as a device to be upgraded, the processor manager may also be directly enabled to read locally stored upgrade data, for example, upgrade data uploaded by a developer before. In an example, the GPU management card may serve as a processor manager to be upgraded, that is, the GPU management card itself has a service processing function of the GPU card, and the GPU management card may receive upgrade data sent by a processor manager (for example, a server or other GPU management cards) or a management terminal for upgrading, which is not limited herein.
For example, the business process may be used to implement a specific business function, and the embodiment of the present disclosure does not limit specific contents of the business process and the business function, and a developer may set the business process according to actual requirements. In connection with real scenarios, for example: the processor manager is a server, the processor is a GPU, and the server can communicate with terminal equipment of a user. The terminal device at the user side can send a specific service function use request to call a corresponding service flow in the server, and the service function can be completed by one or more servers through the corresponding GPU. In a scenario that the GPU needs to be upgraded, the server may not send various instructions or data that the GPU needs to execute to the GPU, so as to implement service isolation (or exit from the service process). In a possible implementation manner, the device to be upgraded may be a processor manager to be upgraded, and the upgrade data is driver upgrade data. And the drive upgrading data is used for upgrading the drive corresponding to the processor managed by the processor manager to be upgraded. Illustratively, the above-described drivers may be used to interact between the processor manager and the processor.
Referring to fig. 8, fig. 8 is a flowchart illustrating an upgrading method according to an embodiment of the present disclosure, as shown in fig. 8, in a possible implementation manner, where the device to be upgraded is a processor manager to be upgraded, and in step S200, causing the device to be upgraded to abandon management of at least one processor corresponding to the device to be upgraded includes: step S210, determining a managed processor manager corresponding to the processor manager to be upgraded according to the configured managed rule. For example, the managed processor manager corresponding to the processor manager to be upgraded may be preset by a developer, and the developer may also set other rules to determine the managed processor manager, for example: the processor manager with the lower resource occupation amount in the current time period is selected as the hosting processor manager and the like, the embodiment of the disclosure is not limited, and developers can flexibly set the hosting processor manager according to actual requirements. By setting the managed processor manager, the method and the device for upgrading the processor manager can reduce the possibility of service interruption of the processor corresponding to the processor manager to be upgraded in the process of upgrading the processor manager to be upgraded, and are favorable for the processor manager to be applied to high-reliability scenes.
In one possible embodiment, step S210 may include at least one of: and determining at least one managed processor manager corresponding to the processor manager to be upgraded according to a managed sequence rule configured by the processor manager to be upgraded. And determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the load state corresponding to each processor manager. And determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager. The processor manager or the management terminal may also preferentially select a processor manager with a lower load as the managed processor manager according to the load status corresponding to each processor manager. A developer may also set a corresponding hosting limit for each processor manager, i.e., the processor manager cannot be a hosting processor manager for a particular processor manager, and the disclosed embodiments are not limited thereto. For example, the hosting sequence rule may be represented as a list of processor managers with connection numbers, and the processor manager to be upgraded may access the processor managers sequentially through the connection numbers, and the specific data format of the embodiment of the present disclosure is not limited herein.
Continuing to refer to fig. 8, step S220 controls the to-be-upgraded processor manager to abandon management of at least one processor corresponding thereto and perform at least one of the following: sending a first hosting start instruction to the hosting processor manager. Wherein the first hosting start instruction is to instruct the hosting processor manager to manage at least one processor to be upgraded for which the processor manager relinquishes management. Sending a second escrow start instruction to the at least one processor that relinquishes management. Wherein the second escrow start instruction is to instruct the at least one processor that relinquishes management to join the escrow processor manager. In combination with an actual application scenario, a hosting start instruction can be generated by a management terminal or a processor manager to be upgraded and sent to a hosting processor manager or a processor to be abandoned, so that the processor to be abandoned can be actively or passively connected to the hosting processor manager. For example, the processor manager to be upgraded may correspond to one or more managed processor managers, and the processor manager to be upgraded may also deliver the corresponding processor to the one or more managed processor managers for management. The multiple managed processor managers may also perform allocation management on at least one processor corresponding to the upgraded processor manager according to rules preset by a developer, for example: the managed processor manager with relatively smaller resource occupation amount can be allocated with more processors, and the managed processor manager with relatively larger resource occupation amount can be allocated with fewer or no processors, etc., and the embodiment of the disclosure is not limited herein, and can be determined by developers according to actual needs. For example, the processor manager may notify the managed processor manager, respectively, of a processor hosting start instruction to start execution of the processor hosting flow.
In a possible implementation manner, the determining, according to a hosting sequence rule configured by the processor manager to be upgraded, at least one hosted processor manager corresponding to the processor manager to be upgraded includes: and sequentially determining at least one processor manager with the load smaller than a threshold value according to a hosting sequence rule configured by the manager to be upgraded, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded. The instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded according to a managed sequence rule configured by any one of the processor manager, the management terminal and the processor until the at least one processor which is abandoned is managed by the managed processor manager. For example, the embodiments of the present disclosure may allocate a processor manager with a smaller real-time load to the processor as a managed processor manager by monitoring the load of the processor manager, so as to improve the stability of the service processing.
In one possible embodiment, the ability to receive a host is inversely related to at least one of: the total amount of processors currently managed by the processor manager, and the current load state of the processor manager. The determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager includes: and determining a hosting sequence according to the total amount of the processors currently managed by the processor manager and/or the current load state of the processor manager. Wherein the order of hosting of the currently managed processor complexes is earlier than the order of hosting of the currently more processor complexes and/or the currently more heavily loaded processor complexes. And then sending the hosting sequence to a processor or sequentially determining at least one processor manager according to the hosting sequence, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded. Wherein the hosting order is to instruct the processors to determine their corresponding hosted processor managers. The instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded until the at least one processor which is abandoned is managed by the managed processor manager. For example, the embodiment of the disclosure may allocate a processor manager with less management pressure to the processor by determining the hosting order, which is beneficial to increasing the overall stability of the system and also beneficial to reducing the waste of the management resources of the processor manager. Illustratively, the hosting order described above may be represented as a table with the processor managers of the order.
In a possible implementation manner, the determining a managed processor manager corresponding to the processor manager to be upgraded includes: under the condition that it is determined that all managed processor managers corresponding to the processor manager to be upgraded are managed unsuccessfully, enabling the device to be upgraded to exit a business process responsible for the processor manager or the management terminal, wherein the business process comprises the following steps: and giving up the management of the processor corresponding to the processor manager to be upgraded. Illustratively, the embodiment of the disclosure supports a scenario that in the case of a hosting failure (for example, the total number of processors managed by each processor manager is greater than a preset value), the processor manager to be upgraded may directly abandon the management, directly perform the upgrade, and then access the processor which is abandoned before after the upgrade is completed.
In a possible implementation manner, causing the device to be upgraded to abandon the management of the at least one processor corresponding to the device to be upgraded in step S200 includes: and sending a hosting starting instruction to at least one processor corresponding to the processor manager to be upgraded. The hosting start instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to autonomously select a hosting processor manager according to a preset rule or a manager list and connect the hosting processor manager. Illustratively, a managed instruction may be issued directly for a processor, a new processor manager responsible for management is autonomously selected by the processor, and a managed flow is started until an available managed processor manager is found. The preset rule is not limited herein, and may be a managed rule described in the embodiment of the present disclosure or any other rule adapted to an actual usage scenario, and the manager list may include information related to a managed processor manager or other managers that can be selected by the processor, and the embodiment of the present disclosure is not limited herein.
In a possible implementation manner, causing the device to be upgraded to abandon the management of the at least one processor corresponding to the device to be upgraded in step S200 includes: and restarting the processor manager to be upgraded to generate management failure of the processor. The management failure is used for autonomously selecting a managed processor manager and connecting the managed processor manager under the condition that at least one processor corresponding to the equipment to be upgraded detects the management failure. Illustratively, the restart may be directly performed, a management failure is generated, the GPU card starts a switching process after autonomously detecting the management failure, determines a managed processor manager, and starts a managed process, it should be understood that the process may also be determined according to the preset rule, the manager list, and the like, and the embodiment of the present disclosure is not limited herein. Furthermore, the management failure is not necessarily represented by some data or instruction, and the selection of the managed processor manager may be automatically performed by the processor in case that the processor detects that the managed processor manager is not managed by the processor manager.
In a possible implementation manner, causing the device to be upgraded to abandon the management of the at least one processor corresponding to the device to be upgraded in step S200 includes: sending a abandon management instruction to the processor manager to be upgraded or at least one processor corresponding to the processor manager to be upgraded, and receiving an instruction execution result sent by the processor manager to be upgraded or the at least one processor corresponding to the processor manager to be upgraded in response to the abandon management instruction. Wherein the relinquish management instruction is to instruct the processor manager to be upgraded to relinquish management of its corresponding at least one processor. Illustratively, in combination with the actual application scenario, an abandon management instruction may be generated and sent by the management terminal to the processor manager to be upgraded, so that the processor manager to be upgraded may abandon the management of the processor. In another example, the relinquishing management instruction may also be generated and executed directly in the processor manager to be upgraded (e.g., a developer writes the instruction directly in the processor manager to be upgraded) so that it relinquishes management of the processor. In an example, the processor manager to be upgraded may give up management of all corresponding processors, and may also give up management of a corresponding part of processors.
Continuing to refer to fig. 7, in step S300, upgrade feedback generated by the device to be upgraded in response to the upgrade data is received. For example, the upgrade feedback may include upgrade success, upgrade failure, and the like, and the embodiments of the present disclosure are not limited herein. In the case of failure of the upgrade, processing may be performed in conjunction with a processing flow for an exceptional event, which will be described later.
And step S400, under the condition that the upgrade feedback is successful, restarting the equipment to be upgraded, and adding the restarted equipment to be upgraded into the business process as upgraded equipment or enabling the upgraded equipment to recover the management of a processor corresponding to the upgraded equipment.
In a possible implementation, the restarting of the device to be upgraded in step S400 includes at least one of: and receiving a restart completion message sent after the equipment to be upgraded is upgraded and automatically restarted. And sending a restart instruction to the equipment to be upgraded, and receiving a restart completion message sent by the equipment to be upgraded in response to the restart instruction. The restart instruction is used for indicating the equipment to be upgraded to restart. Illustratively, the restart may be initiated autonomously by the device to be upgraded, or may be initiated by the management terminal or the processor manager sending a restart instruction, and embodiments of the present disclosure are not limited herein. The restart completion message is used for informing the management terminal or the processor manager that the restart of the equipment to be upgraded is completed.
In a possible implementation manner, the restoring, in step S400, the upgraded device to manage the processor corresponding to the upgraded device includes: sending a managed end message to the managed processor manager. Wherein the managed processor manager is used for managing the processor corresponding to the processor manager to be upgraded according to the managed end message. And then receiving an execution result sent by the managed processor manager in response to the managed end message. And sending a hosting switchback instruction to the hosting processor manager when the execution result is that the hosting is finished successfully. The managed switching-back instruction is used for instructing at least one managed processor manager to send a first switching-back instruction to at least one processor corresponding to the processor manager to be upgraded, and abandoning management of the processor corresponding to the processor manager to be upgraded. The first rollback instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to send a management instruction to the processor manager to be upgraded according to a first preset rule. The management instruction is used for indicating the processor manager to be upgraded to determine whether to manage at least one processor corresponding to the processor manager to be upgraded according to a second preset rule and the current management capability. Wherein the hosting end message and the hosting switchback instruction have an instruction merging condition. For example, the hosting end message and the hosting switchback instruction may be merged into one instruction, that is, when hosting is ended, the switchback process is started at the same time, and the embodiments of the present disclosure are not limited herein.
Various embodiments of the disclosure are provided herein by reference.
In a possible implementation manner, the device to be upgraded is a processor to be upgraded or a processor manager to be upgraded, and step S200 may include: and determining one current upgrading device in the devices to be upgraded, sending upgrading data to the current upgrading device, and enabling the current upgrading device to exit a service process responsible for the processor manager or the management terminal. Step S300 may include: and receiving upgrade feedback generated by the current upgrade equipment in response to the upgrade data. The restarting the device to be upgraded and adding the restarted device to be upgraded as an upgraded device to the business process may include: and restarting the current upgrading equipment, adding the restarted current upgrading equipment into the business process as upgraded equipment, and re-executing the equipment to be upgraded currently in the equipment to be upgraded until the equipment to be upgraded is upgraded completely. And by combining with the actual application scene, the processor or the processor manager can be upgraded one by one.
In a possible implementation manner, the determining a current upgrading device in the devices to be upgraded includes any one of: and determining one current device to be upgraded in the devices to be upgraded according to a preset rule or a device list to be upgraded by the upgraded devices, and determining one current device to be upgraded in the devices to be upgraded according to a preset device list to be upgraded. For example, the processor manager may determine the device to be upgraded through the upgraded device according to a preset rule (it is sufficient to derive an upgrade order of the processor from the rule, and the embodiment of the present disclosure is not specifically limited herein) or a device to be upgraded list (a list recorded with the device to be upgraded). For example: the updated device can store a preset rule or a device list to be updated, namely the updated device can determine the next device to be updated according to the rule or the device list to be updated, then inform the next device to be updated to update, and restart the updated device (the execution time of the restart operation can be adjusted according to actual requirements) until the update of each device to be updated is completed. In another example, the management terminal or the processor manager may also store the preset rule and the list of the devices to be upgraded, that is, the management terminal or the processor manager may specify the current devices to be upgraded.
In a possible implementation manner, the sending upgrade data to the device to be upgraded in step S200, and enabling the device to be upgraded to exit from a service process in which the processor manager or the management terminal is responsible, may include: and determining a group of current upgrading equipment groups in the equipment to be upgraded, sending upgrading data to the current upgrading equipment groups, and enabling at least one current upgrading equipment in the current upgrading equipment groups to exit a service process responsible for the processor manager or the management terminal. Step S300 may include: and receiving upgrade feedback generated by at least one current upgrade device in the current upgrade device group in response to the upgrade data. The restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting at least one current upgrading device in the current upgrading device group, adding the restarted at least one current upgrading device in the current upgrading device group as an upgraded device into the business process, and re-executing the step of determining a group of current upgrading device groups in the devices to be upgraded until the devices to be upgraded are upgraded. For example, in the embodiment of the present disclosure, a group of processors may also be set, that is, the processors may be upgraded in a whole group upgrading manner, and the processors may be upgraded one by one or multiple at the same time in a group, which is not limited herein.
In a possible implementation manner, the determining a set of currently upgraded devices in the devices to be upgraded includes any one of: determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset rule or an equipment group list to be upgraded by at least one upgraded equipment in the upgraded equipment group, and determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset equipment group list to be upgraded. For example, the next device group to be upgraded may be determined by any upgraded device in the upgraded device group, where the preset rule or the list of the device groups to be upgraded is stored, and may also be specified by the management terminal or the processor manager, which is not limited herein.
In a possible implementation manner, the sending upgrade data to the device to be upgraded in step S200, and enabling the device to be upgraded to exit from the service process responsible by the processor manager or the management terminal may include: and sending upgrade data to all equipment to be upgraded, and enabling all the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal. Step S300 may include: and receiving upgrade feedback generated by all the devices to be upgraded in response to the upgrade data. The restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting the successfully upgraded equipment to be upgraded, and adding the restarted equipment to be upgraded into the business process as the upgraded equipment. In combination with the actual application scenario, the processors or processor managers needing to be upgraded can be upgraded simultaneously. It should be understood that in some other examples, the above approaches may be combined in any combination, such as: and grouping part of the devices to be upgraded, upgrading the same group of devices to be upgraded simultaneously, and the like.
With reference to fig. 9, fig. 9 is a reference schematic diagram illustrating an upgrade method provided according to an embodiment of the present disclosure, where the processor manager to be upgraded is taken as a server, and an upgrade flow provided by the embodiment of the present disclosure is exemplarily described herein. Server a starts preparation for rolling upgrade (i.e., upgrade), notifies other servers that upgrade is to be performed, respectively, and transmits an upgrade package (i.e., upgrade data) to the other servers. Of course, in some examples, the management terminal may also be used as the execution subject of the above steps. And if the hosting server corresponding to the server A is the server B, the server A gives up the management of the corresponding processor, and the server B takes over the GPU card managed by the server A. Of course, in some examples, server a may correspond to multiple hosted servers. The server B informs the server A that the taking over is successful, and the server A starts to upgrade and restart. And under the condition that the server A is successfully upgraded, informing other servers of completing the upgrade, giving up the GPU card corresponding to the management server A by the server B, and informing the server A to continuously manage the GPU card corresponding to the server A. After taking over the GPU card successfully, the server a notifies any one or more servers (i.e. servers that can be upgraded at the same time) of the other servers (e.g. server C and server D) to start upgrading, for example, notifies the server B to start upgrading. Until the upgrading of each server to be upgraded is completed.
In a possible implementation manner, the upgrading method can be applied to a processor manager, and the device to be upgraded is a processor to be upgraded. The upgrade data is firmware upgrade data. The firmware upgrading data is used for upgrading the firmware in the processor to be upgraded.
Exemplarily, referring to fig. 10, fig. 10 shows a reference schematic diagram of an upgrade method provided according to an embodiment of the present disclosure. Taking a cluster as an example of a GPU cluster, the cluster includes at least one GPU management card or server (i.e., taking the GPU management card and the server as the processor managers), each GPU management card or server can correspondingly manage at least one GPU card (or called GPU, i.e., taking the GPU as the processor), first selecting one GPU in the cluster (i.e., taking the GPU as the processor to be upgraded) (the selection may be performed in various ways, for example, selecting one processor manager first and then sequentially upgrading each processor corresponding to the processor manager, selecting the next processor manager after upgrading each processor, continuing the process until each processor is upgraded, and then, for example, directly randomly selecting the processors in the cluster for upgrading until each processor in the cluster is upgraded, which is not limited in this embodiment of the present disclosure), and then exiting the cluster (for example, assuming that the GPU management card or server does not issue new data or instructions to the GPU management card or server) and, in case of the exiting the service, transmitting the new firmware (for example, any firmware in the management terminal, the GPU management card or the server sends the new firmware as the firmware to the GPU manager). And upgrading the firmware under the condition of successful transmission, and restarting the GPU card under the condition of successful upgrading. And after the system is restarted, the system is added into the service until the GPU management card or the GPU card in the server is upgraded (in some examples, part of the GPU card can be upgraded). When any one of the abnormal events, such as failure to exit the service, failure to transmit new firmware, and failure to upgrade new firmware, occurs, the abnormal processing flow may be started (for example, sending a prompt message or performing self-repair, which will be described in detail later).
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded or a processor to be upgraded, and the upgrading method further includes: and detecting the corresponding abnormal event of the equipment to be upgraded in the upgrading process. Illustratively, the above exception event may include: the processor or the processor manager fails to exit the service, fails to transmit the upgrade data, fails to upgrade, and the like, and the embodiment of the disclosure is not limited herein, and developers may add or delete detectable abnormal events according to actual situations. Under the condition that the abnormal event is detected to occur in the equipment to be upgraded, at least one of the following is executed: according to the abnormal event, generating prompt information, storing the abnormal event, repairing the abnormal event, and storing the abnormal event and the repairing result. For example, the prompt information is used to prompt the developer that an abnormal event occurs, and may be stored in a log corresponding to the processor or the processor manager, or may be displayed in the management terminal to play a role of prompting.
According to the embodiment of the disclosure, the difficulty of manually checking the abnormity is reduced by setting the detection flow of the abnormal event, and the labor cost is saved.
It is understood that the above-mentioned method embodiments of the present disclosure can be combined with each other to form a combined embodiment without departing from the logic of the principle, which is limited by the space, and the detailed description of the present disclosure is omitted. Those skilled in the art will appreciate that in the above methods of the specific embodiments, the specific order of execution of the steps should be determined by their function and possibly their inherent logic.
In addition, the present disclosure also provides an electronic device, a computer-readable storage medium, and a program, which can be used to implement any one of the upgrading methods provided by the present disclosure, and the corresponding technical solutions and descriptions and corresponding descriptions of the method portions are not described again.
Fig. 11 shows a block diagram of an electronic device provided according to an embodiment of the present disclosure, and as shown in fig. 11, the electronic device 100 includes: a processor manager or a management terminal, the processor manager being connected to at least one processor, the management terminal being connected to at least one processor manager, the electronic device 100 comprising: a device to be upgraded determining module 110, configured to determine the at least one processor manager or a device to be upgraded in the at least one processor; an upgrade data sending module 120, configured to send upgrade data to the device to be upgraded, and enable the device to be upgraded to exit a service process in charge of the processor manager or the management terminal, or enable the device to be upgraded to give up management of at least one processor corresponding to the device to be upgraded; an upgrade feedback receiving module 130, configured to receive upgrade feedback generated by the device to be upgraded in response to the upgrade data; and the service process restarting module 140 is configured to restart the device to be upgraded when the upgrade feedback indicates that the upgrade is successful, and add the restarted device to be upgraded as an upgraded device to the service process, or enable the upgraded device to recover management of a processor corresponding to the upgraded device.
In a possible implementation manner, the sending upgrade data to the device to be upgraded and enabling the device to be upgraded to exit from a service process in charge of the processor manager or the management terminal includes: determining one current upgrading device in the devices to be upgraded, sending upgrading data to the current upgrading device, and enabling the current upgrading device to quit a service process responsible for the processor manager or the management terminal; the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by the current upgrade equipment in response to the upgrade data; the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting the current upgrading equipment, adding the restarted current upgrading equipment into the business process as upgraded equipment, and re-executing the equipment to be upgraded currently in the equipment to be upgraded until the equipment to be upgraded is upgraded completely.
In a possible implementation manner, the determining a current upgrading device in the devices to be upgraded includes any one of: determining one current device to be upgraded in the devices to be upgraded according to a preset rule or a device list to be upgraded by the upgraded devices; and determining one current device to be upgraded in the devices to be upgraded according to a preset device list to be upgraded.
In a possible implementation manner, the sending upgrade data to the device to be upgraded and enabling the device to be upgraded to exit a service process responsible for the processor manager or the management terminal includes: determining a group of current upgrading equipment groups in the equipment to be upgraded, sending upgrading data to the current upgrading equipment groups, and enabling at least one current upgrading equipment in the current upgrading equipment groups to exit a service process responsible for the processor manager or the management terminal; the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by at least one current upgrade device in the current upgrade device group in response to the upgrade data; the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting at least one current upgrading device in the current upgrading device group, adding the restarted at least one current upgrading device in the current upgrading device group as an upgraded device into the business process, and re-executing the step of determining a group of current upgrading device groups in the devices to be upgraded until the devices to be upgraded are upgraded.
In a possible implementation manner, the determining a set of current upgrade device groups in the devices to be upgraded includes any one of: determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset rule or an equipment group list to be upgraded by at least one piece of upgraded equipment in the upgraded equipment group; and determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset equipment group list to be upgraded.
In a possible implementation manner, the sending upgrade data to the device to be upgraded and enabling the device to be upgraded to exit from a service process in charge of the processor manager or the management terminal includes: sending upgrade data to all equipment to be upgraded, and enabling all the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal; the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by all the equipment to be upgraded in response to the upgrade data; the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting the successfully upgraded equipment to be upgraded, and adding the restarted equipment to be upgraded into the business process as the upgraded equipment.
In a possible implementation manner, the business process of causing the device to be upgraded to exit the responsibility of the processor manager or the management terminal includes at least one of the following: determining whether the equipment to be upgraded finishes the current task corresponding to the current business process, and stopping sending a new task to the equipment to be upgraded under the condition that the equipment to be upgraded finishes the current task corresponding to the current business process; stopping sending a new task to the equipment to be upgraded, determining whether the equipment to be upgraded finishes the existing task, and determining that the equipment to be upgraded exits from a business process responsible for the processor manager or the management terminal under the condition of determining that the equipment to be upgraded finishes the existing task.
In a possible embodiment, the restarting the device to be upgraded comprises at least one of: receiving a restart completion message sent after the equipment to be upgraded is upgraded and automatically restarted; sending a restart instruction to the equipment to be upgraded, and receiving a restart completion message sent by the equipment to be upgraded in response to the restart instruction; the restart instruction is used for indicating the equipment to be upgraded to restart.
In a possible implementation manner, in a case that the processor manager is not the device to be upgraded, the sending upgrade data to the device to be upgraded includes: sending upgrading data locally stored by a processor manager or a management terminal to at least one of a processor manager corresponding to the processor to be upgraded, the processor to be upgraded and the processor manager to be upgraded; the upgrade data is to perform at least one of: performing firmware upgrade on the processor to be upgraded or the processor manager to be upgraded through the processor manager, and performing firmware upgrade on the processor to be upgraded or the processor manager to be upgraded; when the processor manager is the device to be upgraded, the sending upgrade data to the device to be upgraded includes: and reading the locally stored upgrading data.
In a possible implementation, the device to be upgraded is a processor manager to be upgraded; the upgrade data is drive upgrade data; and the drive upgrading data is used for upgrading the drive corresponding to the processor managed by the processor manager to be upgraded.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to relinquish management of at least one processor corresponding to the device to be upgraded includes: determining a managed processor manager corresponding to the processor manager to be upgraded according to the configured managed rule; controlling the processor manager to be upgraded to give up management of at least one processor corresponding to the processor manager and to perform at least one of: sending a first hosting start instruction to the hosting processor manager; wherein the first hosting start instruction is used for instructing the hosting processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management; sending a second escrow start instruction to the at least one processor to abort management; wherein the second escrow start instruction is to instruct the at least one processor that relinquishes management to join the escrow processor manager.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to relinquish management of at least one processor corresponding to the device to be upgraded includes: sending a hosting starting instruction to at least one processor corresponding to the processor manager to be upgraded; the hosting start instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to autonomously select a hosting processor manager according to a preset rule or a manager list and connect the hosting processor manager.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to relinquish management of at least one processor corresponding to the device to be upgraded includes: restarting the processor manager to be upgraded to generate management failure of the processor; the management failure is used for autonomously selecting a managed processor manager and connecting the managed processor manager under the condition that at least one processor corresponding to the equipment to be upgraded detects the management failure.
In one possible implementation, the electronic device is configured to perform at least one of: the causing the device to be upgraded to abandon management of at least one processor corresponding to the device to be upgraded includes: sending a abandon management instruction to the processor manager to be upgraded or at least one processor corresponding to the processor manager to be upgraded, and receiving an instruction execution result sent by the processor manager to be upgraded or the at least one processor corresponding to the processor manager to be upgraded in response to the abandon management instruction; wherein the relinquish management instruction is to instruct the processor manager to be upgraded to relinquish management of its corresponding at least one processor.
In a possible implementation, the upgraded device is an upgraded processor manager, and the causing the upgraded device to resume management of a processor corresponding to the upgraded device includes: sending a hosting end message to the hosting processor manager; wherein the hosting end message is used for instructing the hosting processor manager to abandon the management of the processor corresponding to the processor manager to be upgraded; receiving an execution result sent by the managed processor manager in response to the managed end message; sending a hosting switchback instruction to the hosting processor manager under the condition that the execution result is that the hosting is finished successfully; the managed switching-back instruction is used for instructing at least one managed processor manager to send a first switching-back instruction to at least one processor corresponding to the processor manager to be upgraded and abandoning the management of the processor corresponding to the processor manager to be upgraded; the first rollback instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to send a management instruction to the processor manager to be upgraded according to a first preset rule; the management instruction is used for indicating the processor manager to be upgraded to determine whether to manage at least one processor corresponding to the processor manager to be upgraded according to a second preset rule and current management capability; wherein the hosting end message and the hosting switchback instruction have an instruction merging condition.
In a possible embodiment, the determining, according to the configured hosting rule, a hosting processor manager corresponding to the processor manager to be upgraded includes at least one of: determining at least one managed processor manager corresponding to the processor manager to be upgraded according to a managed sequence rule configured by the processor manager to be upgraded; determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the load state corresponding to each processor manager; and determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager.
In a possible implementation manner, the determining, according to a hosting sequence rule configured by the processor manager to be upgraded, at least one hosted processor manager corresponding to the processor manager to be upgraded includes: sequentially determining at least one processor manager with the load smaller than a threshold value according to a hosting sequence rule configured by the manager to be upgraded, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded; the instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded according to a managed sequence rule configured by any one of the processor manager, the management terminal and the processor until the at least one processor which is abandoned is managed by the managed processor manager.
In one possible embodiment, the ability to receive a host is inversely related to at least one of: the total amount of processors currently managed by the processor manager and the current load state of the processor manager; the determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager includes: determining a hosting sequence according to the total amount of processors currently managed by the processor manager and/or the current load state of the processor manager; wherein the order of hosting of the processor managers that are currently managed with a smaller total number of processors and/or are currently less loaded is earlier than the order of hosting of the processor managers that are currently managed with a larger total number of processors and/or are currently more loaded; sending the hosting sequence to a processor or sequentially determining at least one processor manager according to the hosting sequence, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded; wherein the hosting order is to instruct the processors to determine their corresponding hosted processor managers; the instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded until the at least one processor which is abandoned is managed by the managed processor manager.
In a possible implementation manner, the determining a managed processor manager corresponding to the processor manager to be upgraded includes: under the condition that the managed processor managers corresponding to the processor manager to be upgraded are determined to be managed unsuccessfully, enabling the device to be upgraded to exit a business process responsible for the processor manager or the management terminal, wherein the business process comprises the following steps: and giving up the management of the processor corresponding to the processor manager to be upgraded.
In a possible implementation manner, the device to be upgraded is a processor to be upgraded; the upgrade data is firmware upgrade data; the firmware upgrading data is used for upgrading the firmware in the processor to be upgraded.
In a possible implementation manner, the device to be upgraded is a processor manager to be upgraded or a processor to be upgraded, and the electronic device further includes: the abnormal event processing module is used for detecting the corresponding abnormal event of the equipment to be upgraded in the upgrading process; in the case of detecting the abnormal event in the device to be upgraded, performing at least one of the following: generating prompt information according to the abnormal event; saving the abnormal event; repairing the abnormal event; and saving the abnormal event and the repair result.
In one possible implementation, the upgrade data includes: an upgrade package or upgrade package address; the upgrade package address is used for indicating the storage position of the upgrade package.
In one possible implementation, the processor manager includes: at least one of a management processor and a server; wherein the managing processor is configured to manage processors of other processors; the management processor is connected with the server or the management terminal and is connected with at least one processor.
The method has specific technical relevance with the internal structure of the computer system, and can solve the technical problems of how to improve the hardware operation efficiency or the execution effect (including reducing data storage capacity, reducing data transmission capacity, improving hardware processing speed and the like), thereby obtaining the technical effect of improving the internal performance of the computer system according with the natural law.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the above-mentioned method. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium.
An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
The disclosed embodiments also provide a computer program product comprising computer readable code or a non-transitory computer readable storage medium carrying computer readable code, which when run in a processor of an electronic device, the processor in the electronic device performs the above method.
Fig. 12 illustrates a block diagram of an electronic device 1900 provided in accordance with an embodiment of the disclosure. For example, the electronic device 1900 may be provided as a server or terminal device. Referring to fig. 12, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, that are executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may further include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input-output interface 1958. Electronic device 1900 may operate based on operations stored in memory 1932Systems, e.g. Microsoft Server operating System (Windows Server) TM ) Apple Inc. of the present application based on the graphic user interface operating System (Mac OS X) TM ) Multi-user, multi-process computer operating system (Unix) TM ) Free and open native code Unix-like operating System (Linux) TM ) Open native code Unix-like operating System (FreeBSD) TM ) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
The foregoing description of the various embodiments is intended to highlight various differences between the embodiments, and the same or similar parts may be referred to each other, and for brevity, will not be described again herein.
It will be understood by those of skill in the art that in the above method of the present embodiment, the order of writing the steps does not imply a strict order of execution and does not impose any limitations on the implementation, as the order of execution of the steps should be determined by their function and possibly inherent logic.
If the technical scheme of the application relates to personal information, a product applying the technical scheme of the application clearly informs personal information processing rules before processing the personal information, and obtains personal independent consent. If the technical scheme of the application relates to sensitive personal information, a product applying the technical scheme of the application obtains individual consent before processing the sensitive personal information, and simultaneously meets the requirement of 'express consent'. For example, at a personal information collection device such as a camera, a clear and significant identifier is set to inform that the personal information collection range is entered, the personal information is collected, and if the person voluntarily enters the collection range, the person is regarded as agreeing to collect the personal information; or on the device for processing the personal information, under the condition of informing the personal information processing rule by using obvious identification/information, obtaining personal authorization by modes of popping window information or asking a person to upload personal information of the person by himself, and the like; the personal information processing rule may include information such as a personal information processor, a personal information processing purpose, a processing method, and a type of personal information to be processed.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (25)

1. An upgrade method applied to a processor manager or a management terminal, wherein the processor manager is connected to at least one processor, and the management terminal is connected to at least one processor manager, the upgrade method comprising:
determining the at least one processor manager or a device to be upgraded in the at least one processor;
sending upgrade data to the equipment to be upgraded, and enabling the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal, or enabling the equipment to be upgraded to abandon the management of at least one processor corresponding to the equipment to be upgraded;
receiving upgrade feedback generated by the equipment to be upgraded in response to the upgrade data;
and restarting the equipment to be upgraded under the condition that the upgrade feedback is successful, and adding the restarted equipment to be upgraded into the business process as upgraded equipment or enabling the upgraded equipment to recover the management of a processor corresponding to the upgraded equipment.
2. The upgrading method according to claim 1, wherein the device to be upgraded is a processor to be upgraded or a processor manager to be upgraded, and the sending of the upgrade data to the device to be upgraded and the causing of the device to be upgraded to exit from the business process for which the processor manager or the management terminal is responsible comprises: determining one current upgrading device in the devices to be upgraded, sending upgrading data to the current upgrading device, and enabling the current upgrading device to quit a service process responsible for the processor manager or the management terminal;
the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by the current upgrade equipment in response to the upgrade data;
the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting the current upgrading equipment, adding the restarted current upgrading equipment into the business process as upgraded equipment, and re-executing the equipment to be upgraded currently in the equipment to be upgraded until the equipment to be upgraded is upgraded completely.
3. The upgrade method according to claim 2, wherein the determining of a current upgrade device among the devices to be upgraded includes any one of:
determining one current device to be upgraded in the devices to be upgraded according to a preset rule or a device list to be upgraded by the upgraded devices;
and determining one current device to be upgraded in the devices to be upgraded according to a preset device list to be upgraded.
4. The upgrading method according to claim 1, wherein the device to be upgraded is a processor to be upgraded or a processor manager to be upgraded, and the sending of the upgrade data to the device to be upgraded and the causing of the device to be upgraded to exit from the business process for which the processor manager or the management terminal is responsible comprises: determining a group of current upgrading equipment groups in the equipment to be upgraded, sending upgrading data to the current upgrading equipment groups, and enabling at least one current upgrading equipment in the current upgrading equipment groups to exit a service process responsible for the processor manager or the management terminal;
the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by at least one current upgrade device in the current upgrade device group in response to the upgrade data;
the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: restarting at least one current upgrading device in the current upgrading device group, taking the restarted at least one current upgrading device in the current upgrading device group as an upgraded device to be added into the business process, and re-executing the step of determining a group of current upgrading device groups in the devices to be upgraded until the devices to be upgraded are upgraded completely.
5. The upgrade method according to claim 4, wherein the determining a set of current upgrade device groups in the devices to be upgraded includes any one of:
determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset rule or an equipment group list to be upgraded by at least one piece of upgraded equipment in the upgraded equipment group;
and determining a current equipment group to be upgraded in the equipment to be upgraded according to a preset equipment group list to be upgraded.
6. The upgrading method according to claim 1, wherein the device to be upgraded is a processor to be upgraded or a processor manager to be upgraded, and the sending of the upgrade data to the device to be upgraded and the causing of the device to be upgraded to exit from the business process for which the processor manager or the management terminal is responsible comprises: sending upgrade data to all equipment to be upgraded, and enabling all the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal;
the receiving of the upgrade feedback generated by the device to be upgraded in response to the upgrade data includes: receiving upgrade feedback generated by all the equipment to be upgraded in response to the upgrade data;
the restarting the equipment to be upgraded and adding the restarted equipment to be upgraded into the business process as the upgraded equipment comprises the following steps: and restarting the successfully upgraded equipment to be upgraded, and adding the restarted equipment to be upgraded into the business process as the upgraded equipment.
7. The upgrade method according to claim 1, wherein the service process of causing the device to be upgraded to exit the responsibility of the processor manager or the management terminal includes at least one of:
determining whether the equipment to be upgraded finishes the current task corresponding to the current business process, and stopping sending a new task to the equipment to be upgraded under the condition that the equipment to be upgraded finishes the current task corresponding to the current business process;
stopping sending a new task to the equipment to be upgraded, determining whether the equipment to be upgraded finishes the existing task, and determining that the equipment to be upgraded exits from a business process responsible for the processor manager or the management terminal under the condition of determining that the equipment to be upgraded finishes the existing task.
8. The upgrade method according to claim 1, wherein the rebooting the device to be upgraded comprises at least one of:
receiving a restart completion message sent after the equipment to be upgraded is upgraded and automatically restarted;
sending a restart instruction to the equipment to be upgraded, and receiving a restart completion message sent by the equipment to be upgraded in response to the restart instruction; the restart instruction is used for indicating the equipment to be upgraded to restart.
9. The upgrade method according to claim 2, wherein the upgrade method comprises at least one of:
the upgrading method is applied to a processor manager or a management terminal, and under the condition that the processor manager is not the equipment to be upgraded, the upgrading method sends upgrading data to the equipment to be upgraded and comprises the following steps: sending upgrading data locally stored by a processor manager or a management terminal to at least one of a processor manager corresponding to the processor to be upgraded, the processor to be upgraded and the processor manager to be upgraded; the upgrade data is to perform at least one of: firmware upgrading is carried out on the processor to be upgraded or the processor manager to be upgraded through the processor manager, and firmware upgrading is carried out on the processor to be upgraded or the processor manager to be upgraded; when the processor manager is the device to be upgraded, the sending upgrade data to the device to be upgraded includes: and reading the locally stored upgrading data.
10. The upgrade method according to claim 1, wherein the device to be upgraded is a processor manager to be upgraded; the upgrade data is drive upgrade data; and the drive upgrading data is used for upgrading the drive corresponding to the processor managed by the processor manager to be upgraded.
11. The upgrade method according to claim 1, wherein the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to give up management of at least one processor corresponding to the device to be upgraded includes:
determining a managed processor manager corresponding to the processor manager to be upgraded according to the configured managed rule;
controlling the processor manager to be upgraded to give up management of at least one processor corresponding to the processor manager and to perform at least one of:
sending a first hosting start instruction to the hosting processor manager; wherein the first hosting start instruction is used for instructing the hosting processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management;
sending a second escrow start instruction to the at least one processor that relinquishes management; wherein the second escrow start instruction is to instruct the at least one processor that relinquishes management to join the escrow processor manager.
12. The upgrade method according to claim 1, wherein the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to relinquish management of at least one processor corresponding to the device to be upgraded includes:
sending a hosting starting instruction to at least one processor corresponding to the processor manager to be upgraded; the hosting start instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to autonomously select a hosting processor manager according to a preset rule or a manager list and connect the hosting processor manager.
13. The upgrade method according to claim 1, wherein the device to be upgraded is a processor manager to be upgraded, and the causing the device to be upgraded to give up management of at least one processor corresponding to the device to be upgraded includes:
restarting the processor manager to be upgraded to generate management failure of the processor; the management failure is used for autonomously selecting a managed processor manager and connecting the managed processor manager under the condition that at least one processor corresponding to the equipment to be upgraded detects the management failure.
14. The upgrade method according to claim 11, further comprising any one of:
the causing the device to be upgraded to abandon management of at least one processor corresponding to the device to be upgraded includes: sending a abandon management instruction to the processor manager to be upgraded or at least one processor corresponding to the processor manager to be upgraded, and receiving an instruction execution result sent by the processor manager to be upgraded or the at least one processor corresponding to the processor manager to be upgraded in response to the abandon management instruction; wherein the relinquish management instruction is to instruct the processor manager to be upgraded to relinquish management of its corresponding at least one processor.
15. The upgrade method according to claim 11, wherein the upgraded device is an upgraded processor manager, and the causing the upgraded device to resume management of a processor corresponding to the upgraded device comprises:
sending a hosting end message to the hosting processor manager; wherein the hosting end message is used for instructing the hosting processor manager to abandon the management of the processor corresponding to the processor manager to be upgraded;
receiving an execution result sent by the managed processor manager in response to the managed end message;
sending a hosting switchback instruction to the hosting processor manager under the condition that the execution result is that the hosting is finished successfully; the managed switching-back instruction is used for instructing at least one managed processor manager to send a first switching-back instruction to at least one processor corresponding to the processor manager to be upgraded and abandoning the management of the processor corresponding to the processor manager to be upgraded; the first rollback instruction is used for instructing at least one processor corresponding to the processor manager to be upgraded to send a management instruction to the processor manager to be upgraded according to a first preset rule; the management instruction is used for indicating the processor manager to be upgraded to determine whether to manage at least one processor corresponding to the processor manager to be upgraded according to a second preset rule and current management capability; wherein the hosting end message and the hosting switchback instruction have an instruction merging condition.
16. The upgrading method according to claim 11, wherein the determining a managed processor manager corresponding to the processor manager to be upgraded according to the configured managed rule includes at least one of:
determining at least one managed processor manager corresponding to the processor manager to be upgraded according to a managed sequence rule configured by the processor manager to be upgraded;
determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the load state corresponding to each processor manager;
and determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager.
17. The upgrading method according to claim 16, wherein the determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed order rule configured by the processor manager to be upgraded includes: sequentially determining at least one processor manager with the load smaller than a threshold value according to a hosting sequence rule configured by the manager to be upgraded, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded;
the instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded according to a managed sequence rule configured by any one of the processor manager, the management terminal and the processor until the at least one processor which is abandoned is managed by the managed processor manager.
18. The upgrade method according to claim 16, wherein the capability to receive a hosting is inversely related to at least one of: the total amount of processors currently managed by the processor manager and the current load state of the processor manager;
the determining at least one managed processor manager corresponding to the processor manager to be upgraded according to the managed receiving capacity corresponding to each processor manager includes: determining a hosting sequence according to the total amount of processors currently managed by the processor manager and/or the current load state of the processor manager; wherein the order of hosting of the processor managers that are currently managed with a smaller total number of processors and/or are currently less loaded is earlier than the order of hosting of the processor managers that are currently managed with a larger total number of processors and/or are currently more loaded;
sending the hosting sequence to a processor or sequentially determining at least one processor manager according to the hosting sequence, and using the at least one processor manager as at least one hosting processor manager corresponding to the processor manager to be upgraded; wherein the hosting order is to instruct the processors to determine their corresponding hosted processor managers;
the instructing the managed processor manager to manage at least one processor to be managed by the processor manager to be upgraded by abandoning management comprises: and instructing the managed processor manager to manage at least one processor which is abandoned by the processor manager to be upgraded, and under the condition that the at least one processor which is abandoned is not managed by the managed processor manager, re-executing the at least one managed processor manager which determines the corresponding processor manager to be upgraded until the at least one processor which is abandoned is managed by the managed processor manager.
19. The upgrade method according to claim 11, wherein the determining a managed processor manager corresponding to the processor manager to be upgraded comprises:
under the condition that the managed processor managers corresponding to the processor manager to be upgraded are determined to be managed unsuccessfully, enabling the device to be upgraded to exit a business process responsible for the processor manager or the management terminal, wherein the business process comprises the following steps: and giving up the management of the processor corresponding to the processor manager to be upgraded.
20. The upgrading method according to claim 1, wherein the upgrading method is applied to a processor manager, and the device to be upgraded is a processor to be upgraded; the upgrade data is firmware upgrade data; the firmware upgrading data is used for upgrading the firmware in the processor to be upgraded.
21. The upgrade method according to claim 1, wherein the device to be upgraded is a processor manager to be upgraded or a processor to be upgraded, the upgrade method further comprising:
detecting an abnormal event corresponding to the equipment to be upgraded in the upgrading process;
in the case of detecting the abnormal event in the device to be upgraded, performing at least one of the following: generating prompt information according to the abnormal event; saving the abnormal event; repairing the abnormal event; and saving the abnormal event and the repair result.
22. The upgrade method according to claim 1, wherein the upgrade data includes: an upgrade package or upgrade package address; the upgrade package address is used for indicating the storage position of the upgrade package.
23. The upgrade method according to any one of claims 1 to 22, wherein the processor manager comprises: at least one of a management processor and a server; wherein the management processor is configured to manage processors of other processors; the management processor is connected with the server or the management terminal and is connected with at least one processor.
24. An electronic device comprising a processor manager or a management terminal, wherein the processor manager is connected to at least one processor, and the management terminal is connected to at least one of the processor managers, the electronic device comprising:
the device to be upgraded determining module is used for determining the at least one processor manager or the device to be upgraded in the at least one processor;
the upgrading data sending module is used for sending upgrading data to the equipment to be upgraded, enabling the equipment to be upgraded to exit from a service process responsible for the processor manager or the management terminal, or enabling the equipment to be upgraded to give up management on at least one processor corresponding to the equipment to be upgraded;
the upgrade feedback receiving module is used for receiving upgrade feedback generated by the equipment to be upgraded in response to the upgrade data;
and the business process restarting module is used for restarting the equipment to be upgraded under the condition that the upgrade feedback is successful, and adding the restarted equipment to be upgraded into the business process as upgraded equipment or enabling the upgraded equipment to recover the management of a processor corresponding to the upgraded equipment.
25. A computer readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the upgrade method of any one of claims 1 to 23.
CN202211523316.XA 2022-12-01 2022-12-01 Upgrade method, electronic device and storage medium Active CN115629785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211523316.XA CN115629785B (en) 2022-12-01 2022-12-01 Upgrade method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211523316.XA CN115629785B (en) 2022-12-01 2022-12-01 Upgrade method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN115629785A true CN115629785A (en) 2023-01-20
CN115629785B CN115629785B (en) 2023-05-05

Family

ID=84910995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211523316.XA Active CN115629785B (en) 2022-12-01 2022-12-01 Upgrade method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115629785B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543393A (en) * 2022-12-01 2022-12-30 摩尔线程智能科技(北京)有限责任公司 Upgrading method, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217257A1 (en) * 2002-05-17 2003-11-20 Ebsen David S. Method for updating memory resident firmware as a background operation
CN103970567A (en) * 2014-04-28 2014-08-06 浪潮电子信息产业股份有限公司 Method for online upgrading of cloud storage system firmware
CN113196230A (en) * 2021-03-24 2021-07-30 华为技术有限公司 Terminal upgrading method and device
CN113938386A (en) * 2021-09-30 2022-01-14 青岛海尔科技有限公司 Firmware upgrading method and device
CN114090050A (en) * 2021-11-30 2022-02-25 上海有个机器人有限公司 Robot software remote automatic updating method, system and related products

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217257A1 (en) * 2002-05-17 2003-11-20 Ebsen David S. Method for updating memory resident firmware as a background operation
CN103970567A (en) * 2014-04-28 2014-08-06 浪潮电子信息产业股份有限公司 Method for online upgrading of cloud storage system firmware
CN113196230A (en) * 2021-03-24 2021-07-30 华为技术有限公司 Terminal upgrading method and device
CN113938386A (en) * 2021-09-30 2022-01-14 青岛海尔科技有限公司 Firmware upgrading method and device
CN114090050A (en) * 2021-11-30 2022-02-25 上海有个机器人有限公司 Robot software remote automatic updating method, system and related products

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115543393A (en) * 2022-12-01 2022-12-30 摩尔线程智能科技(北京)有限责任公司 Upgrading method, electronic device and storage medium
CN115543393B (en) * 2022-12-01 2023-08-22 摩尔线程智能科技(北京)有限责任公司 Upgrade method, electronic device and storage medium

Also Published As

Publication number Publication date
CN115629785B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US8495618B1 (en) Updating firmware in a high availability enabled computer system
CN109165055B (en) Unmanned system component loading method and device, computer equipment and medium
CN107066300B (en) Firmware upgrading method of storage device and storage device
CN104350466A (en) Virtual machine image write leasing
CN113760332A (en) Software upgrading method and electronic equipment
CN109471647B (en) Data updating method and device, electronic equipment and readable medium
US20230211694A1 (en) Method and device for controlling vehicle charging and vehicle
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN115629785A (en) Upgrading method, electronic device and storage medium
CN115202686A (en) Virtualization system upgrading method and device, electronic equipment and storage medium
CN115220876A (en) Virtual resource creating method, device, program product, medium and electronic equipment
CN114064438A (en) Database fault processing method and device
EP4006725A1 (en) Virtual machine migration processing and strategy generation method, apparatus and device, and storage medium
CN115543393B (en) Upgrade method, electronic device and storage medium
CN111090537B (en) Cluster starting method and device, electronic equipment and readable storage medium
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN116361114A (en) AI board monitoring keep-alive method, device, equipment and medium
CN111124291A (en) Data storage processing method and device of distributed storage system and electronic equipment
CN112751693A (en) Data processing method and device of distributed storage system and electronic equipment
US11500857B2 (en) Asynchronous remote calls with undo data structures
CN109871226B (en) Configuration method, device and medium of downloader and electronic equipment
CN113377385A (en) Client automatic deployment method and device
CN110908821B (en) Method, device, equipment and storage medium for task failure management
CN109510867B (en) Data request processing method and device, storage medium and electronic equipment
CN109101253B (en) Management method and device for host in cloud computing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant