ECMP Visual Editing Method Based on mxGraph Technology
Through the ECMP visual editing method of mxGraph technology, the lack of visual editing in traditional PaaS management is solved, and automated deployment and network topology map generation is realized, which improves the management efficiency and flexibility of PaaS services and reduces the complexity of operation and maintenance.
Patent Information
- Application Number
- CN202210670095.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-06-14
AI Technical Summary
Traditional cloud resource PaaS management lacks visual editing pages, which makes it difficult to open and deploy unifiedly, and link relationships are difficult to manage in complex network environments, increasing the complexity of operation and maintenance management.
Using the ECMP visual editing method based on mxGraph technology, the visual component orchestration page realizes drag-and-drop addition, automatic deployment and network resource topology map generation of resource objects, supports the creation, deployment, restart, stop and account management of resource objects, and automatically discover and Draw a network resource relationship diagram.
It has realized the transformation from traditional manual deployment to flowchart grid diagram management, improved the flexibility of creation, deployment and management of PaaS services, reduced the difficulty of operation and maintenance management, and improved component activation efficiency and user intuitive understanding of the architecture.
Smart Images

Figure CN114936018B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular relates to an ECMP visual editing method based on mxGraph technology. Background Art
[0002] With the continuous development of the software industry, more and more software systems are becoming large-scale and complex. These business systems are becoming larger and larger, and the business logic is becoming more and more complex. In order to support business needs, a large number of PaaS services that support various business scenarios have been generated, and the management of these PaaS services has become difficult. Traditional cloud resource PaaS management is manually installed without corresponding page management. However, as the number of PaaS resource objects in an enterprise is very large, and the relationship between PaaS resources is very complex, there are several problems in this situation: First, it is difficult to deploy uniformly, and there is no visual editable page support. Second, the link relationship of the installed PaaS resource components in the complex physical network environment cannot be obtained, which greatly increases the complexity of operation and maintenance management. Summary of the invention
[0003] The purpose of the present invention is to provide an ECMP visual editing method based on mxGraph technology to solve the difficulties in component management in the current enterprise environment.
[0004] To achieve the above object, the present invention adopts the following technical solution:
[0005] An ECMP visual editing method based on mxGraph technology, including two cases for new services and existing services, where:
[0006] For a new service, the following steps are included:
[0007] Step a1: The administrator enters the visual component arrangement page in the system;
[0008] Step a2, adding a resource object to the visualization component arrangement page;
[0009] Step a3, double-click the resource object to enter the resource object creation and deployment page;
[0010] Step a4: First, select the tenant and host where the resource object needs to be deployed. If the tenant does not exist, jump to the tenant activation sub-process. If the tenant exists, select the host to be deployed under the tenant and perform deployment and installation.
[0011] Step a5: If the deployment is abnormal, the process will be transferred to the abnormal handling process; if the deployment is successful, the resource object will be restarted, stopped, uninstalled, and the service account will be opened;
[0012] Step a6: the process ends after the service account is successfully opened;
[0013] For existing services, the following steps are included:
[0014] Step b1, the administrator enters the visual component arrangement page in the system;
[0015] Step b2, click the button for automatically generating network resource topology;
[0016] Step b3, the system generates a network resource relationship topology diagram and detects the service status of each resource object. If the service status of the resource object is abnormal, it enters the alarm push process to issue a resource alarm. If the service status of the resource object is normal, the process ends.
[0017] In the step a2, a resource object is added to the canvas by dragging the page.
[0018] In step a4, the steps of deployment and installation are: fill in the parameter information of the resource object, save, click the deployment button, and realize automatic deployment and installation; wherein the parameter information includes: path, port, IP address, and memory size.
[0019] In step a5, after the exception handling process, return to the deployment and installation process.
[0020] In step a5, the exception handling process is manually processed and resolved according to the deployed exception log information.
[0021] In the step b3, the system generates a network resource relationship topology map according to the metadata of the upper and lower level association relationship of the resource objects stored in the system.
[0022] In step b3, after the resource alarm, the process returns to the service status detection process.
[0023] Beneficial effect: The ECMP visual editing method based on mxGraph technology of the present invention effectively solves the difficulties in component management in the current enterprise environment, and changes the traditional manual deployment into a management method through flowchart grid diagrams. This network diagram arrangement method more effectively solves the flexibility of PaaS services from creation, deployment, start, stop, extinction, and multiple environments. At the same time, the mxGraph technology is used to realize automatic discovery and drawing of network resource topology relationship diagrams, so that users can understand the current architecture more intuitively.
[0024] The present invention uses a visual arrangement panel to automatically draw resource link maps according to the networking environment of different enterprises, and uses mxGraph technology to realize arbitrary dragging of resource objects and object cell cloning technology to achieve automatic deployment of large quantities of components. The entire visual editing process is fully automated, greatly improving the efficiency of component activation and reducing the difficulty of later operation and maintenance management. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A flow chart of the ECMP visual editing method based on mxGraph technology of the present invention;
[0026] Figure 2 Generate a process for network resource relationship topology diagram;
[0027] Figure 3 The flowchart of one embodiment of the present invention is shown in FIG. DETAILED DESCRIPTION
[0028] The present invention will be further explained below in conjunction with the accompanying drawings.
[0029] Glossary:
[0030] MXGRAPH: mxGraph is a js drawing component suitable for web applications that design / edit flowcharts, charts, network diagrams and general graphics on the web. It supports dragging and cloning cells, resizing and transforming, connecting and disconnecting, dragging and dropping from external sources, editing labels in cells and more.
[0031] PaaS: PaaS is the abbreviation of Platform as a Service, which means platform as a service. The business model of providing server platform or middleware as a service, in the era of cloud computing, the corresponding server platform or development environment middleware as a service is called PaaS.
[0032] ECMP: ECMP (Elastic Computing Management Platform) system is a management system that provides PaaS services for users. It can freely adjust its deployment and installation methods according to the user's business needs and preset plans. It can manage multiple clusters across clouds, provide one-click deployment, operation, version update, permission, and account management of component services, and realize resource isolation of multiple accounts.
[0033] like Figure 1 As shown, the ECMP visual editing method based on mxGraph technology of the present invention includes two cases for newly created services and for existing services, wherein:
[0034] For a new service, the following steps are included:
[0035] (11) The administrator enters the visual component arrangement page in the system;
[0036] (12) Add a resource object to the visualization component arrangement page by dragging and dropping on the page;
[0037] (13) Double-click the resource object to enter the resource object creation and deployment page;
[0038] (14) First, select the tenant and host to which the resource object needs to be deployed. If the tenant does not exist, jump to the tenant activation sub-process. If the tenant exists, select the host to be deployed under the tenant, fill in the parameter information of the resource object, save, and click the deploy button to realize automatic deployment and installation. The parameter information of different resource objects is different, such as: path, port, IP address, memory size;
[0039] (15) If the deployment is abnormal, the exception handling process is entered. After the exception handling process, the deployment process is returned to. After the deployment is successful, the resource is restarted, stopped, uninstalled, and the service account is activated. Among them, the exception handling process is manually handled and resolved according to the deployment exception log information. For example, if the deployed resource port conflicts and the deployment cannot be carried out, the port needs to be modified before redeployment;
[0040] (16) The process ends after the service account is successfully opened;
[0041] For existing services, the following steps are included:
[0042] (21) The administrator enters the visual component arrangement page in the system;
[0043] (22) Click the button for automatically generating network resource topology;
[0044] (23) The system generates a network resource relationship topology diagram based on the metadata of the superior-subordinate relationship stored in the system, and detects the service status of each resource object. If the service status of the resource object is abnormal, the system enters the alarm push process to issue a resource alarm. If the service status of the resource object is normal, the process ends.
[0045] The ECMP visual editing method based on mxGraph technology of the present invention has been applied to the elastic computing platform project of Nanjing Bank. The flow chart is as follows: Figure 3 As shown, the service support for full-text retrieval business is realized through visual editing of ES component services.
[0046] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An ECMP visual editing method based on mxGraph technology, characterized by: This includes two situations: new services and existing services. For a new service, the following steps are included: Step a1: The administrator enters the visual component arrangement page in the system; Step a2, adding a resource object to the visualization component arrangement page; Step a3, double-click the resource object to enter the resource object creation and deployment page; Step a4: First, select the tenant and host where the resource object needs to be deployed. If the tenant does not exist, jump to the tenant activation sub-process. If the tenant exists, select the host to be deployed under the tenant and perform deployment and installation. Step a5: If the deployment is abnormal, the process will be transferred to the abnormal handling process; if the deployment is successful, the resource object will be restarted, stopped, uninstalled, and the service account will be opened; Step a6: the process ends after the service account is successfully opened; For existing services, the following steps are included: Step b1, the administrator enters the visual component arrangement page in the system; Step b2, click the button for automatically generating network resource topology; Step b3, the system generates a network resource relationship topology diagram and detects the service status of each resource object. If the service status of the resource object is abnormal, it enters the alarm push process to issue a resource alarm. If the service status of the resource object is normal, the process ends.
2. The ECMP visual editing method based on mxGraph technology according to claim 1, characterized in that: In the step a2, a resource object is added to the canvas by dragging the page.
3. The ECMP visual editing method based on mxGraph technology according to claim 1, characterized in that: In step a4, the steps of deployment and installation are: fill in the parameter information of the resource object, save, click the deployment button, and realize automatic deployment and installation; wherein the parameter information includes: path, port, IP address, and memory size.
4. The ECMP visual editing method based on mxGraph technology according to claim 1, characterized in that: In step a5, after the exception handling process, return to the deployment and installation process.
5. The ECMP visual editing method based on mxGraph technology according to claim 1, characterized in that: In step a5, the exception handling process is manually processed and resolved according to the deployed exception log information.
6. The ECMP visual editing method based on mxGraph technology according to claim 1, characterized in that: In the step b3, the system generates a network resource relationship topology map according to the metadata of the upper and lower level association relationship of the resource objects stored in the system.
7. The ECMP visual editing method based on mxGraph technology according to claim 1, characterized in that: In step b3, after the resource alarm, the process returns to the service status detection process.
