CN114490348A - Data debugging method and device, electronic equipment and computer readable storage medium - Google Patents

Data debugging method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114490348A
CN114490348A CN202111681451.2A CN202111681451A CN114490348A CN 114490348 A CN114490348 A CN 114490348A CN 202111681451 A CN202111681451 A CN 202111681451A CN 114490348 A CN114490348 A CN 114490348A
Authority
CN
China
Prior art keywords
debugging
server
service
request
cluster
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.)
Pending
Application number
CN202111681451.2A
Other languages
Chinese (zh)
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.)
Yidu Cloud Beijing Technology Co Ltd
Original Assignee
Yidu Cloud Beijing Technology 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 Yidu Cloud Beijing Technology Co Ltd filed Critical Yidu Cloud Beijing Technology Co Ltd
Priority to CN202111681451.2A priority Critical patent/CN114490348A/en
Publication of CN114490348A publication Critical patent/CN114490348A/en
Pending legal-status Critical Current

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/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure provides a data debugging method, a data debugging device, electronic equipment and a storage medium, and relates to the technical field of computers. The specific implementation scheme is as follows: generating a service debugging request, wherein the service debugging request is used for debugging services provided by a debugging server in a cluster and comprises debugging data; modifying the service debugging request to add a label of a debugging server in the cluster to the service debugging request; and sending the service debugging request to a routing server in the cluster so that the routing server in the cluster sends the service debugging request to the debugging server based on the label, thereby improving the efficiency of data debugging.

Description

Data debugging method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data debugging method and apparatus, an electronic device, and a computer-readable storage medium.
Background
In a medical big data scene, because data is only stored locally in a hospital and data structures and contents of different hospitals are different, a data environment of a specific hospital is depended on in the process of developing functions or debugging problems, codes to be verified need to be deployed to a target cluster of the hospital, and then whether a result is in line with expectations is verified through a product entrance.
However, the link process of deploying the code to be verified to the target cluster for verifying the result involves pushing the mirror image to the private cloud, which results in long time consumption, high verification cost and extremely low verification efficiency of the whole process.
Disclosure of Invention
The disclosure provides a data debugging method, a data debugging device, an electronic device and a storage medium.
According to a first aspect of the present disclosure, a data debugging method is provided, which is applied to a terminal device, and includes:
generating a service debugging request, wherein the service debugging request is used for debugging services provided by a debugging server in a cluster and comprises debugging data;
modifying the service debugging request to add a label of a debugging server in the cluster to the service debugging request;
and sending the service debugging request to a routing server in a cluster so that the routing server in the cluster sends the service debugging request to the debugging server based on the label.
According to a second aspect of the present disclosure, there is provided a data debugging method applied to a debugging server in a cluster, including:
receiving a service debugging request sent by a routing server in the cluster, wherein the service debugging request is used for debugging the service provided by the debugging server in the cluster and comprises debugging data;
sending feedback information aiming at the debugging data to the terminal equipment based on the service debugging request;
the service debugging request is sent to a routing server in the cluster by terminal equipment, and the routing server in the cluster determines the debugging server for receiving the service debugging request based on a label carried by the service debugging request.
According to a third aspect of the present disclosure, there is provided a data debugging method applied to a routing server in a cluster, including:
sending the debugging service request to a debugging server corresponding to a label based on the label carried in the received debugging service request and the registration information of the debugging server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
According to a fourth aspect of the present disclosure, there is provided a data debugging apparatus applied to a terminal device, the apparatus including:
the device comprises a generating unit, a debugging unit and a processing unit, wherein the generating unit is used for generating a service debugging request which is used for debugging the service provided by a debugging server in a cluster and comprises debugging data; (ii) a
A modifying unit, configured to modify the service debugging request to add a tag of a debugging server in a cluster to the service debugging request;
and the first sending unit is used for sending the service debugging request to a routing server in a cluster so as to enable the routing server in the cluster to send the service debugging request to the debugging server based on the label.
According to a fifth aspect of the present disclosure, there is provided a data debugging apparatus applied to a debugging server in a cluster, the apparatus including:
a second receiving unit, configured to receive a service debugging request sent by a routing server in the cluster, where the service debugging request is used to debug a service provided by a debugging server in the cluster and includes debugging data;
a second sending unit, configured to send, based on the service debugging request, feedback information for the debugging data to the terminal device;
the service debugging request is sent to a routing server in the cluster by terminal equipment, and the routing server in the cluster determines the debugging server for receiving the service debugging request based on a label carried by the service debugging request.
According to a sixth aspect of the present disclosure, there is provided a data debugging apparatus applied to a routing server in a cluster, the apparatus including:
the third sending unit is used for sending the debugging service request to a debugging server corresponding to the label based on the label carried in the received debugging service request and the registration information of the debugging server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
According to a seventh aspect of the present disclosure, there is provided an electronic apparatus comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the data debugging method described above.
An eighth aspect of the present disclosure provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to execute the data debugging method described above.
A ninth aspect of the present disclosure provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the data debugging method described above.
According to the data debugging method provided by the disclosure, a service debugging request is generated, and the service debugging request is used for debugging the service provided by a debugging server in a cluster and comprises debugging data;
modifying the service debugging request to add a label of a debugging server in the cluster to the service debugging request; and sending the service debugging request to a routing server in the cluster so that the routing server in the cluster sends the service debugging request to the debugging server based on the label, thereby improving the efficiency of data debugging.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram illustrating an alternative flow of data debugging in the related art;
FIG. 2 is a schematic diagram illustrating an alternative flow chart of a data debugging method provided by an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating another alternative data debugging method provided by the embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating a further alternative data debugging method provided by the embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating yet another alternative flow chart of a data debugging method provided by an embodiment of the present disclosure;
fig. 6 shows a schematic flow chart of yet another alternative of the data debugging method provided by the embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating an alternative structure of a data debugging apparatus provided in an embodiment of the present disclosure;
fig. 8 is a schematic diagram illustrating another alternative structure of a data debugging apparatus provided in the embodiment of the present disclosure;
fig. 9 is a schematic diagram illustrating yet another alternative structure of a data debugging apparatus provided in the embodiment of the present disclosure;
FIG. 10 shows a schematic block diagram of an example electronic device that may be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
First, the nouns and abbreviations involved in the present disclosure are explained:
private Clouds (Private Clouds) are built for individual use by one customer and thus provide the most effective control of data, security and quality of service. The company owns the infrastructure and can control the manner in which applications are deployed on this infrastructure. The private cloud can be deployed in a firewall of an enterprise data center, or can be deployed in a safe host hosting place, and the core attribute of the private cloud is a proprietary resource. The data of the hospital are stored in the corresponding private cloud, and the target cluster of the hospital is deployed in the private cloud hospital (the private cloud corresponding to the hospital) and cannot be used by leaving the private cloud (namely, the data cannot be taken out of the hospital); in the related art, data can be debugged only by mirroring to a private cloud.
Public Clouds (Public Clouds), which generally refer to usable Clouds provided by third-party providers for users, are generally available via the Internet, and may be free or low-cost, and the core attribute of the Public Clouds is shared resource service. There are many instances of such a cloud that can provide services throughout the open public network today.
Time Division Multiplexing (TDM), which is the purpose of Multiplexing by using different Time periods of the same physical connection to transmit different signals, can be achieved. The method is applied to transmitting multiplex data by one line in the network.
Cookies, and sometimes their complex forms. The type "cookie" is data (usually encrypted) stored on the user's local terminal for Session tracking by some websites for user identity identification, and information stored temporarily or permanently by the user's client computer
A physical machine is a reference to a physical computer relative to a virtual machine. Physical machines provide a virtual machine with a hardware environment, sometimes referred to as a "host" or "host".
In a medical big data scene, since data is only stored in a local hospital (or a private cloud hospital), and differences exist between data structures and contents of different hospitals, so that a data environment of a specific hospital is strongly depended on when a function is developed or a debugging problem occurs, codes to be verified need to be deployed to a target cluster (a cluster in the present disclosure) of the hospital, and then whether a result is in line with expectations is verified through a product entrance.
In order to utilize the data environment of a specific hospital, a developer needs to package codes to be verified, send the codes to a target cluster of the hospital for deployment, then execute corresponding operations through a product entrance, observe results, and verify whether a logic flow meets expectations with log information.
Fig. 1 shows an alternative flow diagram of data debugging in the related art.
As shown in fig. 1, a link from code modification to final verification is too long, and the operation of pushing a mirror image to a private cloud is involved in the middle, but in an actual scenario, unlike an Internet Data Center (IDC) of a public cloud, the exit bandwidth of a private cloud hospital is generally not large, so that the whole pushing process is extremely time-consuming, resulting in too high verification cost and extremely low efficiency of the whole process. In addition, if a plurality of developers need to check different problems of the same service in the same private cloud, the development and debugging efficiency is reduced again because the time division multiplexing is only realized.
The method comprises the steps of directly logging in a target private cloud cluster through terminal equipment, starting a debugging server (or a service container) for development and debugging in a label mode, registering information such as a service address and a port of the container under a routing server corresponding to a server through a specified label, setting corresponding network configuration information in a browser of the terminal equipment, distributing a debugging request to the corresponding server through the terminal equipment, and realizing development and debugging of instant code modification or verification of split-link administration so as to solve all or part of technical problems.
Fig. 2 is a schematic flow chart illustrating an alternative data debugging method provided by the embodiment of the present disclosure, which will be described according to various parts.
Step S101, generating a service debugging request.
In some embodiments, the terminal device generates a service debugging request, where the service debugging request is used for debugging a service provided by a debugging server in a cluster, and the debugging service request includes debugging data.
In some optional embodiments, before the terminal device generates the service debugging request, the terminal device may log in the debugging server, so that the debugging server sends a service registration request to the routing server, so that the routing server establishes a correspondence between the tag and the debugging server. Optionally, the terminal device may log in the debugging server based on a browser of the terminal device.
And step S102, modifying the service debugging request.
In some embodiments, the terminal device modifies the service commissioning request based on the tag of the commissioning server in the cluster to add the tag of the commissioning server in the cluster to the service commissioning request.
In particular implementation, the apparatus may modify the service debug request by one of the following steps: configuring cookies comprising the tags, and adding the cookies to the service debugging request; adding the label to a Uniform Resource Locator (URL) corresponding to the service debugging request; and adding the label to a request header of the service debugging request.
Specifically, the terminal device may configure cookies stored in a browser of the terminal device, for example, configure cookies including a tag of the debugging server; or the terminal device may add the tag of the debugging server to a URL corresponding to the browser of the terminal device, so as to add the tag to the URL corresponding to the service debugging request; or, the terminal device may further add a tag corresponding to the debugging server to a header of the service debugging request.
Step S103, sending the service debugging request to a routing server in the cluster.
In some embodiments, the terminal device sends the modified service debugging request to a routing server in the cluster; and the routing server determines a debugging server for receiving the service debugging request based on the label carried in the modified service debugging request, and routes the service debugging request to the debugging server.
In some optional embodiments, the terminal device may further receive feedback information of the debugging server for the debugging data. Specifically, the debugging server may send the feedback information to the terminal device according to path information carried in the debugging request.
Thus, according to the data debugging method provided by the embodiment of the disclosure, by generating a service debugging request, the service debugging request is used for debugging the service provided by the debugging server in the cluster and comprises debugging data; modifying the service debugging request to add a label of a debugging server in the cluster to the service debugging request; and sending the service debugging request to a routing server in a cluster so that the routing server in the cluster sends the service debugging request to the debugging server based on the label. When the terminal equipment accesses the cluster, the service debugging request can be sent to the corresponding debugging server, and the feedback information of the debugging server can also directly reach the browser of the terminal equipment; multiplexing debugging of different problems of the same server in the same cluster by a plurality of terminal devices at the same time is realized through a gray level routing mode of a branch link, for example, the plurality of terminal devices send service debugging requests to a routing server in the cluster; the routing server sends the service debugging request to a corresponding debugging server based on the label carried in the service debugging request; the debugging server directly sends the feedback information to the corresponding terminal equipment based on the path included in the service debugging request, so that the development and debugging link is shortened, meanwhile, the problem that a plurality of terminal equipment wait in time sharing when different problems of the same service are checked in the same cluster is avoided, and the development and debugging efficiency in the cluster is improved.
Fig. 3 shows another alternative flowchart of the data debugging method provided in the embodiment of the present disclosure, which will be described according to various steps.
Step S201, receiving a service debugging request sent by a routing server in the cluster.
In some embodiments, the debug server receives a service debug request sent by a routing server in the cluster, where the service debug request is used for debugging a service provided by the debug server in the cluster and includes debug data.
In some optional embodiments, before the debugging server receives the service debugging request, the debugging server may further send a service registration request to the routing server in response to the terminal device logging in a debugging server in the cluster, so that the routing server establishes a correspondence between the tag and the debugging server.
In specific implementation, the debugging server may register the debugging server to a routing server in the cluster based on a label of the debugging server in the cluster, and obtain registration information corresponding to the debugging server; wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
Step S202, based on the service debugging request, sending feedback information aiming at the debugging data to the terminal equipment.
In some embodiments, the debug server generates feedback information for debug data included in the service debug request based on the service debug request; and sending feedback information aiming at the debugging data to the terminal equipment based on the path information included in the service debugging request.
Thus, the data debugging method provided by the embodiment of the disclosure receives a service debugging request sent by a routing server in the cluster, wherein the service debugging request is used for debugging the service provided by the debugging server in the cluster and comprises debugging data; and sending feedback information aiming at the debugging data to the terminal equipment based on the service debugging request. When the terminal equipment accesses the cluster, the service debugging request can be sent to the corresponding debugging server, and the feedback information of the debugging server can also directly reach the browser of the terminal equipment; multiplexing debugging of different problems of the same server in the same cluster by a plurality of terminal devices at the same time is realized through a gray level routing mode of a branch link, for example, the plurality of terminal devices send service debugging requests to a routing server in the cluster; the routing server sends the service debugging request to a corresponding debugging server based on a label carried by the service debugging request; the debugging server directly sends the feedback information to the corresponding terminal equipment based on the path information included by the service debugging request, so that the development and debugging links are shortened, the problem that a plurality of terminal equipment wait in a time-sharing mode when different problems of the same service are checked in the same cluster is avoided, and the development and debugging efficiency in the cluster is improved.
Fig. 4 shows a schematic flow chart of yet another alternative of the data debugging method provided by the embodiment of the present disclosure, which will be described according to various steps.
Step S301, based on the label carried in the received debugging service request and the registration information of the debugging server, sending the debugging service request to the debugging server corresponding to the label.
In some embodiments, a routing server in a cluster determines a debug server receiving a debug service request based on a tag carried in the received debug service request and registration information of the debug server, and sends the debug service request to a debug server corresponding to the tag.
In specific implementation, the address of the debug server and/or the port number of the debug server receiving the debug service request are determined based on the registration information of the debug server and the label of the debug server, and the debug service request is sent to the debug server.
In some embodiments, before step S301, the method may further comprise:
step S300, determining the registration information of the debugging server based on the service registration request sent by the debugging server.
In some embodiments, the routing server determines registration information for the debug server based on a tag of the debug server; wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
Thus, by the data debugging method provided by the embodiment of the disclosure, when the terminal device accesses the cluster, the debugging service request can be sent to the corresponding debugging server, and the feedback information of the debugging server can also directly reach the browser of the terminal device; multiplexing debugging of different problems of the same server in the same cluster by a plurality of terminal devices at the same time is realized through a gray level routing mode of a branch link, for example, the plurality of terminal devices send debugging service requests to a routing server in the cluster; the routing server sends the debugging service request to a corresponding debugging server based on a label carried by the debugging service request; the debugging server directly sends the feedback information to the corresponding terminal equipment based on the path information corresponding to the debugging service request, so that the development and debugging link is shortened, the problem of time-sharing waiting when a plurality of terminal equipment check different problems of the same service in the same cluster is avoided, and the development and debugging efficiency in the cluster is improved.
Fig. 5 shows a schematic flow chart of yet another alternative of the data debugging method provided by the embodiment of the present disclosure, which will be described according to various steps.
Step S401, the terminal equipment logs in the debugging server.
In some embodiments, a terminal device is connected to a cluster corresponding to the debugging server, logs in the debugging server in the cluster, and changes data in the debugging server; such as modifying the authentication code or modifying the policy code.
In step S402, the debug server sends a service registration request to the routing server.
In some embodiments, the debugging server sends a service registration request to the routing server in response to the terminal device logging in a debugging server in the cluster, so that the routing server establishes a correspondence between the tag and the debugging server.
In specific implementation, the debugging server responds to the terminal device logging in the debugging server in the cluster, and registers the service address and/or the port number of the debugging server into the routing server of the cluster by using a label; wherein the tag is used to characterize the use of the server.
In some embodiments, the routing server determines registration information for the debug server based on a tag of the debug server; wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
In step S403, the terminal device generates a service debug request.
In some embodiments, the terminal device generates a service debugging request, where the service debugging request is used for debugging a service provided by a debugging server in a cluster, and the debugging service request includes debugging data.
In some optional embodiments, before the terminal device generates the service debugging request, the terminal device may log in the debugging server, so that the debugging server sends a service registration request to the routing server, so that the routing server establishes a correspondence between the tag and the debugging server. Optionally, the terminal device may log in the debugging server based on a browser of the terminal device.
And step S404, the terminal equipment modifies the service debugging request.
In some embodiments, the terminal device modifies the service commissioning request based on the tag of the commissioning server in the cluster to add the tag of the commissioning server in the cluster to the service commissioning request.
In particular implementation, the apparatus may modify the service debug request by one of the following steps: configuring cookies comprising the tags, and adding the cookies to the service debugging request; adding the label to a Uniform Resource Locator (URL) corresponding to the service debugging request; and adding the label to a request header of the service debugging request.
Specifically, the terminal device may configure cookies stored in a browser of the terminal device, for example, configure cookies including a tag of the debugging server; or the terminal device may add the tag of the debugging server to a URL corresponding to the browser of the terminal device, so as to add the tag to the URL corresponding to the service debugging request; or, the terminal device may further add a tag corresponding to the debugging server to a header of the service debugging request.
Step S405, the terminal device sends a service debugging request to a routing server in the cluster.
In some embodiments, the terminal device sends the modified service debugging request to a routing server in the cluster; and the routing server determines a debugging server for receiving the service debugging request based on the label carried in the modified service debugging request, and routes the service debugging request to the debugging server.
In some optional embodiments, the terminal device may further receive feedback information of the debugging server for the debugging data. Specifically, the debugging server may send the feedback information to the terminal device according to path information carried in the debugging request.
Step S406, the routing server sends the debug service request to the debug server.
In some embodiments, a routing server in a cluster receives a debugging service request sent by the terminal device, determines a debugging server receiving the debugging service request based on a tag carried in the received debugging service request and registration information of the debugging server, and sends the debugging service request to a debugging server corresponding to the tag.
In specific implementation, the address of the debug server and/or the port number of the debug server receiving the debug service request are determined based on the registration information of the debug server and the label of the debug server, and the debug service request is sent to the debug server.
In step S407, the debug server receives the service debug request.
In some embodiments, the debug server receives a service debug request sent by a routing server in the cluster, where the service debug request is used for debugging a service provided by the debug server in the cluster and includes debug data.
In some optional embodiments, before receiving the service debug request, the debug server may further send a service registration request to the routing server in response to the terminal device logging in a debug server in the cluster, so that the routing server establishes a correspondence between the tag and the debug server.
In specific implementation, the debugging server may register the debugging server to a routing server in the cluster based on a label of the debugging server in the cluster, and obtain registration information corresponding to the debugging server; wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
Step S408, the debugging server sends the feedback information for the debugging data to the terminal device based on the service debugging request.
In some embodiments, the debug server generates feedback information for debug data included in the service debug request based on the service debug request; and sending feedback information aiming at the debugging data to the terminal equipment based on the path information included in the service debugging request.
In some optional embodiments, the browser of the terminal device displays the feedback information to implement verification of the debugging data.
In fig. 5, the types of the target server and the debugging server are the same, the server where the terminal device sends the debugging data is the debugging server, and the server where the terminal device has not sent the debugging data (or has completed debugging and is not currently debugging) is the target server.
Therefore, by the data debugging method provided by the embodiment of the disclosure, operations such as data packaging, mirror image construction, pushing, deployment and the like in the related technology can be abandoned, the terminal device can perform real-time online data debugging through the browser, and obtain corresponding feedback information (data debugging result), so that the troubleshooting efficiency of a single problem is improved; in addition, multiplexing debugging of different problems of the same server in the same cluster by a plurality of terminal devices at the same time is realized through a gray level routing mode of a branch link, for example, the plurality of terminal devices send service debugging requests to a routing server in the cluster; the routing server sends the service debugging request to a corresponding debugging server based on a label carried by the service debugging request; the debugging server directly sends the feedback information to the corresponding terminal equipment based on the path information included by the service debugging request, so that the development and debugging link is shortened, meanwhile, the problem that a plurality of terminal equipment wait in a time-sharing mode when different problems of the same service are checked in the same cluster is avoided, and the development and debugging efficiency in the cluster is improved.
Fig. 6 shows a further alternative flowchart of the data debugging method provided by the embodiment of the present disclosure, which will be described according to various steps.
Fig. 6 illustrates a case where a plurality of terminal devices are connected to a cluster.
Respectively logging in a debugging server A, a debugging server B and a debugging server C by a terminal device A, a terminal device B and a terminal device C; the debugging server A responds to the login operation of the terminal equipment A, and registers the debugging server A to a routing server in a cluster by using a label A; the debugging server B responds to the login operation of the terminal equipment B, and registers the debugging server B to a routing server in a cluster by using a label B; and the debugging server C responds to the login operation of the terminal equipment C, and registers the debugging server C with a label C to a routing server in the cluster.
After the subsequent routing server receives the service debugging request, determining a debugging server for receiving the service debugging request based on a label carried in the service debugging request, and sending the service debugging request to a corresponding debugging server; and after the debugging server determines feedback information of debugging data included in the service debugging request, the debugging server sends the feedback information to corresponding terminal equipment based on a path corresponding to the service debugging request.
Therefore, according to the data debugging method provided by the embodiment of the disclosure, multiplexing debugging of different problems of the same server in the same cluster by a plurality of terminal devices at the same time is realized in a link-division gray level routing manner, for example, the plurality of terminal devices send service debugging requests to a routing server in the cluster; the routing server sends the service debugging request to a corresponding debugging server based on a label carried by the service debugging request; the debugging server directly sends the feedback information to the corresponding terminal equipment based on the path information included by the service debugging request, so that the development and debugging link is shortened, meanwhile, the problem that a plurality of terminal equipment wait in a time-sharing mode when different problems of the same service are checked in the same cluster is avoided, and the development and debugging efficiency in the cluster is improved.
In some alternative embodiments, the debugging server involved in the above steps S101 to S102, S201 to S202, S300 to S301, and S401 to S408 may be replaced by a physical machine, and the code on the physical machine is modified by mounting and installing the code on the physical machine into the container. The container comprises a container corresponding to the cluster.
Fig. 7 is a schematic diagram illustrating an alternative structure of a data debugging apparatus provided in an embodiment of the present disclosure, which will be described according to various parts.
In some embodiments, the data debugging apparatus 500 is applied to a terminal device, and the debugging apparatus 500 includes: a generating unit 501, a modifying unit 502 and a first sending unit 503.
The generating unit 501 is configured to generate a service debugging request, where the service debugging request is used to debug a service provided by a debugging server in a cluster and includes debugging data; (ii) a
The modifying unit 502 is configured to modify the service debugging request, so as to add a tag of a debugging server in a cluster to the service debugging request;
the first sending unit 503 is configured to send the service debug request to a routing server in a cluster, so that the routing server in the cluster sends the service debug request to the debug server based on the tag.
In some embodiments, the data debugging apparatus 500 may further include: a logging unit 504.
The login unit 504 is configured to log in the debug server before generating the service debug request, so that the debug server sends a service registration request to the routing server, and the routing server establishes a correspondence between the tag and the debug server.
The modifying unit 502 is specifically configured to:
configuring cookies comprising the tags, and adding the cookies to the service debugging request;
adding the label to a Uniform Resource Locator (URL) corresponding to the service debugging request;
and adding the label to a request header of the service debugging request.
In some embodiments, the data debugging apparatus 500 may further include: a first receiving unit 505.
The first receiving unit 505 is configured to receive, based on the network configuration information corresponding to the terminal device, feedback information sent by the debugging server for the debugging data.
Fig. 8 is a schematic diagram illustrating another alternative structure of a data debugging apparatus provided in an embodiment of the present disclosure, which will be described according to various parts.
In some embodiments, the data debugging apparatus 600 is applied to a debugging server; the data debugging apparatus 600 includes: a second receiving unit 601 and a second transmitting unit 602.
The second receiving unit 601 is configured to receive a service debugging request sent by a routing server in the cluster, where the service debugging request is used to debug a service provided by a debugging server in the cluster and includes debugging data;
a second sending unit 602, configured to send, based on the service debugging request, feedback information for the debugging data to the terminal device;
the service debugging request is sent to a routing server in the cluster by terminal equipment, and the routing server in the cluster determines the debugging server for receiving the service debugging request based on a label carried by the service debugging request.
In some embodiments, the data debugging apparatus 600 may further include: a registration unit 603.
The registering unit 603 is specifically configured to send a service registration request to the routing server in response to the terminal device logging in the debugging server in the cluster, so that the routing server establishes a corresponding relationship between the tag and the debugging server.
The registering unit 603 is specifically configured to register the debug server to a routing server in the cluster based on a label of the debug server in the cluster, and obtain registration information corresponding to the debug server; wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
Fig. 9 is a schematic diagram illustrating still another alternative structure of a data debugging apparatus provided in an embodiment of the present disclosure, which will be described according to various parts.
In some embodiments, the data debugging apparatus 700 is applied to a routing server; the data debugging apparatus 700 comprises: a third transmitting unit 701.
The third sending unit 701 is configured to send the debug service request to the debug server corresponding to the tag based on the tag carried in the received debug service request and the registration information of the debug server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
In some embodiments, the data debugging apparatus 700 may further include: a third determination unit 702.
The third determining unit is configured to determine registration information of the debug server based on a service registration request sent by the debug server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 10 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 10, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as the data debugging method. For example, in some embodiments, the data debugging method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When the computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the data debugging method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the data debugging method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (16)

1. A data debugging method is applied to terminal equipment, and the method comprises the following steps:
generating a service debugging request, wherein the service debugging request is used for debugging services provided by a debugging server in a cluster and comprises debugging data;
modifying the service debugging request to add a label of a debugging server in the cluster to the service debugging request;
and sending the service debugging request to a routing server in a cluster so that the routing server in the cluster sends the service debugging request to the debugging server based on the label.
2. The method of claim 1, wherein prior to the generating the service debug request, the method further comprises:
and the terminal equipment logs in the debugging server so that the debugging server sends a service registration request to the routing server and the routing server establishes the corresponding relation between the label and the debugging server.
3. The method of claim 1, wherein the modifying the service debug request comprises one of:
configuring cookies comprising the tags, and adding the cookies to the service debugging request;
adding the label to a Uniform Resource Locator (URL) corresponding to the service debugging request;
and adding the label to a request header of the service debugging request.
4. The method of claim 1, wherein after sending the service commissioning request to the routing servers in the cluster, the method further comprises:
and receiving feedback information sent by the debugging server aiming at the debugging data.
5. A data debugging method is applied to a debugging server in a cluster, and the method comprises the following steps:
receiving a service debugging request sent by a routing server in the cluster, wherein the service debugging request is used for debugging the service provided by the debugging server in the cluster and comprises debugging data;
sending feedback information aiming at the debugging data to the terminal equipment based on the service debugging request;
the service debugging request is sent to a routing server in the cluster by terminal equipment, and the routing server in the cluster determines the debugging server for receiving the service debugging request based on a label carried by the service debugging request.
6. The method of claim 5, wherein before receiving the service commissioning request sent by the routing server in the cluster based on the label of the commissioning server, the method further comprises:
responding to the terminal equipment logging in the debugging server in the cluster, and sending a service registration request to the routing server so that the routing server establishes the corresponding relation between the label and the debugging server.
7. The method of claim 6, wherein sending the service registration request to the routing server comprises:
registering the debugging server to a routing server in the cluster based on the label of the debugging server in the cluster, and acquiring registration information corresponding to the debugging server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
8. A data debugging method is applied to a routing server in a cluster, and the method comprises the following steps:
sending the debugging service request to a debugging server corresponding to a label based on the label carried in the received debugging service request and the registration information of the debugging server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
9. The debugging method according to claim 8, wherein before sending the debugging service request to the debugging server corresponding to the tag based on the tag carried in the received debugging service request and the registration information of the debugging server, the method further comprises:
determining registration information of a debugging server based on a service registration request sent by the debugging server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
10. A data debugging device is characterized in that the device is applied to terminal equipment, and the device comprises:
the system comprises a generating unit, a debugging unit and a processing unit, wherein the generating unit is used for generating a service debugging request which is used for debugging the service provided by a debugging server in a cluster and comprises debugging data; (ii) a
A modifying unit, configured to modify the service debugging request to add a tag of a debugging server in a cluster to the service debugging request;
and the first sending unit is used for sending the service debugging request to a routing server in a cluster so as to enable the routing server in the cluster to send the service debugging request to the debugging server based on the label.
11. A data debugging apparatus, applied to a debugging server in a cluster, the apparatus comprising:
a second receiving unit, configured to receive a service debugging request sent by a routing server in the cluster, where the service debugging request is used to debug a service provided by a debugging server in the cluster and includes debugging data;
a second sending unit, configured to send, based on the service debugging request, feedback information for the debugging data to the terminal device;
the service debugging request is sent to a routing server in the cluster by terminal equipment, and the routing server in the cluster determines the debugging server for receiving the service debugging request based on a label carried by the service debugging request.
12. A data debugging device, applied to a routing server in a cluster, the device comprising:
the third sending unit is used for sending the debugging service request to a debugging server corresponding to the label based on the label carried in the received debugging service request and the registration information of the debugging server;
wherein the registration information includes a correspondence between the tag and an address of the debug server and/or a port number of the debug server.
13. A data debugging system is characterized by comprising terminal equipment, a debugging server in a cluster and a routing server in the cluster;
the terminal equipment generates a service debugging request, wherein the service debugging request is used for debugging the service provided by a debugging server in the cluster and comprises debugging data; modifying the service debugging request to add a label of a debugging server in the cluster to the service debugging request; sending the service debugging request to a routing server in the cluster;
the routing server sends the debugging service request to a debugging server corresponding to the label based on the label carried in the received debugging service request and the registration information of the debugging server;
the debugging server receives a service debugging request sent by a routing server in the cluster, and sends feedback information aiming at the debugging data to the terminal equipment based on the service debugging request;
and the terminal equipment receives feedback information sent by the debugging server aiming at the debugging data.
14. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4;
or to enable the at least one processor to perform the method of any one of claims 5-7;
or to enable the at least one processor to perform the method of any one of claims 8-9.
15. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4;
or, performing the method according to any one of claims 5-7;
or, performing the method according to any of claims 8-9.
16. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-4;
or, implementing the method according to any one of claims 5-7;
or, implementing a method according to any of claims 8-9.
CN202111681451.2A 2021-12-31 2021-12-31 Data debugging method and device, electronic equipment and computer readable storage medium Pending CN114490348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111681451.2A CN114490348A (en) 2021-12-31 2021-12-31 Data debugging method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111681451.2A CN114490348A (en) 2021-12-31 2021-12-31 Data debugging method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114490348A true CN114490348A (en) 2022-05-13

Family

ID=81509636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111681451.2A Pending CN114490348A (en) 2021-12-31 2021-12-31 Data debugging method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114490348A (en)

Similar Documents

Publication Publication Date Title
US10560538B2 (en) Integrated user interface for consuming services across different distributed networks
CN114787781A (en) System and method for enabling high availability managed failover services
US10924590B1 (en) Virtual workspace experience visualization and optimization
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN115604144A (en) Test method and device, electronic equipment and storage medium
CN111712799B (en) Automatic distribution of models for execution on non-edge devices and edge devices
CN113946816A (en) Cloud service-based authentication method and device, electronic equipment and storage medium
US9501303B1 (en) Systems and methods for managing computing resources
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository
CN117149248A (en) Micro front end construction method, device, equipment and storage medium
US20240193249A1 (en) Method of processing cross-domain authorization and method of processing cross-domain call
CN114490348A (en) Data debugging method and device, electronic equipment and computer readable storage medium
US20180205617A1 (en) System and method for graphically building a virtual network of computer components
US11665067B2 (en) Managing reconfigurations of distributed computing systems
CN112565340B (en) Service scheduling method, device, computer system and medium for distributed application
US20220300611A1 (en) Run-time communications protocol parameter adjustment in containerized applications
CN116264538A (en) Data processing method, device, equipment and computer storage medium
CN112929453A (en) Method and device for sharing session data
US20220358055A1 (en) Method and apparatus for acquiring device information, storage medium and electronic device
CN114205414A (en) Data processing method, device, electronic equipment and medium based on service grid
CN113612643A (en) Network configuration method, device, equipment and storage medium of cloud mobile phone
CN115080205B (en) Task execution method, device, electronic equipment and readable storage medium
US20230376363A1 (en) Framework for digital workers
CN114448703B (en) Request processing method, request processing device, electronic equipment and storage medium

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