CN114327542B - Service equipment updating method and device, electronic equipment and storage medium - Google Patents

Service equipment updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114327542B
CN114327542B CN202111522295.5A CN202111522295A CN114327542B CN 114327542 B CN114327542 B CN 114327542B CN 202111522295 A CN202111522295 A CN 202111522295A CN 114327542 B CN114327542 B CN 114327542B
Authority
CN
China
Prior art keywords
target
equipment
application
service equipment
application data
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.)
Active
Application number
CN202111522295.5A
Other languages
Chinese (zh)
Other versions
CN114327542A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111522295.5A priority Critical patent/CN114327542B/en
Publication of CN114327542A publication Critical patent/CN114327542A/en
Application granted granted Critical
Publication of CN114327542B publication Critical patent/CN114327542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a service device updating method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a device docking request; determining target service equipment in butt joint with the storage equipment at the current moment based on the equipment butt joint request, and acquiring first version information corresponding to the target service equipment; under the condition that the first version information is higher than the second version information corresponding to the history service equipment docked by the storage equipment, acquiring application data stored in the storage equipment by the target application deployed in the history service equipment; and establishing a binding relation between the application data and the target service equipment. According to the application, the application data of the service equipment is stored through the storage equipment, when the service equipment with higher version information exists, the stored application data is directly connected with the service equipment with higher version information, and the application data is not required to be directly migrated from the service equipment with the original version to the service equipment with the new version, so that the service efficiency is improved.

Description

Service equipment updating method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for updating a service device, an electronic device, and a storage medium.
Background
OpenStack is an open-source cloud computing management platform, which comprises a combination of a series of software open-source projects. When the version is updated, the components are more and the mutual dependency relationship is complex, so that the problem is easy to occur and the positioning is difficult. In the prior art, when the OpenStack is upgraded, a newly-built version of OpenStack is generally used to replace an original version of OpenStack to provide services. However, in the replacement process, the whole migration needs to be performed on the application carried by the OpenStack of the original version, and in the process of implementing the application, the inventor discovers that the whole migration directly on the application carried by the OpenStack of the original version involves a very large period and cost, and affects the service processing efficiency of the OpenStack.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a service device updating method, a service device updating device, an electronic device and a storage medium.
According to an aspect of an embodiment of the present application, there is provided a method for updating a service device, applied to a storage device, the method including:
receiving a device docking request;
determining target service equipment which is in butt joint with the storage equipment at the current moment based on the equipment butt joint request, and acquiring first version information corresponding to the target service equipment;
acquiring application data stored in the storage device by a target application deployed in the history service device under the condition that the first version information is higher than second version information corresponding to the history service device docked by the storage device;
and establishing a binding relation between the application data and the target service equipment so that the target service equipment reads the application data based on the binding relation and restores the target application according to the application data to finish equipment updating.
Further, the target service device for docking with the storage device based on the device docking request at the current moment includes:
acquiring equipment authentication information based on the equipment docking request;
and under the condition that the equipment authentication information is matched with preset authentication information stored in the storage equipment, determining that the equipment docking request passes authentication, and docking the target service equipment with the storage equipment based on the current moment of the equipment docking request.
Further, the obtaining the application data stored in the storage device by the target application deployed in the history service device includes:
inquiring a target application identifier corresponding to a target application deployed in the history service equipment;
determining a target data disk corresponding to the target application identifier based on an association relation between a preset application identifier and the data disk;
and determining the data stored in the target data disk as the application data.
Further, the establishing a binding relationship between the application data and the target service device, so that the target service device reads the application data based on the binding relationship, and restores the target application according to the application data to complete device updating, includes:
establishing a binding relation between the target data disk and the target service equipment;
receiving a reading instruction of the target service equipment under the condition that the establishment of the binding relation is determined to be completed;
and responding to the reading instruction, and providing the application data meeting the reading instruction for the target service equipment so that the target service equipment can recover the target application according to the application data meeting the reading instruction.
Further, before establishing the binding relationship between the application data and the target service device, the method further includes:
sending a control instruction to the history service equipment, wherein the control instruction is used for controlling a target application in the history service equipment to stop running;
and under the condition that the target application in the history service equipment stops running, establishing a binding relation between the target data disk and the target service equipment.
Further, the responding to the reading instruction, providing the application data meeting the reading instruction to the target service device, includes:
detecting the integrity degree of the application data meeting the reading instruction;
and providing the application data meeting the reading instruction to the target service equipment under the condition that the integrity degree is used for indicating the integrity of the application data.
Further, after establishing the binding relationship between the application data and the target service device, the method further includes:
acquiring a recovery progress corresponding to the target application in the target service equipment;
and under the condition that the recovery progress is used for indicating that the recovery of the target application is completed, the binding relation with the history service equipment is released.
According to another aspect of the embodiment of the present application, there is also provided an updating apparatus for a service device, including:
the receiving module is used for receiving the equipment docking request;
the determining module is used for determining target service equipment which is in butt joint with the storage equipment at the current moment based on the equipment butt joint request and acquiring first version information corresponding to the target service equipment;
the acquisition module is used for acquiring application data stored in the storage device of a target application deployed in the history service device under the condition that the first version information is higher than second version information corresponding to the history service device docked by the storage device;
and the migration module is used for establishing a binding relation between the application data and the target service equipment so that the target service equipment reads the application data based on the binding relation and restores the target application according to the application data to complete equipment updating.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that performs the above steps when running.
According to another aspect of the embodiment of the present application, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; and a processor for executing the steps of the method by running a program stored on the memory.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the application, the application data of the service equipment is stored through the storage equipment, when the service equipment with higher version information exists, the stored application data is directly connected with the service equipment with higher version information, and the application data is not required to be directly migrated from the service equipment with the original version to the service equipment with the new version, so that the service efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a method for updating a service device according to an embodiment of the present application;
fig. 2 is a flowchart of a method for updating a service device according to another embodiment of the present application;
fig. 3 is a block diagram of an updating apparatus of a service device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments, illustrative embodiments of the present application and descriptions thereof are used to explain the present application and do not constitute undue limitations of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a service equipment updating method and device, electronic equipment and a storage medium. The method provided by the embodiment of the application can be applied to any needed electronic equipment, for example, the electronic equipment can be a server, a terminal and the like, is not particularly limited, and is convenient to describe and is called as the electronic equipment for short hereinafter.
According to an aspect of the embodiment of the application, a method embodiment of a service device updating method is provided. Fig. 1 is a flowchart of a method for updating a service device according to an embodiment of the present application, where, as shown in fig. 1, the method includes:
step S11, receiving a device docking request.
The method provided by the embodiment of the application is applied to the storage equipment. The storage device is provided with a plurality of data discs, and each data disc stores application data of the service device which has a butt joint relation with the storage device. The service device may be an OpenStack cloud computing management platform, which is not specifically limited herein.
In an embodiment of the present application, the device docking request may be initiated by the service device that was newly deployed by the developer. After the service device is deployed, the device docking request is sent to the storage device based on an activation program deployed in the service device.
Step S12, determining a target service device which is in butt joint with the storage device at the current moment based on the device butt joint request, and acquiring first version information corresponding to the target service device.
In the embodiment of the present application, step S12, based on a device docking request, of a target service device that is docked with a storage device at the current time, includes the following steps A1-A2:
and step A1, acquiring device authentication information based on the device docking request.
In the embodiment of the application, the storage device extracts the device authentication information from the device docking request, and the device authentication information comprises: service device information of the service device is deployed up to date, and the service device information may be information such as a device type, an identifier, and the like of the service device.
And step A2, under the condition that the equipment authentication information is matched with the preset authentication information stored in the storage equipment, determining that the equipment docking request passes authentication, and docking the target service equipment with the storage equipment at the current moment based on the equipment docking request.
In the embodiment of the application, after the storage device determines the device authentication information, the device authentication information is matched with the locally stored preset authentication information, if the matching is successful, the storage device confirms that the device docking request authentication passes, and at the moment, the target service device currently docked with the storage device can be determined, wherein the preset authentication information can comprise the device type and the like of the storage device capable of docking.
In the embodiment of the application, after the storage device determines the target service device, the storage device sends a query request to the target service device for querying the first version information of the target service device. The first version information may be a version number of the target service device, an issue date of the version number, and the like.
In addition, the first version information may also be carried in the device docking request, and after the device docking information carried in the device docking request is authenticated by the storage device, the first version information of the target service device is directly obtained from the device docking request.
Step S13, under the condition that the first version information is higher than the second version information corresponding to the history service equipment which is in butt joint with the storage equipment, acquiring application data stored in the storage equipment by the target application deployed in the history service equipment.
In the embodiment of the present application, step S13, obtaining application data stored in a storage device by a target application deployed in a history service device, includes the following steps B1-B3:
and step B1, inquiring a target application identifier corresponding to the target application deployed in the history service equipment.
In the embodiment of the application, after the storage device determines the target service device, the storage device determines the history service device which is in butt joint with the storage device at present, reads the second version information corresponding to the history service device, and similarly, the second version information comprises: a version number corresponding to the history service device, a release date of the version number, and the like. And comparing the first version information with the second version information, and if the first version information is higher than the second version information, acquiring a target application identifier corresponding to the target application deployed in the history service equipment.
And step B2, determining a target data disk corresponding to the target application identifier based on the association relation between the preset application identifier and the data disk.
In the embodiment of the application, since a plurality of data discs exist in the storage device, each data disc is used for storing application data of one application in the history service device, and meanwhile, the storage device also comprises data discs for storing other data besides the data discs for storing the application data, the storage device is further provided with a corresponding relation between a preset application identifier and the data discs, and a target data disc corresponding to the target application identifier is determined according to the corresponding relation.
And step B3, determining the data stored in the target data disk as application data.
In the embodiment of the application, after the target data disk in the storage device is determined, the data stored in the target data disk is determined as application data.
And step S14, establishing a binding relation between the application data and the target service equipment so that the target service equipment reads the application data based on the binding relation and restores the target application according to the application data to complete equipment updating.
In the embodiment of the present application, step S14, a binding relationship between application data and a target service device is established, so that the target service device reads the application data based on the binding relationship, and restores the target application according to the application data to complete device update, including the following steps C1-C3:
and step C1, establishing a binding relation between the target data disc and the target service equipment.
In the embodiment of the application, after the application data to be migrated in the storage device is determined, the storage device establishes a binding relationship between the target data disk and the target device, so that preliminary docking between the storage device and the target service device is realized.
And step C2, receiving a reading instruction of the target service equipment under the condition that the establishment of the binding relation is determined to be completed.
And step C3, responding to the reading instruction, and providing the application data meeting the reading instruction for the target service equipment so as to enable the target service equipment to recover the target application according to the application data meeting the reading instruction.
In the embodiment of the application, before providing the application data meeting the reading instruction to the target service device, the method further comprises the following steps D1-D2:
and D1, sending a control instruction to the history service equipment, wherein the control instruction is used for controlling a target application in the history service equipment to stop running.
In the embodiment of the application, after the data to be migrated is determined, the storage device sends the control instruction to the history service device, so that the target application deployed on the history service device is controlled to stop running, the efficiency of application data migration is ensured, and meanwhile, the situation that the application is unavailable in the process of migrating the application data is avoided.
And step D2, providing the application data meeting the reading instruction to the target service equipment under the condition that the target application in the history service equipment is determined to stop running.
In the embodiment of the application, the storage device monitors the outage condition of each target application in the history service device, and if the condition that all the target applications in the history service device stop running is determined, the application data meeting the reading instruction is provided for the target service device.
In the embodiment of the application, after the binding relation is established, the target service device sends a reading instruction to the storage device, wherein the reading instruction is used for reading data used for recovering the application from each data disk in the storage device. And after the data is read, recovering the target application according to the data.
In the embodiment of the application, application data meeting the reading instruction is provided for the target service equipment, so that the target service equipment restores the target application according to the application data meeting the reading instruction, and the method comprises the following steps of:
and E1, detecting the integrity degree of the application data.
And E2, under the condition that the integrity degree is used for indicating the integrity of the application data, migrating the application data in the target data disk to the target service equipment so as to enable the target service equipment to recover the target application according to the application data.
In the embodiment of the application, the storage device needs to detect the completion degree of the application data before providing the data, so that the target service device can smoothly recover the target application according to the provided data, and the target application can be ensured to normally run after recovery.
In the embodiment of the application, when the integrity degree of the application data is smaller than the preset completion degree, a backup data disk in the storage device is acquired, whether the complete application data exists in the backup data disk is determined, and if the complete application data exists, the complete application data is migrated to the corresponding data disk, so that incomplete application data in the data disk is replaced.
According to the application, the application data of the service equipment is stored through the storage equipment, when the service equipment with higher version information exists, the stored application data is directly connected with the service equipment with higher version information, and the application data is not required to be directly migrated from the service equipment with the original version to the service equipment with the new version, so that the service efficiency is improved.
Fig. 2 is a flowchart of a service device update method according to another embodiment of the present application, where, as shown in fig. 2, after migrating application data to a target service device, the method further includes:
step S21, a recovery progress corresponding to the target application in the target service equipment is obtained.
And S22, under the condition that the recovery progress is used for indicating the completion of recovery of the target application, the binding relation with the history service equipment is released.
In the embodiment of the application, the storage device monitors the recovery progress corresponding to the target application, so as to determine whether to release the binding relation with the history service device, thereby ensuring that the application data in the storage device can only be used by the target service device and avoiding the situation of multiparty use. Meanwhile, under the condition that the target application recovery is determined to be completed, the target application deployed in the target service equipment is controlled to enter the running state.
Fig. 3 is a block diagram of an updating apparatus for a service device according to an embodiment of the present application, where the apparatus may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 3, the apparatus includes:
a receiving module 31, configured to receive a device docking request.
The determining module 32 is configured to determine, based on the device docking request, a target service device that is docked with the storage device at the current time, and obtain first version information corresponding to the target service device.
And the obtaining module 33 is configured to obtain application data stored in the storage device by the target application deployed in the history service device, where the first version information is higher than the second version information corresponding to the history service device to which the storage device is docked.
And the migration module 34 is configured to establish a binding relationship between the application data and the target service device, so that the target service device reads the application data based on the binding relationship, and restores the target application according to the application data to complete device updating.
In an embodiment of the present application, the determining module 32 is configured to obtain device authentication information based on a device docking request; and under the condition that the equipment authentication information is matched with the preset authentication information stored in the storage equipment, determining that the equipment docking request passes authentication, and docking the target service equipment with the storage equipment at the current moment based on the equipment docking request.
In the embodiment of the present application, the obtaining module 33 is configured to query a target application identifier corresponding to a target application deployed in the history service device; determining a target data disk corresponding to the target application identifier based on an association relation between the preset application identifier and the data disk; and determining the data stored in the target data disk as application data.
In the embodiment of the present application, the migration module 34 is configured to establish a binding relationship between the target data disk and the target service device; receiving a reading instruction of target service equipment under the condition that the establishment of the binding relation is determined to be completed; in response to the read instruction, application data satisfying the read instruction is provided to the target service device, so that the target service device restores the target application according to the application data satisfying the read instruction.
In the embodiment of the present application, the updating device of the service device further includes: the control module is used for sending a control instruction to the history service equipment, wherein the control instruction is used for controlling a target application in the history service equipment to stop running; and under the condition that the target application in the history service equipment stops running, migrating the application data in the target data disk to the target service equipment.
In an embodiment of the present application, the migration module 34 is configured to detect the integrity of the application data that satisfies the read instruction; and providing the application data meeting the reading instruction to the target service equipment under the condition that the integrity degree is used for indicating the integrity of the application data.
In the embodiment of the present application, the updating device of the service device further includes: the monitoring module is used for acquiring a recovery progress corresponding to the target application in the target service equipment; and under the condition that the recovery progress is used for indicating the completion of recovery of the target application, the binding relation with the history service equipment is released.
According to the application, the application data of the service equipment is stored through the storage equipment, when the service equipment with higher version information exists, the stored application data is directly connected with the service equipment with higher version information, and the application data is not required to be directly migrated from the service equipment with the original version to the service equipment with the new version, so that the service efficiency is improved.
The embodiment of the application also provides an electronic device, as shown in fig. 4, the electronic device may include: the device comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 are in communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501, when executing the computer program stored in the memory 1503, implements the steps of the above embodiments.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, a computer readable storage medium is provided, where instructions are stored, which when executed on a computer, cause the computer to perform a method for updating a service device according to any of the above embodiments.
In a further embodiment of the present application, a computer program product comprising instructions which, when run on a computer, causes the computer to perform a method of updating a service device according to any of the embodiments described above is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A method for updating a service device, applied to a storage device, the method comprising:
receiving a device docking request;
determining target service equipment which is in butt joint with the storage equipment at the current moment based on the equipment butt joint request, and acquiring first version information corresponding to the target service equipment;
acquiring application data stored in the storage device by a target application deployed in the history service device under the condition that the first version information is higher than second version information corresponding to the history service device docked by the storage device;
establishing a binding relation between the application data and the target service equipment, so that the target service equipment reads the application data based on the binding relation, and recovering the target application according to the application data to finish equipment updating;
the obtaining the application data stored in the storage device by the target application deployed in the history service device includes:
inquiring a target application identifier corresponding to a target application deployed in the history service equipment;
determining a target data disk corresponding to the target application identifier based on an association relation between a preset application identifier and the data disk;
determining the data stored in the target data disk as the application data;
the establishing a binding relationship between the application data and the target service device, so that the target service device reads the application data based on the binding relationship, and restores the target application according to the application data to complete device updating, including:
establishing a binding relation between the target data disk and the target service equipment;
receiving a reading instruction of the target service equipment under the condition that the establishment of the binding relation is determined to be completed;
responding to the reading instruction, and providing application data meeting the reading instruction for the target service equipment so that the target service equipment can recover the target application according to the application data meeting the reading instruction;
before establishing the binding relationship between the application data and the target service device, the method further comprises:
sending a control instruction to the history service equipment, wherein the control instruction is used for controlling a target application in the history service equipment to stop running;
and under the condition that the target application in the history service equipment stops running, establishing a binding relation between the target data disk and the target service equipment.
2. The method of claim 1, wherein the determining a target service device to dock with the storage device at a current time based on the device docking request comprises:
acquiring equipment authentication information based on the equipment docking request;
and under the condition that the equipment authentication information is matched with preset authentication information stored in the storage equipment, determining that the equipment docking request passes authentication, and docking the target service equipment with the storage equipment based on the current moment of the equipment docking request.
3. The method of claim 1, wherein the providing application data satisfying the read instruction to the target service device in response to the read instruction comprises:
detecting the integrity degree of the application data meeting the reading instruction;
and providing the application data meeting the reading instruction to the target service equipment under the condition that the integrity degree is used for indicating the integrity of the application data.
4. The method of claim 1, wherein after establishing the binding relationship of the application data with the target service device, the method further comprises:
acquiring a recovery progress corresponding to the target application in the target service equipment;
and under the condition that the recovery progress is used for indicating that the recovery of the target application is completed, the binding relation with the history service equipment is released.
5. An updating apparatus for a service device, comprising:
the receiving module is used for receiving the equipment docking request;
the determining module is used for determining target service equipment which is in butt joint with the storage equipment at the current moment based on the equipment butt joint request and acquiring first version information corresponding to the target service equipment;
the acquisition module is used for acquiring application data stored in the storage device of a target application deployed in the history service device under the condition that the first version information is higher than second version information corresponding to the history service device docked by the storage device;
the migration module is used for establishing a binding relation between the application data and the target service equipment so that the target service equipment reads the application data based on the binding relation and restores the target application according to the application data to complete equipment updating;
the acquisition module is used for inquiring a target application identifier corresponding to the target application deployed in the history service equipment; determining a target data disk corresponding to the target application identifier based on an association relation between the preset application identifier and the data disk; determining data stored in a target data disk as application data;
the migration module is used for establishing a binding relation between the target data disk and the target service equipment; receiving a reading instruction of target service equipment under the condition that the establishment of the binding relation is determined to be completed; responding to the reading instruction, and providing application data meeting the reading instruction to the target service equipment so as to enable the target service equipment to recover the target application according to the application data meeting the reading instruction;
the service device updating apparatus further includes: the control module is used for sending a control instruction to the history service equipment, wherein the control instruction is used for controlling a target application in the history service equipment to stop running; and under the condition that the target application in the history service equipment stops running, establishing a binding relation between the target data disk and the target service equipment.
6. A storage medium comprising a stored program, wherein the program, when run, performs the method of any one of the preceding claims 1 to 4 by a processor.
7. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method of any of claims 1-4 by running a program stored on a memory.
CN202111522295.5A 2021-12-13 2021-12-13 Service equipment updating method and device, electronic equipment and storage medium Active CN114327542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111522295.5A CN114327542B (en) 2021-12-13 2021-12-13 Service equipment updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111522295.5A CN114327542B (en) 2021-12-13 2021-12-13 Service equipment updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114327542A CN114327542A (en) 2022-04-12
CN114327542B true CN114327542B (en) 2023-11-03

Family

ID=81049864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111522295.5A Active CN114327542B (en) 2021-12-13 2021-12-13 Service equipment updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114327542B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201621645A (en) * 2014-12-08 2016-06-16 鴻海精密工業股份有限公司 Management system, method and device for recovering version of application
CN106445663A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Application data migration method and device
CN112667259A (en) * 2020-12-25 2021-04-16 浪潮思科网络科技有限公司 SDN controller version upgrading method, device and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201621645A (en) * 2014-12-08 2016-06-16 鴻海精密工業股份有限公司 Management system, method and device for recovering version of application
CN106445663A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Application data migration method and device
CN112667259A (en) * 2020-12-25 2021-04-16 浪潮思科网络科技有限公司 SDN controller version upgrading method, device and medium

Also Published As

Publication number Publication date
CN114327542A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN108322351B (en) Method and device for generating topological graph and method and device for determining faults
CN110225078B (en) Application service updating method, system and terminal equipment
CN107315825A (en) A kind of index upgrade system, method and device
WO2017198015A1 (en) Software upgrading method and apparatus
WO2023165307A1 (en) Function calling method and apparatus
CN114328029B (en) Backup method and device of application resources, electronic equipment and storage medium
CN112380170B (en) File updating operation association method and device and computer equipment
CN110019158A (en) A kind of method and apparatus of monitoring data quality
CN109446445B (en) Resource acquisition method and device
WO2020029588A1 (en) Data reading method, device, system, and distributed system
CN114327542B (en) Service equipment updating method and device, electronic equipment and storage medium
CN110674153B (en) Data consistency detection method and device and electronic equipment
CN115756568A (en) Method and device for updating business rules, electronic equipment and storage medium
CN112711466B (en) Hanging affair inspection method and device, electronic equipment and storage medium
CN115037653B (en) Service flow monitoring method, device, electronic equipment and storage medium
CN110083509B (en) Method and device for arranging log data
CN114726711A (en) Method and system for cooperative processing service between devices
CN113867778A (en) Method and device for generating mirror image file, electronic equipment and storage medium
CN111984484A (en) Non-invasive micro-service access method and system
CN111884932A (en) Link determination method, device, equipment and computer readable storage medium
CN111179097B (en) Method, device, electronic equipment and storage medium for modifying warranty
CN114115753B (en) Storage device, request processing method and device based on storage device
WO2024169939A1 (en) Mounting method for distributed file system, and electronic device and storage medium
CN110784479B (en) Data verification method and device, electronic equipment and storage medium
CN110909171B (en) Data scheduling method, device, terminal and storage medium

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