Mirror image updating method, device, system and equipment, storage medium and program product

Through the mirror update method that works collaboratively in the cloud computing environment, the optimal download mode is determined and used, and the problem of low download operation efficiency during the cloud computing image update process is solved, improving the success rate and user experience.

CN119232725APending Publication Date: 2024-12-31HUNAN MC TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411310503.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

During the update process of existing cloud computing images, the download operation efficiency is low, resulting in poor success rate and user experience, especially in the multiple candidate download modes, it is difficult to choose the most suitable download mode.

Method used

A mirror update method is proposed, through the coordinated work of centralized servers, computer room servers and cloud device servers, the optimal download mode of target files is determined, and the mirror update message is passed between servers to achieve efficient download of target files. The method includes obtaining the target file when receiving the image update task, selecting the appropriate target download mode from a variety of candidate download modes, sending the image update message to the computer room server, and then forwarding the message to the cloud device server, and executing the execution Download operation.

Benefits of technology

It improves the success rate and efficiency of mirror updates, improves user experience, and avoids the bottleneck of connections caused by a single mode by flexibly selecting the download mode, reducing the pressure of file download in concurrent scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232725A_ABST
    Figure CN119232725A_ABST
Patent Text Reader

Abstract

The invention provides a mirror image updating method, device and system, equipment, a storage medium and a program product, and relates to the technical field of computers, in particular to the field of cloud computing. The method applied to the centralized server comprises the following steps: in response to a received to-be-executed mirror image updating task, obtaining a target file corresponding to the mirror image updating task; determining a target downloading mode corresponding to the target file from a plurality of candidate downloading modes; sending a mirror image updating message corresponding to the mirror image updating task to a machine room server; wherein the mirror image updating message comprises indication information of the target downloading mode. According to the method, the efficiency of downloading operation for the target file is improved, so that the success rate and efficiency of mirror image updating can be improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to the field of cloud computing, and more particularly to an image updating method, an image updating device, an image updating system, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the rapid development of computer technology, cloud computing is gradually becoming an important part of modern information technology. It is centered on the Internet and provides fast and secure cloud computing services and data storage. It can store and aggregate related resources and can be configured on demand. It has flexibility and scalability and can provide personalized services to users. Cloud phone is a smart phone application cloud platform based on the powerful virtual application of cloud computing. Based on the outstanding advantages of cloud computing in large-scale computing, powerful storage capacity, virtualization applications, etc., it can provide cloud phone clients with the business services required by mobile phones and support the full realization of smart phone application virtualization. Summary of the invention

[0003] The embodiments of the present disclosure provide an image update method, an image update device, an image update system, an electronic device, a computer-readable storage medium, and a computer program product. The image update solution provided by the embodiments of the present disclosure is conducive to improving the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and improving the user experience.

[0004] In a first aspect, an embodiment of the present disclosure proposes an image update method, which is applied to a centralized server, including: in response to receiving an image update task to be executed, obtaining a target file corresponding to the image update task; determining a target download mode corresponding to the target file from a plurality of candidate download modes; and sending an image update message corresponding to the image update task to a computer room server; wherein the image update message includes indication information of the target download mode.

[0005] In the second aspect, an embodiment of the present disclosure proposes an image update method, which is applied to a computer room server, including: receiving an image update message corresponding to an image update task to be executed sent by a centralized server; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; sending an image update message to a cloud device server.

[0006] In a third aspect, an embodiment of the present disclosure proposes an image update method, which is applied to a cloud device server, comprising: receiving an image update message corresponding to an image update task to be executed sent by a computer room server; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; in response to the received image update message, executing a download operation for the target file.

[0007] In a fourth aspect, an embodiment of the present disclosure proposes an image update method, which is applied to an image update system including a centralized server, a computer room server and a cloud device server, the method comprising: the centralized server obtains a target file corresponding to the image update task in response to receiving an image update task to be executed, and determines a target download mode corresponding to the target file from multiple candidate download modes; the centralized server sends an image update message corresponding to the image update task to the computer room server; wherein the image update message includes indication information of the target download mode; the computer room server sends the received image update message to the cloud device server; the cloud device server performs a download operation for the target file in response to the received image update message.

[0008] In a fifth aspect, an embodiment of the present disclosure proposes an image update device, which is applied to a centralized server, and includes: a first acquisition module, a determination module, and a first sending module. The first acquisition module is configured to obtain a target file corresponding to the image update task in response to receiving an image update task to be executed; the determination module is configured to determine a target download mode corresponding to the target file from a plurality of candidate download modes; the first sending module is configured to send an image update message corresponding to the image update task to the server in the computer room; the image update message includes indication information of the target download mode.

[0009] In a sixth aspect, the embodiment of the present disclosure proposes an image update device, which is applied to a server in a computer room, and includes: a second receiving module and a second sending module. The second receiving module is configured to receive an image update message corresponding to an image update task to be executed sent by a centralized server; the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; the second sending module is configured to send the image update message to a cloud device server.

[0010] In a seventh aspect, the embodiment of the present disclosure proposes an image update device, which is applied to a cloud device server, and includes: a fourth receiving module and a processing module. The fourth receiving module is configured to receive an image update message corresponding to an image update task to be executed sent by a computer room server; the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; the processing module is configured to execute a download operation for the target file in response to the received image update message.

[0011] In an eighth aspect, an embodiment of the present disclosure proposes an image update system, including: a centralized server, a computer room server, and a cloud device server. The centralized server is configured to: in response to receiving an image update task to be executed, obtain a target file corresponding to the image update task, and determine a target download mode corresponding to the target file from a plurality of candidate download modes; and send an image update message corresponding to the image update task to the computer room server; the image update message includes indication information of the target download mode; the computer room server is configured to send the received image update message to the cloud device server; the cloud device server is configured to execute a download operation for the target file in response to the received image update message.

[0012] In a ninth aspect, an embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the mirror update method described in any one of the implementation methods in the first to third aspects when executing.

[0013] In a tenth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, which are used to enable a computer to implement the image update method described in any implementation method of the first to third aspects when executed.

[0014] In an eleventh aspect, an embodiment of the present disclosure provides a computer program product including a computer program, which, when executed by a processor, can implement the image update method described in any one of the implementations in the first to third aspects.

[0015] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0017] Figure 1 is an exemplary system architecture in which the present disclosure may be applied;

[0018] Figure 2 A flowchart of an image updating method provided by an embodiment of the present disclosure;

[0019] Figure 3 A flowchart of another image update method provided by an embodiment of the present disclosure;

[0020] Figure 4 A flowchart of another image updating method provided by an embodiment of the present disclosure;

[0021] Figure 5 A flowchart of another image update method provided in an embodiment of the present disclosure;

[0022] Figure 6 An overall flow chart of an image update method in an application scenario provided by an embodiment of the present disclosure;

[0023] Figure 7 A structural block diagram of an image updating device provided by an embodiment of the present disclosure;

[0024] Figure 8 A structural block diagram of another image updating device provided by an embodiment of the present disclosure;

[0025] Fig. 9 A structural block diagram of another image updating device provided in an embodiment of the present disclosure;

[0026] Fig.10 A structural block diagram of the image update system provided by the embodiment of the present disclosure;

[0027] Fig.11 A schematic diagram of the structure of an electronic device suitable for executing an image update method provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict.

[0029] It should be pointed out that in the technical solution of the present invention, the collection, acquisition, storage, processing, transmission, provision, disclosure and application of user personal information (such as file sharing records, etc.) are all carried out with the user's knowledge and explicit authorization, comply with the relevant laws and regulations, and do not violate public order and good morals.

[0030] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the image update scheme of the present disclosure may be applied.

[0031] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and servers 105, 106, 107. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105, and between the server 105, the server 106 and the server 107. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. In the embodiment of the present disclosure, the server 105 may be a centralized server 105, the server 106 may be a computer room server 106, and the server 107 may be a cloud device server 107.

[0032] Users can use terminal devices 101, 102, 103 to interact with the centralized server 105, computer room server 106, and cloud device server 107 through network 104 to receive or send messages, etc. Various applications for realizing information communication between the terminal devices 101, 102, 103 and the centralized server 105, computer room server 106, and cloud device server 107 can be installed, such as image update applications, cloud computing service applications, cloud mobile phone service applications, etc.

[0033] The terminal devices 101, 102, 103 and the centralized server 105, the computer room server 106, and the cloud device server 107 can be hardware or software. When the terminal devices 101, 102, and 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.; when the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here. When the centralized server 105, the computer room server 106, and the cloud device server 107 are hardware, they can be implemented as a distributed server cluster composed of multiple servers, or as a single server; when the server is software, it can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here.

[0034] The centralized server 105, the computer room server 106, and the cloud device server 107 can provide various services through various built-in applications. For example, the centralized server 105 can provide image update-related applications. When running the image update-related applications, the centralized server 105 can achieve the following effects: when receiving an image update task to be executed, the centralized server 105 can determine the target file corresponding to the image update task, and determine an adaptive or appropriate download mode, i.e., a target download mode, for the corresponding target file from a plurality of candidate download modes, and can send the target download mode to the computer room server 106 through an image update message. Further, the computer room server 106 can 106 can timely forward the image update message to the cloud device server 107, so that the cloud device server 107 can timely respond to execute the download operation of the target file corresponding to the image update task, wherein the image update message at least includes the indication information of the target download mode of the target file corresponding to the image update task, which is determined from multiple candidate download modes. In this way, by flexibly and adaptively screening out the target download mode that matches the current image update task to be executed from multiple candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and improving the user experience. Among them, the centralized server 105 can be a server cluster that manages each computer room server 106.

[0035] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0036] Please refer to Figure 2 , Figure 2 The flowchart of an image update method provided by an embodiment of the present disclosure is executed by an execution subject centralized server, wherein the process 200 includes the following steps:

[0037] Step 201: In response to receiving an image update task to be executed, obtaining a target file corresponding to the image update task.

[0038] This step is intended to be performed by the above-mentioned execution subject of the image update method (for example Figure 1 The server 105 and Figure 6 The centralized server 602 based on the Platform as a Service (PaaS) platform shown in FIG. 6 receives the data from the user through the user terminal (in a specific application scenario, it may correspond to Figure 6The image update task to be executed (in a specific application scenario, it may correspond to Figure 6 The process 6-1 shown, initiates a custom image update task through the PaaS platform), and obtains the corresponding target file of the image update to be executed in response to the received image update task to be executed; wherein, the target file includes but is not limited to one or more of the files corresponding to the basic software package, the files corresponding to the custom software package, and the files corresponding to the resource package, depending on the specific image update task, which is not specifically limited here.

[0039] Step 202: Determine a target download mode corresponding to the target file from multiple candidate download modes.

[0040] On the basis of step 201, this step aims to enable the execution subject to match a suitable download mode, namely, a target download mode, for the target file corresponding to the current image update task to be executed from a plurality of candidate download modes.

[0041] Step 203: Send an image update message corresponding to the image update task to the computer room server; wherein the image update message includes indication information of the target download mode.

[0042] The image update method provided by the embodiment of the present disclosure can determine the target file corresponding to the image update task when receiving the image update task to be executed, and determine an adaptive or suitable download mode, namely the target download mode, for the corresponding target file from multiple candidate download modes, and can send the target download mode to the computer room server through the image update message, so as to forward it to the cloud device server through the computer room server. In this way, the target download mode that matches the current image update task to be executed can be flexibly and adaptively screened out from the multiple candidate download modes, which is conducive to improving the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and improving the user experience.

[0043] In a specific application scenario, such as Figure 6As shown, an image update process 600 supporting the transmission between boards in a server is executed by an image update system including a user terminal 601, a centralized server based on a cloud phone PaaS platform (referred to as PaaS-centralized server) 602, a computer room server based on a PaaS platform (referred to as PaaS-computer room server) 603, and a device proxy server 604 (corresponding to a cloud device server), wherein the PaaS-centralized server 602 includes a distribution service module 6021, a task module 6022, and a scheduled task module 6023, and the PaaS-computer room server 603 includes a message queue 6031 and a computer room bastion service module 6032. In the image update process 600, the distribution service module 6021 responds to the image update task initiated by the user terminal 601, and can send the saved task information to the task module 6022 through process 6-2; the task module 6022 can scan the image update task to be executed from the scheduled task module 6023 through process 6-3. Then the scheduled task module 6023 can check and judge the image update mode through process 6-4, that is, the image update mode corresponding to the image update task can be determined, which can include the Advanced RISC Machine (ARM) mode or the computer language instruction set (X86) mode executed by the microprocessor, wherein the file storage forms corresponding to different image update modes are different, for example, in the ARM mode, the files to be updated (i.e., target files) composed of the basic software package and the custom software package can be sent in the form of multiple files, while in the x86 mode, the files to be updated can be sent in the form of a whole package (e.g., a compressed package), that is, the mode needs to be obtained first to further determine the number and size of the files actually needed to be downloaded. Further, the scheduled task module 6023 can obtain the file information that needs to be downloaded by all physical machines that need to be updated in batches this time through process 6-5. Further, the scheduled task module 6023 sends the image update message to the message queue through process 6-6.

[0044] In the above Figure 2 On the basis of the corresponding embodiments, the above-mentioned multiple candidate download modes include but are not limited to a download mode based on the File Transfer Protocol (FTP), a download mode based on the Hypertext Transfer Protocol (HTTP), and a download mode based on the Simple Storage Service (S3). In this way, by providing multiple download modes for flexible selection to implement file download, the connection number bottleneck of the device to be updated can be avoided due to a single download mode, thereby helping to reduce the pressure of file download or transmission in concurrent scenarios.

[0045] Furthermore, in the above Figure 2 Based on the corresponding embodiments, the target download mode may be one of a download mode based on a file transfer protocol, a download mode based on a hypertext transfer protocol, and a download mode based on a simple storage service protocol.

[0046] In the above Figure 2 On the basis of the corresponding embodiments, some optional implementation methods of the embodiments of the present disclosure may also include the following contents: in response to the size of the target file being greater than or equal to a preset threshold, segmenting the target file to obtain at least two segment files; in response to receiving download requests sent by the cloud device server for at least two segment files respectively, sending first download addresses corresponding to at least two segment files respectively to the computer room server; wherein the first download address corresponds to the target download mode.

[0047] In this embodiment, it can be determined whether to segment the target file based on the size relationship between the target file corresponding to the currently executed mirror update task and a preset threshold, and further, when the size of the target file is greater than or equal to the preset threshold, the target file can be segmented into at least two segment files, which can effectively reduce the pressure of file downloading or transmission; and when a download request sent by a cloud device server for each segment file is received, in order to ensure that the segment file can be downloaded efficiently, each segment file corresponding to the target download mode determined from a plurality of candidate download modes can be sent to the computer room server respectively corresponding to the first download address, so that it can be forwarded to the cloud device server in a timely manner through the computer room server, thereby ensuring the efficiency of file downloading or transmission.

[0048] It should be noted that the value of the above preset threshold can be set according to the specific situation of the image update task to be executed, and is not specifically limited here.

[0049] Furthermore, in some optional implementations of the embodiments of the present disclosure, the image update message further includes information indicating the number of at least two shards. Thus, by indicating the number of shard files obtained after sharding the target file in the image update message, it is helpful to accurately and efficiently request downloads and provide download address feedback for each shard file, thereby improving the efficiency of image updates.

[0050] It should be noted that in some optional implementations of the embodiments of the present disclosure, in response to the size of the target file being smaller than the preset threshold, quantity indication information indicating that the number of fragment files of the target file is one can be carried in the above-mentioned image update message. In this way, the request download and download address feedback of the entire target file can be realized at one time.

[0051] Furthermore, in some optional implementations of the embodiments of the present disclosure, the image update message may also include, but is not limited to, at least one of the following: identification information of the image update task, the Internet Protocol (IP) address of the physical machine on which the target file to be downloaded is mounted on the board, the Internet Protocol IP address of the cloud phone on which the image update is required to be performed is mounted on the physical machine, and the timeout of the image update task. The timeout of the image update task may refer to the time within which the image update task needs to be completed.

[0052] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following contents may also be included: receiving update notification messages respectively sent by the computer room server for at least two segmented files; wherein the update notification message is sent by the computer room server in response to a download completion notification message sent by the cloud device server for the segmented file, and the download completion notification message and the update notification message respectively include a second download address corresponding to the segmented file; in response to the received update notification message, updating the download status identifier corresponding to the segmented file, and recording the second download address corresponding to the segmented file; wherein the download status identifier is used to indicate whether the segmented file has been downloaded.

[0053] In this embodiment, the download status of each of the at least two segment files can be maintained. Specifically, when receiving the update notification message fed back by the computer room server in response to the download completion notification message sent by the cloud device server for each segment file, the download status identifier of each segment file can be updated, for example, from the identifier "not downloaded" to "downloaded or downloaded"; at the same time, the second download address corresponding to each segment file obtained can also be recorded. In this way, it is helpful to summarize, check and / or analyze the download status of each segment file.

[0054] Furthermore, in some optional implementations of the embodiments of the present disclosure, the above-mentioned second download addresses may refer to board download addresses (such as ARM backplane download addresses) of the sliced ​​files that correspond one-to-one to each first download address, or download addresses where the physical machine saves the sliced ​​files locally.

[0055] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following contents may also be included: in response to confirming that at least two segment files have been downloaded, all second download addresses corresponding to the at least two segment files are obtained from the computer room server; in response to obtaining all second download addresses, a download success message for the at least two segment files is sent to the computer room server; wherein the download success message is used to indicate a merge operation to be performed on the at least two downloaded segment files.

[0056] Among them, it can be determined whether the download status identifier corresponding to each segment file in the above-mentioned at least two segment files indicates that the corresponding segment file has been downloaded. If so, it can be confirmed that at least two segment files have been downloaded, that is, all segment files obtained by segmenting the target file have been downloaded.

[0057] In this embodiment, when it is confirmed that all the segment files corresponding to the target file have been downloaded, all the second download addresses corresponding to all the segment files can be uniformly obtained from the computer room server, and after obtaining all the second download addresses, an indication message that all the segment files have been successfully downloaded, i.e., a download success message, is further triggered to be fed back to the computer room server, so as to trigger the merging of all the successfully downloaded segment files, thereby ensuring the smooth completion of the image update.

[0058] The above process of obtaining all the second download addresses corresponding to at least two shard files from the server in the computer room in response to confirming that at least two shard files have been downloaded can include: sending a request to the server in the computer room in response to confirming that at least two shard files have been downloaded; receiving all the second download addresses corresponding to the at least two shard files fed back by the server in the computer room in response to the request. In this way, when it is confirmed that all the shard files corresponding to the target file have been downloaded, the acquisition of all the second download addresses corresponding to all the shard files can be actively triggered, so as to timely know the download addresses corresponding to the shard files on the local cloud device server.

[0059] Continue to use the above specific application scenario as an example to explain the specification. Figure 6 As shown, the scheduled task module 6023 can obtain the file information that needs to be downloaded by all physical machines that need to be batch updated this time through process 6-5 to obtain the size of the files that need to be downloaded (i.e., the files to be updated in the image, which may include basic software packages, custom software packages, and resource packages), and after filtering duplicate files, determine whether to perform dynamic segmentation based on the size of the files to be downloaded. Specifically, when the size of the file to be downloaded is greater than or equal to a certain threshold, it is segmented. The image update of process 6-8 can be divided into two branches. If the device proxy server 604 determines that there are still segments that need to be downloaded, processes 6-8-1 to 6-8-7 are repeated; if the device proxy server 604 determines that there are no segments that need to be downloaded, processes 6-8-8 to 6-8-11 are executed, as follows:

[0060] Process 6-8-1: The device proxy server 604 obtains the download address of the next segment file (corresponding to the first download address), such as an FTP / HTTP / S3 protocol address, from the distribution service module 6021 of the PaaS-centralized server 602.

[0061] Process 6-8-2: The distribution service module 6021 of the PaaS-centralized server 602 returns data including the download address of the segmented file requested by the device proxy server 604 to the computer room bastion server service module 6032 of the PaaS-computer room server.

[0062] Process 6-8-3: The computer room bastion machine service module 6032 of the PaaS-computer room server sends the download address of the shard file and the coordinates of the shard file to the device proxy server 604.

[0063] Process 6-8-4: The device proxy server 604 downloads the segment file according to the download address of the segment file.

[0064] Process 6-8-5: The device proxy server 604 sends a notification message of completion of the segment file download to the computer room bastion machine service module 6032 of the PaaS-computer room server.

[0065] Process 6-8-6: The server room bastion service module 6032 of the PaaS-server room considers concurrency issues and joins the callback memory queue.

[0066] Process 6-8-7: The computer room bastion machine service module 6032 asynchronously calls back the distribution service module 6021 of the PaaS-centralized server 602 to update the download status of the segmented file and record the ARM baseboard download address (corresponding to the second download address).

[0067] Process 6-8-8: The distribution service module 6021 of the PaaS-centralized server 602 obtains the ARM backplane download address of all downloaded segment files from the computer room bastion machine service module 6032 of the PaaS-computer room server.

[0068] Process 6-8-9: The distribution service module 6021 of the PaaS-centralized server 602 returns data to the computer room bastion server service module 6032 of the PaaS-computer room server, and returns a message that all the shard files have been downloaded successfully.

[0069] Process 6-8-10: The computer room bastion machine service module 6032 of the PaaS-computer room server forwards the message that all the segment files have been downloaded successfully to the device proxy server 604.

[0070] Process 6-8-11: Merge each fragment file according to the coordinates of the fragment files corresponding to each of the fragment files.

[0071] Please refer to Figure 3 , Figure 3 The flowchart of an image updating method provided by an embodiment of the present disclosure is executed by an execution subject computer room server, wherein process 300 includes the following steps:

[0072] Step 301: receiving an image update message corresponding to an image update task to be executed sent by a centralized server; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes.

[0073] This step is intended to be performed by the above-mentioned execution subject of the image update method (for example Figure 1 The server 106 shown in the figure receives an image update message corresponding to the image update task currently to be executed, which is sent by the centralized server. The image update message may include at least indication information of a target download mode of a target file corresponding to the image update task, which is determined from multiple candidate download modes; wherein the target file includes but is not limited to one or more of a file corresponding to a basic software package, a file corresponding to a custom software package, and a file corresponding to a resource package, depending on the specific image update task, and is not specifically limited here.

[0074] Step 302: Send an image update message to the cloud device server.

[0075] The image update method provided by the embodiment of the present disclosure can forward the image update message corresponding to the image update task to be executed to the cloud device server in a timely manner upon receiving the image update message corresponding to the image update task to be executed, wherein the image update message at least includes the indication information of the target download mode of the target file corresponding to the image update task, which is determined from multiple candidate download modes. In this way, by flexibly and adaptively screening out the target download mode that matches the current image update task to be executed from the multiple candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and enhancing the user experience.

[0076] In the above Figure 3 Based on the corresponding embodiments, the above-mentioned multiple candidate download modes include but are not limited to a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol. In this way, by providing multiple download modes for flexible selection to implement file download, the connection number bottleneck of the device to be updated can be avoided due to a single download mode, thereby helping to reduce the pressure of file download or transmission in concurrent scenarios.

[0077] Furthermore, in the above Figure 3 Based on the corresponding embodiments, the target download mode may be one of a download mode based on a file transfer protocol, a download mode based on a hypertext transfer protocol, and a download mode based on a simple storage service protocol.

[0078] In the above Figure 3On the basis of the corresponding embodiments, in some optional implementation methods of the embodiments of the present disclosure, when the size of the above-mentioned target file is greater than or equal to a preset threshold and is fragmented and processed by the centralized server into at least two fragment files, the mirror update method of the above-mentioned embodiments of the present disclosure may further include the following contents: sending first download addresses corresponding to at least two fragment files to the cloud device server; wherein, the first download addresses corresponding to at least two fragment files are sent by the centralized server in response to download requests sent by the cloud device server for at least two fragment files, and the first download addresses correspond to the target download mode.

[0079] In this embodiment, when the target file corresponding to the currently to-be-executed image update task is fragmented into at least two fragment files, the download addresses of each fragment file requested by the cloud device server as fed back by the centralized server and corresponding to the target download mode, i.e., the first download address, can be promptly forwarded to the cloud device server, thereby effectively reducing the pressure of file downloading or transmission and improving the efficiency of file downloading or transmission.

[0080] Furthermore, in some optional implementations of the embodiments of the present disclosure, the image update message further includes information indicating the number of at least two shards. Thus, by indicating the number of shard files obtained after sharding the target file in the image update message, it is helpful to accurately and efficiently request downloads and provide download address feedback for each shard file, thereby improving the efficiency of image updates.

[0081] Furthermore, in some optional implementations of the embodiments of the present disclosure, the image update message may also include, but is not limited to, at least one of the following: identification information of the image update task, the Internet Protocol IP address of the physical machine on which the target file to be downloaded is mounted on the board, the Internet Protocol IP address of the cloud phone on which the image update is required to be performed is mounted on the physical machine, and the timeout of the image update task. The timeout of the image update task may refer to the time within which the image update task needs to be completed.

[0082] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following contents may also be included: receiving a download completion notification message sent by a cloud device server in response to completing download operations on at least two segmented files respectively; wherein the download completion notification message includes a second download address corresponding to the segmented file; in response to the received download completion notification message, sending an update notification message corresponding to the segmented file to a centralized server; wherein the update notification message is used to instruct the centralized server to update the download status identifier corresponding to the segmented file and record the second download address corresponding to the segmented file; wherein the download status identifier is used to indicate whether the segmented file has been downloaded.

[0083] In this embodiment, the second download addresses corresponding to the respective shard files carried in the download completion notifications sent by the cloud device server after executing the download operation on the respective shard files in the at least two shard files can be forwarded to the centralized server in a timely manner through the update notification messages corresponding to the respective shard files, so that the centralized server can maintain the download status of the respective shard files in the at least two shard files, for example, update the status from "not downloaded" to "downloaded or completed", and at the same time, the second download addresses corresponding to the respective shard files obtained can also be recorded. In this way, it is helpful to summarize, check and / or analyze the download status of the respective shard files.

[0084] Furthermore, in some optional implementations of the embodiments of the present disclosure, the above-mentioned second download addresses may refer to board download addresses (such as ARM backplane download addresses) of the sliced ​​files that correspond one-to-one to each first download address, or download addresses where the physical machine saves the sliced ​​files locally.

[0085] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following contents may also be included: in response to receiving a retrieval request sent by a centralized server, all second download addresses corresponding to at least two segment files are sent to the centralized server; a download success message for at least two segment files received from the centralized server is sent to the cloud device server; wherein the download success message is used to instruct the cloud device server to perform a merge operation on the at least two segment files downloaded.

[0086] In this embodiment, when a retrieval request is received which is triggered by the centralized server when it is confirmed that all the segment files corresponding to the target file have been downloaded, the retrieval request is promptly responded to and all the second download addresses corresponding to all the segment files are fed back, so that the download address information corresponding to each segment file locally on the cloud device server can be synchronized to the centralized server in a timely manner; at the same time, when a download success message is received which is sent by the centralized server when it is confirmed that all the segment files corresponding to the target file have been downloaded, the download success message can be forwarded to the cloud device server in a timely manner, so as to trigger the merging of all the successfully downloaded segment files, thereby ensuring the smooth completion of the image update.

[0087] Furthermore, in some optional implementation methods of the embodiments of the present disclosure, the following contents may also be included: sending the fragment coordinates corresponding to at least two fragment files respectively to the cloud device server; wherein, all the fragment coordinates corresponding to the at least two fragment files are used to indicate the order in which the cloud device server performs the merge operation on the at least two downloaded fragment files.

[0088] In this embodiment, in order to facilitate the efficient completion of the merging operation of all downloaded shard files to ensure the success rate and efficiency of the image update, in addition to sending the first download addresses corresponding to each shard file to the cloud device server, the shard coordinates corresponding to each shard file can also be sent to the cloud device server, so as to perform the merging operation on all downloaded shard files in an order indicated by all shard coordinates corresponding to the at least two shard files, thereby efficiently and orderly completing the merging operation of the shard files.

[0089] Furthermore, in some optional implementations of the embodiments of the present disclosure, the first download addresses and the slice coordinates corresponding to the above-mentioned respective slice files may be sent together to the cloud device server. The slice coordinates may be represented by a number that can distinguish the order, such as being identified by a preset number of positive integers arranged from small to large, wherein the value of the preset number is the same as the value of the number of at least two slice files; or in the form of "Xn", wherein X may represent the identifier of the package to which each slice file belongs that constitutes the above-mentioned target file, and n may represent the file sequence number of each slice file in the package to which it belongs, wherein the values ​​of X and n may be positive integers respectively.

[0090] Please refer to Figure 4 , Figure 4 This is a flowchart of an image update method provided by an embodiment of the present disclosure. The image update method is executed by an execution subject, a cloud device server, wherein process 400 includes the following steps:

[0091] Step 401: receiving an image update message corresponding to an image update task to be executed sent by a computer room server; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes.

[0092] This step is intended to be performed by the above-mentioned execution subject of the image update method (for example Figure 1 The server 107 shown receives an image update message corresponding to the image update task to be executed currently forwarded by the computer room server, and the image update message may include at least indication information of the target download mode of the target file corresponding to the image update task and determined from multiple candidate download modes; wherein the target file includes but is not limited to one or more of the files corresponding to the basic software package, the files corresponding to the custom software package, and the files corresponding to the resource package, depending on the specific image update task, which is not specifically limited here.

[0093] Step 402: In response to the received mirror image update message, a download operation for the target file is performed.

[0094] The image update method provided by the embodiment of the present disclosure can respond in a timely manner to execute a download operation of a target file corresponding to the image update task to be executed upon receiving an image update message corresponding to the image update task to be executed, wherein the image update message at least includes indication information of a target download mode of the target file corresponding to the image update task, which is determined from multiple candidate download modes. In this way, by flexibly and adaptively screening out a target download mode that matches the current image update task to be executed from multiple candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and enhancing the user experience.

[0095] In the above Figure 4 Based on the corresponding embodiments, the above-mentioned multiple candidate download modes include but are not limited to a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol. In this way, by providing multiple download modes for flexible selection to implement file download, the connection number bottleneck of the device to be updated can be avoided due to a single download mode, thereby helping to reduce the pressure of file download or transmission in concurrent scenarios.

[0096] Furthermore, in the above Figure 4 Based on the corresponding embodiments, the target download mode may be one of a download mode based on a file transfer protocol, a download mode based on a hypertext transfer protocol, and a download mode based on a simple storage service protocol.

[0097] In the above Figure 4 On the basis of the corresponding embodiments, in some optional implementations of the embodiments of the present disclosure, when the size of the target file is greater than or equal to a preset threshold and is fragmented by the centralized server into at least two fragmented files, the download operation for the target file in step 402 of the image update method in the above embodiment of the present disclosure may further include the following contents:

[0098] In response to completing the download operation of the first segment file among the at least two segment files, sending a download request for the second segment file among the at least two segment files to the centralized server; in response to receiving the first download address corresponding to the second segment file, performing a download operation on the second segment file; wherein the download request corresponding to the first segment file is located before the download request corresponding to the second segment file in terms of sending timing, and the second segment file is one of the segment files that have not been downloaded among the at least two segment files.

[0099] In this embodiment, when the target file is processed by slicing to obtain at least two slicing files for download, the download mode of requesting the download address one by one and downloading them one by one is followed. Specifically, when the download operation of the previous slicing file, i.e., the first slicing file, is completed, the centralized server is requested for the first download address of the next slicing file that has not been downloaded, i.e., the second slicing file, until all slicing files are downloaded, so as to ensure that all slicing files can be downloaded accurately, avoid omissions, and cause incomplete downloaded files, thereby affecting the efficiency of image update. The first slicing file and the second slicing file mentioned above can refer to two slicing files in the at least two slicing files that are adjacent in the request timing of the download address.

[0100] Furthermore, in some optional implementations of the embodiments of the present disclosure, performing a download operation on the above-mentioned second segment file may specifically include: determining whether the second segment file is downloaded by other physical machines other than the first physical machine mounted on the first board; in response to the second segment file not being downloaded by other physical machines, performing a download operation on the second segment file by the first physical machine according to the first download address corresponding to the second segment.

[0101] In this embodiment, considering that each board can be mounted on multiple physical machines and each physical machine can be mounted on a cloud phone, then all physical machines mounted on the board need to download all segment files corresponding to the target file to perform an image update. When downloading each segment file, in order to avoid the physical machine on the same board from repeatedly downloading the same segment file and reduce the pressure of file downloading or transmission, before each physical machine downloads each segment file, it is possible to confirm whether the board to which it currently belongs already has a corresponding downloaded segment file. If so, there is no need to download it repeatedly, especially in high-concurrency scenarios, when multiple physical machines use the same image file for update at the same time, repeated downloading of the same file can be avoided.

[0102] Furthermore, in some optional implementations of the embodiments of the present disclosure, the image update message further includes information indicating the number of at least two shards. Thus, the number of shard files obtained after the target file indicated in the image update message is processed by sharding helps to accurately and efficiently request downloads and provide download address feedback for each shard file, thereby improving the efficiency of image updates.

[0103] Furthermore, in some optional implementations of the embodiments of the present disclosure, the image update message may also include, but is not limited to, at least one of the following: identification information of the image update task, the Internet Protocol IP address of the physical machine on which the target file to be downloaded is mounted on the board, the Internet Protocol IP address of the cloud phone on which the image update is required to be performed is mounted on the physical machine, and the timeout of the image update task. The timeout of the image update task may refer to the time within which the image update task needs to be completed.

[0104] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following content may also be included: calling an idle second board to perform a download operation on a third shard file among at least two shard files. In this way, by calling other idle second boards except the first board to which the physical machine to which the download operation is to be performed on the current shard file, i.e., the third shard file, belongs, to perform a download operation on the current shard file, the download efficiency of each shard file corresponding to the target file of the image update task to be performed can be further improved, the resource utilization rate can be improved, and thus the efficiency of the image update can be improved.

[0105] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following contents may also be included: in response to the completion of the download operation on the second segment file, a download completion notification message corresponding to the second segment file is sent to the computer room server; wherein the download completion notification message includes a second download address corresponding to the second segment file.

[0106] In this embodiment, after each download operation on one of the at least two segment files corresponding to the target file is completed, a download completion notification message corresponding to the downloaded segment file, i.e., the second segment file, can be sent to the computer room server, and the second download address corresponding to the segment file can be fed back through the download completion notification message, so as to timely feed back the download completion status of each segment file.

[0107] Furthermore, in some optional implementations of the embodiments of the present disclosure, the above-mentioned second download addresses may refer to board download addresses of the sliced ​​files (such as ARM backplane download addresses) that correspond one-to-one to each first download address, or download addresses where the physical machine saves the sliced ​​files locally.

[0108] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following contents may also be included: in response to receiving a download success message for at least two segment files sent by a computer room server, performing a merging operation on the at least two downloaded segment files; wherein the download success message is sent by the centralized server to the computer room server in response to confirming that the download of at least two segment files has been completed and obtaining all second download addresses corresponding to the at least two segment files.

[0109] In this embodiment, when a download success message is received confirming that all segment files corresponding to the target file have been downloaded, a merge operation can be performed on at least two segment files corresponding to the downloaded target file in a timely manner, thereby ensuring smooth completion of the image update.

[0110] Furthermore, in some optional implementations of the embodiments of the present disclosure, the following contents may also be included: receiving slice coordinates corresponding to at least two slice files respectively sent by the computer room server; and performing a merge operation on the at least two downloaded slice files, including: performing a merge operation on the at least two downloaded slice files according to the order indicated by all slice coordinates corresponding to the at least two slice files.

[0111] In this embodiment, in order to efficiently complete the merging operation of all downloaded shard files to ensure the success rate and efficiency of the image update, the merging operation of the shard files can be performed on all downloaded shard files in an order indicated by all shard coordinates corresponding to the at least two shard files received from the computer room server, so as to efficiently and orderly complete the merging operation of the shard files.

[0112] Further, in some optional implementations of the embodiments of the present disclosure, the first download addresses and the slice coordinates corresponding to the above-mentioned respective slice files may be received together from the server in the computer room. The slice coordinates may be represented by a number that can distinguish the order, such as being identified in the form of a preset number of positive integers arranged from small to large, wherein the value of the preset number is the same as the value of the number of at least two slice files; or in the form of "Xn", wherein X may represent the identifier of the package to which each slice file belongs that constitutes the above-mentioned target file, and n may represent the file sequence number of each slice file in the package to which it belongs, wherein the values ​​of X and n may be positive integers respectively.

[0113] Please refer to Figure 5 , Figure 5 A flowchart of an image update method provided in an embodiment of the present disclosure is provided. The image update method is applied to an image update system including a centralized server, a server in a computer room, and a cloud device server, wherein process 500 includes the following steps:

[0114] Step 501: In response to receiving an image update task to be executed, the centralized server obtains a target file corresponding to the image update task and determines a target download mode corresponding to the target file from a plurality of candidate download modes.

[0115] Step 502: The centralized server sends an image update message corresponding to the image update task to the server in the computer room; wherein the image update message includes indication information of the target download mode;

[0116] Step 503: The computer room server sends the received image update message to the cloud device server;

[0117] Step 504: The cloud device server executes a download operation for the target file in response to the received image update message.

[0118] In the image update method provided by the embodiment of the present disclosure, the centralized server can determine the target file corresponding to the image update task when receiving the image update task to be executed, and determine an adaptive or suitable download mode, namely, a target download mode, for the corresponding target file from multiple candidate download modes, and can send the target download mode to the computer room server through a mirror update message. Further, the computer room server can promptly forward the mirror update message to the cloud device server, so that the cloud device server can promptly respond to and execute the download operation of the target file corresponding to the image update task, wherein the mirror update message at least includes indication information of the target download mode determined from multiple candidate download modes for the target file corresponding to the image update task. In this way, by flexibly and adaptively screening out the target download mode that matches the current image update task to be executed from multiple candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the mirror update and improving the user experience.

[0119] In some optional implementations of the embodiments of the present disclosure, the method further includes: a user terminal in the system initiates a request to execute a mirror update task to a centralized server.

[0120] This embodiment exists as a method embodiment corresponding to the above method embodiment. The present disclosure provides a method embodiment applied to a system including a centralized server, a computer room server and a cloud device server. The specific definition of the relevant contents in each step involved in the method embodiment can be referred to Figures 2 to 4 The corresponding contents in the method embodiment shown will not be repeated here.

[0121] Further references Figure 7 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a mirror image update device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various centralized servers.

[0122] like Figure 7As shown, the image update device 700 of the embodiment of the present disclosure may include: a first acquisition module 701, a determination module 702 and a first sending module 703. The first acquisition module 701 is configured to, in response to receiving an image update task to be executed, acquire a target file corresponding to the image update task; the determination module 702 is configured to determine a target download mode corresponding to the target file from a plurality of candidate download modes; the first sending module 703 is configured to send an image update message corresponding to the image update task to the computer room server; the image update message includes indication information of the target download mode.

[0123] In the embodiment of the present disclosure, the specific processing of the first acquisition module 701, the determination module 702 and the first sending module 703 and the technical effects thereof can be referred to in the following respectively. Figure 2 The relevant descriptions of steps 201 - 203 in the corresponding embodiment are not repeated here.

[0124] In some optional implementations of the embodiments of the present disclosure, the above-mentioned multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

[0125] In some optional implementations of the embodiments of the present disclosure, the image update device 700 also includes: a sharding module 704; wherein the sharding module 704 is configured to, in response to the size of the target file being greater than or equal to a preset threshold, perform sharding processing on the target file to obtain at least two shard files; and the above-mentioned first sending module 703 is also configured to, in response to receiving download requests sent by the cloud device server for the at least two shard files respectively, send the first download addresses corresponding to the at least two shard files to the computer room server; wherein the first download address corresponds to the target download mode.

[0126] In some optional implementations of the embodiments of the present disclosure, the image update device 700 further includes: a first receiving module 705 and an updating module 706. The first receiving module 705 is configured to receive update notification messages respectively sent by the computer room server for at least two shard files; the update notification message is sent by the computer room server in response to a download completion notification message sent by the cloud device server for the shard files, and the download completion notification message and the update notification message respectively include a second download address corresponding to the shard files; the updating module 706 is configured to update the download status identifier corresponding to the shard files in response to the received update notification message, and record the second download address corresponding to the shard files; the download status identifier is used to indicate whether the shard files are downloaded.

[0127] In some optional implementations of the embodiments of the present disclosure, the image update device 700 also includes: a second acquisition module 707; wherein the second acquisition module 707 is configured to, in response to confirming that at least two segment files have been downloaded, obtain all second download addresses corresponding to at least two segment files from the computer room server; and the above-mentioned first sending module 703 is also configured to, in response to obtaining all second download addresses, send a download success message for at least two segment files to the computer room server; wherein the download success message is used to indicate that a merge operation is performed on the at least two downloaded segment files.

[0128] In some optional implementations of the embodiments of the present disclosure, the mirror update message further includes quantity indication information of at least two shards.

[0129] This embodiment exists as an apparatus embodiment corresponding to the above-mentioned method embodiment. When receiving a mirror update task to be executed, the target file corresponding to the mirror update task can be determined, and an adaptive or suitable download mode, namely, a target download mode, can be determined for the corresponding target file from a plurality of candidate download modes. The target download mode can be sent to the computer room server via a mirror update message, so as to be forwarded to the cloud device server via the computer room server. In this way, the target download mode that matches the current mirror update task to be executed can be flexibly and adaptively screened out from the plurality of candidate download modes, which is conducive to improving the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the mirror update and enhancing the user experience.

[0130] Further references Figure 8 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a mirror image update device. Figure 3 Corresponding to the method embodiment shown, the device can be specifically applied to various computer room servers.

[0131] like Figure 8 As shown, the image update device 800 of the embodiment of the present disclosure may include: a second receiving module 801 and a second sending module 802. The second receiving module 801 is configured to receive an image update message corresponding to the image update task to be executed sent by the centralized server; the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; the second sending module 802 is configured to send the image update message to the cloud device server.

[0132] In the image updating device 800 of the present disclosure, the specific processing of the second receiving module 801 and the second sending module 802 and the technical effects thereof can be referred to in Figure 3The relevant descriptions of steps 301 - 302 in the corresponding embodiment are not repeated here.

[0133] In some optional implementations of the embodiments of the present disclosure, the above-mentioned multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

[0134] In some optional implementations of the embodiments of the present disclosure, the size of the above-mentioned target file is greater than or equal to a preset threshold, and is fragmented by the centralized server into at least two fragment files; and the above-mentioned second sending module 802 is also configured to send the first download addresses corresponding to the at least two fragment files to the cloud device server; wherein, the first download addresses corresponding to the at least two fragment files are sent by the centralized server in response to the download requests sent by the cloud device server for the at least two fragment files, and the first download addresses correspond to the target download mode.

[0135] In some optional implementations of the embodiments of the present disclosure, the image update device 800 further includes: a third receiving module 803 and a third sending module 804. The third receiving module 803 is configured to receive a download completion notification message sent by the cloud device server in response to the completion of download operations for at least two segmented files; the download completion notification message includes a second download address corresponding to the segmented file; the third sending module 804 is configured to send an update notification message corresponding to the segmented file to the centralized server in response to the received download completion notification message; the update notification message is used to instruct the centralized server to update the download status identifier corresponding to the segmented file and record the second download address corresponding to the segmented file; the download status identifier is used to indicate whether the segmented file has been downloaded.

[0136] In some optional implementations of the embodiments of the present disclosure, the above-mentioned third sending module 804 is also configured to send all second download addresses corresponding to at least two segment files to the centralized server in response to receiving a retrieval request sent by the centralized server; the above-mentioned second sending module 802 is also configured to send the download success message for at least two segment files received from the centralized server to the cloud device server; wherein the download success message is used to instruct the cloud device server to perform a merge operation on the at least two segment files downloaded.

[0137] In some optional implementations of the embodiments of the present disclosure, the above-mentioned second sending module 802 is also configured to: send the fragment coordinates corresponding to at least two fragment files to the cloud device server; wherein, all the fragment coordinates corresponding to the at least two fragment files are used to indicate the order in which the cloud device server performs the merge operation on the at least two downloaded fragment files.

[0138] In some optional implementations of the embodiments of the present disclosure, the mirror update message further includes quantity indication information of at least two shards.

[0139] This embodiment exists as an apparatus embodiment corresponding to the above-mentioned method embodiment, and can promptly forward the image update message corresponding to the image update task to be executed to the cloud device server upon receipt, wherein the image update message at least includes indication information of the target download mode of the target file corresponding to the image update task, which is determined from multiple candidate download modes. In this way, by flexibly and adaptively screening out the target download mode that matches the current image update task to be executed from multiple candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and enhancing the user experience.

[0140] Further references Fig. 9 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a mirror image update device. Figure 4 Corresponding to the method embodiment shown, the apparatus can be specifically applied to various cloud device servers.

[0141] like Fig. 9 As shown, the image update device 900 of the embodiment of the present disclosure may include: a fourth receiving module 901 and a processing module 902. The receiving module is configured to receive an image update message corresponding to the image update task to be executed sent by the computer room server; the image update message includes indication information of a target download mode corresponding to the target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; the processing module 902 is configured to execute a download operation for the target file in response to the received image update message.

[0142] In the image updating device 900 of the present disclosure, the specific processing of the fourth receiving module 901 and the processing module 902 and the technical effects thereof can be referred to in Figure 4 The relevant descriptions of steps 401-402 in the embodiment are not repeated here.

[0143] In some optional implementations of the embodiments of the present disclosure, the above-mentioned multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

[0144] In some optional implementations of the embodiments of the present disclosure, the size of the target file is greater than or equal to a preset threshold, and is processed into at least two fragment files by the centralized server; and the processing module 902 may specifically include: a sending submodule 9021 and a downloading submodule 9022. The sending submodule 9021 is configured to send a download request for a second fragment file in at least two fragment files to the centralized server in response to completing the download operation of the first fragment file in the at least two fragment files; the downloading submodule 9022 is configured to perform a download operation on the second fragment file in response to receiving the first download address corresponding to the second fragment file; the download request corresponding to the first fragment file is located before the download request corresponding to the second fragment file in the sending timing, and the second fragment file is one of the fragment files that have not been downloaded in the at least two fragment files.

[0145] In some optional implementations of the embodiments of the present disclosure, the above-mentioned download sub-module 9022 is specifically configured to: determine whether the second segment file is downloaded by other physical machines other than the first physical machine mounted on the first board; in response to the second segment file not being downloaded by other physical machines, execute the download operation of the second segment file through the first physical machine according to the first download address corresponding to the second segment.

[0146] In some optional implementations of the embodiments of the present disclosure, the download submodule 9022 is further configured to: call an idle second board to perform a download operation on a third fragment file among the at least two fragment files.

[0147] In some optional implementations of the embodiments of the present disclosure, the image update device 900 also includes: a fourth sending module 903, which is configured to send a download completion notification message corresponding to the second segment file to the computer room server in response to the completion of the download operation on the second segment file; wherein the download completion notification message includes a second download address corresponding to the second segment file.

[0148] In some optional implementations of the embodiments of the present disclosure, the above-mentioned processing module 902 can also be configured to: in response to receiving a download success message for at least two segment files sent by the computer room server, perform a merging operation on the at least two downloaded segment files; wherein the download success message is sent by the centralized server to the computer room server in response to confirming that the download of at least two segment files has been completed and all second download addresses corresponding to the at least two segment files have been obtained.

[0149] In some optional implementations of the embodiments of the present disclosure, the fourth receiving module 901 is further configured to: receive the fragment coordinates corresponding to at least two fragment files sent by the computer room server; and the processing module 902 is specifically configured to: perform a merge operation on the at least two downloaded fragment files according to the order indicated by all fragment coordinates corresponding to the at least two fragment files.

[0150] In some optional implementations of the embodiments of the present disclosure, the mirror update message further includes quantity indication information of at least two shards.

[0151] This embodiment exists as an apparatus embodiment corresponding to the above-mentioned method embodiment. When receiving an image update message corresponding to an image update task to be executed, the present embodiment can promptly respond to execute a download operation of a target file corresponding to the image update task, wherein the image update message at least includes indication information of a target download mode of the target file corresponding to the image update task, which is determined from a plurality of candidate download modes. In this way, by flexibly and adaptively screening out a target download mode that matches the current image update task to be executed from a plurality of candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and enhancing the user experience.

[0152] Further references Fig.10 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an image update system 1000. Figures 2 to 6 The method embodiments shown correspond.

[0153] As shown in 10, the image update system 1000 of this embodiment may include: a centralized server, a computer room server and a cloud device server. The centralized server is configured to: in response to receiving an image update task to be executed, obtain a target file corresponding to the image update task, and determine a target download mode corresponding to the target file from a plurality of candidate download modes; and send an image update message corresponding to the image update task to the computer room server; the image update message includes indication information of the target download mode; the computer room server is configured to send the received image update message to the cloud device server; the cloud device server is configured to execute a download operation for the target file in response to the received image update message.

[0154] In the image update system 1000 provided in this embodiment, the centralized server can determine the target file corresponding to the image update task when receiving the image update task to be executed, and determine an adaptive or suitable download mode, namely, a target download mode, for the corresponding target file from multiple candidate download modes, and can send the target download mode to the computer room server through an image update message. Further, the computer room server can promptly forward the image update message to the cloud device server, so that the cloud device server can promptly respond to and execute the download operation of the target file corresponding to the image update task, wherein the image update message at least includes the indication information of the target download mode determined from multiple candidate download modes for the target file corresponding to the image update task. In this way, by flexibly and adaptively screening out the target download mode that matches the current image update task to be executed from multiple candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the image update and improving the user experience.

[0155] In this embodiment, in the image update system 1000: the centralized server 1001 (corresponding to Figure 1 Server 105 shown), computer room server 1002 (corresponding to Figure 1 Server 106 shown), cloud device server 1003 (corresponding to Figure 1 The specific processing of the server 107 shown in FIG. 1 and the technical effects thereof can be referred to in Figures 2 to 6 The relevant descriptions of the corresponding steps in the corresponding embodiments are not repeated here.

[0156] In some optional implementations of this embodiment, the image update system 1000 further includes a user terminal 1004 (corresponding to Figure 1 The terminal devices 101, 102, 103 and Figure 6 The user terminal 601 shown in FIG. 6 ) is configured to initiate an update operation to the centralized server 1001.

[0157] In some optional implementations of this embodiment, the image update system 1000 may specifically be an image update system for a cloud phone.

[0158] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, the electronic device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can implement the image update method described in any of the above embodiments when executing. The electronic device may be any of the above servers.

[0159] According to an embodiment of the present disclosure, the present disclosure further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the image update method described in any of the above embodiments when executed.

[0160] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product including a computer program, and when the computer program is executed by a processor, the image updating method described in any of the above embodiments can be implemented.

[0161] Fig.11 A schematic block diagram of an example electronic device 1100 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0162] like Fig.11 As shown, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0163] A number of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0164] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as the image update method. For example, in some embodiments, the image update method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1101, one or more steps of the image update method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the image update method in any other appropriate manner (e.g., by means of firmware).

[0165] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0166] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0167] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0168] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0169] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0170] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain. Among them, a cloud server, also known as a cloud computing server or a cloud host, is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS, Virtual Private Server) services.

[0171] According to the technical solution of the embodiment of the present disclosure, the centralized server can determine the target file corresponding to the image update task when receiving the image update task to be executed, and determine an adaptive or suitable download mode, namely, a target download mode, for the corresponding target file from a plurality of candidate download modes, and can send the target download mode to the computer room server through a mirror update message. Further, the computer room server can promptly forward the mirror update message to the cloud device server, so that the cloud device server can promptly respond to and execute the download operation of the target file corresponding to the image update task, wherein the mirror update message at least includes indication information of the target download mode determined from a plurality of candidate download modes for the target file corresponding to the image update task. In this way, by flexibly and adaptively screening out the target download mode that matches the current image update task to be executed from a plurality of candidate download modes, it is beneficial to improve the efficiency of the download operation for the target file, thereby improving the success rate and efficiency of the mirror update and improving the user experience.

[0172] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit them here; and the terms "first", "second", "third", "fourth" and the like (if any) in the disclosure are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor do they constitute specific limitations.

[0173] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A mirror update method, applied to a centralized server, comprising: In response to receiving an image update task to be executed, obtaining a target file corresponding to the image update task; Determine a target download mode corresponding to the target file from a plurality of candidate download modes; Sending an image update message corresponding to the image update task to the computer room server; wherein the image update message includes indication information of the target download mode.

2. The method according to claim 1, wherein: The multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

3. The method according to claim 1 or 2, further comprising: In response to the size of the target file being greater than or equal to a preset threshold, fragmenting the target file to obtain at least two fragment files; In response to receiving download requests respectively sent by the cloud device server for the at least two segment files, first download addresses respectively corresponding to the at least two segment files are sent to the computer room server; wherein the first download addresses correspond to the target download mode.

4. The method according to claim 3, further comprising: Receiving update notification messages respectively sent by the computer room server for the at least two segment files; wherein the update notification message is sent by the computer room server in response to a download completion notification message sent by the cloud device server for the segment files, and the download completion notification message and the update notification message respectively include a second download address corresponding to the segment files; In response to the received update notification message, the download status identifier corresponding to the segment file is updated, and the second download address corresponding to the segment file is recorded; wherein the download status identifier is used to indicate whether the segment file is downloaded.

5. The method according to claim 4, further comprising: In response to confirming that the at least two segment files have been downloaded, obtaining all second download addresses corresponding to the at least two segment files from the computer room server; In response to obtaining all the second download addresses, a download success message for the at least two segment files is sent to the computer room server; wherein the download success message is used to indicate a merge operation to be performed on the at least two downloaded segment files.

6. The method according to claim 3, wherein: The mirror update message also includes quantity indication information of the at least two fragments.

7. A mirror image update method, applied to a server in a computer room, comprising: Receiving an image update message corresponding to an image update task to be executed sent by a centralized server; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of a plurality of candidate download modes; Send the image update message to the cloud device server.

8. The method according to claim 7, wherein: The multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

9. The method according to claim 7 or 8, wherein: The size of the target file is greater than or equal to a preset threshold, and is processed by the centralized server into at least two fragment files; The method further comprises: Sending the first download addresses corresponding to the at least two segmented files to the cloud device server; wherein the first download addresses corresponding to the at least two segmented files are sent by the centralized server in response to the download requests sent by the cloud device server for the at least two segmented files, and the first download addresses correspond to the target download mode.

10. The method according to claim 9, further comprising: Receiving a download completion notification message sent by the cloud device server in response to completing the download operations for the at least two segment files respectively; wherein the download completion notification message includes a second download address corresponding to the segment file; In response to the received download completion notification message, an update notification message corresponding to the segmented file is sent to the centralized server; wherein the update notification message is used to instruct the centralized server to update the download status identifier corresponding to the segmented file and record the second download address corresponding to the segmented file; wherein the download status identifier is used to indicate whether the segmented file has been downloaded.

11. The method according to claim 9, further comprising: In response to receiving the acquisition request sent by the centralized server, sending all second download addresses corresponding to the at least two segment files to the centralized server; The received download success message for the at least two segment files sent by the centralized server is sent to the cloud device server; wherein the download success message is used to instruct the cloud device server to perform a merge operation on the at least two downloaded segment files.

12. The method according to claim 11, further comprising: Sending the slice coordinates corresponding to the at least two slice files to the cloud device server; wherein all the slice coordinates corresponding to the at least two slice files are used to indicate the order in which the cloud device server performs a merge operation on the at least two downloaded slice files.

13. The method according to claim 9, wherein: The mirror update message also includes quantity indication information of the at least two fragments.

14. A mirror image update method, applied to a cloud device server, comprising: Receiving an image update message corresponding to an image update task to be executed sent by a server in a computer room; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; In response to the received mirror image update message, a download operation for the target file is performed.

15. The method according to claim 14, wherein: The multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

16. The method according to claim 14 or 15, wherein: The size of the target file is greater than or equal to a preset threshold, and is processed by the centralized server into at least two fragment files; The executing of the download operation for the target file includes: In response to completing the download operation of the first segment file among the at least two segment files, sending a download request for the second segment file among the at least two segment files to the centralized server; In response to receiving the first download address corresponding to the second segment file, performing a download operation on the second segment file; The download request corresponding to the first segment file is sent before the download request corresponding to the second segment file in terms of timing, and the second segment file is one of the at least two segment files that has not been downloaded.

17. The method according to claim 16, wherein: The downloading operation on the second fragment file includes: Determine whether the second fragment file is downloaded by other physical machines mounted on the first board except the first physical machine; In response to the second segment file not being downloaded by the other physical machines, the first physical machine performs a download operation on the second segment file according to the first download address corresponding to the second segment.

18. The method according to claim 17, further comprising: An idle second board is called to perform a download operation on a third fragment file among the at least two fragment files.

19. The method according to claim 16, further comprising: In response to the completion of the download operation on the second segment file, a download completion notification message corresponding to the second segment file is sent to the computer room server; wherein the download completion notification message includes a second download address corresponding to the second segment file.

20. The method according to claim 19, further comprising: In response to receiving a download success message for the at least two segment files sent by the computer room server, performing a merging operation on the downloaded at least two segment files; The download success message is sent by the centralized server to the computer room server in response to confirming that the at least two segment files have been downloaded and obtaining all second download addresses corresponding to the at least two segment files.

21. The method according to claim 20, further comprising: Receiving the slice coordinates corresponding to the at least two slice files respectively sent by the computer room server; as well as The performing a merging operation on the at least two downloaded segment files includes: A merging operation is performed on the at least two downloaded segment files according to the order indicated by all segment coordinates corresponding to the at least two segment files.

22. The method according to claim 16, wherein: The mirror update message also includes quantity indication information of the at least two fragments.

23. An image update method, applied to an image update system including a centralized server, a server in a computer room, and a cloud device server, the method comprising: In response to receiving the image update task to be executed, the centralized server obtains a target file corresponding to the image update task, and determines a target download mode corresponding to the target file from a plurality of candidate download modes; The centralized server sends an image update message corresponding to the image update task to the server in the computer room; wherein the image update message includes indication information of the target download mode; The computer room server sends the received mirror image update message to the cloud device server; The cloud device server executes a download operation for the target file in response to the received image update message.

24. A mirror image update device, applied to a centralized server, comprising: A first acquisition module is configured to, in response to receiving an image update task to be executed, acquire a target file corresponding to the image update task; A determination module, configured to determine a target download mode corresponding to the target file from a plurality of candidate download modes; The first sending module is configured to send an image update message corresponding to the image update task to the computer room server; wherein the image update message includes indication information of the target download mode.

25. The device according to claim 24, wherein: The multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

26. The apparatus according to claim 24 or 25, further comprising: A slicing module is configured to slice the target file to obtain at least two slicing files in response to the size of the target file being greater than or equal to a preset threshold; as well as The first sending module is also configured to send the first download addresses corresponding to the at least two segment files to the computer room server in response to receiving download requests sent by the cloud device server for the at least two segment files respectively; wherein the first download address corresponds to the target download mode.

27. The apparatus according to claim 26, further comprising: A first receiving module is configured to receive update notification messages respectively sent by the computer room server for the at least two segment files; wherein the update notification message is sent by the computer room server in response to a download completion notification message sent by the cloud device server for the segment files, and the download completion notification message and the update notification message respectively include a second download address corresponding to the segment files; The update module is configured to update the download status identifier corresponding to the segment file and record the second download address corresponding to the segment file in response to the received update notification message; wherein the download status identifier is used to indicate whether the segment file is downloaded.

28. The apparatus according to claim 27, further comprising: A second acquisition module is configured to, in response to confirming that the at least two segment files have been downloaded, acquire all second download addresses corresponding to the at least two segment files from the computer room server; and The first sending module is further configured to send a download success message for the at least two segment files to the computer room server in response to obtaining all the second download addresses; wherein the download success message is used to indicate a merge operation to be performed on the at least two downloaded segment files.

29. The device according to claim 26, wherein: The mirror update message also includes quantity indication information of the at least two fragments.

30. A mirror image update device, applied to a server in a computer room, comprising: a second receiving module, configured to receive an image update message corresponding to the image update task to be executed and sent by the centralized server; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; The second sending module is configured to send the image update message to the cloud device server.

31. The device according to claim 30, wherein The multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

32. The device according to claim 30 or 31, wherein: The size of the target file is greater than or equal to a preset threshold, and is processed by the centralized server into at least two fragment files; as well as The second sending module is also configured to send the first download addresses corresponding to the at least two segment files to the cloud device server; wherein, the first download addresses corresponding to the at least two segment files are sent by the centralized server in response to the download requests sent by the cloud device server for the at least two segment files respectively, and the first download addresses correspond to the target download mode.

33. The apparatus of claim 32, further comprising: A third receiving module is configured to receive a download completion notification message sent by the cloud device server in response to completing the download operations for the at least two segment files respectively; wherein the download completion notification message includes a second download address corresponding to the segment file; The third sending module is configured to send an update notification message corresponding to the segmented file to the centralized server in response to the received download completion notification message; wherein the update notification message is used to instruct the centralized server to update the download status identifier corresponding to the segmented file and record the second download address corresponding to the segmented file; wherein the download status identifier is used to determine whether the segmented file has been downloaded.

34. The device according to claim 33, wherein The third sending module is further configured to send all second download addresses corresponding to the at least two segment files to the centralized server in response to receiving the acquisition request sent by the centralized server; The second sending module is also configured to send the received download success message for the at least two segment files sent by the centralized server to the cloud device server; wherein the download success message is used to instruct the cloud device server to perform a merge operation on the at least two downloaded segment files.

35. The apparatus according to claim 34, wherein the second sending module is further configured to: Sending the slice coordinates corresponding to the at least two slice files to the cloud device server; wherein, All the fragment coordinates corresponding to the at least two fragment files are used to indicate the order in which the cloud device server performs a merge operation on the at least two downloaded fragment files.

36. The apparatus of claim 32, wherein: The mirror update message also includes quantity indication information of the at least two fragments.

37. An image updating device, applied to a cloud device server, comprising: a fourth receiving module, configured to receive an image update message corresponding to the image update task to be executed sent by the computer room server; wherein the image update message includes indication information of a target download mode corresponding to a target file, the target file corresponds to the image update task, and the target download mode is one of multiple candidate download modes; The processing module is configured to execute a download operation for the target file in response to the received image update message.

38. The device according to claim 37, wherein The multiple candidate download modes include: a download mode based on the file transfer protocol, a download mode based on the hypertext transfer protocol, and a download mode based on the simple storage service protocol.

39. The device according to claim 37 or 38, wherein: The size of the target file is greater than or equal to a preset threshold, and is processed by the centralized server into at least two fragment files; as well as The processing module specifically includes: a sending submodule, configured to send a download request for a second fragment file among the at least two fragment files to the centralized server in response to completing the download operation for the first fragment file among the at least two fragment files; A download submodule, configured to, in response to receiving a first download address corresponding to the second segment file, perform a download operation on the second segment file; The download request corresponding to the first segment file is sent before the download request corresponding to the second segment file in terms of timing, and the second segment file is one of the at least two segment files that has not been downloaded.

40. The device according to claim 39, wherein The download submodule is specifically configured as follows: Determine whether the second fragment file is downloaded by other physical machines mounted on the first board except the first physical machine; In response to the second segment file not being downloaded by the other physical machines, the first physical machine performs a download operation on the second segment file according to the first download address corresponding to the second segment.

41. The device according to claim 40, wherein The download submodule is further configured as follows: An idle second board is called to perform a download operation on a third fragment file among the at least two fragment files.

42. The apparatus of claim 39, further comprising: The fourth sending module is configured to send a download completion notification message corresponding to the second fragment file to the computer room server in response to the completion of the download operation on the second fragment file; wherein the download completion notification message includes a second download address corresponding to the second fragment file.

43. The device according to claim 42, wherein: The processing module is further configured to: In response to receiving a download success message for the at least two segment files sent by the computer room server, performing a merging operation on the downloaded at least two segment files; The download success message is sent by the centralized server to the computer room server in response to confirming that the at least two segment files have been downloaded and obtaining all second download addresses corresponding to the at least two segment files.

44. The device according to claim 43, wherein The fourth receiving module is further configured to: receive the slice coordinates corresponding to the at least two slice files respectively sent by the computer room server; and The processing module is specifically configured to: perform a merging operation on the at least two downloaded segment files according to the order indicated by all segment coordinates corresponding to the at least two segment files.

45. The apparatus of claim 39, wherein: The mirror update message also includes quantity indication information of the at least two fragments.

46. ​​A mirror image update system, comprising: The centralized server is configured to: in response to receiving an image update task to be executed, obtain a target file corresponding to the image update task, and determine a target download mode corresponding to the target file from a plurality of candidate download modes; and send an image update message corresponding to the image update task to a server in a computer room; wherein the image update message includes indication information of the target download mode; The computer room server is configured to send the received mirror update message to the cloud device server; The cloud device server is configured to execute a download operation for the target file in response to the received image update message.

47. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image update method executed by the centralized server as described in any one of claims 1-6, or execute the image update method executed by the computer room server as described in any one of claims 7-13, or execute the image update method executed by the cloud device server as described in any one of claims 14-22.

48. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the image update method executed by a centralized server as described in any one of claims 1-6, or execute the image update method executed by a computer room server as described in any one of claims 7-13, or execute the image update method executed by a cloud device server as described in any one of claims 14-22.

49. A computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the image update method performed by a centralized server according to any one of claims 1-6, or implements the steps of the image update method performed by a computer room server according to any one of claims 7-13, or implements the steps of the image update method performed by a cloud device server according to any one of claims 14-22.

Citation Information

Patent Citations

  • Method and system for asynchronously and concurrently updating distributed node mirror image

    CN110830554A

  • Mirror image file downloading method, device and system, equipment and storage medium

    CN111866099A

  • Operating system starting method and device and electronic equipment

    CN113900720A

  • Software updating method and device, electronic equipment and medium

    CN115993983A