Compatibility control method and device in hybrid cloud environment and storage medium

By using a compatibility risk assessment model to automatically generate compatibility adjustment strategies in a hybrid cloud environment, the problem of low efficiency in client-server compatibility control is solved, achieving rapid response and efficient compatibility control.

CN123164013APending Publication Date: 2026-11-24ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510680133.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In a hybrid cloud environment, the compatibility control between the client and the server is inefficient. Existing technologies such as manual rollback and timed scanning have slow response speeds, low operational efficiency, and cannot quickly respond to compatibility issues. They also pose risks of operational errors and detection delays.

Method used

By acquiring the status information of the client and server, the system uses a compatibility risk assessment model to predict compatibility risk outcomes and generates automated compatibility adjustment strategies based on the results, including version downgrade and resource optimization strategies, thus avoiding delays caused by manual intervention and scheduled scanning.

Benefits of technology

It achieves efficient and intelligent compatibility control between the client and server in a hybrid cloud environment, improves the timeliness of compatibility problem detection and resolution efficiency, and reduces the time consumption and error risk of manual operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164013A_ABST
    Figure CN123164013A_ABST
Patent Text Reader

Abstract

This invention discloses a compatibility control method, apparatus, and storage medium in a hybrid cloud environment. Relating to the field of cloud computing, the method includes: acquiring client and server status information in a hybrid cloud environment; inputting the client and server status information into a compatibility risk assessment model, and outputting compatibility risk results for the client and server; and determining a compatibility adjustment strategy for the client based on the compatibility risk results and the client's status information. This invention solves the technical problem of low efficiency in client-server compatibility control in existing technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud computing, and more specifically, to a compatibility control method, apparatus, and storage medium in a hybrid cloud environment. Background Technology

[0002] Hybrid cloud and multi-cloud architectures refer to an enterprise's simultaneous use of private and public clouds, or multiple public cloud service providers, to meet different task requirements or optimize resource allocation. In a hybrid cloud environment, because the server and client may be developed by different teams or have different task requirements, their update frequencies and version numbers may differ, leading to compatibility issues. When compatibility conflicts occur, the version mismatch between the server and client can cause system malfunctions or prevent normal operation.

[0003] In existing technologies, the following solutions are used to control server-side and client-side compatibility issues: First, the traditional manual rollback solution, which is the traditional method of manually downgrading the host security client from a higher version to a lower version. This solution relies on manual verification to detect version compatibility issues. After the detection is confirmed, it is also necessary to manually download the historical version package, stop the service, replace files, and restart the process. Therefore, when manually intervening in the rollback process, the operation steps are cumbersome and time-consuming, making it difficult to respond quickly to fault scenarios. The operation efficiency is low, and manual operation is prone to errors such as omissions in operation steps, which may lead to secondary failures, such as the system crashing due to accidental deletion of configuration files. Secondly, there is the scheduled compatibility scanning solution, which involves the server periodically scanning client versions and generating downgrade tasks in batches. The client then pulls the policy and executes it through scheduled tasks. The problem with this solution is that the detection latency can be as long as 1 hour or more, and it cannot intercept sudden compatibility issues. For example, failure to detect version conflicts in time can result in the loss of 30,000 audit logs. High-frequency scanning can also lead to excessive peak load on the server's CPU. Simultaneous downgrading of multiple devices can also cause service avalanche (e.g., database connection pool exhaustion). Furthermore, the batch-generated downgrade tasks are difficult to adapt to client downgrades on different hosts, resulting in a high downgrade failure rate.

[0004] In summary, traditional solutions such as timed scanning compatibility and manual rollback suffer from slow response speed and low operational efficiency, failing to meet the core requirement of high availability for tasks.

[0005] There is currently no effective solution to the above problems. Summary of the Invention

[0006] This invention provides a compatibility control method, apparatus, and storage medium in a hybrid cloud environment, to at least solve the technical problem of low efficiency in compatibility control between clients and servers in the prior art.

[0007] To achieve the above objectives, according to one aspect of this application, a compatibility control method for a hybrid cloud environment is provided. The method includes: obtaining client status information and server status information in a hybrid cloud environment; inputting the client status information and server status information into a compatibility risk assessment model, and outputting a compatibility risk result between the client and the server; and determining a compatibility adjustment strategy for the client based on the compatibility risk result and the client status information.

[0008] Furthermore, the client's status information includes runtime status information, version information, and host system information, while the server's status information includes preset compatibility rules and log information. The client and server status information are input into the compatibility risk assessment model, and the output compatibility risk results for the client and server include: predicting the first compatibility result between the client and server based on preset compatibility rules using the rule-judgment sub-model of the compatibility risk assessment model; predicting the second compatibility result between the client and server based on runtime status information, version information, host system information, and log information using the classification sub-model of the compatibility risk assessment model; and determining the compatibility risk result based on the first and second compatibility results using the fusion sub-model of the compatibility risk assessment model.

[0009] Further, determining the compatibility risk result based on the first compatibility result and the second compatibility result includes: obtaining a first weighting coefficient, a second weighting coefficient, and an environmental change parameter, wherein the environmental change parameter is used to characterize the sudden changes in the client's real-time data stream; weighting the first compatibility result with the first weighting coefficient and weighting the second compatibility result with the second weighting coefficient; determining the target compatibility result based on the weighted first compatibility result, the weighted second compatibility result, and the environmental change parameter; and determining the compatibility risk result corresponding to the target compatibility result based on at least one preset level classification threshold.

[0010] Furthermore, the training steps for the classification sub-model include: obtaining a compatibility risk classification dataset, which includes multiple labeled data points, including runtime status information, version information, host system information, log information, and risk level; determining numerical input features based on runtime status information, and determining vector input features based on version information, host system information, and log information; constructing a training dataset by using the numerical and vector input features as input data and the risk level as output data; and iteratively training a preset classification algorithm based on the training dataset to obtain the classification sub-model.

[0011] Furthermore, determining the corresponding compatibility adjustment strategy for the client based on the compatibility risk results and the client's status information includes: determining whether the client needs to be downgraded based on the compatibility risk results; if the client does not need to be downgraded, the compatibility adjustment strategy is no downgrade required; if the client needs to be downgraded, a downgrade strategy corresponding to the client is generated based on the client's status information, and the downgrade strategy corresponding to the client is determined as the compatibility adjustment strategy.

[0012] Furthermore, generating a corresponding downgrade strategy for the client based on the client's state information includes: determining the target downgrade version based on the client's state information; obtaining the downgrade version package of the target downgrade version; obtaining the downgrade script template, and filling the downgrade script template according to the client's state information and the downgrade version package to obtain the downgrade script, wherein the downgrade script is used to roll back the client to the version of the downgrade version package; and determining the downgrade version package and the downgrade script as the downgrade strategy.

[0013] Furthermore, after generating the corresponding degradation policy for the client based on the client's state information, the compatibility adjustment strategy also includes: encrypting the degradation policy to obtain an encrypted degradation policy; and digitally signing the encrypted degradation policy so that the client's server host can verify it after receiving the degradation policy.

[0014] Furthermore, the downgrade steps when running the downgrade script include: performing port conflict detection and dependency library detection on the downgraded version package; terminating the client's original main process if both the port conflict detection and dependency library detection results are satisfactory; and starting the client's new main process based on the downgraded version package.

[0015] Furthermore, after performing port conflict detection and dependency library detection on the downgraded version package, the downgrade steps when running the downgrade script also include: starting a new audit process on the client based on the downgraded version package; using the new audit process on the client to take over the audit logs in the client; and sending the audit logs to the server based on the new main process on the client.

[0016] To achieve the above objectives, according to another aspect of this application, a compatibility control device in a hybrid cloud environment is provided. The device includes: a data acquisition unit for acquiring client status information and server status information in a hybrid cloud environment; a risk assessment unit for inputting the client status information and server status information into a compatibility risk assessment model and outputting a compatibility risk result between the client and the server; and a strategy generation unit for determining a compatibility adjustment strategy for the client based on the compatibility risk result and the client status information.

[0017] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is running, it controls the device where the computer-readable storage medium is located to execute any kind of compatibility control method in a hybrid cloud environment.

[0018] According to another aspect of this application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a compatibility control method for performing any hybrid cloud environment.

[0019] According to another aspect of this application, a computer program product is provided, including computer instructions, which, when executed by a processor, implement the steps of the compatibility control method in a hybrid cloud environment described above.

[0020] In this embodiment of the invention, the client's state information and the server's state information in a hybrid cloud environment are obtained; the client's state information and the server's state information are input into a compatibility risk assessment model, and the compatibility risk results between the client and the server are output; based on the compatibility risk results and the client's state information, a compatibility adjustment strategy for the client is determined, thus solving the technical problem of low efficiency in client-server compatibility control in the prior art.

[0021] By automatically acquiring server-side and client-side status information and using a compatibility risk assessment model to predict compatibility risk outcomes, and then determining compatibility adjustment strategies based on these outcomes, the system enables rapid decision-making based on status information. This avoids the delays of scheduled scanning and improves the timeliness of compatibility issue detection. Furthermore, the compatibility risk assessment model can accurately identify compatibility issues between the client and server, thereby generating compatibility adjustment strategies. This avoids the time-consuming process of manually assessing and determining solutions to compatibility issues. Therefore, it makes client-server compatibility control in a hybrid cloud environment more efficient and intelligent, improving the overall efficiency of compatibility control. Attached Figure Description

[0022] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0023] Figure 1 A hardware structure block diagram of a computer terminal for implementing a compatibility control method in a hybrid cloud environment is shown.

[0024] Figure 2This is a flowchart of a compatibility control method in a hybrid cloud environment provided according to an embodiment of this application;

[0025] Figure 3 This is a flowchart of the compatibility risk assessment in the optional hybrid cloud environment compatibility control method provided in the embodiments of this application;

[0026] Figure 4 This is a schematic diagram of a compatibility control device in a hybrid cloud environment provided according to an embodiment of this application;

[0027] Figure 5 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] It should be noted that all information and data involved in this application (including but not limited to data used for training and analysis) are information and data authorized by the user or fully authorized by all parties. For example, if there is an interface between this system and the relevant user or organization, before obtaining the relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information only after receiving consent from the aforementioned user or organization.

[0031] Example 1

[0032] According to an embodiment of the present invention, a compatibility control method embodiment in a hybrid cloud environment is also provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0033] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal (or mobile device) for implementing a compatibility control method in a hybrid cloud environment is shown. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0034] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0035] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the compatibility control method in the hybrid cloud environment in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned compatibility control method in the hybrid cloud environment. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0036] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0037] The display can be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0038] Under the aforementioned operating environment, this application provides the following: Figure 2 The method for compatibility control in a hybrid cloud environment is shown. Figure 2 This is a flowchart of a compatibility control method in a hybrid cloud environment according to Embodiment 1 of the present invention.

[0039] Step S201: Obtain the status information of the client and the server in the hybrid cloud environment.

[0040] Optionally, client and server status information can be acquired in real time for compatibility risk analysis. Client status information can include the currently running client version number or the client's operating environment, such as CPU model and other hardware configuration information. Server status information can include the currently running server version number, logs recording past compatibility issues, or server load information, such as memory usage. The purpose of this step is to collect client and server status information to provide foundational data for subsequent compatibility risk assessment.

[0041] For example, the method in this embodiment runs on the server host. On the one hand, it receives the client status information uploaded by the client host. On the other hand, it collects server version number, CPU usage, historical compatibility issue logs, etc. as server status information on the server host.

[0042] Step S202: Input the client's status information and the server's status information into the compatibility risk assessment model, and output the compatibility risk results between the client and the server.

[0043] Optionally, the compatibility risk assessment model is used to predict compatibility risk results based on client and server state information. The data format of the compatibility risk results can be probability, score, or level. If the compatibility risk results are in level form, they can be divided into Level 1 risk, Level 2 risk, and Level 3 risk, with the compatibility risk increasing as the level increases, representing the probability of compatibility problems occurring. Those skilled in the art, based on the above description of the input and output data, can choose a suitable algorithm to train the compatibility risk assessment model; this embodiment does not impose any limitations on this.

[0044] For example, historical data on client and server status information is collected and labeled with compatibility risk results to obtain a training dataset. This training dataset is then used to iteratively train a multi-classification model, which can be an encoder-decoder based deep learning model. The client and server status information is then input into the compatibility risk assessment model. The output of the model can be a probability distribution of compatibility risks; the label corresponding to the highest probability value is taken as the compatibility risk result.

[0045] Step S203: Determine the compatibility adjustment strategy for the client based on the compatibility risk results and the client's status information.

[0046] Optionally, the compatibility adjustment strategy can be to avoid downgrading, downgrade the version, or optimize resource usage such as memory utilization. Different compatibility adjustment strategies can be determined based on the compatibility risk results and the client's status information.

[0047] For example, if the compatibility risk result is level three (assuming there are three levels in total), the compatibility risk is relatively high. The target version for downgrading can be determined based on the client's status information, such as downgrading from version v3.1.2 to version v2.7.0, and a compatibility adjustment strategy for version downgrading can be generated.

[0048] In summary, this application achieves rapid decision-making based on state information by automatically acquiring the status information of the server and client, predicting compatibility risk results using a compatibility risk assessment model, and then determining compatibility adjustment strategies based on the compatibility risk results. This avoids the delay of scheduled scanning, improves the timeliness of detecting compatibility issues, and accurately identifies compatibility issues between the client and server through the compatibility risk assessment model, thereby generating compatibility adjustment strategies. This avoids the time-consuming process of manually assessing and determining solutions to compatibility issues. Therefore, it makes compatibility control of the client and server in a hybrid cloud environment more efficient and intelligent, improving the efficiency of compatibility control.

[0049] To improve the accuracy of compatibility risk prediction, the client's status information may optionally include runtime status information, version information, and host system information, while the server's status information may include preset compatibility rules and log information. Figure 3 This is a flowchart of the compatibility risk assessment in the optional hybrid cloud environment compatibility control method provided in the embodiments of this application, with reference to... Figure 3 As shown, the steps to input client and server state information into the compatibility risk assessment model and output the client and server compatibility risk results include:

[0050] Step S301: The first compatibility result between the client and the server is predicted by the rule judgment sub-model in the compatibility risk assessment model according to the preset compatibility rules.

[0051] The compatibility risk assessment model includes a rule-based judgment sub-model, a classification sub-model, and a fusion sub-model. The rule-based judgment sub-model is used to predict the first compatibility result based on compatibility rules. The first compatibility result can be a discrete output, i.e., compatible or incompatible, or it can be the probability of a compatibility problem occurring, for example, a first compatibility result of 60%.

[0052] Optionally, the preset compatibility rules can be a first compatibility list and a second compatibility list. The first compatibility list identifies client versions with compatibility issues with the server, and the second compatibility list identifies client versions compatible with the server. For example, if the server version is v4.4.0, the second compatibility list could be v3.4.0, v3.4.1, and v3.4.2, and the first compatibility list could be v3.5.0, v3.5.1, and v3.5.2. The first and second compatibility lists can be constructed by performing client version compatibility tests after each server version update to verify whether different client versions can work properly. Client version numbers that pass the test are recorded and added to the second compatibility list, while client version numbers that fail the test are recorded and added to the first compatibility list. The first and second compatibility lists can be continuously updated as testing progresses. Since the same version of a client may pass testing and be added to the second compatibility list, or fail testing and be added to the first compatibility list, on different client hosts, when the preset compatibility rules are the first compatibility list and the second compatibility list, predicting the first compatibility result between the client and the server based on the preset compatibility rules can be done by retrieving the frequency of the client's version information in the first compatibility list as the first hit count, and retrieving the frequency of the client's version information in the second compatibility list as the second hit count. When the first compatibility result is a discrete output, if the first hit count is greater than the second hit count, the first compatibility result is incompatible; if the first hit count is less than the second hit count, the first compatibility result is compatible. When the first compatibility result is probabilistic, the larger of the first hit count and the second hit count is taken as the dividend, the sum of the first hit count and the second hit count is taken as the divisor, and the quotient of the dividend and the divisor is taken as the first compatibility result.

[0053] Optionally, the preset compatibility rules can also be hard compatibility conflict rules. Hard compatibility conflict rules are rules defined based on deterministic factors, such as operating system limitations. For example, the risk of a server version having compatibility issues (i.e., incompatibility) with clients on certain operating systems is 60%. This 60% value can be defined by statistical calculations based on historical compatibility issues; that is, out of 100 cases involving the server version and clients on that operating system, 60 have compatibility issues. Furthermore, hard compatibility conflict rules can be updated based on deterministic conditions. For example, the update operation can be at least one of the following: adding, deleting, or modifying the rule. That is, the hard compatibility conflict rules record the probability of different clients having compatibility issues with the server. In this case, determining the compatibility result between the client and the server based on the preset compatibility rules can be achieved by comparing the client's state information with the preset compatibility rules (i.e., hard compatibility conflict rules) and obtaining the corresponding process that has caused the compatibility issue as the second compatibility result. If the hard compatibility conflict rules do not record data corresponding to the client's state information, then the second compatibility result is that the probability of a compatibility issue is 0%. After obtaining the second compatibility result in probabilistic form, it can be converted to obtain the second compatibility result in discrete output based on 50% as the dividing line. If the second compatibility result in probabilistic form is greater than 50%, the second compatibility result in discrete output is incompatible. If the second compatibility result in probabilistic form is less than 50%, the second compatibility result in discrete output is compatible.

[0054] Step S302: Using the classification sub-model in the compatibility risk assessment model, the second compatibility result between the client and the server is predicted based on the running status information, version information, host system information, and log information.

[0055] The classification sub-model is used to predict the second compatibility result based on runtime status information, version information, host system information, and log information. The second compatibility result can be compatible or incompatible, or it can be the probability of a compatibility problem occurring; for example, the second compatibility result is 80%.

[0056] Optionally, the running status information may be CPU utilization, memory usage, and network latency; the version information may be the client version; the host system information may be the operating system type, instruction set, CPU model, memory size, and disk type of the host where the client is located; and the log information may be the server-side version update log, the client-reported version update log, and the historical vulnerability data log. In the version update log, the version number may be serial number data, and the historical vulnerability data log may be unstructured data.

[0057] Optionally, the classification sub-model can be a model trained using machine learning algorithms that predicts the second compatibility result based on runtime status information, version information, host system information, and log information. For example, runtime status information, version information, host system information, and log information are collected, and the second compatibility result is labeled to obtain a labeled dataset. The neural network is then trained using the labeled dataset to obtain the classification sub-model. It should be noted that the predicted label output by the classification sub-model can be used as the second compatibility result, i.e., the second compatibility result is compatible or incompatible, or the probability distribution of the output layer of the classification sub-model can be used as the second compatibility result, for example, the probability of incompatibility (i.e., a compatibility problem occurs) is 80%. The method of obtaining the probability distribution varies depending on the model. When using a neural network to build a classification sub-model, a softmax function can be used in the output layer to output the probability distribution of different categories (compatible or incompatible). When using a logistic regression algorithm, the probability value of incompatibility output by the sigmoid function can be used.

[0058] Step S303: Determine the compatibility risk result based on the first compatibility result and the second compatibility result using the fusion sub-model in the compatibility risk assessment model.

[0059] The fusion sub-model is used to fuse the first compatibility result and the second compatibility result to determine the final compatibility risk result.

[0060] Optionally, the fusion method can be a voting method. Between the first and second compatibility results: if both are incompatible, the fusion result of the voting method is a compatibility risk level three; if only one is compatible, the fusion result of the voting method is a compatibility risk level two; and if both are compatible, the fusion result of the voting method is a compatibility risk level one. It should be noted that if the output form of the first and second compatibility results is a probability, then categories with a probability greater than 50% can be used as the basis for output form transformation, and voting is conducted based on the transformed output form. For example, if the first compatibility result indicates a 60% probability of a compatibility problem, then the first compatibility result is incompatible, and the vote for the first compatibility result is "incompatible"; if the first compatibility result indicates a 40% probability of a compatibility problem, then the probability of compatibility is equivalent to a 60% probability, the first compatibility result is compatible, and the vote for the first compatibility result is "compatible".

[0061] Optionally, the fusion method can also be a weighted average method, assigning different weights to the first and second compatibility results, calculating a weighted average, and determining the compatibility risk result corresponding to the weighted average through a risk threshold. For example, if the first compatibility result has a 60% probability of a compatibility problem and a weight of 1, and the second compatibility result has an 80% probability of a compatibility problem and a weight of 1, then the weighted average is (0.6×1+0.8×1) / 2, which is 0.7. The compatibility risk results can be classified using risk thresholds of 0.75 and 0.9. If the weighted average is less than 0.75, the compatibility risk result is level one; if the weighted average is 0.8, the compatibility risk result is level two; and if the weighted average is 0.95, the compatibility risk result is level three.

[0062] In summary, by using a rule-based judgment sub-model and a classification sub-model, compatibility results are generated from two different dimensions. This combines the rapid response of the rule-based judgment sub-model with the in-depth analysis of the classification sub-model, and then integrates them through a fusion sub-model to generate the final compatibility risk results, thereby improving the accuracy of risk assessment.

[0063] To improve the accuracy of the compatibility risk assessment model, optionally, determining the compatibility risk result based on the first compatibility result and the second compatibility result includes: obtaining a first weighting coefficient, a second weighting coefficient, and an environmental change parameter, wherein the environmental change parameter is used to characterize the sudden changes in the client's real-time data stream; weighting the first compatibility result with the first weighting coefficient and the second compatibility result with the second weighting coefficient; determining the target compatibility result based on the weighted first compatibility result, the weighted second compatibility result, and the environmental change parameter; and determining the compatibility risk result corresponding to the target compatibility result based on at least one preset level classification threshold.

[0064] Optionally, during the fusion of the first and second compatibility results, the weighting coefficients represent importance, and the first weighting coefficient can be greater than the second weighting coefficient. The environmental change parameter is a real-time dynamic factor that needs to be considered when assessing compatibility. This real-time dynamic factor can be a sudden change in resource usage; for example, if the CPU utilization rate increases from 30% to 36%, the change rate is 20%, then the environmental change parameter is 20%. The environmental change parameter can consider only cases where the resource usage change rate is greater than 15% as a sudden change; when the change rate is less than 15%, the environmental change parameter is 0. The first and second compatibility results are the probability values ​​of compatibility issues occurring (see the above description for details). The target compatibility result is obtained by summing the weighted first compatibility result, the weighted second compatibility result, and the environmental change parameter. The target compatibility result can be divided into two levels of compatibility risk results based on a preset level classification threshold, or it can be divided into more levels using more preset level classification thresholds.

[0065] For example, if the first compatibility result is 60%, the second compatibility result is 80%, the first weighting coefficient is 0.6, the second weighting coefficient is 0.4, and the environmental change parameter is 20%, then the target compatibility result is 60% × 0.6 + 80% × 0.4 + 20%, which is 0.88. The first preset level classification threshold can be 0.75, and the second preset level classification threshold can be 0.95. If the target compatibility result is less than the first preset level classification threshold, the compatibility risk result is Level 1. If the target compatibility result is between the first and second preset level classification thresholds, the compatibility risk result is Level 2. If the target compatibility result is greater than the second preset level classification threshold, the compatibility risk result is Level 3. When the target compatibility result is 0.88, the compatibility risk result is Level 2.

[0066] In summary, by comprehensively considering the results of the rule-based sub-model and the classification sub-model, different results can be combined more reasonably, avoiding the limitations of a single model and improving the accuracy of the overall risk assessment. In addition, the introduction of environmental change parameters enables the fusion sub-model in the compatibility risk assessment model to be dynamically adjusted according to the actual conditions at runtime, thereby improving the accuracy of the compatibility risk assessment.

[0067] To improve the prediction accuracy of the classification sub-model, the training steps of the classification sub-model may optionally include: obtaining a compatibility risk classification dataset, which includes multiple labeled data points, including runtime status information, version information, host system information, log information, and risk level; determining numerical input features based on the runtime status information, and determining vector input features based on the version information, host system information, and log information; constructing a training dataset by using the numerical and vector input features as input data and the risk level as output data; and iteratively training a preset classification algorithm based on the training dataset to obtain the classification sub-model.

[0068] Optionally, multiple data points, including runtime status information, version information, host system information, and log information, are collected and labeled to obtain risk levels, thereby constructing a compatibility risk classification dataset. The numerical values ​​of runtime status information can be used as numerical input features, while the version information, host system information, and log information can be vectorized from text to obtain vector input features. Preset classification algorithms can include logistic regression, support vector machines, random forests, and neural networks.

[0069] For example, for a piece of labeled data, if the CPU utilization is 80% and memory usage is 60%, then 80% and 60% are directly used as two numerical features. Version information and host system information are vectorized using one-hot encoding to obtain corresponding vectors, and log information is vectorized into text using word embedding to obtain corresponding vectors. After constructing the training dataset, it is input into the neural network for iterative training to obtain a classification sub-model.

[0070] In summary, by processing the compatibility classification dataset, determining numerical input features based on runtime status information, and determining vector input features based on version information, host system information, and log information, and then constructing a training dataset and iteratively training the preset classification algorithm, the classification sub-model can learn the relationship between multiple features of different types (numerical and vector) and risk levels, thereby improving the accuracy of the classification sub-model.

[0071] To improve the efficiency of compatibility adjustments, the compatibility adjustment strategy for the client is further determined based on the compatibility risk results and the client's status information. This includes: determining whether the client needs to be downgraded based on the compatibility risk results; if the client does not need to be downgraded, the compatibility adjustment strategy is no downgrade required; if the client needs to be downgraded, a downgrade strategy is generated based on the client's status information, and the downgrade strategy is determined as the compatibility adjustment strategy.

[0072] Optionally, it can be pre-configured that client downgrading is only required when the compatibility risk result is level three. If the compatibility risk result is at a level other than level three, client downgrading is not required. The compatibility adjustment strategy of not downgrading can be to keep the current client version running, avoiding unnecessary resource consumption and operational delays. If client downgrading is required, a personalized downgrading strategy is generated based on the client's status information, and this strategy is used to downgrade the client version.

[0073] For example, if the compatibility risk results are divided into three levels, and the output of the compatibility risk assessment model is a level three compatibility risk, and the client's status information is a v3.1.1 client and a CentOS 7 operating system, by querying the version update log reported by the client in the server log information, it is found that the previous compatible client version for the CentOS 7 operating system is v3.1.0. Then, a downgrade strategy for the v3.1.0 client under the CentOS 7 operating system is generated. The downgrade strategy can be to notify the client to downgrade, so as to roll back the client's version to v3.1.0.

[0074] In summary, by analyzing and judging the compatibility risk results and client status information, corresponding compatibility adjustment strategies were generated for different degradation processing requirements, reducing the burden of manual operation and improving operational efficiency.

[0075] To improve the efficiency of downgrade processing, optionally, generating a downgrade strategy for the client based on the client's state information includes: determining the target downgrade version based on the client's state information; obtaining the downgrade version package of the target downgrade version; obtaining a downgrade script template, and filling the downgrade script template with the client's state information and the downgrade version package to obtain a downgrade script, wherein the downgrade script is used to roll back the client to the version of the downgrade version package; and determining the downgrade version package and the downgrade script as the downgrade strategy.

[0076] Optionally, the current client version can be obtained by querying the client's status information. The server can store a directory of historical client version installation packages. The current version is compared with the previous version in the historical client version installation package directory to determine the previous version, which is then used as the target downgrade version. The installation package of the target downgrade version is retrieved from the client's historical version installation package directory to obtain the downgrade version package. The downgrade script template can include instructions such as stopping the service, installing the specified version package, and starting the service. Based on the client's status information, the client's operating system and host system information are determined, and the instructions in the downgrade script template are filled in with the filename of the target downgrade version package to obtain the downgrade script.

[0077] For example, if the client's host system information is Ubuntu 18.04 operating system, the part to be filled in the downgrade script template can be as follows:

[0078] sudo systemctl stop<service_name> .service# Stop service

[0079] sudo dpkg-i<path_to_package> .deb#Install downgrade package

[0080] sudo systemctl start<new_service_name> .service# Start the service

[0081] Wherein, service_name is the service name of the original version in the client, path_to_package is the absolute path of the downgraded version package, and new_service_name is the service name of the client's central version. This downgrade script and downgraded version package, constituting a downgrade policy, are sent to the host where the client resides, enabling the host to automatically downgrade the client according to this policy.

[0082] It should be noted that the main improvement of this application lies in implementing compatibility risk assessment and generating downgrade policies on the server side for clients to downgrade their versions. Those skilled in the art, upon learning of the method of this application, can foresee the execution process of the downgrade policy after it is sent to the client. The client only needs to run the downgrade script according to the downgrade policy to downgrade the client version to the version of the downgraded version package.

[0083] In summary, by automatically acquiring the target version package and generating the downgrade script, the efficiency and security of client downgrade processing are significantly improved, providing an efficient and reliable way to solve compatibility issues in hybrid cloud environments.

[0084] To improve the security of the downgrade process, optionally, after generating the downgrade policy corresponding to the client based on the client's state information, the compatibility adjustment policy may also include: encrypting the downgrade policy to obtain an encrypted downgrade policy; and digitally signing the encrypted downgrade policy so that the client's server host can verify it after receiving the downgrade policy.

[0085] For example, the server can encrypt the degradation policy using the client's public key, and then digitally sign the encrypted degradation policy using the server's private key. When the client's server host receives the degradation policy, it can decrypt the digital signature using the client's server public key, and then decrypt the encrypted degradation policy using the client's private key. The method in this embodiment can also use a transport layer security protocol to encrypt the degradation policy between the server and client to further enhance security.

[0086] In summary, by encrypting and digitally signing the degradation strategy on the server side, and then decrypting it upon receipt by the client's server host, the security and reliability of the degradation strategy can be ensured, and tampering and supply chain attacks can be prevented, thereby improving the security of the degradation process.

[0087] To improve the stability of the downgrade process, the downgrade steps when running the downgrade script may optionally include: performing port conflict detection and dependency library detection on the downgraded version package; terminating the original main process of the client if both the port conflict detection and dependency library detection results are satisfactory; and starting a new main process of the client based on the downgraded version package.

[0088] Optionally, the downgrade script includes multiple downgrade steps for the client to run. When the client runs the downgrade script, it will execute the downgrade steps within it. The downgrade steps can perform pre-verification checks, including port conflict detection and dependency library detection. Port conflict detection checks for port conflicts between the client's original main process and the new main process to be run. Dependency library detection checks if the required libraries for the downgrade script are installed. If both port conflict and dependency library checks pass, the client's environment meets the running conditions and subsequent steps can be executed; otherwise, an alarm is triggered and a rollback occurs. The process running on the client before downgrading is the client's original main process. The original main process can be terminated, and the downgraded client process (i.e., the new main process) can be started based on the downgraded version package.

[0089] For example, a portion of the code and the downgrade steps in the downgrade script might look like this:

[0090] sudo systemctl stop old_client.service #Steps: Terminate the original main process

[0091] if port_confl ict_check && dependency_check # Steps — Check ports and dependencies

[0092] tar -xzf new_version.tar.gz # Steps - Unzip the downgrade version package

[0093] sudo dpkg -i new_version.deb #Steps - Install downgrade package

[0094] sudo systemctl start new_client.service #Steps — Start the new main process

[0095] When running a downgrade script, you can configure the script to start an independent downgrade process, control the group to limit resource usage, and bind it to a specific CPU core to avoid resource contention.

[0096] In summary, through the built-in degradation steps in the degradation script, the client can fully automate the degradation process at runtime, eliminating the need for manual operation and significantly improving operational efficiency, reducing degradation operation time from hours to minutes. Furthermore, it avoids degradation failures or service instability caused by port conflicts and dependency issues, eliminates the risk of secondary failures due to manual operation, and improves the overall stability of the degradation process.

[0097] To improve the traceability of the downgrade process, optionally, after performing port conflict detection and dependency library detection on the downgraded version package, the downgrade steps when running the downgrade script may also include: starting a new audit process on the client based on the downgraded version package; using the new audit process on the client to take over the audit logs in the client; and sending the audit logs to the server based on the new main process on the client.

[0098] Optionally, after completing port conflict detection and dependency library detection for the downgraded package, a completely new auditing process can be started synchronously with the downgraded package. This auditing process is designed to work in conjunction with the new main process and records all critical operations and events related to the new main process. Once started, the new auditing process immediately takes over the audit log recording work in the client. All downgrade operations, the startup of the new main process, configuration changes, error messages, etc., will be captured and recorded by the new auditing process, ensuring the continuity and integrity of the logs. The new main process on the client then sends the audit logs to the server, so that the server can centrally store, analyze, and audit the logs, providing detailed data support for subsequent operations.

[0099] In summary, by incorporating the initiation of a new audit process and the takeover and sending of audit logs into the steps of the downgrade script, the entire downgrade process not only ensures operational security and efficiency but also greatly enhances the convenience of post-event auditing and troubleshooting. This makes the entire downgrade process auditable, meets the regulatory audit requirements of heavily regulated industries for high availability and security compliance, and improves the traceability of downgrade processing.

[0100] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0101] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0102] Example 2

[0103] According to embodiments of the present invention, a compatibility control device for implementing the above-described compatibility control method in a hybrid cloud environment is also provided, such as... Figure 4 As shown, the device includes: a data acquisition unit 401, a risk assessment unit 402, and a strategy generation unit 403.

[0104] Specifically, the data acquisition unit 401 is used to acquire the status information of the client and the server in a hybrid cloud environment; the risk assessment unit 402 is used to input the status information of the client and the server into the compatibility risk assessment model and output the compatibility risk results of the client and the server; the strategy generation unit 403 is used to determine the compatibility adjustment strategy for the client based on the compatibility risk results and the status information of the client.

[0105] The compatibility control device in the hybrid cloud environment provided in this application embodiment acquires the client's and server's status information in the hybrid cloud environment through the data acquisition unit 401; inputs the client's and server's status information into the compatibility risk assessment model through the risk assessment unit 402, and outputs the compatibility risk results between the client and the server; and determines the compatibility adjustment strategy for the client based on the compatibility risk results and the client's status information through the strategy generation unit 403. This solves the technical problem of low efficiency in client-server compatibility control in the prior art, thereby achieving the technical effect of improving the efficiency of client-server compatibility control.

[0106] Optionally, in the compatibility control device for a hybrid cloud environment provided in this application embodiment, the client's status information includes running status information, version information, and host system information, and the server's status information includes preset compatibility rules and log information. The risk assessment unit 402 includes: a rule module, used to predict the first compatibility result between the client and the server based on the preset compatibility rules through the rule judgment sub-model in the compatibility risk assessment model; a classification module, used to predict the second compatibility result between the client and the server based on the running status information, version information, host system information, and log information through the classification sub-model in the compatibility risk assessment model; and a fusion module, used to determine the compatibility risk result based on the first compatibility result and the second compatibility result through the fusion sub-model in the compatibility risk assessment model.

[0107] Optionally, in the compatibility control device for a hybrid cloud environment provided in this application embodiment, the fusion module includes: a parameter reading submodule, used to obtain a first weighting coefficient, a second weighting coefficient, and an environmental change parameter item, wherein the environmental change parameter item is used to characterize the sudden changes in the client's real-time data stream; a weighting submodule, used to weight the first compatibility result with the first weighting coefficient and the second compatibility result with the second weighting coefficient; a summation submodule, used to determine the target compatibility result based on the weighted first compatibility result, the weighted second compatibility result, and the environmental change parameter item; and a level determination submodule, used to determine the compatibility risk result corresponding to the target compatibility result based on at least one preset level classification threshold.

[0108] Optionally, the compatibility control device in a hybrid cloud environment provided in this application embodiment further includes: an annotation acquisition unit, used to acquire a compatibility risk classification dataset, the compatibility risk classification dataset including multiple labeled data, the labeled data including running status information, version information, host system information, log information and risk level; a feature extraction unit, used to determine numerical input features based on running status information, and determine vector input features based on version information, host system information and log information; a data construction unit, used to construct a training dataset by using numerical input features and vector input features as input data and risk level as output data; and a model training unit, used to iteratively train a preset classification algorithm based on the training dataset to obtain a classification sub-model.

[0109] Optionally, in the compatibility control device for a hybrid cloud environment provided in this application embodiment, the policy generation unit 403 includes: a downgrade judgment module, used to determine whether the client needs to be downgraded based on the compatibility risk result; a first processing module, used to set the compatibility adjustment policy as no downgrade is needed if the client does not need to be downgraded; and a second processing module, used to generate a downgrade policy corresponding to the client based on the client's status information if the client needs to be downgraded, and determine the downgrade policy corresponding to the client as the compatibility adjustment policy.

[0110] Optionally, in the compatibility control device for a hybrid cloud environment provided in this application embodiment, the second processing module includes: a version determination submodule, used to determine the target downgrade version based on the client's status information; a version package acquisition submodule, used to acquire the downgrade version package of the target downgrade version; a script creation submodule, used to acquire a downgrade script template and fill the downgrade script template based on the client's status information and the downgrade version package to obtain a downgrade script, wherein the downgrade script is used to roll back the client to the version of the downgrade version package; and a downgrade strategy generation submodule, used to determine the downgrade version package and the downgrade script as a downgrade strategy.

[0111] Optionally, in the compatibility control device for a hybrid cloud environment provided in this application embodiment, the second processing module further includes: an encryption submodule, used to encrypt the degradation policy after generating the degradation policy corresponding to the client based on the client's state information, to obtain an encrypted degradation policy; and a digital signature submodule, used to digitally sign the encrypted degradation policy so that the client's server host can verify it after receiving the degradation policy.

[0112] Optionally, in the compatibility control device for a hybrid cloud environment provided in this application embodiment, the downgrade script includes: a conflict detection component for performing port conflict detection and dependency library detection on the downgraded version package; a termination component for terminating the original main process of the client if both the port conflict detection result and the dependency library detection result are passed; and a startup component for starting a new main process of the client based on the downgraded version package.

[0113] Optionally, in the compatibility control device for a hybrid cloud environment provided in this application embodiment, the downgrade script further includes: a new audit component, used to start a new audit process on the client based on the downgraded version package; an audit takeover component, used to take over the audit logs in the client using the new audit process on the client; and a log sending component, used to send the audit logs to the server based on the new main process on the client.

[0114] It should be noted that the data acquisition unit 401, risk assessment unit 402, and strategy generation unit 403 mentioned above correspond to steps S201 to S203 in Embodiment 1. The three units and their corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in Embodiment 1. It should also be noted that the above modules, as part of the device, can run on the computer terminal 10 provided in Embodiment 1.

[0115] Example 3

[0116] Embodiments of the present invention can provide a computer terminal, which can be any computer terminal device in a group of computer terminals. Optionally, in this embodiment, the computer terminal can also be replaced by a mobile terminal or other terminal device.

[0117] Optionally, in this embodiment, the computer terminal may be located in at least one of a plurality of network devices in a computer network.

[0118] In this embodiment, the computer terminal described above can execute the program code for the following steps in the compatibility control method in a hybrid cloud environment: obtaining the status information of the client and the server in the hybrid cloud environment; inputting the status information of the client and the server into the compatibility risk assessment model and outputting the compatibility risk results of the client and the server; and determining the compatibility adjustment strategy for the client based on the compatibility risk results and the status information of the client.

[0119] Optionally, the aforementioned computer terminal can execute program code for the following steps in the compatibility control method in a hybrid cloud environment: predicting the first compatibility result between the client and the server based on preset compatibility rules through the rule judgment sub-model in the compatibility risk assessment model; predicting the second compatibility result between the client and the server based on running status information, version information, host system information, and log information through the classification sub-model in the compatibility risk assessment model; and determining the compatibility risk result based on the first and second compatibility results through the fusion sub-model in the compatibility risk assessment model.

[0120] Optionally, the aforementioned computer terminal can execute program code for the following steps in the compatibility control method in a hybrid cloud environment: obtaining a first weighting coefficient, a second weighting coefficient, and an environmental change parameter, wherein the environmental change parameter is used to characterize the sudden changes in the client's real-time data stream; weighting the first compatibility result with the first weighting coefficient and weighting the second compatibility result with the second weighting coefficient; determining the target compatibility result based on the weighted first compatibility result, the weighted second compatibility result, and the environmental change parameter; and determining the compatibility risk result corresponding to the target compatibility result based on at least one preset level classification threshold.

[0121] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the compatibility control method in a hybrid cloud environment: obtaining a compatibility risk classification dataset, which includes multiple labeled data points, including runtime status information, version information, host system information, log information, and risk level; determining numerical input features based on runtime status information, and determining vector input features based on version information, host system information, and log information; constructing a training dataset by using the numerical and vector input features as input data and the risk level as output data; and iteratively training a preset classification algorithm based on the training dataset to obtain a classification sub-model.

[0122] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the compatibility control method in a hybrid cloud environment: determining whether the client needs to be downgraded based on the compatibility risk results; if the client does not need to be downgraded, the compatibility adjustment strategy is no downgrade required; if the client needs to be downgraded, a downgrade strategy corresponding to the client is generated based on the client's status information, and the downgrade strategy corresponding to the client is determined as the compatibility adjustment strategy.

[0123] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the compatibility control method in a hybrid cloud environment: determining the target downgrade version based on the client's status information; obtaining the downgrade version package of the target downgrade version; obtaining the downgrade script template, and filling the downgrade script template based on the client's status information and the downgrade version package to obtain the downgrade script, wherein the downgrade script is used to roll back the client to the version of the downgrade version package; and determining the downgrade version package and the downgrade script as the downgrade strategy.

[0124] Optionally, the aforementioned computer terminal may execute the program code for the following steps in the compatibility control method in a hybrid cloud environment: encrypting the downgrade strategy to obtain an encrypted downgrade strategy; digitally signing the encrypted downgrade strategy so that the client's server host can verify it after receiving the downgrade strategy.

[0125] Optionally, the aforementioned computer terminal can execute program code for the following steps in the compatibility control method in a hybrid cloud environment: performing port conflict detection and dependency library detection on the downgraded version package; terminating the client's original main process if both the port conflict detection and dependency library detection results are passed; and launching the client's new main process based on the downgraded version package.

[0126] Optionally, the aforementioned computer terminal can execute the program code for the following steps in the compatibility control method in a hybrid cloud environment: based on the downgraded version package, start a new audit process on the client; use the new audit process on the client to take over the audit logs in the client; and send the audit logs to the server based on the new main process on the client.

[0127] Optionally, Figure 5 This is a structural block diagram of an electronic device according to an embodiment of this application. Figure 5 As shown, the electronic device may include: one or more ( Figure 5 Only one of the components is shown: processor 502, memory 504, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module, and display.

[0128] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the compatibility control method and device in the hybrid cloud environment of this embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned compatibility control method in the hybrid cloud environment. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0129] The processor can access the information and application programs stored in the memory via the transmission device to perform the above steps.

[0130] This invention provides a compatibility control scheme for a hybrid cloud environment. By acquiring the state information of the client and server in the hybrid cloud environment; inputting the client and server state information into a compatibility risk assessment model; and outputting the compatibility risk results between the client and server; and determining a compatibility adjustment strategy for the client based on the compatibility risk results and the client's state information, this invention solves the technical problem of low efficiency in client-server compatibility control in existing technologies, thereby improving the efficiency of client-server compatibility control.

[0131] Those skilled in the art will understand that Figure 5 The structure shown is for illustrative purposes only. The computer terminal can also be a smartphone, tablet, handheld computer, mobile internet device (MID), PAD, or other terminal device. Figure 5This does not limit the structure of the aforementioned electronic devices. For example, a computer terminal may also include components that are more... Figure 5 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 5 The different configurations shown.

[0132] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0133] Example 4

[0134] Embodiments of the present invention also provide a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the compatibility control method in the hybrid cloud environment provided in Embodiment 1.

[0135] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0136] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: the computer terminal can execute program code for the following steps in the compatibility control method in a hybrid cloud environment: obtaining the status information of the client and the server in the hybrid cloud environment; inputting the status information of the client and the server into the compatibility risk assessment model, and outputting the compatibility risk results of the client and the server; determining the compatibility adjustment strategy for the client based on the compatibility risk results and the status information of the client.

[0137] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: predicting a first compatibility result between the client and the server based on preset compatibility rules using the rule judgment sub-model in the compatibility risk assessment model; predicting a second compatibility result between the client and the server based on runtime status information, version information, host system information, and log information using the classification sub-model in the compatibility risk assessment model; and determining a compatibility risk result based on the first and second compatibility results using the fusion sub-model in the compatibility risk assessment model.

[0138] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: obtaining a first weighting coefficient, a second weighting coefficient, and an environmental change parameter, wherein the environmental change parameter is used to characterize the sudden changes in the client's real-time data stream; weighting a first compatibility result with the first weighting coefficient and weighting a second compatibility result with the second weighting coefficient; determining a target compatibility result based on the weighted first compatibility result, the weighted second compatibility result, and the environmental change parameter; and determining a compatibility risk result corresponding to the target compatibility result based on at least one preset level classification threshold.

[0139] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: obtaining a compatibility risk classification dataset, which includes multiple labeled data, including runtime status information, version information, host system information, log information, and risk level; determining numerical input features based on runtime status information, and determining vector input features based on version information, host system information, and log information; constructing a training dataset by using the numerical and vector input features as input data and the risk level as output data; and iteratively training a preset classification algorithm based on the training dataset to obtain a classification sub-model.

[0140] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: determining whether the client needs to be downgraded based on the compatibility risk result; if the client does not need to be downgraded, the compatibility adjustment strategy is no downgrade required; if the client needs to be downgraded, a downgrade strategy corresponding to the client is generated based on the client's status information, and the downgrade strategy corresponding to the client is determined as the compatibility adjustment strategy.

[0141] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: determining a target downgrade version based on the client's state information; obtaining a downgrade version package of the target downgrade version; obtaining a downgrade script template, and filling the downgrade script template based on the client's state information and the downgrade version package to obtain a downgrade script, wherein the downgrade script is used to roll back the client to the version of the downgrade version package; and determining the downgrade version package and the downgrade script as a downgrade strategy.

[0142] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: encrypting the downgrade policy to obtain an encrypted downgrade policy; and digitally signing the encrypted downgrade policy so that the client's server host can verify it after receiving the downgrade policy.

[0143] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: performing port conflict detection and dependency library detection on the downgraded version package; terminating the original main process of the client if both the port conflict detection and dependency library detection results are passed; and launching a new main process of the client based on the downgraded version package.

[0144] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for performing the following steps: initiating a new audit process on the client based on the downgraded version package; taking over the audit logs in the client using the new audit process on the client; and sending the audit logs to the server based on the new main process on the client.

[0145] This application also provides a computer program product that, when executed on a data processing device, is suitable for performing compatibility control method steps in a hybrid cloud environment.

[0146] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0147] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0148] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0149] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0150] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0151] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0152] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A compatibility control method in a hybrid cloud environment, characterized in that, include: Obtain client and server status information in a hybrid cloud environment; Input the client's status information and the server's status information into the compatibility risk assessment model, and output the compatibility risk results between the client and the server; Based on the compatibility risk results and the client's status information, a compatibility adjustment strategy for the client is determined.

2. The method according to claim 1, characterized in that, The client's status information includes runtime status information, version information, and host system information. The server's status information includes preset compatibility rules and log information. The client's status information and the server's status information are input into the compatibility risk assessment model, and the output compatibility risk results between the client and the server include: The first compatibility result between the client and the server is predicted by the rule judgment sub-model in the compatibility risk assessment model based on the preset compatibility rules. Using the classification sub-model in the compatibility risk assessment model, the second compatibility result between the client and the server is predicted based on the running status information, version information, host system information, and log information. The compatibility risk result is determined based on the first compatibility result and the second compatibility result using the fusion sub-model in the compatibility risk assessment model.

3. The method according to claim 2, characterized in that, The compatibility risk results are determined based on the first compatibility result and the second compatibility result through the fusion sub-model in the compatibility risk assessment model, including: Obtain a first weighting coefficient, a second weighting coefficient, and an environmental change parameter, wherein the environmental change parameter is used to characterize the sudden changes in the real-time data stream of the client; The first compatibility result is weighted by the first weighting coefficient, and the second compatibility result is weighted by the second weighting coefficient. The target compatibility result is determined based on the weighted first compatibility result, the weighted second compatibility result, and the environmental change parameter item; Based on at least one preset level classification threshold, the compatibility risk result corresponding to the target compatibility result is determined.

4. The method according to claim 2, characterized in that, The training steps for the classification sub-model include: Obtain a compatibility risk classification dataset, which includes multiple labeled data entries. The labeled data entries include runtime status information, version information, host system information, log information, and risk level. Numerical input features are determined based on the running status information, and vector input features are determined based on the version information, host system information, and log information. The numerical input features and the vector input features are used as input data, and the risk level is used as output data to construct a training dataset; The preset classification algorithm is iteratively trained based on the training dataset to obtain a classification sub-model.

5. The method according to claim 1, characterized in that, Determining the compatibility adjustment strategy corresponding to the client based on the compatibility risk results and the client's status information includes: Based on the compatibility risk results, determine whether the client needs to be downgraded; If the client does not need to be downgraded, the compatibility adjustment strategy is no downgrade required; If the client needs to be downgraded, a downgrade strategy corresponding to the client is generated based on the client's state information, and the downgrade strategy corresponding to the client is determined as the compatibility adjustment strategy.

6. The method according to claim 5, characterized in that, Generating a downgrade strategy for the client based on the client's state information includes: Based on the client's status information, determine the target downgrade version; Obtain the downgraded version package of the target downgraded version; Obtain a downgrade script template, and populate the downgrade script template according to the client's status information and the downgrade version package to obtain a downgrade script, wherein the downgrade script is used to roll back the client to the version of the downgrade version package; The downgraded version package and the downgrade script are identified as the downgrade strategy.

7. The method according to claim 5, characterized in that, After generating the corresponding degradation strategy for the client based on the client's state information, the compatibility adjustment strategy further includes: The degradation strategy is encrypted to obtain the encrypted degradation strategy; The encrypted downgrade policy is digitally signed so that the client's server host can verify it after receiving the downgrade policy.

8. The method according to claim 6, characterized in that, The downgrade steps when running the downgrade script include: The downgraded version package is subjected to port conflict detection and dependency library detection; If both the port conflict detection and the dependency library detection results are passed, the original main process of the client is terminated. The client's new main process is launched based on the downgraded version package.

9. The method according to claim 8, characterized in that, After performing port conflict detection and dependency library detection on the downgraded version package, the downgrade steps when running the downgrade script also include: Based on the downgraded version package, initiate a new audit process on the client. The new audit process in the client takes over the audit logs in the client. The audit logs are sent to the server based on the new main process of the client.

10. A compatibility control device for a hybrid cloud environment, characterized in that, include: The data acquisition unit is used to acquire the status information of the client and the server in a hybrid cloud environment. The risk assessment unit is used to input the client's status information and the server's status information into the compatibility risk assessment model, and output the compatibility risk result between the client and the server. The strategy generation unit is used to determine a compatibility adjustment strategy for the client based on the compatibility risk results and the client's status information.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device where the computer-readable storage medium is located to perform the compatibility control method in a hybrid cloud environment as described in any one of claims 1 to 9.

12. An electronic device, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program executes the compatibility control method in a hybrid cloud environment as described in any one of claims 1 to 9.

13. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the compatibility control method in a hybrid cloud environment as described in any one of claims 1 to 9.