CN111367804B - Method for realizing front-end cooperative debugging based on cloud computing and network programming - Google Patents

Method for realizing front-end cooperative debugging based on cloud computing and network programming Download PDF

Info

Publication number
CN111367804B
CN111367804B CN202010142203.XA CN202010142203A CN111367804B CN 111367804 B CN111367804 B CN 111367804B CN 202010142203 A CN202010142203 A CN 202010142203A CN 111367804 B CN111367804 B CN 111367804B
Authority
CN
China
Prior art keywords
system server
information
error information
cloud computing
error
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010142203.XA
Other languages
Chinese (zh)
Other versions
CN111367804A (en
Inventor
陈佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Jeeseen Network Technologies Co Ltd
Original Assignee
Guangzhou Jeeseen Network Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Jeeseen Network Technologies Co Ltd filed Critical Guangzhou Jeeseen Network Technologies Co Ltd
Priority to CN202010142203.XA priority Critical patent/CN111367804B/en
Publication of CN111367804A publication Critical patent/CN111367804A/en
Application granted granted Critical
Publication of CN111367804B publication Critical patent/CN111367804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention relates to the field of computers, and particularly provides a method for realizing front-end cooperative debugging based on cloud computing and network programming, which comprises the following steps: s1: using a front-end error information storage model to store the front-end error information; the front-end error information storage model comprises a database, a system server and a front-end transmission interface, wherein the database is interactively connected with the system server, and the outlet end of the front-end transmission interface is connected with the inlet end of the system server; s2: restoring the error scene by querying the error scene information transmitted in step S1 in the database; the cooperative work capacity of the front-end developer is enhanced through the steps of the invention. The capability of an enterprise in emergently processing the front-end product problem is effectively improved. And by setting up the error log system server, the capability of developers for checking problems mutually in a cooperative manner is effectively improved.

Description

Method for realizing front-end cooperative debugging based on cloud computing and network programming
Technical Field
The invention relates to the technical field of front-end cooperative debugging, in particular to a method for realizing front-end cooperative debugging based on cloud computing and network programming.
Background
In the process of front-end personnel development, a common error debugging method generally includes: 1. log method outputs error information to console. 2. And checking the status code, the sending of the request and the response information received by the request in the Network panel.
At present, in consideration of computer security, a browser does not allow front-end information to be written into a local place by using Javascript, so that the situation that recording of error scene information is inconvenient in the front-end team development process occurs, the error information sharing process through translation is complicated, and more people cannot assist in debugging errors is achieved; because the error information cannot be written into the local, the error scene information cannot be recorded and shared. In order to quickly check the front-end problems of products after the products are online, a scheme is needed after error information is recorded and shared, and multiple front-end personnel can quickly obtain the environment of an error scene to debug the problems.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a method for realizing front-end cooperative debugging based on a cloud computing virtualization technology and network programming. The invention can provide a front-end error log to be put in storage, is convenient for other personnel to check, and can quickly set up an error environment through cloud computing for analysis and debugging by multiple people.
Specifically, the invention provides a method for realizing front-end cooperative debugging based on cloud computing and network programming, which is characterized by comprising the following steps:
s1: using a front-end error information storage model to store the front-end error information; the front-end error information storage model comprises a database, a system server and a front-end transmission interface, wherein the database is interactively connected with the system server, and the outlet end of the front-end transmission interface is connected with the inlet end of the system server;
step S1 specifically includes the following steps:
s11: the front end writes a JS module, the JS module is a client end which communicates with the system server end and comprises front end error information, the JS module sends the front end error information to the system server end through a network programming technology,
s12: the system server receives the front-end error information in the step S11 to perform data filtering processing;
s13: the front-end error information obtained in the step S12 is subjected to persistence processing, and the system server may design a corresponding field according to the received data front-end error information, design a corresponding form according to a triple-paradigm, write the front-end error information into a database, and write the front-end error information into a text;
s14: the system server provides a plurality of interfaces to inquire error scene information, and a caller inquires corresponding error scene information by calling the interfaces;
s15: after receiving the request for downloading the front-end error information, the system server performs visual processing on the corresponding front-end error information extracted from the database and then returns the front-end error information;
s2: restoring the error scene by querying the error scene information transmitted in step S1 in the database;
step S2 specifically includes the following steps:
s21: the cloud computing block stores, and a system server configures distributed storage nodes;
s22: a server side of the cloud computing mirror image system configures a corresponding template;
s23: the system server provides an interface for packaging and calling the cloud computing management platform:
s24: the system server side processes result information through the cloud computing management platform and returns the result information to the user;
s25: and operating the virtual machine with the error scene by the user, logging in through the remote login resource, and calling the cloud computing management platform interface to close or delete the virtual machine after completing the debugging task.
Preferably, in step S1, the web programming technology includes Ajax technology and WebSocket protocol, if the front-end error information is not a frequently-sent scene, the JS module is connected to the system server through Ajax technology, and if the front-end error information is a frequently-sent scene or a scene where the front-end needs to receive feedback information from the system server, the JS module is connected to the system server through WebSocket protocol to implement the times of mutual pushing of front-end and back-end data and accessing the system server.
Preferably, the specific steps of the system server receiving the front-end error information in step S11 and performing data filtering processing in step S12 are as follows:
the system server provides an API (application program interface) for front-end error information access, a front-end error information format pushed by the front end and the back end and carried front-end error information are specified, after the system server receives front-end error information data, the integrity of the front-end error information is further verified, the front-end error information which is not in accordance is filtered, and the required front-end error information is extracted.
Preferably, the carried front-end error information includes host information, error scene information, development information, host network card information, and system information; the error scene information comprises error information output to the console, a state code and information responded by the system server, and the development information comprises developer information, development time and project ID.
Preferably, in step S21, Ceph is used to convert the centralized computation of the system server into a distributed computation, that is, the system server configures the distributed storage nodes.
Preferably, the mirror image system server side of the cloud computing configures a basic development environment, a platform, a qemu-guest-agent for communication inside the virtual machine and a qcow2 or raw disk object of a service program related to business, wherein the qemu-guest-agent adds function functions of uploading files, deleting files and executing commands, and all tasks of operating the file system inside the virtual machine can be completed.
Preferably, the management platform interface in step S23 includes an interface for the user to call the system server to operate the virtual machine, and an interface for the user to call the system server to operate the internal file system of the virtual machine through qemu-guest-agent.
Preferably, the design of the interface for the user to call the system server to operate the virtual machine requires secondary packaging of a computing system server API or a VMM management tool, so that the user provides host information or error scene information or developer information parameters to quickly locate the host to be debugged;
the host needing debugging is a virtual system server, directly calls a computing system server API to rapidly mark out a same disk object through a block node, and automatically configures through a network node, so that a virtual machine with the same error scene information can be created;
if the host needing debugging is a physical machine, designing extra field parameters in an interface, calling a computing system server API through the interface and on the basis of PaaS service provided by a block node, quickly uploading the additionally uploaded file parameters to an operating system through a Guest-Agent, executing a command to start the quick installation of an automatic script, if most of the service scenes are the same, directly providing SaaS service through the block node, calling the system server through a user according to requirements to operate the interface of a virtual machine internal file system through a qemu-Guest-Agent to execute simple configuration, and finally automatically configuring through a network node to obtain the same virtual scene host;
preferably, the interface for the user to call the system server to operate the internal file system of the virtual machine through qemu-guest is a secondary package of qemu-guest, and after a new function task is defined in the qemu-guest-agent by a user, two parameters are designed at the interface, wherein the first parameter is a task function name, and the second parameter is a parameter of the task function.
Preferably, step S24 is specifically that the service sends the created login information submitted by the user and the feedback information of the management virtual machine to the requester as a response.
Compared with the prior art, the invention has the following beneficial effects:
(1) according to the method for realizing the front-end cooperative debugging by utilizing the cloud computing virtualization technology and the network programming, the cooperative working capacity of front-end developers is enhanced, the capacity of an enterprise for emergently processing front-end product problems is effectively improved, the enterprise improves the effective utilization rate of IT resources by building a private cloud, and the capacity of the developers for cooperatively working and mutually troubleshooting problems is effectively improved by building an error log system server.
(2) The problem scene is quickly constructed by utilizing a mature virtualization technology, and the front-end problem is quickly checked.
(3) The method provided by the invention can put the front-end error log into a warehouse, and quickly create the virtual machine with the same debugging environment as the debugging environment for a developer to debug by combining the cloud computing virtualization technology with the log database.
(4) Because the browser does not allow Javascript to be written into the local, in order to solve the problem of recording the front-end error information, the invention adopts the network programming technology, transmits the front-end error information through the network, then writes the front-end error information into the database, under the condition that the back end does not need to frequently push the information of the debugging environment, the invention sends the error information to the system server through the Ajax technology, and under the condition that the back end needs to frequently push the data to the front end, the invention adopts the WebSocket technology, and realizes the transmission of the error information by compiling the system server supporting the WebSocket protocol and utilizing the established connection. In addition, the required fields are designed by utilizing the WebSocket expansion subprotocol. The system server which is designed through network programming is analyzed after receiving the error information, the corresponding database information is written into the database according to the designed field, and other development members can access the error information which appears at the front end only through the database, so that the sharing of the error debugging information in the front-end development process is realized.
(5) According to the method, a cloud computing virtualization technology is utilized, a cloud computing management platform similar to Openstack is built, after members send requests for creating the same error environment, a system server side obtains information from a database, and the virtualization technology is utilized to call computing resources to quickly create the same development environment to assist debugging. According to the distributed block storage technology such as CEPH applied to cloud computing, a disk partition object which is the same as a debugging environment can be divided in a very short time, then a virtual machine environment which is the same as a development environment can be created by using a computing resource scheduler such as nova-schedule, other development members only need to utilize remote login, or a provided visual API interface such as nova-console based on VNC is used, a user can obtain a virtual machine which is the same as the debugging environment only through a URL, the user can call nova-computer to expand and contract computing resources according to requirements during debugging, and the computing resources can be recovered after debugging is finished.
Drawings
FIG. 1 is a front-end error log warehousing model provided by the present invention;
FIG. 2 is a diagram of a system architecture used by the method of implementing front-end collaborative debugging of the present invention;
FIG. 3 is a flow chart of completing warehousing of front-end scene information provided by the present invention;
FIG. 4 is a flowchart of a host for quickly creating error scenario information according to the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention is provided in conjunction with the accompanying drawings of fig. 1-4.
Referring to fig. 1, since the browser does not allow Javascript to be written locally, in order to solve the problem of recording front-end error information, the invention adopts a network programming technology, transmits the front-end error information through a network, and then writes the front-end error information into a database, and under the condition that a back-end does not need to frequently push information of a debugging environment, the invention sends the error information to a system server through an Ajax technology, and under the condition that the back-end needs to frequently push data to the front-end, the invention adopts a WebSocket technology, and realizes transmission of the error information by compiling the system server supporting the WebSocket protocol and utilizing established connection. In addition, the required fields are designed by utilizing the WebSocket expansion subprotocol.
The system server side which is designed through network programming is compiled, after error information is received, the corresponding database information is written into the database through analysis processing according to the designed field, and other development members can access the error information which appears at the front end only through the database, so that the sharing of the error debugging information in the front-end development process is realized.
Referring to fig. 2, in the invention, a cloud computing virtualization technology is used, a cloud computing management platform similar to Openstack is built, and after a member sends a request for creating the same error environment, a system server acquires information from a database and calls computing resources to quickly create the same development environment for assisting debugging by using the virtualization technology.
The virtualization technology realizes the efficient utilization of IT resources, and compared with the traditional IT resource management mode, the cloud computing has the characteristics of high availability, easy expansion and easy management, which are difficult to achieve.
Many distributed block storage technologies such as CEPH applied to cloud computing can divide a disk partition object as same as a debugging environment in a very short time, then a virtual machine environment as the development environment can be created by using a computing resource scheduler such as nova-schedule, other development members only need to utilize remote login, or a provided visual API interface such as nova-console based on VNC is used, a user can obtain a virtual machine as same as the debugging environment only through a URL, during debugging, the user can call nova-computer to expand and contract computing resources according to requirements, and after debugging is finished, the computing resources can be recovered.
Referring to fig. 3-4, fig. 3 is a flow chart illustrating completion of warehousing of front-end scene information according to the present invention; FIG. 4 is a flowchart of a host for quickly creating error scenario information according to error scenario information, according to the present invention;
the invention provides a method for realizing front-end cooperative debugging based on cloud computing and network programming, which comprises the following steps:
s1: using a front-end error information storage model to store the front-end error information; the front-end error information storage model comprises a database, a system server and a front-end transmission interface, wherein the database is interactively connected with the system server, and the outlet end of the front-end transmission interface is connected with the inlet end of the system server;
step S1 specifically includes the following steps:
s11: the front end writes a JS module, the JS module is a client end which communicates with the system server end and comprises front end error information, the JS module sends the front end error information to the system server end through a network programming technology,
s12: the system server receives the front-end error information in the step S11 to perform data filtering processing;
s13: the front-end error information obtained in step S12 is subjected to persistence processing, the system server may design corresponding fields according to the received data front-end error information, for example, the host information may be IP, MAC, OS fields, the error scene information includes error _ msg, status _ code, request, response, and the like, design a corresponding table according to a three-model, write the front-end error information into the database, and write the front-end error information into a text;
s14: the system server provides a plurality of interfaces to inquire error scene information, and a caller inquires corresponding error scene information by calling the interfaces;
s15: after receiving the request for downloading the front-end error information, the system server performs visual processing on the corresponding front-end error information extracted from the database and then returns the front-end error information; after receiving the request for downloading the error information resource, the system server may further perform visualization processing on the information extracted from the database and then transmit the information back, for example, the information may be obtained through simple JSON format data or live corresponding pictures;
s2: restoring the error scene by querying the error scene information transmitted in step S1 in the database;
step S2 specifically includes the following steps:
s21: the cloud computing block stores, and a system server configures distributed storage nodes;
s22: a server side of the cloud computing mirror image system configures a corresponding template;
s23: the system server provides an interface for packaging and calling the cloud computing management platform:
s24: the system server side processes result information through the cloud computing management platform and returns the result information to the user;
s25: and operating the virtual machine with the error scene by the user, logging in through the remote login resource, and calling the cloud computing management platform interface to close or delete the virtual machine after completing the debugging task. Specifically, after a user logs in through a remote login resource and finishes a debugging task, a system server management platform can be called, and the user calls an interface of a system server to operate a virtual machine to close the virtual machine or delete the virtual machine to release computing resources, so that the efficient utilization of enterprise IT resources is realized.
The step S2 of the present invention restores the error scenario by querying the error scenario information transmitted in the step S1 in the database, which is a technical solution for restoring the scenario, and is mainly implemented by two solutions:
if the development host of the front-end personnel is allocated by a cloud management platform of an enterprise, the invention needs to search host positioning information such as an ip address of the host from a database, then a disk object of the host is obtained by a computing resource scheduler of the cloud platform, such as a nova-computer call management block storage system server side Cinder in OpenStack, a storage block is quickly divided by using a Ceph distributed storage technology to generate a same virtual machine, and then a network management system server side Neutron is called to allocate a network of the same network segment, so that the host of the same environment can be obtained to be used by other developers.
If the development host of the front-end personnel is an independent physical machine, the invention obtains the mirror image of the configured environment in the mirror image service in the cloud computing management platform, such as the Glance of Openstack, quickly creates a basic development environment with enterprise service codes and services by calling Nova, and reads the shared file address of the service code causing the error scene in the error scene information in the database after the network is configured by a network management system server Neutron, so that the user can access the address in the created host with the basic development environment to obtain the service code.
In the JS module provided by the invention, the content packaged by the JS module comprises two parts: 1. the client side is communicated with the system server side, and the communication client side has two technologies which are common, wherein one technology is Ajax technology, and the other technology is WebSocket technology. 2. And the data is processed into a well agreed protocol format, so that high multiplexing of data processing is realized. And the system server side writes the data which is sent by the front-end communication client side and conforms to the protocol into the database after receiving the data.
As a preferred embodiment, in step S1 provided by the present invention, the network programming technology includes Ajax technology and WebSocket protocol, if the front-end error information is not a frequently-sent scene, the JS module is connected to the system server through Ajax technology, and if the front-end error information is a frequently-sent scene or the front-end needs to receive feedback information from the system server, the JS module is connected to the system server through WebSocket protocol to implement the times of mutual push of front-end and back-end data and access to the system server.
As a preferred embodiment, the specific steps of the system server receiving the front-end error information in step S11 and performing data filtering processing in step S12 provided by the present invention are as follows:
the system server provides an API (application program interface) for front-end error information access, a front-end error information format pushed by the front end and the back end and carried front-end error information are specified, after the system server receives front-end error information data, the integrity of the front-end error information is further verified, the front-end error information which is not in accordance is filtered, and the required front-end error information is extracted.
As a preferred embodiment, the carried front-end error information provided by the present invention includes host information, error scene information, development information, host network card information, and system information; the error scene information comprises error information output to the console, a state code and information responded by the system server, and the development information comprises developer information, development time and project ID.
As a preferred embodiment, in step S21, Ceph is used to convert centralized computation of the system server into distributed computation, that is, the system server configures distributed storage nodes. The invention adopts the distributed storage technology, improves the speed of dividing the disk of the virtual machine, can use Ceph to convert the centralized calculation of the system server into distributed calculation, greatly accelerates the speed of dividing and loading the disk, is convenient for the quick creation of the virtual machine, and quickly executes various snapshot operations and stores corresponding services and operating system templates.
As a preferred embodiment, the cloud computing mirror image system server configures a basic development environment, a platform, a qemu-guest-agent for communication inside the virtual machine, and a qcow2 or a raw disk object of a service program related to a service, wherein the qemu-guest-agent adds function functions of uploading files, deleting files, and executing commands, and thus all tasks of operating the file system inside the virtual machine can be completed.
As a preferred embodiment, the management platform interface in step S23 provided by the present invention includes an interface for a user to call the system server to operate the virtual machine, and an interface for a user to call the system server to operate the internal file system of the virtual machine through qemu-guest-agent.
As a preferred embodiment, the design of the interface for the user to call the system server to operate the virtual machine requires secondary packaging of the API of the computing system server or the VMM management tool, so that the user provides host information or error scene information or developer information parameters to quickly locate the host to be debugged;
the host needing debugging is a virtual system server, directly calls a computing system server API to rapidly mark out a same disk object through a block node, and automatically configures through a network node, so that a virtual machine with the same error scene information can be created;
if the host needing debugging is a physical machine, designing extra field parameters in an interface, calling a computing system server API through the interface and on the basis of PaaS service provided by a block node, quickly uploading the additionally uploaded file parameters to an operating system through a Guest-Agent, executing a command to start the quick installation of an automatic script, if most of the service scenes are the same, directly providing SaaS service through the block node, calling the system server through a user according to requirements to operate the interface of a virtual machine internal file system through a qemu-Guest-Agent to execute simple configuration, and finally automatically configuring through a network node to obtain the same virtual scene host;
as a preferred embodiment, the interface for the user to call the system server to operate the internal file system of the virtual machine through qemu-guest provided by the invention is to perform secondary packaging on qemu-guest, and after a new function task is defined in qemu-guest-agent by a user, two parameters are designed on the interface, wherein the first parameter is a task function name, and the second parameter is a parameter of a task function.
As a preferred embodiment, step S24 provided by the present invention is specifically that the service sends the created login information and the feedback information of the management virtual machine, which are submitted by the user, to the requester as a response.
The cloud computing management platform such as OpenStack provides an API (application programming interface) for service access, and a system service end provided by the invention only needs to call one URL (uniform resource locator) to call the service of the OpenStack.
The invention realizes the process of quickly creating the error scene information host by the front-end information, such as: the method comprises the steps that A error scene information is sent by a front end, a system server receives the information and writes the information into a database, a host with the same error scene is obtained, the database can be inquired through the system server, the host where the A scene information is located is inquired, then information such as IP of the host is transmitted into the interface to serve as a parameter to position the host through calling an API (application programming interface) of a Nova-schedule of OpenStack computing resource service, the OpenStack finds a disk object of the host and then clones a new host, and then access information of the cloned host is obtained through calling the Nova-schedule API of the OpenStack.
The user recovers the process description of the error scene by the error scene information:
firstly, the service end provided by the invention needs to rely on a cloud computing management platform to obtain virtual resources (a host, a virtual network, virtual storage and the like), so that the cloud computing management platform such as openstack needs to be established, and the openstack is composed of a plurality of service end components, and the most basic is that Nova, Cinder, Neutron and Glance respectively provide computing resource scheduling, block storage, network and mirror image services.
When the cloud computing management platform is built, two technical points exist.
(1) The distributed computing storage technology can greatly accelerate the creation, deletion and modification speed of a disk, so that virtual resources can be obtained more quickly.
(2) And uploading virtual machine templates related to business in the cloud computing mirror image service, wherein the templates contain project codes of companies and basic development environments.
Generally, the front-end service is generally deployed in a virtual system server, so that the same virtual machine can be created only by calling a block storage service fast clone volume by using a cloud computing management platform. However, if a few cases are debugging on the programmer's own physical machine, a similar virtual machine can be created through the template, and then error codes are acquired through a shared file service, such as ftp or git, so that a similar development environment can be acquired in a short time and maximized.
The two steps are technical points for building a cloud computing management platform, and are also early preparation work for realizing the function of recovering the error scene.
For example, the user creates a virtual machine by making a request to the system server, for example, creating a virtual machine (which the error message specifies) and then the system server calls the interface provided by the platform to create the virtual machine.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. The method for realizing front-end cooperative debugging based on cloud computing and network programming is characterized by comprising the following steps of:
s1: using a front-end error information storage model to store the front-end error information; the front-end error information storage model comprises a database, a system server and a front-end transmission interface, wherein the database is interactively connected with the system server, and the outlet end of the front-end transmission interface is connected with the inlet end of the system server;
step S1 specifically includes the following steps:
s11: the front-end compiling JS module is a client side which communicates with a system server side and comprises front-end error information, the JS module sends the front-end error information to the system server side through a network programming technology, and the network programming technology comprises an Ajax technology and a WebSocket protocol;
s12: the system server receives the front-end error information in the step S11 to perform data filtering processing;
s13: the front-end error information obtained in the step S12 is subjected to persistence processing, and the system server may design a corresponding field according to the received data front-end error information, design a corresponding form according to a triple-paradigm, write the front-end error information into a database, and write the front-end error information into a text;
s14: the system server provides a plurality of interfaces to inquire error scene information, and a caller inquires corresponding error scene information by calling the interfaces;
s15: after receiving the request for downloading the front-end error information, the system server performs visual processing on the corresponding front-end error information extracted from the database and then returns the front-end error information;
s2: restoring the error scene by querying the error scene information transmitted in step S1 in the database;
step S2 specifically includes the following steps:
s21: the cloud computing block stores, and a system server configures distributed storage nodes;
s22: a server side of the cloud computing mirror image system configures a corresponding template;
s23: the system server provides an interface for packaging and calling the cloud computing management platform:
s24: the system server side processes result information through the cloud computing management platform and returns the result information to the user;
s25: and operating the virtual machine with the error scene by the user, logging in through the remote login resource, and calling the cloud computing management platform interface to close or delete the virtual machine after completing the debugging task.
2. The method for achieving front-end cooperative debugging based on cloud computing and network programming according to claim 1, wherein in step S1, if the front-end error information is not a frequently-sent scene, the JS module is connected to the system server by Ajax technology, and if the front-end error information is a frequently-sent scene or the front-end needs to receive feedback information from the system server, the JS module and the system server are connected by WebSocket protocol to achieve the times of mutual pushing of front-end data and back-end data and accessing the system server.
3. The method for implementing front-end cooperative debugging based on cloud computing and network programming of claim 1, wherein the specific steps of receiving the front-end error information in step S11 by the system server in step S12 and performing data filtering processing are as follows:
the system server provides an API (application program interface) for front-end error information access, a front-end error information format pushed by the front end and the back end and carried front-end error information are specified, after the system server receives front-end error information data, the integrity of the front-end error information is further verified, the front-end error information which is not in accordance is filtered, and the required front-end error information is extracted.
4. The method for realizing front-end cooperative debugging based on cloud computing and network programming according to claim 3, wherein the carried front-end error information comprises host information, error scene information, development information, host network card information and system information; the error scene information comprises error information output to the console, a state code and information responded by the system server, and the development information comprises developer information, development time and project ID.
5. The method for implementing front-end cooperative debugging based on cloud computing and network programming according to claim 1, wherein in step S21, Ceph is used to convert centralized computing of the system server into distributed computing, that is, the system server configures distributed storage nodes.
6. The method for implementing front-end collaborative debugging based on cloud computing and network programming as claimed in claim 1, wherein a cloud computing mirror image system server configures a basic development environment, a platform, a qemu-guest-agent for communication inside a virtual machine and a qcow2 or raw disk object of a service program related to business, wherein the qemu-guest-agent can complete all tasks for operating the internal file system of the virtual machine by adding function functions of uploading files, deleting files and executing commands.
7. The method for implementing front-end collaborative debugging based on cloud computing and network programming according to claim 6, wherein the management platform interface in step S23 includes an interface for a user to call a system server to operate a virtual machine and an interface for the user to call the system server to operate an internal file system of the virtual machine through qemu-guest-agent.
8. The method for implementing front-end cooperative debugging based on cloud computing and network programming according to claim 7, wherein the design of the interface for the user to call the system service end to operate the virtual machine requires secondary packaging of a computing system service end API or a VMM management tool, so that the user provides host information or error scene information or developer information parameters to quickly locate the host to be debugged;
the host needing debugging is a virtual system server, directly calls a computing system server API to rapidly mark out a same disk object through a block node, and automatically configures through a network node, so that a virtual machine with the same error scene information can be created;
if the host needing debugging is a physical machine, the additionally uploaded file parameters are quickly uploaded to an operating system through Guest-Agent on the basis of PaaS service provided by calling a computing system server API through an interface by designing additional field parameters in the interface through the interface, an execution command starts automatic script quick installation, if most of service scenes are the same, SaaS service is directly provided through the block nodes, the user calls the system server to operate the interface of the internal file system of the virtual machine through qemu-Guest-Agent according to requirements to call qemu-Guest to execute simple configuration, and finally the same virtual scene host can be obtained through network node automatic configuration.
9. The method for implementing front-end collaborative debugging based on cloud computing and network programming according to claim 8, wherein the interface for the user to call the system server to operate the internal file system of the virtual machine through qemu-guest is a secondary encapsulation of qemu-guest, and after a new function task is customized in qemu-guest-agent, two parameters are designed at the interface, wherein a first parameter is a task function name and a second parameter is a task function parameter.
10. The method for implementing front-end collaboration debugging based on cloud computing and network programming according to claim 9,
step S24 is a specific step in which the service sends the created login information and the feedback information of the management virtual machine, which are submitted by the user, to the requester as a response.
CN202010142203.XA 2020-03-04 2020-03-04 Method for realizing front-end cooperative debugging based on cloud computing and network programming Active CN111367804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010142203.XA CN111367804B (en) 2020-03-04 2020-03-04 Method for realizing front-end cooperative debugging based on cloud computing and network programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010142203.XA CN111367804B (en) 2020-03-04 2020-03-04 Method for realizing front-end cooperative debugging based on cloud computing and network programming

Publications (2)

Publication Number Publication Date
CN111367804A CN111367804A (en) 2020-07-03
CN111367804B true CN111367804B (en) 2020-09-29

Family

ID=71206672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010142203.XA Active CN111367804B (en) 2020-03-04 2020-03-04 Method for realizing front-end cooperative debugging based on cloud computing and network programming

Country Status (1)

Country Link
CN (1) CN111367804B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113609012B (en) * 2021-07-30 2024-03-29 南京控维通信科技有限公司 Method and system for normalized processing back-end exception reporting
CN114546823B (en) * 2021-12-27 2023-09-12 芯华章科技股份有限公司 Method for reproducing debug scenario of logic system design and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491122A (en) * 2015-12-02 2016-04-13 中国民用航空总局第二研究所 System for fusing and exchanging data among multiple control centers
CN108469745A (en) * 2018-03-05 2018-08-31 中国神华能源股份有限公司 Operating condition in-circuit emulation method and on-line simulation system for gas-fired station

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9992268B2 (en) * 2012-09-27 2018-06-05 Oracle International Corporation Framework for thin-server web applications
CN103078955A (en) * 2013-01-29 2013-05-01 东北大学 Device and method for transferring state of cloud computing platform server
US11030055B2 (en) * 2013-03-15 2021-06-08 Amazon Technologies, Inc. Fast crash recovery for distributed database systems
CN113407633A (en) * 2018-09-13 2021-09-17 华东交通大学 Distributed data source heterogeneous synchronization method
CN110809017B (en) * 2019-08-16 2022-02-25 云南电网有限责任公司玉溪供电局 Data analysis application platform system based on cloud platform and micro-service framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491122A (en) * 2015-12-02 2016-04-13 中国民用航空总局第二研究所 System for fusing and exchanging data among multiple control centers
CN108469745A (en) * 2018-03-05 2018-08-31 中国神华能源股份有限公司 Operating condition in-circuit emulation method and on-line simulation system for gas-fired station

Also Published As

Publication number Publication date
CN111367804A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN110389900B (en) Distributed database cluster testing method and device and storage medium
US20210117895A1 (en) Systems and Methods for Cross-Platform Scheduling and Workload Automation
CN107766126B (en) Container mirror image construction method, system and device and storage medium
Geist et al. Network‐based concurrent computing on the PVM system
CN108737168B (en) Container-based micro-service architecture application automatic construction method
CN110083455B (en) Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
CN111930521A (en) Method and device for deploying application, electronic equipment and readable storage medium
JPH10124376A (en) Method for converting input consisting of character code string and outputting converted input in computer system
CN108243012B (en) Charging application processing system, method and device in OCS (online charging System)
CN111367804B (en) Method for realizing front-end cooperative debugging based on cloud computing and network programming
CN114064152B (en) Embedded multi-core debugging system based on dynamic loading and debugging method thereof
CN115292026B (en) Management method, device and equipment of container cluster and computer readable storage medium
CN104731943A (en) Server and data processing method
CN111338893A (en) Process log processing method and device, computer equipment and storage medium
CA2973896C (en) Recovery execution system using programatic generation of actionable workflows
CN111708550A (en) Application deployment method and device, computer equipment and storage medium
KR20230079348A (en) Cloud code development system, method, device, device and storage medium
JPH06259358A (en) Application control method using standard protocol
CN112328470A (en) Automatic operation and maintenance testing method, device, equipment and storage medium
CN115237547B (en) Unified container cluster hosting system and method for non-invasive HPC computing cluster
CN103067507A (en) Internet cloud computing resource virtualization packaging system and method
CN112764825B (en) Service integration system, corresponding device and storage medium
CN114443050A (en) Novel log display method based on CI engine assembly line
CN115033290A (en) Instruction set-based micro-service splitting method and device and terminal equipment
WO2021243665A1 (en) Compilation method, compilation apparatus, compilation system, storage medium, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant