Data processing method, device and system, hot upgrade method and device of data forwarding unit, computing equipment, computer readable storage medium and computer program product
By creating a new process and switching the communication process when the data forwarding unit is hot-updated, the interruption problem caused by the data forwarding unit upgrade is solved, and the data processing efficiency of the cloud platform is improved.
Patent Information
- Application Number
- CN202410524210.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2025-10-28
AI Technical Summary
In cloud platforms, upgrades and updates to the data forwarding unit cause prolonged interruptions in the forwarding of data read and write requests to the cloud storage service server, resulting in low data processing efficiency.
When the data forwarding unit is hot-updated, a new process is created and a communication connection with the initial process is established, the communication process of the data processing unit and the storage unit is switched, and the data processing request is sent to the storage unit for execution through the new process.
This shortens the forwarding interruption time of data processing requests and improves the data processing efficiency of the cloud platform.
Smart Images

Figure CN120848930A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of cloud technology, and in particular to a data processing method, as well as a data processing apparatus, a hot-upgrade method for a data forwarding unit, a hot-upgrade apparatus for a data forwarding unit, a data processing system, a computing device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] With the development of cloud technology, users can upload various types of data to cloud platforms for storage. For example, users can rent cloud storage on a cloud platform, store their data in that cloud storage, and retrieve the data from that cloud storage.
[0003] The cloud platform includes cloud computing servers and cloud storage servers. The cloud disk rented by the user can be the storage space in the cloud storage server. The user can trigger the cloud computing server to read and write data to their cloud disk. For example, the cloud computing server uses a data forwarding unit to forward data read and write requests to the cloud storage server, and then the cloud storage server reads and writes to the real physical disk corresponding to the cloud disk based on the data read and write request.
[0004] The data forwarding unit needs to be upgraded and updated regularly. During the upgrade and update process, the forwarding of data read and write requests to the cloud storage service will be interrupted for a long time, resulting in low data read and write efficiency for the cloud disk, and consequently, low data processing efficiency of the cloud platform. Summary of the Invention
[0005] In view of this, embodiments of this specification provide a data processing method that can improve data processing efficiency. One or more embodiments of this specification also relate to a data processing apparatus, a hot-upgrade method for a data forwarding unit, a hot-upgrade apparatus for a data forwarding unit, a data processing system, a computing device, a computer-readable storage medium, and a computer program product.
[0006] According to a first aspect of the embodiments of this specification, a data processing method is provided, applied to a cloud computing server, the cloud computing server including a data processing unit and a data forwarding unit, the data forwarding unit being communicatively connected to the data processing unit and a storage unit respectively through an initial process, the method comprising:
[0007] If it is determined that the data forwarding unit is to be hot-upgraded and updated, a new process corresponding to the data forwarding unit is created, and a communication connection is established between the initial process and the new process.
[0008] The initial process that connects any one of the data processing unit and the storage unit to the data forwarding unit is switched to the newly added process;
[0009] Based on the newly added process, and the initial process in which the data processing unit and the storage unit are connected in communication with the data forwarding unit, the data processing request received by the data processing unit is sent to the storage unit for execution.
[0010] According to a second aspect of the embodiments of this specification, a hot upgrade method for a data forwarding unit is provided, applied to a cloud computing server, the cloud computing server including a data processing unit and a data forwarding unit, the data forwarding unit being communicatively connected to the data processing unit and a storage unit respectively through an initial process, the method comprising:
[0011] Create a new process corresponding to the data forwarding unit, and establish a communication connection between the initial process and the new process;
[0012] The initial process that connects any one of the data processing unit and the storage unit to the data forwarding unit is switched to the newly added process;
[0013] Based on the newly added process, and the initial process in which another unit in the data processing unit and the storage unit are connected to the data forwarding unit, the data processing request received by the data processing unit is sent to the storage unit for execution;
[0014] The initial process that establishes a communication connection between the other unit and the data forwarding unit is switched to the newly added process.
[0015] According to a third aspect of the embodiments of this specification, a data processing apparatus is provided, applied to a cloud computing server, the cloud computing server including a data processing unit and a data forwarding unit, the data forwarding unit being communicatively connected to the data processing unit and a storage unit respectively through an initial process, the data processing apparatus comprising:
[0016] A module is established to create a new process corresponding to the data forwarding unit and establish a communication connection between the initial process and the new process when it is determined that the data forwarding unit is undergoing a hot upgrade.
[0017] The first switching module is used to switch the initial process, in which either the data processing unit or the storage unit is connected to the data forwarding unit, to the newly added process.
[0018] The sending module is used to send the data processing request received by the data processing unit to the storage unit for execution, based on the newly added process and the initial process that is communicatively connected to the data forwarding unit between the data processing unit and the storage unit.
[0019] According to a fourth aspect of the embodiments of this specification, a hot-upgrade device for a data forwarding unit is provided, applied to a cloud computing server, the cloud computing server including a data processing unit and a data forwarding unit, the data forwarding unit being communicatively connected to the data processing unit and a storage unit respectively through an initial process, the hot-upgrade device comprising:
[0020] A module is established to create a new process corresponding to the data forwarding unit and to establish a communication connection between the initial process and the new process.
[0021] The first switching module is used to switch the initial process, in which either the data processing unit or the storage unit is connected to the data forwarding unit, to the newly added process.
[0022] The sending module is used to send the data processing request received by the data processing unit to the storage unit for execution, based on the newly added process and the initial process that is communicatively connected to the data forwarding unit between the data processing unit and the storage unit.
[0023] The second switching module is used to switch the initial process that establishes a communication connection between the other unit and the data forwarding unit to the newly added process.
[0024] According to a fifth aspect of the embodiments of this specification, a data processing system is provided, including: a cloud computing server and a storage unit;
[0025] A cloud computing server is used to execute the above method and send the received data processing request to the storage unit;
[0026] Storage unit, used to process data on the target cloud disk based on received data processing requests.
[0027] According to a sixth aspect of the embodiments of this specification, a computing device is provided, including: a memory and a processor;
[0028] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the above-described data processing method.
[0029] According to a seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores a computer program / instructions, which, when executed by a processor, implement the steps of the above-described data processing method.
[0030] According to an eighth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instructions that, when executed in a processor, implement the steps of the data processing method described above.
[0031] In the data processing method provided in the embodiments of this specification, when the data forwarding unit undergoes a hot upgrade, a communication connection is established between the newly added process and the initial process corresponding to the data forwarding unit; the initial process of either the data processing unit or the storage unit that is communicating with the data forwarding unit is switched to the newly added process, and the data processing request of the data processing unit is sent to the storage unit for execution according to the newly added process and the initial process. In other words, when the data forwarding unit undergoes a hot upgrade, the process communicating between the data forwarding unit and any of the units can be switched first, and the data processing request can be sent to the storage unit through the communication between the newly added process and the initial process. In this way, when the data forwarding unit is updated, the maximum interruption time for forwarding the data processing request from the data processing unit to the storage unit is the switching time of the process communicating between the data forwarding unit and a unit. Therefore, the interruption time for forwarding the data processing request caused by the data forwarding unit update can be shortened, and the data processing request received by the data processing unit can be forwarded to the storage unit for execution more quickly, thereby improving data processing efficiency. Attached Figure Description
[0032] Figure 1 This is a schematic diagram of the structure of a data processing system provided in one embodiment of this specification;
[0033] Figure 2 This is a schematic diagram illustrating the process switching process corresponding to a data forwarding unit provided by related technologies;
[0034] Figure 3 This is a flowchart of a data processing method provided in one embodiment of this specification;
[0035] Figure 4 This is a schematic diagram of the process switching process corresponding to a data forwarding unit provided in one embodiment of this specification;
[0036] Figure 5 This is a flowchart illustrating a hot-upgrade method for a data forwarding unit according to an embodiment of this specification.
[0037] Figure 6 This is a schematic diagram of the structure of a data processing device provided in one embodiment of this specification;
[0038] Figure 7 This is a schematic diagram of the structure of a hot-upgrade device for a data forwarding unit provided in one embodiment of this specification;
[0039] Figure 8 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation
[0040] The following description sets forth many specific details to facilitate a thorough understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0041] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items. The term “at least one” as used in one or more embodiments of this specification means “one or more,” and “a plurality of” means “two or more.” The term “comprising” is an open-ended description and should be understood as “including but not limiting,” and may include other content in addition to what has been described.
[0042] It should be understood that although the terms “first,” “second,” etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, “first” may also be referred to as “second” without departing from the scope of one or more embodiments of this specification, and similarly, “second” may also be referred to as “first.” Depending on the context, the word “if” as used herein may be interpreted as “when,” “in response to a determination,” or “when…”.
[0043] Furthermore, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. The collection, use and processing of related data must comply with relevant standards and requirements, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0044] Currently, cloud platforms are being used more and more widely, and many enterprises and individual users can store their data in corresponding cloud disks within these platforms. Consequently, the requirements for data processing efficiency in cloud disks are also increasing. A cloud platform can include cloud computing servers and cloud storage servers. Cloud computing servers are used to interact with terminals and cloud storage servers, and to perform certain data processing and control functions. Cloud storage servers are used for data storage.
[0045] Figure 1 This is a schematic diagram of the structure of a data processing system provided in one embodiment of this specification. Figure 1 As shown, the data processing system 10 includes a cloud platform, which includes a cloud computing server 101 and a cloud storage server 102. The cloud computing server 101 and the cloud storage server 102 can establish a communication connection. The servers mentioned in the embodiments of this specification can refer to a single server or a server cluster composed of multiple servers. Each cloud disk in the cloud platform can correspond to a storage space in the cloud storage server 102. The processing performed by the cloud computing server 101 on the cloud disk is the processing performed on the storage space corresponding to that cloud disk in the cloud storage server 102. For example, the cloud computing server 101 can write data to the cloud disk, read data from the cloud disk, delete data from the cloud disk, or modify data in the cloud disk. The data in the cloud storage server 102 can be stored using block storage technology.
[0046] Optionally, the data processing system 10 also includes a terminal 103, which can establish a communication connection with the cloud computing server 101. The terminal 103 can be a smartphone, desktop computer, laptop computer, tablet computer, or smart wearable device, etc. Figure 1 The example used is a computer.
[0047] Please continue to refer to Figure 1 The cloud computing server 101 includes a data processing unit 1011 and a data forwarding unit 1012. The data processing unit 1011 is responsible for processing requests or data received by the cloud computing server 101 and for controlling other units. The data forwarding unit 1012 is responsible for communicating with other devices to forward data. For example, the cloud computing server 101 uses the data processing unit 1011 to obtain a data processing request and uses the data forwarding unit 1012 to communicate with the cloud storage server 102. With the data processing unit 1011 and the data forwarding unit 1012 communicating, the data processing unit 1011 sends the data processing request to the data forwarding unit 1012, which then forwards the request to the cloud storage server 102 for execution. The data processing request may include read / write requests for data on a target cloud disk in the cloud storage server 102, or it may include data deletion / modification requests.
[0048] Cloud storage server 102 can process data on the target cloud disk based on the received data processing request. Afterwards, cloud storage server 102 can also send the data processing result for the data processing request to cloud computing server 101. Cloud computing server 101 can then feed back the data processing result to terminal 103 based on the data processing result sent by cloud storage server 102. Optionally, for some data processing requests, after cloud storage server 102 processes the data, cloud computing server 101 needs to perform further processing to complete the data processing process required by terminal 103. For example, cloud computing server 101 analyzes the target data read from cloud storage server 102, obtains the analysis result, and then sends the analysis result to terminal 103.
[0049] Optionally, the data forwarding unit 1012 can establish communication connections with the data processing unit 1011 and the cloud storage server 102 for multiple cloud disks respectively, and the forwarding of data processing requests for each cloud disk can be independent of each other.
[0050] Cloud computing server 101 may also include at least one ( Figure 1 (Taking one as an example) Cloud service unit 1013: The cloud computing server 101 interacts with the terminal 103 corresponding to each cloud service unit 1013, such as receiving data sent by the terminal 103 and sending data to the terminal 103 through the cloud service unit 1013. The cloud service unit 1013 can be a virtual machine, that is, a virtualized server resource provided based on cloud computing technology; the cloud service unit 1013 can also be called a cloud server. The data processing unit 1011 is connected to the cloud service unit 1013 and can receive data processing requests sent by one or more cloud service units. The data processing requests sent by the cloud service units can be received from the terminals they are connected to.
[0051] The data processing unit 1011 corresponds to virtualization software used to support the operation of virtual machines. In cases where the cloud computing server 101 includes multiple virtual machines, this virtualization software also supports the coexistence of these virtual machines. The virtualization software can abstract, partition, and simulate hardware resources, enabling each virtual machine to have its own operating system, applications, and storage space. The virtualization software can also delegate disk and network operation requests for virtual machines to dedicated software units. For example, the data processing unit 1011 forwards data processing requests received by the virtual machine to the data forwarding unit 1012 for forwarding to the cloud storage server 102. The data processing unit 1011 can instruct the data forwarding unit 1012 to forward the data processing request to a specific module corresponding to the virtual machine in the cloud storage server 102.
[0052] The cloud storage server 102 may include a storage backend unit 1021 and a physical disk 1022. The cloud storage server 102 interacts with the cloud computing server 101 using the storage backend unit 1021. For example, the storage backend unit 1021 is communicatively connected to the data forwarding unit 1012, and the data forwarding unit 1012 sends data processing requests to the storage backend unit 1021, which then accesses the physical disk 1022 to perform data processing.
[0053] The data forwarding unit 1012 is essentially software that requires version upgrades and updates as needed (e.g., periodically). To minimize the impact of upgrades and updates on the normal operation of the cloud computing server 101, the data forwarding unit 1012 is typically hot-upgraded. The data forwarding unit 1012 runs on the cloud computing server 101 through a corresponding process. Accordingly, the data forwarding unit 1012 uses this process to connect with the data processing unit 1011 and the cloud storage server 102, and also uses this process to receive data processing requests from the data processing unit 1011 and to send data processing requests to the cloud storage server 102. When updating the data forwarding unit 1012, the corresponding process needs to be restarted so that the process runs based on the updated data.
[0054] Figure 2 This is a schematic diagram illustrating the process switching process corresponding to a data forwarding unit, provided by related technologies. In the event of a hot upgrade of the data forwarding unit 1012, a new process corresponding to that data forwarding unit 1012 can be created in the cloud computing server 101. The process upon which the communication connection between the data forwarding unit 1012, the data processing unit 1011, and the cloud storage server 102 is based before the creation of the new process is referred to as the initial process. For example... Figure 2 As shown, after the newly added process is ready to start, steps s11, s12, s13, and s14 can be executed sequentially to restart the process. For example, step s11 disconnects the communication connection between the initial process and the data processing unit 1011, step s12 disconnects the communication connection between the initial process and the cloud storage server 102, step s13 establishes the communication connection between the newly added process and the cloud storage server 102, and step s14 establishes the communication connection between the newly added process and the data processing unit 1011.
[0055] Because the connection between the data processing unit 1011 and the cloud storage server 102 is lost during the process switching of the data forwarding unit 1012, data processing requests for the cloud disk cannot be sent to the cloud storage server 102 during this process. Therefore, in the case of hot upgrade and update of the data forwarding unit 1012, the maximum forwarding interruption time of the data processing request is the total execution time of steps s11, s12, s13, and s14. This interruption time is relatively long, which will lead to low data processing efficiency of the cloud platform.
[0056] This specification provides a data processing method. The cloud computing server 101 in the data processing system 10 described above can execute this data processing method to shorten the interruption time of data processing request forwarding caused by the update of the data forwarding unit 1012, reduce the impact on forwarding data processing requests, and correspondingly improve the data processing efficiency of the cloud platform. This specification also relates to a data processing apparatus, a hot-upgrade method for a data forwarding unit, a hot-upgrade apparatus for a data forwarding unit, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail in the following embodiments.
[0057] Figure 3 This is a flowchart illustrating a data processing method provided in one embodiment of this specification. The method is applied to... Figure 1 The cloud computing server 101 shown is described below, and the method involves the data processing unit 1011 and the data forwarding unit 1012 included in the cloud computing server 101, as well as the cloud storage server 102. For ease of description, the cloud storage server 102 will be referred to as the storage unit below. The following describes the process of executing this data processing method when the data forwarding unit 1012 is communicatively connected to the data processing unit 1011 and the storage unit respectively through an initial process. Figure 3 As shown, the method specifically includes the following steps:
[0058] Step 302: If it is determined that the data forwarding unit is to be hot-upgraded, create a new process corresponding to the data forwarding unit and establish a communication connection between the initial process and the new process.
[0059] For information on data forwarding units and their corresponding processes, please refer to the aforementioned [reference needed]. Figure 1 The relevant information will not be repeated here, as the content has already been introduced.
[0060] In the embodiments described in this specification, the data forwarding unit in the cloud computing server can be updated under certain conditions. The timing of this update can be determined by the cloud platform maintenance personnel, can be performed automatically based on a set cycle, or can be updated when certain problems arise in the data forwarding unit that need to be resolved. The cloud computing server can obtain the update data (such as a new installation package) corresponding to the data forwarding unit and deploy the update data accordingly. In this situation, the cloud computing server can determine that the data forwarding unit needs updating. In this case, the cloud computing server can create a new process based on the update data corresponding to the data forwarding unit. At this time, the data forwarding unit also has an initial process. After the new process is ready, the cloud computing server can establish a communication connection between the initial process and the new process.
[0061] For example, during the creation of this new process, the cloud computing server can first assign a unique process ID to the new process and request a blank Process Control Block (PCB). Then, it allocates resources (such as memory space) for the new process and initializes the PCB. This initialization process may include initializing flag information, initializing processor state information, initializing processing control information, and setting the process priority. When the process ready queue can accommodate the new process, it inserts the new process into the ready queue, at which point the new process is ready. The cloud computing server can enable the initial process and the new process to obtain each other's information (such as the process ID) to establish a communication connection between them. Afterward, the initial process and the new process can interact with each other based on this communication connection.
[0062] Optionally, the cloud computing server is equipped with an upgrade program or script responsible for the upgrade work; in this embodiment, the program or script is referred to as an update unit. Step 302 can be executed by this update unit.
[0063] Step 304: Switch the initial process that establishes a communication connection between any one of the data processing unit and the storage unit and the data forwarding unit to a new process.
[0064] Regarding the data processing unit and storage unit, please refer to the aforementioned section. Figure 1 The relevant information will not be repeated here, as the content has already been introduced.
[0065] The data forwarding unit is connected to both the data processing unit and the storage unit, such as to the storage backend unit within the storage unit. The cloud computing server can determine which unit, between the data processing unit and the storage unit, will perform a process switch first. In the embodiments described in this specification, the process switch refers to switching the process upon which the communication connection with the data forwarding unit is based. For example, the cloud computing server can perform a process switch first for either the data processing unit or the storage unit, and then perform a process switch later for the other unit. For ease of description, the term "first target unit" will be used to represent the unit (i.e., any one of the units) that performs the process switch first in the data processing unit and the storage unit, and the term "second target unit" will be used to represent the unit (i.e., the other unit) that performs the process switch later in the data processing unit and the storage unit.
[0066] In the embodiments described in this specification, during each hot upgrade update of the data forwarding unit, the data forwarding unit can randomly select one unit from the data processing unit and the storage unit as the first target unit, and the other unit as the second target unit. Optionally, the first and second target units can be pre-determined by the operator in the data processing unit and the storage unit. During hot upgrade updates of the data forwarding unit, the data forwarding unit switches processes based on the first and second target units specified by the operator.
[0067] Cloud computing servers perform process switching, which means that functions originally performed by the initial process are taken over by a newly added process. For example, the cloud computing server can first disconnect the communication connection between the first target unit and the data forwarding unit through the initial process, and then establish a communication connection between the first target unit and the data forwarding unit through the newly added process. In the embodiments of this specification, disconnecting the process before reconnecting it avoids the possibility of multiple processes simultaneously connecting two units, preventing data errors caused by multiple processes working concurrently, and ensuring simple and reliable data transmission.
[0068] Optionally, step 304 can be performed by the data forwarding unit. For example, the data forwarding unit may use the initial process to disconnect the communication connection with the first target unit, and then use the newly added process to establish a communication connection with the first target unit.
[0069] After the process switch is performed in step 304, the data forwarding unit uses the newly added process to connect to the first target unit and uses the initial process to connect to the second target unit. Since the newly added process is also communicating with the initial process, a complete communication link is still formed between the first target unit, the data forwarding unit and the second target unit. Data can be transmitted through this communication link.
[0070] Step 306: Based on the newly added process and the initial process of the communication connection between the data processing unit and the storage unit, send the data processing request received by the data processing unit to the storage unit for execution.
[0071] Regarding the data processing unit's reception and transmission of data processing requests, please refer to the aforementioned section on... Figure 1 The relevant information will not be repeated here, as the content has already been introduced.
[0072] The data forwarding unit can combine the newly added process and the initial process (i.e., through the aforementioned communication link) to perform data transmission between the data processing unit and the storage unit. Specifically, the newly added process is used for data transmission between the first target unit and the data forwarding unit; data transmission occurs between the newly added process and the initial process; and the initial process is used for data transmission between the second target unit and the data forwarding unit. In this way, data processing requests sent by the data processing unit can be forwarded to the storage unit.
[0073] After receiving the data processing request, the storage unit can execute the operation corresponding to the data processing request, such as a data read operation, a data write operation, a data deletion operation, or a data modification operation. In one embodiment, after executing the corresponding operation based on the data processing request, the storage unit can send the data processing result to the cloud computing server. For example, if the data processing request is a read request for certain data, the data processing result sent by the storage unit in response to the data processing request may include the read target data. Accordingly, the data processing method provided in the embodiments of this specification further includes: receiving the data processing result sent by the storage unit in response to the data processing request.
[0074] In a cloud computing server, the data processing unit receives data processing requests from the cloud service unit. If the request sent by the terminal to the cloud service unit is directly a write or delete request for data in the cloud disk, the cloud service unit can send this request directly to the data processing unit as a data processing request. The data processing result sent by the storage unit in response to this data processing request can be a message indicating successful write or successful delete / modify. The cloud computing server can then feed back the data processing result sent by the storage unit to the terminal.
[0075] If the request sent by the terminal to the cloud service unit is a request to perform additional analysis on target data in the cloud disk, the cloud service unit can generate a data processing request to be sent to the data processing unit based on this request. For example, the generated data processing request may be a read request for the target data. The data processing result sent by the storage unit in response to this data processing request may include the read target data. After receiving the target data, the cloud computing server can use the cloud service unit to analyze the target data and then send the analysis result to the terminal.
[0076] In one implementation of the data processing method, the first target unit is a data processing unit, and the second target unit is a storage unit. Thus, after process switching in step 304, the data forwarding unit connects to the data processing unit using the newly added process and to the storage unit using the initial process. Accordingly, step 306 includes: sending the data processing request received by the data processing unit to the data forwarding unit according to the newly added process; sending the data processing request to the initial process that connects the second target unit and the data forwarding unit according to the newly added process; and sending the data processing request to the storage unit for execution according to the initial process that connects the second target unit and the data forwarding unit. In this implementation, the data processing unit sends the received data processing request to the newly added process, the newly added process sends the data processing request to the initial process, and the initial process then forwards the data processing request to the storage unit.
[0077] In another implementation of the data processing method, the first target unit is a storage unit, and the second target unit is a data processing unit. Thus, after the process switch in step 304, the data forwarding unit connects to the storage unit using a newly added process and to the data processing unit using the initial process. Accordingly, step 306 includes: sending the data processing request received by the data processing unit to the data forwarding unit based on the initial process connecting the second target unit and the data forwarding unit; sending the data processing unit to the newly added process based on the initial process connecting the second target unit and the data forwarding unit; and sending the data processing request to the storage unit for execution based on the newly added process. In this implementation, the data processing unit sends the received data processing request to the initial process, the initial newly added process sends the data processing request to the newly added process, and the newly added process then forwards the data processing request to the storage unit.
[0078] During the data forwarding unit update process (including the aforementioned process switching process), the data processing unit continues to operate; therefore, during the process switching process for the first target unit in step 304, the data processing unit can still receive data processing requests. Because communication between the data processing unit and the storage unit is interrupted during this process switching, data processing requests cannot be forwarded normally, and thus, the data processing requests received by the data processing unit during this process switching are delayed. After step 304, the communication link between the data processing unit and the storage unit is established, at which point the data processing requests received but not processed by the data processing unit can be forwarded to the storage unit.
[0079] Accordingly, step 306 includes: based on the newly added process and the initial process that establishes the communication connection between the second target unit and the data forwarding unit, sending the data processing request received by the data processing unit during the process switching process to the storage unit for execution. This process switching process includes: switching the initial process that establishes the communication connection between the first target unit and the data forwarding unit to the newly added process, which is the execution process of step 304. For details on the specific forwarding process of the data processing request using the newly added process and the initial process, please refer to the descriptions in the two implementation methods above; they will not be repeated here.
[0080] Optionally, the data processing unit may send each data processing request to the data forwarding unit in the order in which they are received, and the data forwarding unit may forward the received data processing requests to the storage unit in the order in which they are received.
[0081] In this embodiment of the specification, after the data processing request received by the data processing unit during process switching is sent to the storage unit using the newly added process and the initial process, the forwarding of the data processing request using the newly added process and the initial process can be stopped, and process switching can be performed for the second target unit. Accordingly, after step 306, the data processing method provided in this embodiment of the specification further includes: switching the initial process that establishes the communication connection between the second target unit and the data forwarding unit to a newly added process; and sending the data processing request received by the data processing unit to the storage unit for execution according to the newly added process. Regarding the process switching process for the second target unit, please refer to the description of the process switching process for the first target unit in step 304 above, which will not be repeated here.
[0082] After the process switch is performed on the second unit, the data forwarding unit can use the newly added process to establish a communication connection with the data processing unit and the storage unit. Subsequently, it can directly use this newly added process to forward data processing requests received by the data processing unit to the storage unit. During this forwarding process, the data forwarding unit sends the data processing request to the newly added process, which then directly forwards the data processing request to the storage unit.
[0083] After the data processing unit sends the data processing requests received during process switching to the storage unit using the newly added process and the initial process, the data forwarding unit can immediately perform process switching for the second target unit. This allows for the rapid completion of all updates to the data forwarding unit, ensuring update efficiency. Typically, the data forwarding unit is highly efficient in forwarding data between the data processing unit and the storage unit, thus the time spent forwarding data processing requests received during process switching is also short. For example, the data processing request sent by the data processing unit to the data forwarding unit carries the time of receipt of the request. The data forwarding unit can determine whether the received data processing request is within the time period during which it performs process switching for the first target unit, thus identifying the data processing request during the process switching process.
[0084] Optionally, the data forwarding unit may also continue to send subsequently received data processing requests using the newly added process and the initial process after sending the data processing requests received by the data processing unit during process switching to the storage unit.
[0085] In this embodiment, the storage unit may include multiple cloud disks, and the data forwarding unit needs to establish communication connections with the data processing unit and the storage unit for each of these cloud disks. In this embodiment, the data processing request received by the data processing unit can be a request for any one of the multiple cloud disks. When the data forwarding unit is updated, process switching is required for each of the multiple cloud disks so that the updated process utilizes the newly added process to establish communication connections with the data processing unit and the storage unit for each of the multiple cloud disks. For example, the data forwarding unit can perform process switching for each cloud disk sequentially.
[0086] Accordingly, the process switching process in step 304 above includes: for the target cloud disk, switching the initial process that establishes the communication connection between the first target unit and the data forwarding unit to a newly added process, wherein the target cloud disk is any one of multiple cloud disks. The request forwarding process in step 306 includes: based on the newly added process and the initial process that establishes the communication connection between the second target unit and the data forwarding unit, sending the data processing request received by the data processing unit for the target cloud disk to the storage unit for execution. For details regarding the process switching and request forwarding processes for cloud disks, please refer to the previous descriptions of steps 304 and 306, which will not be repeated here. The data forwarding unit can perform this process switching and request forwarding process for each cloud disk according to the number of cloud disks, so that the newly added process can be used to establish communication connections with the data processing unit and the storage unit for all multiple cloud disks. The second target unit also needs to perform process switching for each cloud disk, which will not be described in detail here. This completes the entire process of updating the data forwarding unit.
[0087] In one embodiment, the data processing method provided in this specification further includes: when multiple cloud disks are being processed and the data forwarding unit communicates with the data processing unit and the storage unit respectively through newly added processes, the communication connection between the initial process and the newly added process is disconnected. After the update process of the data forwarding unit is fully executed, the initial process will no longer be used, thus the communication connection between the initial process and the newly added process can be disconnected. Optionally, the initial process can also be deleted to release occupied resources.
[0088] Figure 4 This is a schematic diagram illustrating the process switching process corresponding to a data forwarding unit according to an embodiment of this specification. When the data forwarding unit 1012 is updated, a new process corresponding to that data forwarding unit 1012 can be created in the cloud computing server 101. For example... Figure 4 As shown, after the newly added process is ready to start, steps s21, s22, s23, s24, and s25 can be executed sequentially to restart the process. For example, step s21 establishes a communication connection between the initial process and the newly added process; step s22 disconnects the communication connection between the initial process and the data processing unit 1011; step s23 establishes a communication connection between the newly added process and the data processing unit 1011; step s24 disconnects the communication connection between the initial process and the cloud storage server 102; and step s25 establishes a communication connection between the newly added process and the cloud storage server 102. After executing step s23, the data forwarding unit 1012 uses the communication connection established by the newly added process in step a to send the data processing request to the initial process, which then assists in sending the data processing request to the cloud storage server 102. After waiting for a short period of time, once the data processing requests that were not processed during steps s22 and s23 are completed, steps s25 and s23 are executed. Figure 4 Steps s22, s23, s24, and s25 shown describe the process switching procedure for a single cloud disk. This procedure must be executed for each cloud disk. After executing this procedure for each cloud disk, the connection established in step a can be disconnected, and subsequent data processing requests can be fully forwarded based on the newly added process. Figure 4 Taking the example of executing steps s22 and s23 first, and then executing steps s24 and s25, it is also possible to execute steps s24 and s25 first, and then execute steps s22 and s23. There is no limitation here.
[0089] In this embodiment, the forwarding interruption time for data processing requests to the cloud disk is divided into two parts: the total execution time of steps s22 and s23, and the total execution time of steps s24 and s25. Therefore, the maximum forwarding interruption duration is the total execution time of the two steps. This shorter interruption duration allows data processing requests received by the data processing unit to be forwarded to the storage unit for execution more quickly, thereby improving the data processing efficiency of the cloud platform.
[0090] In the data processing method provided in the embodiments of this specification, a temporary relay link (i.e., the communication link between the initial process and the new process) is established so that the request processing can be resumed through the relay link during the two disconnections between the data forwarding unit, the data processing unit, and the cloud storage. This breaks down the duration of the interruption of request forwarding from a long interruption time into two shorter interruption times, thereby reducing the duration of service damage to the cloud platform and reducing the impact on users.
[0091] In summary, in the data processing method provided in the embodiments of this specification, when the cloud computing server performs a hot upgrade update of the data forwarding unit, it establishes a communication connection between the newly added process and the initial process corresponding to the data forwarding unit; it switches the initial process of any unit in the data processing unit and storage unit that is communicating with the data forwarding unit to the newly added process, and sends the data processing request of the data processing unit to the storage unit for execution according to the newly added process and the initial process. In other words, when the data forwarding unit is hot upgraded, the process communicating between the data forwarding unit and any of the units can be switched first, and the data processing request can be sent to the storage unit through the communication between the newly added process and the initial process. In this way, when the data forwarding unit is updated, the maximum interruption time for the data processing request to be forwarded from the data processing unit to the storage unit is the switching time of the process communicating between the data forwarding unit and a unit. Therefore, the interruption time of data processing request forwarding caused by the data forwarding unit update can be shortened, and the data processing request received by the data processing unit can be forwarded to the storage unit for execution more quickly, thereby improving data processing efficiency.
[0092] This specification also provides an embodiment of a hot upgrade scheme for a data forwarding unit in a cloud computing server. Figure 5 This is a flowchart illustrating a hot-upgrade method for a data forwarding unit according to an embodiment of this specification. The method is applied to a cloud computing server, which includes a data processing unit and a data forwarding unit. The data forwarding unit communicates with the data processing unit and the storage unit respectively through an initial process. Figure 5 As shown, the method includes the following steps:
[0093] Step 502: Create a new process corresponding to the data forwarding unit and establish a communication connection between the initial process and the new process.
[0094] Step 504: Switch the initial process that establishes a communication connection between any one of the data processing unit and the storage unit and the data forwarding unit to a new process.
[0095] Step 506: Based on the newly added process and the initial process of the communication connection between the data processing unit and the data forwarding unit of another unit in the data processing unit and the storage unit, send the data processing request received by the data processing unit to the storage unit for execution.
[0096] Step 508: Switch the initial process of establishing a communication connection between the other unit and the data forwarding unit to a new process.
[0097] After step 508, the hot upgrade of the data forwarding unit can be completed. Afterward, the data forwarding unit can forward data processing requests between the data processing unit and the storage unit solely based on the newly added process. Steps 502 to 508 can be found in the aforementioned description of the data processing method, and will not be elaborated upon here. Optionally, the initial process can be deleted after step 508.
[0098] In the embodiments of this specification, during the hot upgrade of the data forwarding unit, a temporary connection is established between the initial process and the newly added process to forward the data processing requests during the upgrade process. This reduces the interruption time of request processing during the upgrade process, that is, reduces the service interruption time of the data forwarding unit, reduces the impact of the upgrade on the working state of the data processing unit, and ensures a better hot upgrade effect.
[0099] Corresponding to the above-described data processing method embodiments, this specification also provides data processing apparatus embodiments. Figure 6 This is a schematic diagram of a data processing device provided in one embodiment of this specification. The data processing device is applied to a cloud computing server, which includes a data processing unit and a data forwarding unit. The data forwarding unit communicates with the data processing unit and the storage unit respectively through an initial process. Figure 6 As shown, the data processing apparatus includes:
[0100] Module 602 is established to create a new process corresponding to the data forwarding unit and establish a communication connection between the initial process and the new process when it is determined that the data forwarding unit is undergoing a hot upgrade.
[0101] The first switching module 604 is used to switch the initial process that establishes a communication connection between any unit in the data processing unit and the storage unit and the data forwarding unit to a new process.
[0102] The sending module 606 is used to send the data processing request received by the data processing unit to the storage unit for execution, based on the newly added process and the initial process of the communication connection between the data processing unit and the data forwarding unit of another unit in the data processing unit and the storage unit.
[0103] Optionally, either unit is a data processing unit, and the other unit is a storage unit; the sending module 606 is used for:
[0104] Based on the newly added process, the data processing request received by the data processing unit is sent to the data forwarding unit;
[0105] Based on the newly added process, the data processing request is sent to the initial process of another target unit in the data processing unit and storage unit that is connected to the data forwarding unit.
[0106] Based on the initial process of the communication connection between the other unit and the data forwarding unit, the data processing request is sent to the storage unit for execution.
[0107] Optionally, either unit is a storage unit, and the other unit is a data processing unit; the sending module 606 is used for:
[0108] Based on the initial process of the communication connection between the data processing unit and the data forwarding unit, the data processing request received by the data processing unit is sent to the data forwarding unit;
[0109] Based on the initial process of the communication connection between the other unit and the data forwarding unit, the data processing unit is sent to the new process;
[0110] Based on the newly added process, the data processing request is sent to the storage unit for execution.
[0111] Optionally, the first switching module 604 is used for:
[0112] Disconnect the communication connection between any target unit in the data processing unit and the storage unit and the data forwarding unit through the initial process;
[0113] Establish a communication connection between any unit and the data forwarding unit through the newly added process.
[0114] Optionally, the sending module 606 is used for:
[0115] Based on the newly added process and the initial process of another unit in the data processing unit and storage unit communicating with the data forwarding unit, the data processing request received by the data processing unit during the process switching process is sent to the storage unit for execution. The process switching process includes: switching the initial process of any unit communicating with the data forwarding unit to the newly added process.
[0116] Optionally, the data processing apparatus further includes:
[0117] The second switching module is used to switch the initial process that connects the data processing unit to the data forwarding unit to the new process after the data processing unit sends the data processing request received by the data processing unit to the storage unit for execution, based on the new process and the initial process that connects the data processing unit and the storage unit to the data forwarding unit.
[0118] Based on the newly added process, the data processing request received by the data processing unit is sent to the storage unit for execution.
[0119] Optionally, the storage unit includes multiple cloud disks, and the first switching module 604 is used for:
[0120] For the target cloud disk, the initial process that establishes a communication connection between any one of the data processing unit and the storage unit and the data forwarding unit is switched to a new process, where the target cloud disk is any one of multiple cloud disks;
[0121] The sending module 606 is used for:
[0122] Based on the newly added process, and the initial process of communication connection between the data processing unit and the data forwarding unit, the data processing request for the target cloud disk received by the data processing unit is sent to the storage unit for execution.
[0123] Optionally, the data processing apparatus further includes:
[0124] The communication disconnection module is used to disconnect the communication connection between the initial process and the newly added process when the data forwarding unit communicates with the data processing unit and the storage unit through newly added processes for multiple cloud disks.
[0125] Optionally, the data processing apparatus further includes:
[0126] The receiving module is used to receive the data processing results sent by the storage unit in response to the data processing request.
[0127] In summary, in the data processing apparatus provided in the embodiments of this specification, when the data forwarding unit undergoes a hot upgrade, the establishment module establishes a communication connection between the newly added process and the initial process corresponding to the data forwarding unit; the first switching module switches the initial process that is communicating with the data forwarding unit from either the data processing unit or the storage unit to the newly added process; and the sending module sends the data processing request from the data processing unit to the storage unit for execution based on the newly added process and the initial process. In other words, when the data forwarding unit undergoes a hot upgrade, the process communicating with either of the data forwarding units can be switched first, and the data processing request can be sent to the storage unit through communication between the newly added process and the initial process. Thus, when the data forwarding unit is updated, the maximum interruption time for forwarding the data processing request from the data processing unit to the storage unit is equal to the switching time of the process communicating with a unit. Therefore, the interruption time for forwarding the data processing request due to the data forwarding unit update can be shortened, and the data processing request received by the data processing unit can be forwarded to the storage unit for execution more quickly, thereby improving data processing efficiency.
[0128] The above is an illustrative scheme of a data processing apparatus according to this embodiment. It should be noted that the technical solution of this data processing apparatus and the technical solution of the data processing method described above belong to the same concept. For details not described in detail in the technical solution of the data processing apparatus, please refer to the description of the technical solution of the data processing method described above.
[0129] Corresponding to the above-described hot-upgrade method embodiments, this specification also provides a hot-upgrade device for a data forwarding unit. Figure 7 This is a schematic diagram of a hot-upgrade device for a data forwarding unit according to an embodiment of this specification. This hot-upgrade device is applied to a cloud computing server, which includes a data processing unit and a data forwarding unit. The data forwarding unit communicates with the data processing unit and the storage unit respectively through an initial process. Figure 7 As shown, the thermal upgrade device includes:
[0130] Module 702 is used to create a new process corresponding to the data forwarding unit and establish a communication connection between the initial process and the new process.
[0131] The first switching module 704 is used to switch the initial process of any unit in the data processing unit and the storage unit that communicates with the data forwarding unit to a new process.
[0132] The sending module 706 is used to send the data processing request received by the data processing unit to the storage unit for execution based on the newly added process and the initial process of the communication connection between the data processing unit and the data forwarding unit of another unit in the data processing unit and the storage unit.
[0133] The second switching module 708 is used to switch the initial process of another unit communicating with the data forwarding unit to a new process.
[0134] The above is a schematic scheme of a hot-upgrade device for a data forwarding unit according to this embodiment. It should be noted that the technical solution of this hot-upgrade device belongs to the same concept as the technical solutions of the hot-upgrade method and data processing method described above. For details not described in detail in the technical solution of the hot-upgrade device, please refer to the description of the technical solutions of the hot-upgrade method and data processing method described above.
[0135] Figure 8 A structural block diagram of a computing device 800 according to an embodiment of this specification is shown. The components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.
[0136] The computing device 800 also includes an access device 840, which enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 840 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, or a Near Field Communication (NFC) interface.
[0137] In the embodiments described in this specification, the above-mentioned components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 8The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art may add or replace other components as needed.
[0138] The computing device 800 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 800 can also be a mobile or stationary server.
[0139] The processor 820 is used to execute computer programs / instructions, which, when executed by the processor, implement the above-mentioned... Figure 3 or Figure 5 The method shown.
[0140] As the computing device embodiment is basically similar to the data processing method embodiment, the description is relatively simple, and relevant details can be found in the description of the data processing method embodiment.
[0141] This specification also provides a computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implement the steps of the data processing method described above. The computer program / instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium may not include electrical carrier signals and telecommunication signals.
[0142] An embodiment of this specification also provides a computer program product, including a computer program / instructions that, when executed in a processor, implement the steps of the above-described data processing method.
[0143] The computer-readable storage medium embodiments and computer program product embodiments are basically similar to the data processing method embodiments, so the descriptions are relatively simple. For relevant details, please refer to the descriptions of the data processing method embodiments.
[0144] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0145] It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0146] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0147] The preferred embodiments disclosed above are intended only to help illustrate this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A data processing method applied to a cloud computing server, the cloud computing server comprising a data processing unit and a data forwarding unit, the data forwarding unit being communicatively connected to the data processing unit and a storage unit respectively through an initial process, the method comprising: If it is determined that the data forwarding unit is to be hot-upgraded and updated, a new process corresponding to the data forwarding unit is created, and a communication connection is established between the initial process and the new process. The initial process that connects any one of the data processing unit and the storage unit to the data forwarding unit is switched to the newly added process; Based on the newly added process, and the initial process in which the data processing unit and the storage unit are connected in communication with the data forwarding unit, the data processing request received by the data processing unit is sent to the storage unit for execution.
2. The method according to claim 1, wherein, The unit is the data processing unit, and the other unit is the storage unit; the step of sending the data processing request received by the data processing unit to the storage unit for execution, based on the new process and the initial process that connects the data processing unit and the other unit in the storage unit, includes: According to the newly added process, the data processing request received by the data processing unit is sent to the data forwarding unit; According to the newly added process, the data processing request is sent to the initial process of the data processing unit and the storage unit, which is connected to the data forwarding unit. According to the initial process of the communication connection between the other unit and the data forwarding unit, the data processing request is sent to the storage unit for execution.
3. The method according to claim 1, wherein, The unit is the storage unit, and the other unit is the data processing unit; the step of sending the data processing request received by the data processing unit to the storage unit for execution, based on the new process and the initial process that connects the data processing unit and the other unit in the storage unit, includes: According to the initial process in which the data processing unit and the storage unit are connected to the data forwarding unit, the data processing request received by the data processing unit is sent to the data forwarding unit. According to the initial process in which the other unit communicates with the data forwarding unit, the data processing unit is sent to the newly added process; Based on the newly added process, the data processing request is sent to the storage unit for execution.
4. The method according to claim 1, wherein the initial process that establishes a communication connection between any one of the data processing unit and the storage unit and the data forwarding unit is switched to the newly added process includes: Disconnect either the data processing unit or the storage unit, and establish a communication connection with the data forwarding unit through the initial process; Establish a communication connection between any of the units and the data forwarding unit through the newly added process.
5. The method according to claim 1, wherein, The step of sending the data processing request received by the data processing unit to the storage unit for execution, based on the newly added process and the initial process that is communicatively connected to the data forwarding unit by another unit in the data processing unit and the storage unit, includes: Based on the newly added process and the initial process that is communicatively connected to the data forwarding unit in the data processing unit and the storage unit, the data processing request received by the data processing unit during the process switching process is sent to the storage unit for execution. The process switching process includes: switching the initial process that is communicatively connected to the data forwarding unit in any unit to the newly added process.
6. The method according to any one of claims 1 to 5, wherein, After the initial process, which connects the data processing unit to the data forwarding unit via the newly added process and the data processing unit and the storage unit respectively, sends the data processing request received by the data processing unit to the storage unit for execution, the method further includes: The initial process that establishes a communication connection between the other unit and the data forwarding unit is switched to the newly added process; According to the newly added process, the data processing request received by the data processing unit is sent to the storage unit for execution.
7. The method according to any one of claims 1 to 5, wherein, The storage unit includes multiple cloud disks. Switching the initial process, which establishes a communication connection between the data processing unit and any unit in the storage unit and the data forwarding unit, to the newly added process includes: For a target cloud disk, the initial process that establishes a communication connection between any one of the data processing unit and the storage unit and the data forwarding unit is switched to the newly added process, wherein the target cloud disk is any one of the plurality of cloud disks; The step of sending the data processing request received by the data processing unit to the storage unit for execution, based on the newly added process and the initial process that is communicatively connected to the data forwarding unit by another unit in the data processing unit and the storage unit, includes: Based on the newly added process, and the initial process in which the data processing unit and the storage unit are connected in communication with the data forwarding unit, the data processing request for the target cloud disk received by the data processing unit is sent to the storage unit for execution.
8. The method according to claim 7, further comprising: When the data forwarding unit communicates with the data processing unit and the storage unit respectively through the newly added process for the multiple cloud disks, the communication connection between the initial process and the newly added process is disconnected.
9. The method according to any one of claims 1 to 5, further comprising: Receive the data processing result sent by the storage unit in response to the data processing request.
10. A hot upgrade method for a data forwarding unit, applied to a cloud computing server, the cloud computing server including a data processing unit and a data forwarding unit, the data forwarding unit communicating with the data processing unit and a storage unit respectively through an initial process, the method comprising: Create a new process corresponding to the data forwarding unit, and establish a communication connection between the initial process and the new process; The initial process that connects any one of the data processing unit and the storage unit to the data forwarding unit is switched to the newly added process; Based on the newly added process, and the initial process in which another unit in the data processing unit and the storage unit are connected to the data forwarding unit, the data processing request received by the data processing unit is sent to the storage unit for execution; The initial process that establishes a communication connection between the other unit and the data forwarding unit is switched to the newly added process.
11. A data processing apparatus applied to a cloud computing server, the cloud computing server comprising a data processing unit and a data forwarding unit, the data forwarding unit being communicatively connected to the data processing unit and a storage unit respectively via an initial process, the data processing apparatus comprising: A module is established to create a new process corresponding to the data forwarding unit and establish a communication connection between the initial process and the new process when it is determined that the data forwarding unit is undergoing a hot upgrade. The first switching module is used to switch the initial process, in which either the data processing unit or the storage unit is connected to the data forwarding unit, to the newly added process. The sending module is used to send the data processing request received by the data processing unit to the storage unit for execution, based on the newly added process and the initial process that is communicatively connected to the data forwarding unit between the data processing unit and the storage unit.
12. A hot-upgrade device for a data forwarding unit, applied to a cloud computing server, the cloud computing server including a data processing unit and a data forwarding unit, the data forwarding unit being communicatively connected to the data processing unit and a storage unit respectively through an initial process, the hot-upgrade device comprising: A module is established to create a new process corresponding to the data forwarding unit and to establish a communication connection between the initial process and the new process. The first switching module is used to switch the initial process, in which either the data processing unit or the storage unit is connected to the data forwarding unit, to the newly added process. The sending module is used to send the data processing request received by the data processing unit to the storage unit for execution, based on the newly added process and the initial process that is communicatively connected to the data forwarding unit between the data processing unit and the storage unit. The second switching module is used to switch the initial process that establishes a communication connection between the other unit and the data forwarding unit to the newly added process.
13. A data processing system, comprising: Cloud computing servers and storage units; A cloud computing server is configured to execute the method according to any one of claims 1 to 10, and to send the received data processing request to the storage unit; Storage unit, used to process data on the target cloud disk based on received data processing requests.
14. The data processing system according to claim 13 further includes a terminal, the terminal being used to send a data processing request to the cloud computing server; The cloud computing server is also used to send the data processing result of the data processing request back to the terminal.
15. A computing device, comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the method according to any one of claims 1 to 10.
16. A computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implement the method of any one of claims 1 to 10.
17. A computer program product comprising a computer program / instructions that, when executed in a processor, implement the method of any one of claims 1 to 10.