Method, device, medium and equipment for building a cloud-native simulation environment

By deploying the service network platform and configuring the gateway entry component on the K8S cluster, traffic mirroring is achieved, which solves the problems of high cost and high risk in the cloud-native mirroring environment and improves resource utilization and management efficiency.

CN119603363BActive Publication Date: 2025-09-26CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411731636.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-09-26
Estimated Expiration
2044-11-28

AI Technical Summary

Technical Problem

The existing cloud-native mirror environment construction method is high-cost and high-risk, and has low resource utilization. A low-cost and low-risk mirror environment construction method is needed.

Method used

By deploying the service network platform on the K8S cluster of the source production application, configuring the gateway entry component and virtual service components, mirroring the traffic data is achieved, and the elastic characteristics and hybrid deployment solutions of the cloud native environment are utilized to reduce hardware costs and network risks.

Benefits of technology

It reduces the hardware cost of routing/switching facilities, reduces manpower input, improves resource utilization, and realizes a more flexible and easy-to-manage simulation environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603363B_ABST
    Figure CN119603363B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, medium and equipment for constructing a cloud-native simulation environment, which relates to the field of insurance business technology. The method includes: configuring the first gateway entry component on the first K8S cluster where the source production application is located so that the first gateway entry component receives traffic data from the gateway device; determining the network connection mode of the mirror application based on the operating environment where the mirror application corresponding to the source production application is located, and configuring the network connection component of the mirror application according to the network connection mode of the mirror application; configuring the first virtual service component, and routing the traffic data with the service host name to the target mirror application based on the configured first virtual service component and network connection component; obtaining a simulation environment based on the mirror application corresponding to the source production application, the configured first gateway entry component, the first virtual service component and the network connection component. Traffic mirroring is achieved through software configuration, which reduces hardware costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of simulation environment construction, and in particular relates to a cloud-native-based simulation environment construction method, device, medium and equipment. Background Art

[0002] When developing and deploying an application, the actual environment where the application is deployed and run is the production environment. In the production environment, users can directly interact with the application. To test the application's functionality and stability, developers usually need to build a mirror environment that is consistent with the production environment. Developers test the application's performance, functionality, and stability in the mirror environment. To ensure test accuracy, network traffic between the production environment and users also needs to be connected to the mirror environment.

[0003] With the continuous development and improvement of cloud-native concepts and systems, the new generation of infrastructure is gradually transforming to a cloud-native environment. The cloud-native environment can provide programmable infrastructure management services including computing power, network, storage, etc. Therefore, some R&D personnel deploy the production environment of the application in the K8S environment. The application deployed in the production environment in the K8S environment uses a switch or router to connect to the external gateway device to receive user requests and real traffic data. Usually, a mirror port is set on the switch or router. Through the mirror port function, user requests and real production traffic are copied 1:1 to the mirror environment at the network layer request access point.

[0004] However, setting up mirrored ports on switches or routers is costly. Due to the unique characteristics of mirrored environments, resource utilization is low, idle rates are high, and resources are wasted. Furthermore, this requires operation across the entire service, including gateway devices in the data center, which carries high risks and wide-ranging impacts. Therefore, a lower-cost, lower-risk approach to building a cloud-native mirrored environment is needed. Summary of the Invention

[0005] In view of this, the present invention provides a cloud-native-based simulation environment construction method, device, medium and equipment, the main purpose of which is to solve the problem of high cost and high risk of constructing a simulation environment in the existing cloud-native-based mirror environment construction method.

[0006] According to one aspect of the present application, a method for constructing a cloud-native simulation environment is provided, the method comprising:

[0007] Deploy a first service network platform on the first K8S cluster where the source production application is located, and obtain a host list corresponding to the first gateway entry component in the first service network platform;

[0008] Determine network connection information between the first K8S cluster and the gateway device, and configure the first gateway entry component based on the network connection information and the host list so that the first gateway entry component receives traffic data having a host name in the host list from the gateway device;

[0009] Determining a network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application, and configuring a network connection component of the mirror application according to the network connection mode of the mirror application;

[0010] Determine a service host name and a target production application corresponding to a first virtual service component in the first service network platform, configure the first virtual service component based on the network connection component, the service host name, and the target production application, route traffic data with the service host name to the target production application based on the configured first virtual service component, and route traffic data with the service host name to a target mirror application corresponding to the target production application based on the configured first virtual service component and the network connection component;

[0011] A simulation environment is obtained based on the mirror application corresponding to the source production application, the configured first gateway entry component, the first virtual service component and the network connection component.

[0012] Optionally, determining a network connection mode of the mirror application based on a running environment of the mirror application corresponding to the source production application, and configuring a network connection component of the mirror application according to the network connection mode of the mirror application includes:

[0013] When the operating environment of the mirror application corresponding to the source production application is a K8S environment, and the mirror application belongs to a second K8S cluster, determining that the network connection mode of the mirror application is a first heterogeneous cluster connection mode, and deploying a second service network platform on the second K8S cluster;

[0014] Using the first gateway entry component as an external gateway device of a second gateway entry component in the second service network platform, using a host list corresponding to the first gateway entry component as a host list of the second gateway entry component, and configuring the second gateway component so that the second gateway entry component receives traffic data having host names in the host list from the first gateway entry component;

[0015] The second virtual service component is configured to route traffic data with the service host name to the target image application, using the service host name as the name of the traffic data received by the second virtual service component, using the second gateway entry component as the matching gateway of the second virtual service component, and using the target image application as the routing object of the second virtual service component.

[0016] The simulation environment construction method further includes:

[0017] In a preset application mapping table, determine the image name and image subset name corresponding to the target image application, configure the second destination rule component in the second service network platform based on the image name and image subset name, and transmit the traffic data with the service host name to the target image application according to the path in the second destination rule component.

[0018] Optionally, configuring the first virtual service component based on the network connection component, the service host name, and the target production application includes:

[0019] Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the second gateway entry component and the target production application as routing objects of the first virtual service component, configuring the first virtual service component to route the traffic data with the service host name to the second gateway entry component and the target production application;

[0020] Accordingly, the simulation environment construction method further includes:

[0021] In the preset application mapping table, determine the production name and production subset name corresponding to the target production application, and based on the production name and production subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

[0022] Optionally, determining the network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application includes:

[0023] When the operating environment of the mirror application corresponding to the source production application is a virtual machine environment, determining that the network connection mode of the mirror application is a second heterogeneous cluster connection mode, and deploying a workgroup component, an east-west gateway entry component, a third virtual service component, and a third destination rule component on the first service network platform;

[0024] The first gateway entry component is used as a gateway device of the workgroup component, the workgroup component is configured, the workgroup component is used as an external gateway device of the east-west gateway entry component, the host list corresponding to the first gateway entry component is used as the host list of the east-west gateway entry component, and the east-west gateway entry component is configured so that the east-west gateway entry component receives traffic data having host names in the host list from the first gateway entry component through the workgroup component;

[0025] Using the service host name as the name of the traffic data received by the third virtual service component, using the east-west gateway entry component as the matching gateway of the third virtual service component, and using the target mirror application as the routing object of the third virtual service component, the third virtual service component is configured to route the traffic data with the service host name to the target mirror application;

[0026] Accordingly, the simulation environment construction method further includes:

[0027] In the preset application mapping table, determine the mirror name and mirror subset name corresponding to the target mirror application, and based on the mirror name and mirror subset name, configure the third destination rule component so that the traffic data with the service host name is transmitted to the target mirror application according to the path in the third destination rule component.

[0028] Optionally, configuring the first virtual service component based on the network connection component, the service host name, and the target production application includes:

[0029] Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the workgroup component and the target production application as routing objects of the first virtual service component, configuring the first virtual service component to route the traffic data with the service host name to the workgroup component and the target production application;

[0030] Accordingly, the simulation environment construction method further includes:

[0031] In the preset application mapping table, determine the production name and production subset name corresponding to the target production application, and based on the production name and production subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

[0032] Optionally, determining a network connection mode of the mirror application based on a running environment of the mirror application corresponding to the source production application, and configuring a network connection component of the mirror application according to the network connection mode of the mirror application includes:

[0033] When the operating environment of the mirror application corresponding to the source production application is a K8S environment, and the mirror application belongs to the first K8S cluster, determining that the network connection mode of the mirror application is the same-cluster connection mode, and there is no need to perform network connection deployment of the mirror application;

[0034] Accordingly, configuring the first virtual service component based on the network connection component, the service host name, and the target production application includes:

[0035] Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the target production application and the target mirror application as routing objects of the first virtual service component, and configuring the first virtual service component so that the traffic data with the service host name is routed to the target production application and the target mirror application;

[0036] Accordingly, the simulation environment construction method further includes:

[0037] In a preset application mapping table, determine the production name and production subset name corresponding to the target production application and the image name and image subset name corresponding to the target mirror application; based on the production name, production subset name, the image name and image subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application and the target mirror application according to the path in the first destination rule component.

[0038] Optionally, the operating environment where the first K8S cluster is located is deployed with a management component and a load balancer. The management component monitors the health status of the simulation environment. When it is detected that the simulation environment is in an abnormal state, a stop message is sent to the first gateway entry component and a start message is sent to the load balancer to stop the first gateway entry component from transmitting traffic data to the simulation environment. The traffic data of the gateway device is transmitted to the target production application based on the load balancer.

[0039] According to another aspect of the present application, a cloud-native-based simulation environment construction device is provided, comprising:

[0040] A first service network platform deployment module is used to deploy the first service network platform on the first K8S cluster where the source production application is located, and obtain a host list corresponding to the first gateway entry component in the first service network platform;

[0041] a first gateway entry component configuration module, configured to determine network connection information between the first K8S cluster and the gateway device, and configure the first gateway entry component based on the network connection information and the host list, so that the first gateway entry component receives traffic data having a host name in the host list from the gateway device;

[0042] a network connection component configuration module, configured to determine a network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application, and configure the network connection components of the mirror application according to the network connection mode of the mirror application;

[0043] a first virtual service component configuration module, configured to determine a service host name and a target production application corresponding to a first virtual service component in the first service network platform, configure the first virtual service component based on the network connection component, the service host name, and the target production application, route traffic data with the service host name to the target production application based on the configured first virtual service component, and route traffic data with the service host name to a target mirror application corresponding to the target production application based on the configured first virtual service component and the network connection component;

[0044] The simulation environment acquisition module is used to obtain the simulation environment based on the mirror application corresponding to the source production application, the configured first gateway entry component, the first virtual service component and the network connection component.

[0045] According to another aspect of the present application, a storage medium is provided, in which at least one executable instruction is stored. The executable instruction enables a processor to perform operations corresponding to the above-mentioned cloud-native-based simulation environment construction method.

[0046] According to another aspect of the present application, a computer device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;

[0047] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the cloud-native-based simulation environment construction method as described above.

[0048] By means of the above technical solution, the present application provides a method, apparatus, medium and equipment for constructing a simulation environment based on cloud native, which deploys a first network platform in the operating environment where the source production application is located, configures the first gateway entry component of the first network platform, receives traffic data of the gateway device through the first gateway entry component, determines the network connection component corresponding to the mirror application according to the operating environment where the mirror application is located, configures the network connection component, and configures the first virtual service component in the first network platform according to the network connection component, so that the first virtual service component routes data traffic with a service host name to the target production application, transmits traffic data with a service host name to the target mirror application through the first virtual service component and the network connection component, realizes traffic mirroring through software configuration, reduces the hardware cost of routing / switching facilities, and the network risk of the system, eliminates the need to maintain complex network equipment, further reduces the investment in labor costs, and utilizes the elastic characteristics of cloud native, combined with hybrid deployment and other solutions, to improve resource utilization.

[0049] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:

[0051] Figure 1 A flowchart of a cloud-native simulation environment construction method provided in an embodiment of the present application is shown;

[0052] Figure 2a A schematic diagram of the network connection method of the existing cloud-native-based simulation environment construction method is shown;

[0053] Figure 2b A network connection diagram of a first heterogeneous cluster connection mode of a cloud-native-based simulation environment construction method provided in an embodiment of the present application is shown;

[0054] Figure 2c A network connection diagram of a second heterogeneous cluster connection mode of a cloud-native-based simulation environment construction method provided in an embodiment of the present application is shown;

[0055] Figure 2d A schematic diagram of network connection in a same-cluster connection mode of a cloud-native-based simulation environment construction method provided in an embodiment of the present application is shown;

[0056] Figure 3 Another flowchart of a cloud-native-based simulation environment construction method provided in an embodiment of the present application is shown;

[0057] Figure 4 Another flowchart of a method for building a cloud-native simulation environment provided by an embodiment of the present application is shown;

[0058] Figure 5 Another flowchart of a method for building a cloud-native simulation environment provided by an embodiment of the present application is shown;

[0059] Figure 6 A block diagram of a cloud-native simulation environment construction device provided in an embodiment of the present application is shown;

[0060] In the figure: 602 - first service network platform deployment module; 604 - first gateway entry component configuration module; 606 - network connection component configuration module; 608 - first virtual service component configuration module. DETAILED DESCRIPTION

[0061] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention can be combined with each other.

[0062] To further illustrate the technical means and effects employed by the present invention to achieve its intended objectives, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention is provided in conjunction with the accompanying drawings and preferred embodiments. In the following description, different references to "one embodiment" or "embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.

[0063] In view of the problem that the existing cloud-native mirror environment construction method has high cost and high risk in building a simulation environment, the embodiment of the present application provides a cloud-native simulation environment construction method, such as Figure 1 As shown, the method includes:

[0064] 102: Deploy a first service network platform on the first K8S cluster where the source production application is located, and obtain a host list corresponding to a first gateway entry component in the first service network platform;

[0065] 104: Determine network connection information between the first K8S cluster and the gateway device, and configure the first gateway entry component based on the network connection information and the host list so that the first gateway entry component receives traffic data having a host name in the host list from the gateway device;

[0066] 106: Determine a network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application, and configure network connection components of the mirror application according to the network connection mode of the mirror application;

[0067] 108: Determine a service host name and a target production application corresponding to a first virtual service component in a first service network platform, configure the first virtual service component based on the network connection component, the service host name, and the target production application, route traffic data with the service host name to the target production application based on the configured first virtual service component, and route traffic data with the service host name to a target mirror application corresponding to the target production application based on the configured first virtual service component and the network connection component;

[0068] 110: Obtain a simulation environment based on the mirror application corresponding to the source production application, the configured first gateway entry component, the first virtual service component, and the network connection component.

[0069] When developing an application in the IT industry, it is usually necessary to build a simulation environment that corresponds to the application's actual production environment, also known as a mirror application environment. The mirror application environment requires the introduction of actual traffic data from the production environment. Through completely realistic production traffic and user behavior, the system can be functionally verified, stress-tested, and anomaly reproduced.

[0070] When cloud-native environments, especially K8S (Kubernetes), are widely used, many developers build production applications in K8S's cloud-native environment. The mirror applications corresponding to production applications can be built in K8S's cloud-native environment or in traditional physical machines or virtual machines. Regardless of whether the mirror environment is built in a cloud-native environment or a virtual machine environment, the real production traffic and request behavior are copied 1:1 to the mirror environment at the network layer request access point by performing port mirroring on the switch or router. For example, Figure 2aThis method requires special processing of switches or routers, resulting in high costs. Due to the characteristics of the simulation environment, the switches or routers have high idle rates, wasting resources. Furthermore, since operations are based on gateway devices across the entire service and even the computer room, this approach carries high risks and has a wide impact. Furthermore, it can only mirror all traffic on a specific port. If management of a specific application is required, a dedicated port is required. In other words, only Layer 4 mirroring is possible.

[0071] Therefore, this application proposes a cloud-native-based simulation environment construction method to achieve traffic mirroring through component configuration.

[0072] The source production application's operating environment uses a cloud-native environment (built on K8S). Leveraging environmental isolation and container features, a simulation environment can be flexibly constructed on demand, reducing construction costs, increasing efficiency, and reducing difficulty. Furthermore, due to the environmental isolation of containers, a set of underlying resources can be used to adapt to a variety of applications deployed in different environments. Mirror applications can be built in a cloud-native environment or on a virtual machine. After building the application environment, the network environment must be deployed to implement core mirroring functions such as traffic mirroring, traffic management, and response suppression. Traffic mirroring is implemented using a network platform (Istio): traffic is replicated 1:1 at the ingress network layer. This way, the simulation environment obtains traffic and behavior consistent with real-time production, achieving the simulation purpose.

[0073] Deploy a first network platform on the first Kubernetes cluster where the production application resides, for example, using Istio. The first network platform is responsible for handling communication between microservices. Configure the first gateway entry component in the first network platform so that it receives traffic data from external gateway devices. The gateway entry component (Gateway) is a key component in the Istio service mesh, responsible for processing external traffic and serving as the entry point for all inbound traffic (external requests) in the entire cluster. Typically, many virtual service components are deployed on a network platform. Each virtual service component corresponds to one or more service hostnames and one or more routing objects. The virtual service component routes traffic data corresponding to the service hostname to the corresponding routing object. Therefore, the first gateway entry component corresponds to a host list that records the service hostnames corresponding to all virtual service components. When the first gateway entry component receives traffic data from a gateway device with a service hostname in the host list, it flows the traffic data into the cluster. In Istio, a virtual service component describes a set of traffic routing rules for a specific service. It allows users to fine-tune traffic between services, such as routing, load balancing, and fault injection, based on the traffic characteristics of protocols such as HTTP / TCP / TLS.

[0074] Some mirror applications are built in a cloud-native environment, and some mirror applications are built on virtual machines. Therefore, according to the operating environment of the mirror application, the corresponding network connection components are deployed, and the first virtual component in the first network platform is configured according to the deployed network connection components, so that the first virtual component routes the data traffic with the service host name to the network connection component, and then routes it to the target mirror application through the network connection component. At the same time, the first virtual component also routes the traffic data with the service host name to the target production application.

[0075] For example, the service network platform of this application is implemented using Istio, and a cloud-native simulation environment is built using K8S+Istio. Istio uses version 1.16 and above, and K8S uses version 1.25 and above.

[0076] The technical solution of this application introduces real production traffic while preventing responses generated by real traffic from being returned to users in the simulated environment. Istio's gateway's mirroring mode natively supports traffic suppression. Responses to requests sent by mirrored applications are discarded directly at the network layer. This eliminates the need to configure policies on switches / routers or gateway hosts to discard unnecessary responses.

[0077] In one embodiment, if more refined traffic suppression is required, the traffic management mechanism of Istio itself can be used to configure mirror traffic management in VirtureService to achieve more refined traffic suppression and traffic isolation.

[0078] This application uses a cloud-native network layer to shield connections between external and internal services, enabling flexible use for both software developers and users. Applications are applied when needed, and there's no need to release them, requiring only maintenance of the environment configuration. This can also be further integrated with hybrid deployment solutions to further improve resource utilization, creating a more manageable, maintainable, cost-effective, and flexible production simulation environment. This environment is suitable for applications in production verification, stress testing, and business scenarios that are sensitive to potential impacts on the production environment.

[0079] This application can mirror traffic by interface, enabling more granular simulation scheme design and management. Single-interface single instance, multiple-interface multiple instances, and multiple combinations make simulation support more flexible and extensive.

[0080] The production applications of this application include but are not limited to financial management applications, public service applications, digital medical service applications, insurance business applications, etc. The cloud-native simulation environment construction method includes but is not limited to financial management, public services, digital medical, and insurance business application scenarios.

[0081] Taking insurance business applications as an example, the production application of the insurance business is built on the first K8S cluster, and the mirror application of the insurance business is built on the second K8S cluster. Through the deployment and configuration of the first network platform and network connection components, the traffic data can be transmitted to the production application and mirror application of the insurance business respectively at the network layer, reducing the cost and risk of building the simulation environment.

[0082] The cloud-native-based simulation environment construction method provided by the present application, compared with the existing technology, deploys a first network platform in the operating environment where the source production application is located, configures the first gateway entry component of the first network platform, receives the traffic data of the gateway device through the first gateway entry component, determines the network connection component corresponding to the mirror application according to the operating environment where the mirror application is located, configures the network connection component, and configures the first virtual service component in the first network platform according to the network connection component, so that the first virtual service component routes the data traffic with the service host name to the target production application, and transmits the traffic data with the service host name to the target mirror application through the first virtual service component and the network connection component. The traffic mirroring is realized through software configuration, which reduces the hardware cost of routing / switching facilities and the network risk of the system. There is no need to maintain complex network equipment, which further reduces the investment in labor costs. The elastic characteristics of cloud native are utilized, and hybrid deployment and other solutions are added to improve resource utilization.

[0083] In one embodiment, Figure 3 As shown, the cloud-native-based simulation environment construction method also includes:

[0084] 302: When the operating environment of the mirror application corresponding to the source production application is a K8S environment, and the mirror application belongs to the second K8S cluster, determine that the network connection mode of the mirror application is the first heterogeneous cluster connection mode, and deploy a second service network platform on the second K8S cluster;

[0085] 304: Using the first gateway entry component as an external gateway device for a second gateway entry component in the second service network platform, using the host list corresponding to the first gateway entry component as the host list of the second gateway entry component, and configuring the second gateway component so that the second gateway entry component receives traffic data having host names in the host list from the first gateway entry component;

[0086] 306: Using the service host name as the name of the traffic data received by the second virtual service component, using the second gateway entry component as the matching gateway of the second virtual service component, and using the target mirror application as the routing object of the second virtual service component, the second virtual service component is configured to route the traffic data with the service host name to the target mirror application.

[0087] 308: Determine the image name and image subset name corresponding to the target image application in the preset application mapping table. Based on the image name and image subset name, configure the second destination rule component in the second service network platform to transmit the traffic data with the service host name to the target image application according to the path in the second destination rule component.

[0088] 310: Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the second gateway entry component and the target production application as routing objects of the first virtual service component, configuring the first virtual service component to route the traffic data with the service host name to the second gateway entry component and the target production application;

[0089] 312: In the preset application mapping table, determine the production name and production subset name corresponding to the target production application, and based on the production name and production subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

[0090] Specifically, such as Figure 2b As shown, when the source production application and its corresponding mirror application belong to different K8S clusters, a second network platform is deployed in the K8S cluster where the mirror application is located, and the second gateway entry component, the second virtual service component and the second destination rule in the second network platform are configured so that the second gateway entry component receives traffic data from the first gateway entry component, the second virtual service component routes the traffic data with the service host name in the traffic data received by the second gateway entry component to the target mirror application, and the second destination rule component transmits the traffic data with the service host name to the target mirror application through the configured path.

[0091] The first virtual service component selects traffic data corresponding to the service hostname of the first virtual service component from all traffic data received by the first gateway entry component and routes it to the target production application and the second gateway entry component. The first destination rule component transmits the traffic data to the target production application based on the path to the target production application. Typically, the first network platform deploys many first virtual service components with different configuration information. A virtual service component can correspond to one or more service hostnames and one or more routing objects.

[0092] For example, the service host name of the first virtual service component is example.com, and the target production application is example-service, that is, the routing object of the first virtual service component is example-service and the second gateway entry component. The first virtual service component routes the traffic data named example.com received by the first gateway entry component to the example-service service and the second gateway entry component.

[0093] The second gateway entry component receives traffic named example.com from the first gateway entry component, and the second virtual service group routes the traffic named example.com to the target mirror application M-example-service.

[0094] In one embodiment, Figure 4 As shown, the cloud-native-based simulation environment construction method also includes:

[0095] 402: When the operating environment of the mirror application corresponding to the source production application is a virtual machine environment, determine that the network connection mode of the mirror application is the second heterogeneous cluster connection mode, and deploy the workgroup component, the east-west gateway entry component, the third virtual service component, and the third destination rule component on the first service network platform;

[0096] 404: Using the first gateway entry component as a gateway device of the workgroup component, configuring the workgroup component, using the workgroup component as an external gateway device of the east-west gateway entry component, using the host list corresponding to the first gateway entry component as the host list of the east-west gateway entry component, and configuring the east-west gateway entry component so that the east-west gateway entry component receives traffic data having host names in the host list from the first gateway entry component through the workgroup component;

[0097] 406: Use the service host name as the name of the traffic data received by the third virtual service component, use the east-west gateway entry component as the matching gateway of the third virtual service component, use the target image application as the routing object of the third virtual service component, configure the third virtual service component, and route the traffic data with the service host name to the target image application;

[0098] 408: Determine the image name and image subset name corresponding to the target image application in the preset application mapping table, and configure the third destination rule component based on the image name and image subset name so that traffic data with the service host name is transmitted to the target image application according to the path in the third destination rule component;

[0099] 410: Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the workgroup component and the target production application as routing objects of the first virtual service component, and configuring the first virtual service component to route the traffic data with the service host name to the workgroup component and the target production application;

[0100] 412: In the preset application mapping table, determine the production name and production subset name corresponding to the target production application, and based on the production name and production subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

[0101] Specifically, such as Figure 2c As shown, when the source production application is in a cloud-native environment and the mirror application is in a virtual machine, a workgroup component, an east-west gateway entry component, a third virtual service component, and a third destination rule component are deployed on the first network platform for configuration. To avoid mutual interference between the cloud-native environment and the virtual machine, the workgroup component is deployed. The first virtual service routes traffic data with a service host name to the workgroup component. The east-west gateway entry component receives traffic data from the first gateway entry component through the workgroup component. The third virtual service component routes traffic data with a service host name in the traffic data received by the east-west gateway entry component to the target mirror application. The third destination rule component transmits traffic data with a service host name to the target mirror application through the configured path.

[0102] The first virtual service component selects traffic data corresponding to the service hostname of the first virtual service component from all traffic data received by the first gateway ingress component and routes it to the target production application and workgroup component. The first destination rule component transmits the traffic data to the target production application based on the path to the target production application. Typically, the first network platform deploys many first virtual service components with different configuration information.

[0103] For example, the service host name of the first virtual service component is example.com, and the target production application is example-service, that is, the routing object of the first virtual service component is example-service and the workgroup component. The first virtual service component routes the traffic data named example.com received by the first gateway entry component to the example-service service and the workgroup component.

[0104] The east-west gateway entry component receives traffic data named example.com from the first gateway entry component through the work group, and the third virtual service group routes the traffic data named example.com to the target mirror application M-example-service.

[0105] In one embodiment, Figure 5 As shown, the cloud-native-based simulation environment construction method also includes:

[0106] 502: When the operating environment of the mirror application corresponding to the source production application is a K8S environment, and the mirror application belongs to the first K8S cluster, the network connection mode of the mirror application is determined to be the same-cluster connection mode, and there is no need to deploy the network connection of the mirror application;

[0107] 504: Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the target production application and the target mirror application as routing objects of the first virtual service component, and configuring the first virtual service component so that the traffic data with the service host name is routed to the target production application and the target mirror application;

[0108] 506: In the preset application mapping table, determine the production name and production subset name corresponding to the target production application and the mirror name and mirror subset name corresponding to the target mirror application, and based on the production name, production subset name, mirror name and mirror subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application and the target mirror application according to the path in the first destination rule component.

[0109] Specifically, such as Figure 2d As shown, when the source production application and its corresponding mirror application belong to the same K8S cluster, there is no need to deploy other network connection components. It is only necessary to configure the routing object of the first virtual service component in the first network platform to the target production application and its corresponding target mirror application. The other configuration information of the first virtual service component is the same as the configuration under other methods. The first virtual service component selects the traffic data corresponding to the service host name of the first virtual service component from all the traffic data received by the first gateway entry component and routes it to the target production application and the target mirror application. Usually, the first network platform deploys many first virtual service components with different configuration information. The first destination rule component transmits the traffic data to the target production application and the target mirror application according to the path of the target production application and the target mirror application.

[0110] For example, the service host name of the first virtual service component is example.com, the target production application is example-service, and the target mirror application is M-example-service. That is, the routing objects of the first virtual service component are example-service and M-example-service. The first virtual service component routes the traffic data named example.com received by the first gateway entry component to the example-service service and M-example-service.

[0111] In one embodiment, the operating environment where the first K8S cluster is located is deployed with a management component and a load balancer. The management component monitors the health status of the simulation environment. When it is detected that the simulation environment is in an abnormal state, a stop message is sent to the first gateway entry component and a start message is sent to the load balancer to stop the first gateway entry component from transmitting traffic data to the simulation environment. The traffic data of the gateway device is transmitted to the target production application based on the load balancer.

[0112] Specifically, the health status of the simulation environment is monitored through the management component deployed in the operating environment where the first K8S cluster is located. When it is detected that the simulation environment is in an abnormal state, there is no need to send traffic data to the simulation environment. The management component sends a stop message to the first gateway entry component. The first gateway entry component stops working according to the stop message and no longer transmits traffic data to the simulation environment. At the same time, the management component also sends a startup message to the load balancer deployed in the operating environment, and transmits the traffic data of the external gateway device to the first K8S cluster through the load balancer.

[0113] Furthermore, as a response to the above Figure 1 The implementation of the method shown, such as Figure 6 As shown, an embodiment of the present invention provides a cloud-native-based simulation environment construction device, including:

[0114] A first service network platform deployment module 602 is configured to deploy the first service network platform on the first K8S cluster where the source production application is located, and obtain a host list corresponding to the first gateway entry component in the first service network platform;

[0115] A first gateway entry component configuration module 604 is configured to determine network connection information between the first K8S cluster and the gateway device, and based on the network connection information and the host list, configure the first gateway entry component so that the first gateway entry component receives traffic data having a host name in the host list from the gateway device;

[0116] A network connection component configuration module 606 is configured to determine a network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application, and configure the network connection components of the mirror application according to the network connection mode of the mirror application;

[0117] A first virtual service component configuration module 608 is configured to determine a service host name and a target production application corresponding to a first virtual service component in a first service network platform, configure the first virtual service component based on the network connection component, the service host name, and the target production application, route traffic data with the service host name to the target production application based on the configured first virtual service component, and route traffic data with the service host name to a target mirror application corresponding to the target production application based on the configured first virtual service component and the network connection component;

[0118] The simulation environment obtaining module 610 is used to obtain a simulation environment based on the mirror application corresponding to the source production application, the configured first gateway entry component, the first virtual service component and the network connection component.

[0119] The cloud-native-based simulation environment construction device provided by the present application, compared with the existing technology, deploys a first network platform in the operating environment where the source production application is located, configures the first gateway entry component of the first network platform, receives the traffic data of the gateway device through the first gateway entry component, determines the network connection component corresponding to the mirror application according to the operating environment where the mirror application is located, configures the network connection component, and configures the first virtual service component in the first network platform according to the network connection component, so that the first virtual service component routes the data traffic with the service host name to the target production application, and transmits the traffic data with the service host name to the target mirror application through the first virtual service component and the network connection component. The traffic mirroring is realized through software configuration, which reduces the hardware cost of routing / switching facilities and the network risk of the system. There is no need to maintain complex network equipment, which further reduces the investment in labor costs. The elastic characteristics of cloud native are utilized, combined with hybrid deployment and other solutions to improve resource utilization.

[0120] In one embodiment, the network connection component configuration module is further configured to:

[0121] When the operating environment of the mirror application corresponding to the source production application is a K8S environment, and the mirror application belongs to the second K8S cluster, determining that the network connection mode of the mirror application is the first heterogeneous cluster connection mode, and deploying the second service network platform on the second K8S cluster;

[0122] The first gateway entry component is used as an external gateway device for a second gateway entry component in the second service network platform, a host list corresponding to the first gateway entry component is used as a host list of the second gateway entry component, and the second gateway component is configured so that the second gateway entry component receives traffic data having host names in the host list from the first gateway entry component;

[0123] The service host name is used as the name of the traffic data received by the second virtual service component, the second gateway entry component is used as the matching gateway of the second virtual service component, the target mirror application is used as the routing object of the second virtual service component, and the second virtual service component is configured to route the traffic data with the service host name to the target mirror application;

[0124] In the preset application mapping table, determine the image name and image subset name corresponding to the target image application, configure the second destination rule component in the second service network platform based on the image name and image subset name, and transmit the traffic data with the service host name to the target image application according to the path in the second destination rule component.

[0125] In one embodiment, the first virtual service component configuration module is also used to use the service host name as the name of the traffic data received by the first virtual service component, the first gateway entry component as the matching gateway of the first virtual service component, the second gateway entry component and the target production application as the routing objects of the first virtual service component, configure the first virtual service component, and route the traffic data with the service host name to the second gateway entry component and the target production application.

[0126] In one embodiment, the cloud-native-based simulation environment construction device further includes:

[0127] The first destination rule component configuration module is used to determine the production name and production subset name corresponding to the target production application in the preset application mapping table, and configure the first destination rule component in the first service network platform based on the production name and production subset name so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

[0128] In one embodiment, the network connection component configuration module is further configured to:

[0129] When the operating environment of the mirror application corresponding to the source production application is a virtual machine environment, determining that the network connection mode of the mirror application is the second heterogeneous cluster connection mode, and deploying the workgroup component, the east-west gateway entry component, the third virtual service component and the third destination rule component on the first service network platform;

[0130] The first gateway entry component is used as a gateway device of the workgroup component, the workgroup component is configured, the workgroup component is used as an external gateway device of the east-west gateway entry component, the host list corresponding to the first gateway entry component is used as the host list of the east-west gateway entry component, and the east-west gateway entry component is configured so that the east-west gateway entry component receives traffic data having host names in the host list from the first gateway entry component through the workgroup component;

[0131] The service host name is used as the name of the traffic data received by the third virtual service component, the east-west gateway entry component is used as the matching gateway of the third virtual service component, the target mirror application is used as the routing object of the third virtual service component, and the third virtual service component is configured to route the traffic data with the service host name to the target mirror application;

[0132] In the preset application mapping table, determine the mirror name and mirror subset name corresponding to the target mirror application, and configure the third destination rule component based on the mirror name and mirror subset name so that the traffic data with the service host name is transmitted to the target mirror application according to the path in the third destination rule component.

[0133] In one embodiment, the first virtual service component configuration module is also used to use the service host name as the name of the traffic data received by the first virtual service component, the first gateway entry component as the matching gateway of the first virtual service component, the workgroup component and the target production application as the routing objects of the first virtual service component, configure the first virtual service component, and route the traffic data with the service host name to the workgroup component and the target production application.

[0134] In one embodiment, the cloud-native-based simulation environment construction device further includes:

[0135] The first destination rule component configuration module is used to determine the production name and production subset name corresponding to the target production application in the preset application mapping table, and configure the first destination rule component in the first service network platform based on the production name and production subset name so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

[0136] In one embodiment, the network connection component configuration module is further configured to, when the operating environment of the mirror application corresponding to the source production application is a K8S environment and the mirror application belongs to the first K8S cluster, determine that the network connection mode of the mirror application is a same-cluster connection mode, and there is no need to perform network connection deployment of the mirror application;

[0137] The first virtual service component configuration module is also used to use the service host name as the name of the traffic data received by the first virtual service component, the first gateway entry component as the matching gateway of the first virtual service component, and the target production application and the target mirror application as the routing objects of the first virtual service component, and configure the first virtual service component so that the traffic data with the service host name is routed to the target production application and the target mirror application.

[0138] In one embodiment, the cloud-native-based simulation environment construction device further includes:

[0139] The first destination rule component configuration module is used to determine the production name and production subset name corresponding to the target production application and the mirror name and mirror subset name corresponding to the target mirror application in a preset application mapping table, and configure the first destination rule component in the first service network platform based on the production name, production subset name, mirror name and mirror subset name so that the traffic data with the service host name is transmitted to the target production application and the target mirror application according to the path in the first destination rule component.

[0140] In one embodiment, the operating environment where the first K8S cluster is located is deployed with a management component and a load balancer. The management component monitors the health status of the simulation environment. When it is detected that the simulation environment is in an abnormal state, a stop message is sent to the first gateway entry component and a start message is sent to the load balancer to stop the first gateway entry component from transmitting traffic data to the simulation environment. The traffic data of the gateway device is transmitted to the target production application based on the load balancer.

[0141] According to another aspect of the present application, a storage medium is provided, in which at least one executable instruction is stored. The executable instruction enables a processor to perform operations corresponding to the above-mentioned cloud-native-based simulation environment construction method.

[0142] According to one embodiment of the present invention, a storage medium is provided, which stores at least one executable instruction. The computer-executable instruction can execute the cloud-native-based simulation environment construction method in any of the above method embodiments.

[0143] A schematic structural diagram of a computer device is provided according to an embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the computer device.

[0144] The computer device may include: a processor, a communication interface, a memory, and a communication bus.

[0145] Wherein: the processor, the communication interface, and the memory communicate with each other via a communication bus.

[0146] Communication interface, used to communicate with other devices such as clients or other servers.

[0147] The processor is used to execute the program, and specifically can execute the relevant steps in the above-mentioned embodiment of the cloud-native simulation environment construction method.

[0148] Specifically, the program may include program codes including computer operation instructions.

[0149] The processor may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in a computer device may be processors of the same type, such as one or more CPUs, or processors of different types, such as one or more CPUs and one or more ASICs.

[0150] Memory is used to store programs. The memory may include high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.

[0151] The program can be specifically used to cause the processor to perform the following operations:

[0152] Deploy a first service network platform on the first K8S cluster where the source production application is located, and obtain a host list corresponding to the first gateway entry component in the first service network platform;

[0153] Determine network connection information between the first K8S cluster and the gateway device, and configure the first gateway entry component based on the network connection information and the host list so that the first gateway entry component receives traffic data having a host name in the host list from the gateway device;

[0154] Determine the network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application, and configure the network connection components of the mirror application according to the network connection mode of the mirror application;

[0155] Determining a service host name and a target production application corresponding to a first virtual service component in a first service network platform, configuring the first virtual service component based on the network connection component, the service host name, and the target production application, routing traffic data with the service host name to the target production application based on the configured first virtual service component, and routing traffic data with the service host name to a target mirror application corresponding to the target production application based on the configured first virtual service component and the network connection component;

[0156] A simulation environment is obtained based on the mirror application corresponding to the source production application, the configured first gateway entry component, the first virtual service component and the network connection component.

[0157] The above embodiments are merely exemplary embodiments of the present application and are not intended to limit the scope of the present application. The scope of protection of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and scope of protection of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the scope of protection of the present application.

Claims

1. A method for constructing a cloud-native simulation environment, characterized in that: include: Deploy a first service network platform on the first K8S cluster where the source production application is located, and obtain a host list corresponding to the first gateway entry component in the first service network platform; Determine network connection information between the first K8S cluster and the gateway device, and configure the first gateway entry component based on the network connection information and the host list so that the first gateway entry component receives traffic data having a host name in the host list from the gateway device; Determining a network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application, and configuring a network connection component of the mirror application according to the network connection mode of the mirror application; Determine a service host name and a target production application corresponding to a first virtual service component in the first service network platform, configure the first virtual service component based on the network connection component, the service host name, and the target production application, route traffic data with the service host name to the target production application based on the configured first virtual service component, and route traffic data with the service host name to a target mirror application corresponding to the target production application based on the configured first virtual service component and the network connection component; Based on the mirror application corresponding to the source production application, the first gateway entry component, the first virtual service component and the network connection component are configured to obtain a simulation environment.

2. The cloud-native simulation environment construction method according to claim 1, wherein: The determining, based on the operating environment of the mirror application corresponding to the source production application, a network connection mode of the mirror application, and configuring a network connection component of the mirror application according to the network connection mode of the mirror application, includes: When the operating environment of the mirror application corresponding to the source production application is a K8S environment, and the mirror application belongs to a second K8S cluster, determining that the network connection mode of the mirror application is a first heterogeneous cluster connection mode, and deploying a second service network platform on the second K8S cluster; Using the first gateway entry component as an external gateway device of a second gateway entry component in the second service network platform, using a host list corresponding to the first gateway entry component as a host list of the second gateway entry component, and configuring the second gateway entry component so that the second gateway entry component receives traffic data having host names in the host list from the first gateway entry component; Using the service host name as the name of the traffic data received by the second virtual service component, using the second gateway entry component as the matching gateway of the second virtual service component, and using the target mirror application as the routing object of the second virtual service component, the second virtual service component is configured to route the traffic data with the service host name to the target mirror application; The simulation environment construction method further includes: In a preset application mapping table, determine the image name and image subset name corresponding to the target image application, configure the second destination rule component in the second service network platform based on the image name and image subset name, and transmit the traffic data with the service host name to the target image application according to the path in the second destination rule component.

3. The cloud-native-based simulation environment construction method according to claim 2, characterized in that: The configuring the first virtual service component based on the network connection component, the service host name, and the target production application includes: Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the second gateway entry component and the target production application as routing objects of the first virtual service component, configuring the first virtual service component to route the traffic data with the service host name to the second gateway entry component and the target production application; Accordingly, the simulation environment construction method further includes: In the preset application mapping table, determine the production name and production subset name corresponding to the target production application, and based on the production name and production subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

4. The method for constructing a cloud-native simulation environment according to claim 1, wherein: The determining, based on the operating environment of the mirror application corresponding to the source production application, a network connection mode of the mirror application includes: When the operating environment of the mirror application corresponding to the source production application is a virtual machine environment, determining that the network connection mode of the mirror application is a second heterogeneous cluster connection mode, and deploying a workgroup component, an east-west gateway entry component, a third virtual service component, and a third destination rule component on the first service network platform; The first gateway entry component is used as a gateway device of the workgroup component, the workgroup component is configured, the workgroup component is used as an external gateway device of the east-west gateway entry component, the host list corresponding to the first gateway entry component is used as the host list of the east-west gateway entry component, and the east-west gateway entry component is configured so that the east-west gateway entry component receives traffic data having host names in the host list from the first gateway entry component through the workgroup component; Using the service host name as the name of the traffic data received by the third virtual service component, using the east-west gateway entry component as the matching gateway of the third virtual service component, and using the target mirror application as the routing object of the third virtual service component, the third virtual service component is configured to route the traffic data with the service host name to the target mirror application; Accordingly, the simulation environment construction method further includes: In the preset application mapping table, determine the mirror name and mirror subset name corresponding to the target mirror application, and based on the mirror name and mirror subset name, configure the third destination rule component so that the traffic data with the service host name is transmitted to the target mirror application according to the path in the third destination rule component.

5. The cloud-native-based simulation environment construction method according to claim 4, characterized in that: The configuring the first virtual service component based on the network connection component, the service host name, and the target production application includes: Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the workgroup component and the target production application as routing objects of the first virtual service component, configuring the first virtual service component to route the traffic data with the service host name to the workgroup component and the target production application; Accordingly, the simulation environment construction method further includes: In the preset application mapping table, determine the production name and production subset name corresponding to the target production application, and based on the production name and production subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application according to the path in the first destination rule component.

6. The cloud-native-based simulation environment construction method according to claim 1, wherein: The determining, based on the operating environment of the mirror application corresponding to the source production application, a network connection mode of the mirror application, and configuring a network connection component of the mirror application according to the network connection mode of the mirror application, includes: When the operating environment of the mirror application corresponding to the source production application is a K8S environment, and the mirror application belongs to the first K8S cluster, determining that the network connection mode of the mirror application is the same-cluster connection mode, and there is no need to perform network connection deployment of the mirror application; Accordingly, configuring the first virtual service component based on the network connection component, the service host name, and the target production application includes: Using the service host name as the name of the traffic data received by the first virtual service component, using the first gateway entry component as the matching gateway of the first virtual service component, using the target production application and the target mirror application as routing objects of the first virtual service component, and configuring the first virtual service component so that the traffic data with the service host name is routed to the target production application and the target mirror application; Accordingly, the simulation environment construction method further includes: In a preset application mapping table, determine the production name and production subset name corresponding to the target production application and the image name and image subset name corresponding to the target mirror application; based on the production name, production subset name, the image name and image subset name, configure the first destination rule component in the first service network platform so that the traffic data with the service host name is transmitted to the target production application and the target mirror application according to the path in the first destination rule component.

7. The cloud-native-based simulation environment construction method according to any one of claims 1 to 6, characterized in that: The operating environment where the first K8S cluster is located is deployed with a management component and a load balancer. The management component monitors the health status of the simulation environment. When it is detected that the simulation environment is in an abnormal state, a stop message is sent to the first gateway entry component and a start message is sent to the load balancer to stop the first gateway entry component from transmitting traffic data to the simulation environment. The traffic data of the gateway device is transmitted to the target production application based on the load balancer.

8. A cloud-native simulation environment construction device, characterized in that: include: A first service network platform deployment module is used to deploy the first service network platform on the first K8S cluster where the source production application is located, and obtain a host list corresponding to the first gateway entry component in the first service network platform; a first gateway entry component configuration module, configured to determine network connection information between the first K8S cluster and the gateway device, and configure the first gateway entry component based on the network connection information and the host list, so that the first gateway entry component receives traffic data having a host name in the host list from the gateway device; a network connection component configuration module, configured to determine a network connection mode of the mirror application based on the operating environment of the mirror application corresponding to the source production application, and configure the network connection components of the mirror application according to the network connection mode of the mirror application; a first virtual service component configuration module, configured to determine a service host name and a target production application corresponding to a first virtual service component in the first service network platform, configure the first virtual service component based on the network connection component, the service host name, and the target production application, route traffic data with the service host name to the target production application based on the configured first virtual service component, and route traffic data with the service host name to a target mirror application corresponding to the target production application based on the configured first virtual service component and the network connection component; The simulation environment acquisition module is used to obtain the simulation environment based on the mirror application corresponding to the source production application, the configured first gateway entry component, the first virtual service component and the network connection component.

9. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to perform operations corresponding to the cloud-native-based simulation environment construction method according to any one of claims 1 to 7.

10. A computer device comprising: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the cloud-native-based simulation environment construction method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Configuration method and device for virtual network element

    CN107786367A

  • Production environment simulation method based on container

    CN110572484A