Visual arrangement system and method for urban rail cloud simulation test resources
Through the visual orchestration system of urban rail cloud simulation test resources, the visual editing and template management modules are used, combined with the scheduling engine and storage management modules, the problem of building complex testing environments in the rail transit industry on the cloud platform is solved, and efficient cloud simulation environment scenario construction and management is achieved.
Patent Information
- Application Number
- CN202411628464.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-11-14
AI Technical Summary
The rail transit industry lacks effective cloud-mounted and down-mounted interconnection functions on cloud platforms, making it difficult to build a complex system simulation test environment, and the testing resources are limited, resulting in complex schedule and repeated construction environment problems.
A visual orchestration system for urban rail cloud simulation testing resources is proposed, including visual editing module, template management module, scheduling engine module and storage management module. It creates or edits resources through drag and drop, generates templates and connects with cloud platforms, cloud devices and simulation interfaces to build and destroy test scenarios.
The function of repeatedly creating, destroying and restoring different cloud simulation environment scenarios on limited simulation basic resources is realized, which improves the convenience and efficiency of cloud simulation environment scenario construction, and solves the problems of limited resources and complex schedules.
Smart Images

Figure CN119583347A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of rail transit cloud computing applications, and in particular relates to a visual arrangement system and method for urban rail transit cloud simulation test resources. Background Art
[0002] With the rapid development and continuous maturity of cloud computing and big data technologies, cloud platforms have been widely used in the rail transit industry, with multiple advantages such as resource sharing, data concentration, efficient operation and maintenance, energy conservation and environmental protection, personalized customization, cost reduction and efficiency improvement. As of June 2021, among the 44 cities that have opened urban rail transit, 29 cities have built, planned and implemented or are conducting cloud technology research. The deep integration of cloud computing technology and the rail industry has become an inevitable trend, and has become the foundation and driving force for building the digital transformation of the industry and promoting industry innovation and development. At present, the cloud application of cloud computing technology in the production system of the rail industry is still in its early stages. The subways in many cities in China have explored the product development model of deep integration of urban rail professional and cloud computing technology by building inspection and testing platforms.
[0003] Due to the particularity of the rail transit industry, there are basically few rail transit business systems deployed on the public cloud, and they are often carried in the form of private clouds. Therefore, the orchestration business provided by the traditional public cloud lacks the function of interconnection between the rail transit industry and the cloud, and it is difficult to fit with the rail transit industry. At present, most rail transit cloud platforms are mainly based on IaaS layer infrastructure services, lacking attention and support for the architecture and performance of cloud business systems. In particular, due to the large number of rail transit professions and complex system architectures, there are often situations where the system's acquisition front end is under the cloud and the management system is on the cloud. Therefore, when setting up the simulation test environment, it is necessary to allocate cloud resources and build a supporting environment under the cloud, which involves multiple links such as host, network, storage, and security, making it difficult to build the environment. In addition, there are often test requirements for interconnection of multiple professional interfaces between rail transit professional systems. Due to the limited resources of the test environment, complex scheduling is required during the test process to avoid the problem of repeated construction of the environment for business systems with many interconnected interfaces. In the process of urban rail cloud simulation testing, there is a lack of the function of repeatedly creating, destroying and restoring different cloud simulation environment scenarios based on limited simulation basic resources. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present application provides a visual orchestration system and method for urban rail cloud simulation test resources.
[0005] In the first aspect, the present application proposes a visual arrangement system for urban rail cloud simulation test resources, including a visual editing module, a template management module, a scheduling engine module, a storage management module, an on-cloud platform, off-cloud devices, and a simulation interface;
[0006] The visual editing module is used to create or edit different types of resources by dragging and dropping, visually represent various resource types and set properties at the same time, so as to complete the visual arrangement of business scenarios, and generate templates based on the arranged business scenarios. The templates are text description files used to create or update scenario instances in resource arrangement, and are used to describe the required cloud resources and service information;
[0007] The template management module is used to save the template created or edited by the visual editing module to the database, connect to the corresponding device according to the resource type of the template and perform parameter configuration;
[0008] The scheduling engine module is used to parse the template to obtain template parameters, and to build corresponding types of business scenarios with the cloud platform, the cloud device and the simulation interface according to the parsed template parameters. At the same time, the type of business scenario built is queried and verified through the storage management module, and the building status is marked;
[0009] The storage management module is used for data storage, and the stored data includes system management data, template data, resource data and log data. The resource data is sent to the scheduling engine module for business scenario query verification.
[0010] In some optional implementations of some embodiments, the visual editing module includes a visual editing interface, a resource bar operation unit, a property bar operation unit, and a toolbar operation unit;
[0011] The visual editing interface is used to drag and drop resource items in the resource bar operation unit, display the attribute fields of the resource items, build an architecture diagram of the arrangement template through the interactive connection between resource items, and arrange, associate and include the positions of resource items;
[0012] The resource bar operation unit is used to display the resource items that can be programmed in the resource bar and classify them according to the business type. The resource items are derived from resource items of different resource types configured by the system;
[0013] The property bar operation unit is used to display the property content of the resource item. When any resource item in the visual editing interface is selected, the property bar operation unit displays the name and type of the resource item, lists the property fields of the resource item according to the resource item configuration, and sets the properties of the resource item. The set property values will be automatically generated into the template script content;
[0014] The toolbar operation unit includes basic operation tools required in the visual editing process, and is used to perform operations including file management, template saving, point selection, box selection, undo and redo through shortcut keys.
[0015] In some optional implementations of some embodiments, the resource types configured by the system in the resource bar operation unit include cloud resources, simulation types, and off-cloud resources;
[0016] When the system configuration resource type is a resource item of cloud resources, the resource item includes virtual computing resources, virtual network resources, virtual storage resources, and virtual security resources;
[0017] When the system configuration resource type is a resource item of off-cloud resources, the resource items include cloud edge network devices, cloud edge security devices, cloud edge interface devices, and off-cloud devices of the tested specialty or related specialty;
[0018] When the system configuration resource type is a simulation type resource item, the resource item includes a virtual interface or a virtual system of a simulation tool.
[0019] In some optional implementations of some embodiments, the template management module includes an on-cloud resource docking unit, an off-cloud resource docking unit, a cloud platform simulation docking unit, and a parameter configuration unit;
[0020] The cloud resource docking unit is used to dock with devices whose resource types are cloud resources, including cloud hosts, cloud hard disks, VPCs, subnets, routers, virtual firewalls, and security networks;
[0021] The off-cloud resource docking unit is used to dock with devices whose resource type is off-cloud resources, including border firewalls, border switches, rail transit professional front-end equipment, servers, terminals, network equipment, security equipment and storage equipment;
[0022] The cloud platform simulation docking unit is used to dock with simulation test tools whose resource type is simulation type, including professional system interface simulation service and professional system data simulation service;
[0023] The parameter configuration unit is used to separate sensitive information and configuration parameters from the template code and perform dynamic parameter configuration when the template is applied.
[0024] In some optional implementations of some embodiments, the scheduling engine module includes an on-cloud resource scheduling unit, an off-cloud resource scheduling unit, and a simulation device scheduling unit;
[0025] The cloud resource scheduling unit is used to call the cloud platform API interface to create a new virtual machine when the resource type in the parsed template parameter is a cloud resource and the resource item construction status is a new type; when the resource item construction status is an existing type, schedule the existing virtual machine environment, and finally configure the corresponding network and security parameters according to the network and security status of the resource item;
[0026] The off-cloud resource scheduling unit is used to schedule the boundary network devices and boundary security devices at the edge of the cloud to perform API docking scheduling when the resource type in the parsed template parameter is an off-cloud resource, open up the network and security links between the cloud and off-cloud, and realize the interface connection between the business system in the on-cloud virtual machine and the off-cloud system;
[0027] The simulation device scheduling unit is used to schedule the simulation system and the corresponding network and security devices when the resource type in the parsed template parameters is a simulation type, and provide a simulated business interface or data interface for the business system in the virtual machine on the cloud.
[0028] In some optional implementations of some embodiments, the storage management module includes a system data management unit, a template data management unit, a resource data management unit, and a log data management unit;
[0029] The system data management unit is used to manage data of cloud environment management, line management, professional management, user management, role management and organizational management;
[0030] The template data management unit is used to record templates, template history information and status information data;
[0031] The resource data management unit is used to record resource item configuration data, including resource item configuration information of the cloud platform, cloud devices, and simulation interfaces. When resources change, resource data records also need to be updated synchronously. Resource data is finally saved in the database and provided to the visual editing module for display, and sent to the scheduling engine module for query verification;
[0032] The log data management unit is used to record system logs, operation logs and running logs.
[0033] In a second aspect, the present application proposes a visual arrangement method of urban rail cloud simulation test resources, including a scene creation step, a template creation step and a template definition step;
[0034] The scene creation steps are:
[0035] Through the visual editing interface, drag and drop resource items, arrange the location and association of resource items, configure the attribute information required for resource items, and automatically generate and update template management data through the template management module after configuration is completed, and cache it in the storage management module. When the user completes the orchestration, perform deployment work through the visual editing interface. At this time, the scheduling engine module reads the template data and parses the data information of each resource in the template. At the same time, it verifies the status of the resources, lists the status of the resources to be created, modified or scheduled, and creates scenarios according to different resource status and resource types;
[0036] The template creation steps are:
[0037] Create templates on the visual editing interface. The visual editing interface reads resource item configuration content, displays dragged resource items according to resource item classification and definition, obtains metadata information of resource item attributes according to resource item configuration, dynamically loads attributes and corresponding attribute configurations, handles dependencies between attributes, ensures that the combination of attribute values is logical, provides detailed descriptions of attributes and filling prompts, configures attributes in a variable manner, separates sensitive information and fixed values from template code, and ensures template security and flexibility;
[0038] After the resource item configuration and attribute configuration are completed, the resource items are connected to determine the dependency relationship between resource items, and the execution engine is guided to analyze the sequence of resource creation and connect them reasonably;
[0039] After the connection is completed, the template content is serialized in JSON format and sent to the template management module for template storage. Different templates are established according to business divisions, or different versions are created under one template to achieve template creation;
[0040] The template definition steps are:
[0041] Define in the order of configuration declaration, resource declaration, variable declaration and output declaration according to the template structure;
[0042] Define configuration declarations: Specify the cloud service provider or infrastructure platform to be used, including configuring connection parameters, authentication information, and region;
[0043] Define variable declarations: Introduce external inputs in templates to increase the flexibility and reusability of templates, including custom configurations when applying the template;
[0044] Define output declaration: used to obtain resource information created by other templates or users;
[0045] Define resource declarations: Create infrastructure resources in the template, each with a unique type, name, and other configuration properties;
[0046] The scene destruction steps are:
[0047] The scene module to be destroyed is read through the visual editing module to start the scene destruction work. After starting, the scheduling engine module first reads the resource status involved in the storage management module and lists the resources to be destroyed. Then the cloud platform API is called to destroy the resources on the cloud, the corresponding network security interface is called to restore the original settings, the cloud system is shut down, the service of the simulation interface is simulated, and the results are captured in real time through the scheduling engine module during the destruction process, and the resource status in the storage management module is synchronously updated.
[0048] In some optional implementations of some embodiments, the scheduling engine module is also used to coordinate the dependencies and execution order between various resources, capture API return results, update resource status files, perform logging, and warn of problems in calling resource operation interfaces.
[0049] In a third aspect, the present application proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0050] In a fourth aspect, the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0051] Beneficial effects of the present invention:
[0052] It helps users to conveniently and efficiently arrange simulation test business scenarios, and convert the business scenarios into templates, i.e., reusable business scenario architecture scripts. The scheduling engine connects with the cloud platform, the cloud system, and the simulation interface according to the template data information, and builds simulation test scenario instances of the business system from the cloud to the cloud. Users can perform business system simulation testing on the scenario instance. This method can save the entire visually arranged simulation scenario as a template, or select a certain resource as a template to save. When needed in the subsequent simulation test process, the template file can be flexibly called, and the environment can be pulled up and deployed through the scheduling engine to solve the problem of limited resources in the test environment and improve the convenience and efficiency of cloud simulation environment scenario construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a system principle diagram of the present invention. DETAILED DESCRIPTION
[0054] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein; on the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0055] In the first aspect, the present application proposes a visual arrangement system for urban rail cloud simulation test resources, such as Figure 1 As shown, it includes a visual editing module, a template management module, a scheduling engine module, a storage management module, an on-cloud platform, off-cloud devices, and a simulation interface;
[0056] The visual editing module is used to create or edit different types of resources by dragging and dropping, visually represent various resource types and set properties at the same time, so as to complete the visual arrangement of business scenarios, and generate templates based on the arranged business scenarios. The templates are text description files used to create or update scenario instances in resource arrangement, and are used to describe the required cloud resources and service information;
[0057] In some optional implementations of some embodiments, the visual editing module includes a visual editing interface, a resource bar operation unit, a property bar operation unit, and a toolbar operation unit;
[0058] The visual editing interface is used to drag and drop resource items in the resource bar operation unit, display the attribute fields of the resource items, build an architecture diagram of the arrangement template through the interactive connection between resource items, and arrange, associate and include the positions of resource items;
[0059] The resource bar operation unit is used to display the resource items that can be programmed in the resource bar and classify them according to the business type. The resource items are derived from resource items of different resource types configured by the system;
[0060] In some optional implementations of some embodiments, the resource types configured by the system in the resource bar operation unit include cloud resources, simulation types, and off-cloud resources;
[0061] When the system configuration resource type is a resource item of cloud resources, the resource item includes virtual computing resources, virtual network resources, virtual storage resources, and virtual security resources;
[0062] When the system configuration resource type is a resource item of off-cloud resources, the resource items include cloud edge network devices, cloud edge security devices, cloud edge interface devices, and off-cloud devices of the tested specialty or related specialty;
[0063] When the system configuration resource type is a simulation type resource item, the resource item includes a virtual interface or a virtual system of a simulation tool.
[0064] The property bar operation unit is used to display the property content of the resource item. When any resource item in the visual editing interface is selected, the property bar operation unit displays the name and type of the resource item, lists the property fields of the resource item according to the resource item configuration, and sets the properties of the resource item. The set property values will be automatically generated into the template script content;
[0065] The toolbar operation unit includes basic operation tools required in the visual editing process, and is used to perform operations including file management, template saving, point selection, box selection, undo and redo through shortcut keys.
[0066] Furthermore, the ultimate goal of the visual editing module is to assist users in choreographing business scenarios. It is superior to traditional manual editing. It provides an intuitive interface that allows users to create or edit different types of resources by dragging and dropping, supports visual representation and property settings of various resource types, and generates a template for the business scenario, which is a reusable business scenario architecture script.
[0067] The main designs include resource bar, visual editing interface, resource bar, property bar, toolbar and other contents. Users can complete the arrangement of simulation test scene resources by dragging and dropping on the visual editing page.
[0068] The resource bar operation unit is the resource bar, which displays the resource items that can be used for orchestration. The resource items in the resource bar are derived from the display resource items configured by the system and are displayed by category according to business type. Resource items include cloud resources, including virtual computing resources, virtual network resources, virtual storage resources, and virtual security resources; resource items include cloud edge resources, including cloud boundary network devices, cloud boundary security devices, and cloud boundary interface devices; resource items include cloud supporting systems or equipment, including cloud devices or systems of the profession to be tested or related professions; resource items include virtual interfaces or virtual systems of simulation tools; resource items include test scenarios of other professions, including interface docking systems, equipment, or services.
[0069] The visual editing interface is the main working area for choreographing scenes. It supports the drag-and-drop arrangement of resource items in the resource bar and displays the architecture diagram of the choreographing template through the interactive connection between resource items. It supports operations such as choreographing, associating, and including the positions of resource items. Click a resource item on the visual editing interface, and the property bar on the right displays the property fields of the resource item.
[0070] The property bar operation unit is the property bar, which displays the property content of the resource item in the visual editing interface. When a resource item in the visual editing interface is selected, the property bar displays the name and type of the resource item, and lists the property fields of the resource item according to the resource item configuration, supports setting the properties of the resource item, and the filled property values will be automatically generated into the template script content.
[0071] The toolbar operation unit is the toolbar, which contains the basic operation tools required in the visual arrangement process, and should have shortcut key operation methods, such as file management, template saving, point selection / box selection, undo / redo, etc.
[0072] The visual editing interface is implemented by a vector graphics editing engine based on HTML5 Canvas and SVG, which includes the base layer (providing basic functions such as graphics drawing, event handling, style setting, etc.), component layer (various graphic components, such as nodes, lines, text, etc., as well as component layout and interaction logic), data layer (interaction with data, parsing and processing data, and mapping it to graphics), rendering layer (using efficient rendering algorithms to achieve real-time drawing and animation effects of graphics) and interaction layer (realizing interactive operations between users and graphics).
[0073] The visual editing module can read the historical template parameters of the template management module, and perform visual restoration and display of the historical template scenes. It can also publish new simulation test scenes again through the visual editing module, and can also update the template data through visual editing. Through the visual editing interface provided by the present invention, it can provide users with a custom drag-and-drop arrangement and construction function for simulation test scenes. Provide custom drag-and-drop arrangement and editing functions for cloud platform resources, including parameter configuration of cloud computing, storage, network, security and other nodes; provide custom drag-and-drop arrangement and editing of cloud edge and cloud systems, including network and security configuration at the edge, interface configuration of cloud systems, etc.; provide custom drag-and-drop arrangement and editing of simulation interfaces / systems, including related configuration of interfaces, etc.
[0074] The template management module is used to save the template created or edited by the visual editing module to the database, connect to the corresponding device according to the resource type of the template and perform parameter configuration;
[0075] In some optional implementations of some embodiments, the template management module includes an on-cloud resource docking unit, an off-cloud resource docking unit, a cloud platform simulation docking unit, and a parameter configuration unit;
[0076] The cloud resource docking unit is used to dock with devices whose resource types are cloud resources, including cloud hosts, cloud hard disks, VPCs, subnets, routers, virtual firewalls, and security networks;
[0077] The off-cloud resource docking unit is used to dock with devices whose resource type is off-cloud resources, including border firewalls, border switches, rail transit professional front-end equipment, servers, terminals, network equipment, security equipment and storage equipment;
[0078] The cloud platform simulation docking unit is used to dock with simulation test tools whose resource type is simulation type, including professional system interface simulation service and professional system data simulation service;
[0079] The parameter configuration unit is used to separate sensitive information and configuration parameters from the template code and perform dynamic parameter configuration when the template is applied.
[0080] Furthermore, the template management module is responsible for saving the templates created and edited by the visual editing module to the database, and providing users with template retrieval, version control, professional classification, sharing, and permission setting functions. A template refers to a text description file used to create and update scene instances in resource orchestration, which is used to describe the required cloud resources and service information.
[0081] The types of cloud resources supported by the template are not limited to the following: cloud computing resources (cloud hosts, bare metal), cloud storage resources (cloud hard disks, object storage), cloud network resources (classic networks, VPCs, subnets, routers), and cloud security resources (virtual firewalls, security groups).
[0082] The types of cloud resources supported by the template are not limited to the following: border firewalls, border switches, rail transit professional front-end equipment, servers, terminals, network equipment, security equipment or storage devices;
[0083] The template supports cloud platform simulation testing tools, including but not limited to professional system interface simulation services and professional system data simulation services.
[0084] Templates support configuration variables, which can separate sensitive information (such as passwords) and configuration parameters (such as specifications) from the template code. When applying the template, variables can be dynamically configured to improve the flexibility and security of the template.
[0085] Through the template management function based on the rail transit simulation test scenario provided by the present invention, the template parameters can be used to declare the required cloud platform resource types, specification configurations, and the relationship between resources; can be used to declare the required cloud edge / cloud system resource types, parameter configurations, interface configurations, and the relationship between resources; can be used to declare the interface / system resource types, parameter configurations, interface configurations, and the relationship between resources of the simulation tool. The template parameters also include the network and security configuration information required for the rail transit simulation test scenario, and the template management module can perform multi-version management of the template to facilitate elastic scaling of the scenario instance.
[0086] The scheduling engine module is used to parse the template to obtain template parameters, and to build corresponding types of business scenarios with the cloud platform, the cloud device and the simulation interface according to the parsed template parameters. At the same time, the type of business scenario built is queried and verified through the storage management module, and the building status is marked;
[0087] In some optional implementations of some embodiments, the scheduling engine module includes an on-cloud resource scheduling unit, an off-cloud resource scheduling unit, and a simulation device scheduling unit;
[0088] The cloud resource scheduling unit is used to call the cloud platform API interface to create a new virtual machine when the resource type in the parsed template parameter is a cloud resource and the resource item construction status is a new type; when the resource item construction status is an existing type, schedule the existing virtual machine environment, and finally configure the corresponding network and security parameters according to the network and security status of the resource item;
[0089] The off-cloud resource scheduling unit is used to schedule the boundary network devices and boundary security devices at the edge of the cloud to perform API docking scheduling when the resource type in the parsed template parameter is an off-cloud resource, open up the network and security links between the cloud and off-cloud, and realize the interface connection between the business system in the on-cloud virtual machine and the off-cloud system;
[0090] The simulation device scheduling unit is used to schedule the simulation system and the corresponding network and security devices when the resource type in the parsed template parameters is a simulation type, and provide a simulated business interface or data interface for the business system in the virtual machine on the cloud.
[0091] Furthermore, the scheduling engine module can parse the template parameters and classify the scene building according to the parsed template parameters, and query the storage management module to verify whether the building type in the template already exists, and mark the building status.
[0092] 1) When the resource type in the template parameter parsed by the cloud resource scheduling unit is a cloud resource, and when the resource item construction status is a new type, the scheduling engine module calls the cloud platform API interface to create a new virtual machine; when the resource item construction status is an existing type, it schedules the existing virtual machine environment. Finally, configure the corresponding network and security parameters according to the network and security status of the resource item.
[0093] 2) When the resource type in the template parameter parsed by the off-cloud resource scheduling unit is an off-cloud resource, the boundary network devices and boundary security devices at the edge of the cloud are scheduled for API docking scheduling, opening up the network and security links between the cloud and off-cloud, and realizing the interface connectivity between the business system in the on-cloud virtual machine and the off-cloud system.
[0094] 3) When the resource type in the template parameter parsed by the simulation device scheduling unit is a simulation type, the simulation system and the corresponding network and security devices are scheduled to provide a simulated business interface or data interface for the business system in the virtual machine on the cloud.
[0095] The scheduling function based on the rail transit simulation test scenario template provided by the present invention can be used to create scenario instances. The scheduling engine module can parse the template parameters and perform scenario construction scheduling according to the parsed template parameters. It can be API-connected with the cloud platform to create a new virtual machine environment, or schedule an existing virtual machine environment, including but not limited to the virtualized computing resources, storage resources, network resources, and security resources of the cloud platform. It can be API-connected and scheduled with the boundary network devices and boundary security devices at the edge of the cloud to connect the network and security links between the cloud and the cloud, and realize the interface connectivity between the business system in the cloud virtual machine and the system under the cloud. It can be connected with the simulation tool to provide a simulated business interface or data interface for the business system in the cloud virtual machine.
[0096] The storage management module is used for data storage, and the stored data includes system management data, template data, resource data and log data. The resource data is sent to the scheduling engine module for business scenario query verification.
[0097] In some optional implementations of some embodiments, the storage management module includes a system data management unit, a template data management unit, a resource data management unit, and a log data management unit;
[0098] The system data management unit is used to manage data of cloud environment management, line management, professional management, user management, role management and organizational management;
[0099] The template data management unit is used to record templates, template history information and status information data;
[0100] The resource data management unit is used to record resource item configuration data, including resource item configuration information of the cloud platform, cloud devices, and simulation interfaces. When resources change, resource data records also need to be updated synchronously. Resource data is finally saved in the database and provided to the visual editing module for display, and sent to the scheduling engine module for query verification;
[0101] The log data management unit is used to record system logs, operation logs and running logs.
[0102] In a second aspect, the present application proposes a visual arrangement method of urban rail cloud simulation test resources, including a scene creation step, a template creation step and a template definition step;
[0103] The scene creation steps are:
[0104] Through the visual editing interface, drag and drop resource items, arrange the location and association of resource items, configure the attribute information required for resource items, and automatically generate and update template management data through the template management module after configuration is completed, and cache it in the storage management module. When the user completes the orchestration, perform deployment work through the visual editing interface. At this time, the scheduling engine module reads the template data and parses the data information of each resource in the template. At the same time, it verifies the status of the resources, lists the status of the resources to be created, modified or scheduled, and creates scenarios according to different resource status and resource types;
[0105] Furthermore, the user can drag and drop resource items through a visual editing interface, arrange the positions and associations of resource items, and configure the required attribute information of resource items.
[0106] The template management module automatically generates and updates template management data according to user operations, and caches the data in the storage management module.
[0107] When the user completes the orchestration, the deployment work can be performed through the visual editing interface. At this time, the scheduling engine module reads the template data, parses the data information of each resource in the template, verifies the status of the resources, and lists the status of the resources to be created, modified or scheduled.
[0108] When the cloud resource type is in the new state, the scheduling engine module calls the cloud platform API interface to create a new virtual machine; when the resource item construction state is an existing type, the existing virtual machine environment is scheduled. Finally, the corresponding network and security parameters are configured according to the network and security status of the resource item.
[0109] When the resource type under the cloud is in the newly created state, the scheduling engine module calls the API interface of the boundary network device and boundary security device at the edge of the cloud to open up the network and security links between the cloud and the under-cloud, and realize the connection between the business system in the virtual machine on the cloud and the system interface under the cloud.
[0110] When simulating interfaces or system types, schedule the simulation system and corresponding network and security devices to provide simulated business interfaces or data interfaces for the business systems in the virtual machines on the cloud.
[0111] The template creation steps are:
[0112] Create templates on the visual editing interface. The visual editing interface reads resource item configuration content, displays dragged resource items according to resource item classification and definition, obtains metadata information of resource item attributes according to resource item configuration, dynamically loads attributes and corresponding attribute configurations, handles dependencies between attributes, ensures that the combination of attribute values is logical, provides detailed descriptions of attributes and filling prompts, configures attributes in a variable manner, separates sensitive information and fixed values from template code, and ensures template security and flexibility;
[0113] After the resource item configuration and attribute configuration are completed, the resource items are connected to determine the dependency relationship between resource items, and the execution engine is guided to analyze the sequence of resource creation and connect them reasonably;
[0114] After the connection is completed, the template content is serialized in JSON format and sent to the template management module for template storage. Different templates are established according to business divisions, or different versions are created under one template to achieve template creation;
[0115] Furthermore, the user creates a template on the visual editing interface. The visual editor reads the resource item configuration content, and displays the resource items that the user can drag and drop according to the resource item classification and definition. Resource items include cloud resources, including virtual computing resources, virtual network resources, virtual storage resources, and virtual security resources; resource items include cloud resources, including cloud boundary network devices, cloud boundary security devices, cloud boundary interface devices, etc., cloud devices or systems under the tested major or related majors; resource items include virtual interfaces or virtual systems of simulation tools; resource items include test scenarios of other majors, including interface docking systems, devices or services, etc.
[0116] Based on the resource item configuration, the visual editor can obtain the metadata information of the resource item attributes, including field type, parameter range, whether it is required, etc., dynamically load attributes and corresponding attribute configurations, handle the dependencies between attributes, ensure that the combination of attribute values is logical, and provide detailed descriptions and filling tips of the attributes to help users understand the meaning of each attribute. Users can configure attributes in a variable manner, separate sensitive information and fixed values from the template code, and improve template security and flexibility.
[0117] Users can connect resource items and determine the dependencies between them, which can guide the execution engine to analyze the order of resource creation and connect them properly.
[0118] Visual editing reads available values of resource attributes, such as specifications, images, and availability zones, through the storage management module to ensure the validity of attribute values.
[0119] After the visual editor finishes editing the template, the template content is serialized in JSON format and handed over to the template management module to save the template.
[0120] Users can create different templates according to business divisions, or create different versions under one template to modify and upgrade a business environment.
[0121] The template definition steps are:
[0122] Define in the order of configuration declaration, resource declaration, variable declaration and output declaration according to the template structure;
[0123] Define configuration declarations: Specify the cloud service provider or infrastructure platform to be used, including configuring connection parameters, authentication information, and region;
[0124] Define variable declarations: Introduce external inputs in templates to increase the flexibility and reusability of templates, including custom configurations when applying the template;
[0125] Define output declaration: used to obtain resource information created by other templates or users;
[0126] Define resource declarations: Create infrastructure resources in the template, each with a unique type, name, and other configuration properties;
[0127] Furthermore, the template structure consists of four parts, which are configuration declaration, resource declaration, variable declaration, and output declaration in order.
[0128] Configuration declarations are used to specify the cloud service provider or infrastructure platform to be used. This includes configuring connection parameters, authentication information, region, etc.
[0129] Variable declarations are used to introduce external inputs into templates to increase the flexibility and reusability of templates, allowing users to customize configurations when applying templates.
[0130] Output declarations are used by other templates or users to obtain information about the created resources.
[0131] Resource declarations In a template, you can define the infrastructure resources to be created, such as virtual machines, storage buckets, database instances, network rules, etc. Each resource has a unique type and name, as well as other configuration properties.
[0132] The specific configuration properties are as follows:
[0133] 1. The type name of the cloud host in the template is compute_instance, including but not limited to the following attributes. The cloud host attribute description is shown in Table 1:
[0134] Table 1
[0135]
[0136] 2. In the template, the disk type is named disk, including but not limited to the following attributes. The disk attribute description is shown in Table 2:
[0137] Table 2
[0138] Property name Property Description type name Disk Name String region_id Store available domain ids String storage_type Storage Type String volume_type Hard disk type, such as SSD, HDD, SSHD String size Size, in GB Int description describe String multi_attach Whether to mount multiple Boolean snapshot_id Snapshot ID String image_id Image ID String location Storage pool name String
[0139] 3. In the template, the type name of the classic network is network, which includes the following attributes. The description of the classic network attributes is shown in Table 3:
[0140] Table 3
[0141] Property name Property Description type name The name of the classic network String tenant_id Organization ID String description describe String cidr network segment String
[0142] 4. In the template, the type name of the classic network subnet is subnet, which includes the following attributes. The description of the classic network subnet attributes is shown in Table 4:
[0143] Table 4
[0144]
[0145] 5. In the template, the firewall type name is firewall, including the following attributes. The firewall attribute description is shown in Table 5:
[0146] Table 5
[0147] Property name Property Description type name Firewall name String tenant_id Organization ID String description describe String enable_audit Audit or not Boolean route_ids Router ID List
[0148] 6. The firewall is associated with multiple firewall rules. In the template, the type name is firewall_rule. The firewall rule attribute description is shown in Table 6:
[0149] Table 6
[0150]
[0151] 7. In the template, the security group type name is security_group, including the following attributes. The security group attribute description is shown in Table 7:
[0152] Table 7
[0153] Property name Property Description type name Security Group Name String tenant_id Organization ID String description describe String
[0154] 8. A security group is associated with multiple security group rules. In the template, the type name is security_group_rule, which includes the following attributes. The security group rule attribute description is shown in Table 8:
[0155] Table 8
[0156]
[0157] 9. In the template, the type name of the router is route, which includes the following attributes. The router attribute description is shown in Table 9:
[0158] Table 9
[0159]
[0160] The scene destruction steps are:
[0161] The scene module to be destroyed is read through the visual editing module to start the scene destruction work. After starting, the scheduling engine module first reads the resource status involved in the storage management module and lists the resources to be destroyed. Then the cloud platform API is called to destroy the resources on the cloud, the corresponding network security interface is called to restore the original settings, the cloud system is shut down, the service of the simulation interface is simulated, and the results are captured in real time through the scheduling engine module during the destruction process, and the resource status in the storage management module is synchronously updated.
[0162] After the test is over, the user can cancel the built scene through the visual editing module interface. At this time, the scheduling engine module will execute the user's instructions to recycle the corresponding resources and restore the initial configuration. The user can also save the template as needed. At this time, the template management module will store the template data in the storage management module.
[0163] In some optional implementations of some embodiments, the scheduling engine module is also used to coordinate the dependencies and execution order between various resources, capture API return results, update resource status files, perform logging, and warn of problems in calling resource operation interfaces.
[0164] In a third aspect, the present application proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0165] In a fourth aspect, the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0166] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0167] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0168] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0169] In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which may be electrical, mechanical or other forms.
[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0171] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0172] If the integrated module / unit is implemented in the form of 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 present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0173] The above are only preferred implementations of the present invention. It should be pointed out that a number of modifications and improved technical solutions made by those skilled in the art without departing from the technical solution should also be deemed to fall within the scope of protection required by the claims.
Claims
1. A visual arrangement system for urban rail cloud simulation test resources, characterized by: It includes visual editing module, template management module, scheduling engine module, storage management module, cloud platform, off-cloud devices and simulation interface; The visual editing module is used to create or edit different types of resources by dragging and dropping, visually represent various resource types and set properties at the same time, so as to complete the visual arrangement of business scenarios, and generate templates based on the arranged business scenarios. The templates are text description files used to create or update scenario instances in resource arrangement, and are used to describe the required cloud resources and service information; The template management module is used to save the template created or edited by the visual editing module to the database, connect to the corresponding device according to the resource type of the template and perform parameter configuration; The scheduling engine module is used to parse the template to obtain template parameters, and to build corresponding types of business scenarios with the cloud platform, the cloud device and the simulation interface according to the parsed template parameters. At the same time, the type of business scenario built is queried and verified through the storage management module, and the building status is marked; The storage management module is used for data storage, and the stored data includes system management data, template data, resource data and log data. The resource data is sent to the scheduling engine module for business scenario query verification.
2. The system according to claim 1, characterized in that: The visual editing module includes a visual editing interface, a resource bar operation unit, a property bar operation unit and a toolbar operation unit; The visual editing interface is used to drag and drop resource items in the resource bar operation unit, display the attribute fields of the resource items, build an architecture diagram of the arrangement template through the interactive connection between resource items, and arrange, associate and include the positions of resource items; The resource bar operation unit is used to display the resource items that can be programmed in the resource bar and classify them according to the business type. The resource items are derived from resource items of different resource types configured by the system; The property bar operation unit is used to display the property content of the resource item. When any resource item in the visual editing interface is selected, the property bar operation unit displays the name and type of the resource item, lists the property fields of the resource item according to the resource item configuration, and sets the properties of the resource item. The set property values will be automatically generated into the template script content; The toolbar operation unit includes basic operation tools required in the visual editing process, and is used to perform operations including file management, template saving, point selection, box selection, undo and redo through shortcut keys.
3. The system according to claim 2, characterized in that: The resource types configured by the system in the resource bar operation unit include cloud resources, simulation types, and off-cloud resources; When the system configuration resource type is a resource item of cloud resources, the resource item includes virtual computing resources, virtual network resources, virtual storage resources, and virtual security resources; When the system configuration resource type is a resource item of off-cloud resources, the resource items include cloud edge network devices, cloud edge security devices, cloud edge interface devices, and off-cloud devices of the tested specialty or related specialty; When the system configuration resource type is a simulation type resource item, the resource item includes a virtual interface or a virtual system of a simulation tool.
4. The system according to claim 3, characterized in that: The template management module includes an on-cloud resource docking unit, an off-cloud resource docking unit, a cloud platform simulation docking unit, and a parameter configuration unit; The cloud resource docking unit is used to dock with devices whose resource types are cloud resources, including cloud hosts, cloud hard disks, VPCs, subnets, routers, virtual firewalls, and security networks; The off-cloud resource docking unit is used to dock with devices whose resource type is off-cloud resources, including border firewalls, border switches, rail transit professional front-end equipment, servers, terminals, network equipment, security equipment and storage equipment; The cloud platform simulation docking unit is used to dock with simulation test tools whose resource type is simulation type, including professional system interface simulation service and professional system data simulation service; The parameter configuration unit is used to separate sensitive information and configuration parameters from the template code and perform dynamic parameter configuration when the template is applied.
5. The system according to claim 4, characterized in that: The scheduling engine module includes an on-cloud resource scheduling unit, an off-cloud resource scheduling unit, and a simulation device scheduling unit; The cloud resource scheduling unit is used to call the cloud platform API interface to create a new virtual machine when the resource type in the parsed template parameter is a cloud resource and the resource item construction status is a new type; when the resource item construction status is an existing type, schedule the existing virtual machine environment, and finally configure the corresponding network and security parameters according to the network and security status of the resource item; The off-cloud resource scheduling unit is used to schedule the boundary network devices and boundary security devices at the edge of the cloud to perform API docking scheduling when the resource type in the parsed template parameter is an off-cloud resource, open up the network and security links between the cloud and off-cloud, and realize the interface connection between the business system in the on-cloud virtual machine and the off-cloud system; The simulation device scheduling unit is used to schedule the simulation system and the corresponding network and security devices when the resource type in the parsed template parameters is a simulation type, and provide a simulated business interface or data interface for the business system in the virtual machine on the cloud.
6. The system according to claim 5, characterized in that: The storage management module includes a system data management unit, a template data management unit, a resource data management unit and a log data management unit; The system data management unit is used to manage data of cloud environment management, line management, professional management, user management, role management and organizational management; The template data management unit is used to record templates, template history information and status information data; The resource data management unit is used to record resource item configuration data, including resource item configuration information of the cloud platform, cloud devices, and simulation interfaces. When resources change, resource data records also need to be updated synchronously. Resource data is finally saved in the database and provided to the visual editing module for display, and sent to the scheduling engine module for query verification; The log data management unit is used to record system logs, operation logs and running logs.
7. A visual arrangement method for urban rail cloud simulation test resources, characterized in that: It includes scene creation step, template creation step, template definition step and scene destruction step; The scene creation steps are: Through the visual editing interface, drag and drop resource items, arrange the location and association of resource items, configure the attribute information required for resource items, and automatically generate and update template management data through the template management module after configuration is completed, and cache it in the storage management module. When the user completes the orchestration, perform deployment work through the visual editing interface. At this time, the scheduling engine module reads the template data and parses the data information of each resource in the template. At the same time, it verifies the status of the resources, lists the status of the resources to be created, modified or scheduled, and creates scenarios according to different resource status and resource types; The template creation steps are: Create templates on the visual editing interface. The visual editing interface reads resource item configuration content, displays dragged resource items according to resource item classification and definition, obtains metadata information of resource item attributes according to resource item configuration, dynamically loads attributes and corresponding attribute configurations, handles dependencies between attributes, ensures that the combination of attribute values is logical, provides detailed descriptions of attributes and filling prompts, configures attributes in a variable manner, separates sensitive information and fixed values from template code, and ensures template security and flexibility; After the resource item configuration and attribute configuration are completed, the resource items are connected to determine the dependency relationship between resource items, and the execution engine is guided to analyze the sequence of resource creation and connect them reasonably; After the connection is completed, the template content is serialized in JSON format and sent to the template management module for template storage. Different templates are established according to business divisions, or different versions are created under one template to achieve template creation; The template definition steps are: Define in the order of configuration declaration, resource declaration, variable declaration and output declaration according to the template structure; Define configuration declarations: Specify the cloud service provider or infrastructure platform to be used, including configuring connection parameters, authentication information, and region; Define variable declarations: Introduce external inputs in templates to increase the flexibility and reusability of templates, including custom configurations when applying the template; Define output declaration: used to obtain resource information created by other templates or users; Define resource declarations: Create infrastructure resources in the template, each with a unique type, name, and other configuration properties; The scene destruction steps are: The scene module to be destroyed is read through the visual editing module to start the scene destruction work. After starting, the scheduling engine module first reads the resource status involved in the storage management module and lists the resources to be destroyed. Then the cloud platform API is called to destroy the resources on the cloud, the corresponding network security interface is called to restore the original settings, the cloud system is shut down, the service of the simulation interface is simulated, and the results are captured in real time through the scheduling engine module during the destruction process, and the resource status in the storage management module is synchronously updated.
8. A visual arrangement method for urban rail cloud simulation test resources, characterized in that: It also includes coordinating the dependencies and execution order between various resources through the scheduling engine module, capturing API return results, updating resource status files, logging, and warning of problems with calling resource operation interfaces.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 7 to 8 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 7 to 8 are implemented.
Citation Information
Patent Citations
Novel method for eliminating performance bottleneck of communication industry network system by cloud computing technology
CN104680377A
Vehicle-road cooperation system, analog simulation method, vehicle-mounted equipment and roadside equipment
CN113256976A
Intelligent networking vehicle intelligent driving function cloud simulation test system and method based on DevOps
CN114647585A
Resource management system based on cloud native platform technology and elastic construction method thereof
CN115733754A
Business processing method and system and train
CN117641455A
Cited By
Full-process automatic testing method and device based on distributed database
CN120045466A
Virtual machine template library construction method and system for active medical instrument software detection
CN121996357A
Flight simulation hierarchical communication system and method based on cloud native dual-bus scheduling
CN122027670A