CN116886565A - Diagnosis method, device and detection equipment for website access failure - Google Patents
Diagnosis method, device and detection equipment for website access failure Download PDFInfo
- Publication number
- CN116886565A CN116886565A CN202310994267.6A CN202310994267A CN116886565A CN 116886565 A CN116886565 A CN 116886565A CN 202310994267 A CN202310994267 A CN 202310994267A CN 116886565 A CN116886565 A CN 116886565A
- Authority
- CN
- China
- Prior art keywords
- target
- website
- configuration information
- cdn
- node
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 78
- 238000003745 diagnosis Methods 0.000 title claims abstract description 66
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000002159 abnormal effect Effects 0.000 claims description 17
- 239000000523 sample Substances 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 abstract description 9
- 230000000875 corresponding effect Effects 0.000 description 33
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 6
- 238000007726 management method Methods 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application provides a method and a device for diagnosing website access failure and detection equipment, and relates to the technical field of communication. The method comprises the following steps: obtaining website configuration information of a target website, wherein the target website is a website which is failed to be accessed through a Content Delivery Network (CDN) system, the website configuration information comprises target CDN grouping information, and each target CDN node in a target CDN grouping indicated by the target CDN grouping information provides access service of the target website; detecting according to the website configuration information to obtain a diagnosis result, wherein the detection comprises detection of each target CDN node, and the diagnosis result comprises detection results of whether each target CDN node is normal or not. Therefore, the automatic diagnosis mode can reduce the manual operation cost, is convenient for quickly finding out the problem occurrence link, simultaneously achieves full coverage of CDN nodes, and can not generate the condition that the problem is not found out due to missing detection of the CDN nodes.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a detection device for diagnosing website access failure.
Background
The CDN (Content Delivery Network ) may provide proxy and protection for customer sites, allowing customer sites to provide a faster access experience and protecting customer sites. However, the user may fail to access the customer website for various reasons. When the access to the customer website accessing the CDN fails, diagnosis and positioning are needed to find out where the access failure link occurs so as to enable the customer website to be recovered to be normal.
Disclosure of Invention
The embodiment of the application provides a diagnosis method, a device, detection equipment and a readable storage medium for web site access failure, which can acquire web site configuration information, detect based on the web site configuration information to determine whether each target CDN node providing target web site access service is normal, reduce the manual operation cost in an automatic mode, facilitate quick problem discovery, and simultaneously realize full coverage of CDN nodes without missing detection of CDN nodes to cause undiscovered problems.
Embodiments of the application may be implemented as follows:
in a first aspect, an embodiment of the present application provides a method for diagnosing website access failure, which is applied to a probe device, and the method includes:
obtaining website configuration information of a target website, wherein the target website is a website which is failed to be accessed through a Content Delivery Network (CDN) system, the website configuration information comprises target CDN grouping information, and each target CDN node in a target CDN grouping indicated by the target CDN grouping information provides access service of the target website;
detecting according to the website configuration information to obtain a diagnosis result, wherein the detection comprises detection of each target CDN node, and the diagnosis result comprises detection results of whether each target CDN node is normal or not.
In a second aspect, an embodiment of the present application provides a diagnostic apparatus for website access failure, applied to a detection device, where the apparatus includes:
the information acquisition module is used for acquiring website configuration information of a target website, wherein the target website is a website which is failed to be accessed through a Content Delivery Network (CDN) system, the website configuration information comprises target CDN grouping information, and each target CDN node in a target CDN grouping indicated by the target CDN grouping information provides access service of the target website;
the detection module is used for detecting according to the website configuration information to obtain a diagnosis result, wherein the detection comprises detection of each target CDN node, and the diagnosis result comprises a detection result of whether each target CDN node is normal or not.
In a third aspect, an embodiment of the present application provides a detection apparatus, including a processor and a memory, where the memory stores machine executable instructions that can be executed by the processor, where the processor can execute the machine executable instructions to implement the method for diagnosing website access failure according to the foregoing embodiment.
In a fourth aspect, an embodiment of the present application provides a readable storage medium having stored thereon a computer program that, when executed by a processor, implements a method for diagnosing website access failure according to the foregoing embodiment.
The method, the device, the detection equipment and the readable storage medium for diagnosing the access failure of the website provided by the embodiment of the application firstly acquire the website configuration information of the target website with the access failure, wherein each target CDN node in the target CDN group indicated by the target CDN group information in the website configuration information provides the access service of the target website; and then, detecting based on the website configuration information to obtain a diagnosis result, wherein the detection comprises detection of each target CDN node, and the diagnosis result comprises detection results of whether each target CDN node is normal or not. Therefore, diagnosis can be performed in an automatic mode, manual operation cost can be reduced, quick finding of problems is facilitated, CDN nodes are fully covered, and the situation that problems are not found due to missing detection of CDN nodes is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block schematic diagram of a detection device according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for diagnosing website access failure according to an embodiment of the present application;
FIG. 3 is one of the flow charts of the sub-steps included in step S120 of FIG. 2;
FIG. 4 is a second flowchart illustrating the sub-steps included in the step S120 in FIG. 2;
FIG. 5 is a third flow chart illustrating the sub-steps included in the step S120 in FIG. 2;
FIG. 6 is a fourth schematic flow chart of the sub-steps included in the step S120 in FIG. 2;
FIG. 7 is a second flowchart of a method for diagnosing website access failure according to an embodiment of the present application;
FIG. 8 is a schematic diagram showing a diagnosis result according to an embodiment of the present application;
FIG. 9 is a block diagram of a device for diagnosing website access failure according to an embodiment of the present application;
FIG. 10 is a second block diagram of a website access failure diagnosis apparatus according to an embodiment of the present application.
Icon: 100-detecting equipment; 110-memory; a 120-processor; 130-a communication unit; 200-a diagnosis device for website access failure; 210-an information obtaining module; 220-a detection module; 230-a display module.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It is noted that relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
For the situation that the access of the user to the website accessing the CDN system fails, a technician may manually search information to determine the CDN node providing the access service of the website, and then manually test the found CDN node to determine whether the CDN node is normal. Because the whole process is operated by technicians, in order to reduce the workload, the test is generally carried out only on the CDN node used when the access of the website fails, or a plurality of CDN nodes are manually selected for the test, so that the situation of missing the CDN node causing the problem can occur, and the problem can not be found. In addition, the mode is manually operated by technicians in the whole process, so that the cost is high, and a link for quickly finding out problems is inconvenient.
Based on the above, the embodiments of the present application provide a method, an apparatus, a detection device, and a readable storage medium for diagnosing a website access failure, where website configuration information is obtained first, and then detection is performed based on the website configuration information to determine whether each target CDN node providing a target website access service is normal, so that by using the automatic manner, the manual operation cost can be reduced, a link for quickly finding a problem can be conveniently found, and meanwhile, the CDN node is fully covered, and a situation that the problem is not found due to missing detection of the CDN node can not occur.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a block diagram of a detection apparatus 100 according to an embodiment of the application. The detection device 100 may be, but is not limited to, a computer, a server, etc. The detection device 100 comprises a memory 110, a processor 120 and a communication unit 130. The memory 110, the processor 120, and the communication unit 130 are electrically connected directly or indirectly to each other to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
Wherein the memory 110 is used for storing programs or data. The Memory 110 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions. For example, the memory 110 stores therein a diagnosis device 200 of a website access failure, and the diagnosis device 200 of a website access failure includes at least one software function module which may be stored in the memory 110 in the form of software or firmware (firmware). The processor 120 executes various functional applications and data processing by running software programs and modules stored in the memory 110, such as the website access failure diagnosis apparatus 200 in the embodiment of the present application, that is, implements the website access failure diagnosis method in the embodiment of the present application.
The communication unit 130 is used for establishing a communication connection between the probe device 100 and other communication terminals through a network, and for transceiving data through the network.
It should be understood that the configuration shown in fig. 1 is merely a schematic diagram of the configuration of the detection device 100, and that the detection device 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 2, fig. 2 is a flow chart of a method for diagnosing website access failure according to an embodiment of the application. The method is applied to the detection device. The specific flow of the diagnosis method for website access failure is described in detail below. In this embodiment, the method for diagnosing website access failure may include steps S110 to S120.
Step S110, obtaining website configuration information of a target website.
In this embodiment, the target website is a website that fails to be accessed through the CDN system. The probe device may determine the target website from other devices, for example, when the user device fails to access the website through the CDN system, the user device sends the condition to the probe device, and the probe device uses the website that fails to access the user device as the target for posting. The detection device may also determine the target website by receiving the content input by the technician, for example, the technician manually inputs a website name or a website address, and the detection device may use the website corresponding to the website name or the website address as the target website. The detection device may also determine the website to be diagnosed by other means, not specifically limited herein.
In the case of determining the target website, the probe device may obtain the website configuration information of the target website in any manner. As a possible implementation manner, the database of a data storage device stores website configuration information of each website, and the detection device may obtain the website configuration information of the target website from the database of the data storage device.
The website configuration information is configuration information which is effective based on the configuration of the client, namely, the CDN node provides website access service based on the website configuration information; the website configuration information may be issued to the corresponding CDN node so that the corresponding CDN node provides a service based on the configuration. The website configuration information may include target CDN packet information, where each target CDN node in the target CDN packet indicated by the target CDN packet information provides access service of the target website. That is, when the user device accesses the target website, it accesses the target CDN node in the target CDN packet. The targeted CDN packet information may specifically be a packet identifier or other information, which is used to indicate a CDN packet. The CDN nodes in the target CDN packet are target CDN nodes, and the target CDN packet comprises a plurality of target CDN nodes. The database may further include a plurality of CDN nodes corresponding to each target CDN packet information, and the probing device may further determine, from the database, a target CDN node included in a target CDN packet corresponding to the target CDN packet information. It is understood that one CDN node may be in only one CDN packet, or may be in multiple CDN packets, which may be specifically determined by the actual situation. Other information can be further included in the website configuration information, and the website configuration information can be specifically set in combination with actual requirements.
And step S120, detecting according to the website configuration information to obtain a diagnosis result.
After the website configuration information is obtained, the corresponding equipment can be detected according to the website configuration information, so that a diagnosis result is obtained. Optionally, the detecting includes detecting each target CDN node, and the diagnosis result includes a detection result of whether each target CDN node is normal. The diagnosis result may include an identifier of each target CDN node, so as to identify whether each target CDN node is a target CDN node corresponding to the normal detection result.
Thus, the website configuration information can be obtained, and then detection is performed based on the website configuration information to determine whether each target CDN node providing the target website access service is normal. Through the automatic mode, the manual operation cost can be reduced, the quick problem finding link is convenient, meanwhile, the CDN node full coverage is achieved, and the condition that the problem is not found due to missing detection of the CDN node can be avoided.
As one possible implementation, the target CDN node may be probed in the manner shown in fig. 3. Referring to fig. 3, fig. 3 is a schematic flow chart of the sub-steps included in step S120 in fig. 2. In this embodiment, step S120 may include sub-steps S1211 to S1212.
Substep S1211, sending an access request for the target website to each target CDN node.
Substep S1212 determines whether each CDN node is normal according to the response of each target CDN node.
In this embodiment, the probing device may send, for each target CDN node, an access request for the target website to the target CDN node. Optionally, the probing device may use the specified http head binding target website to probe whether the CDN node accesses normally. As a possible implementation manner, the detecting device may detect whether a target CDN node accesses normally through a Curl command "Curl-H" host: yunaq.com "1.1.1.1", where 1.1.1 is ip, -H "host: yunaq.com" of the target CDN node, which is the meaning of binding. A binding access must be made otherwise the target CDN node represented by 1.1.1.1 does not know which website on the target CDN node is being accessed (multiple websites are carried on the CDN node). Alternatively, the detecting device may use a browser to detect whether a target CDN node accesses normally, and it may be understood that binding is required when using the browser to detect as in the case of a curl command. The above two ways are only illustrative, and other ways may be used to detect whether the access of the target CDN node is normal.
In the case of obtaining a response of a target CDN node, a response may be obtained to determine whether the target CDN node has normal access (i.e., whether the CDN node is normal). Whether the CDN node accesses normally or not indicates whether the CDN node can transmit and receive normally or not. As a possible implementation manner, the response condition includes a status code in the response information, and if the status code is 200, it may be determined that the target CDN node is normal; if the status code is not 200, it may be determined that the target CDN node is not normal.
The inventor of the present application has found through research that the failure of access to the website may also be caused by the CDN node not being able to normally access the source station. Therefore, optionally, the website configuration information may further include source station information of a target source station corresponding to the target website, and the diagnosis result further includes a detection result of whether the source station is accessed by each target CDN node normally. Whether the access source station of the target CDN node is normal or not can be detected in the manner shown in fig. 4. Referring to fig. 4, fig. 4 is a second schematic flow chart of the sub-steps included in step S120 in fig. 2. In this embodiment, step S120 may further include sub-steps S1221 to S1222.
Sub-step S1221, according to the source station information, controls each target CDN node to access the target source station.
And step S1222, determining whether the access source station of each target CDN node is normal according to the access condition of each target CDN node to the target source station.
In this embodiment, the website configuration information further includes source station information of a target source station corresponding to the target website, where the source station information may be an IP address of the target source station, etc. The method comprises the steps that a target CDN node can be controlled to access a target source station aiming at each target CDN node, and then whether the target CDN node accesses the source station normally or abnormally is determined according to the access condition of the target CDN node to the target source station. The diagnosis result may include an identification of the target CDN node corresponding to the detection result of whether each target CDN node accesses the source station normally, so as to identify whether each target CDN node accesses the target CDN node corresponding to the detection result of whether the source station accesses the source station normally.
As a possible implementation manner, the probing device may control access to the target source station by each target CDN node through a remote execution tool. The remote execution attack may be a script, and the detecting device executes the script, so that the target CDN node at the remote end may execute an instruction for testing whether the access target source station is normal, so that the detecting device may obtain a detection result of whether the access target source station of each target CDN node is normal.
The inventor also discovers through research that in the process of accessing the website, the CDN node may acquire information from the second level cache node to provide a website access service, so that the website access failure may be caused by that the second level cache node cannot normally access the source station. When the CDN node provides the website access service, it may need to obtain information from the source station, or may need to obtain information from the second cache node. For example, the CDN node may obtain dynamic content of the website from the source and static content of the website from the secondary cache node.
Therefore, optionally, the website configuration information may further include second-level cache opening and closing information, and the diagnosis result further includes a detection result of whether each target second-level cache node accesses the source station normally. Whether the target source station is accessed by the target secondary cache node corresponding to the target CDN packet normally can be detected in the mode shown in fig. 5. Referring to fig. 5, fig. 5 is a third flow chart illustrating the sub-steps included in step S120 in fig. 2. In this embodiment, step S120 may further include sub-steps S1231 to S1232.
And in the substep S1231, determining a target secondary cache node corresponding to the target CDN packet when the secondary cache opening and closing information is on.
And step S1232, aiming at each target secondary cache node, controlling the target secondary cache node to access the target source station according to the source station information, and determining whether the target secondary cache node accesses the source station normally according to the access condition of the target secondary cache node to the target source station.
In this embodiment, if the second level cache on/off information in the website configuration information of the target website is closed, it means that the second level cache node is not involved in accessing the target website, and in this case, it is not necessary to perform sub-steps S1231 to S1232.
And if the second-level cache opening and closing information in the website configuration information of the target website is opened, the second-level cache node is possibly involved in accessing the target website. In this case, a target secondary cache node corresponding to the target CDN packet may be determined.
Optionally, under the condition that each target CDN node is determined, the probing device may obtain configuration information of each target CDN node to determine a target secondary cache node corresponding to the target CDN node. Or, the database may further include information for indicating a secondary cache node corresponding to each CDN node, and the detecting device may determine, based on the information in the database, a target secondary cache node corresponding to the target CDN packet. The number of the target secondary cache nodes corresponding to the target CDN packet may be one or more, and is specifically determined by the actual situation.
Under the condition that the target secondary cache node corresponding to the target CDN group is determined, the detection equipment can control each target secondary cache node corresponding to the target CDN group to access the target source station according to the source station information corresponding to the target website by executing a remote execution tool, and further judge whether each target secondary cache node accesses the target source station normally or not based on the access condition. For example, if the status code is 200, it can be determined to be normal.
The diagnosis result may include an identifier of a target secondary cache node corresponding to a detection result of whether each target secondary cache node accesses the source station normally, so as to identify whether each target secondary cache node accesses the target secondary cache node corresponding to the detection result of whether the source station normally.
The inventor also discovers through research that an administrator manually configures configuration information of a website in a management background, then the management background translates the manually configured configuration information and the like and then issues the manually configured configuration information to corresponding CDN nodes; in this process, the configuration information issued to the CDN node may not be consistent with the configuration content of the administrator, which may result in a website access failure. For example, if the source station information (i.e., the effective source station information) issued to the CDN node is inconsistent with the source station information configured by the administrator, a situation may occur in which related information cannot be obtained through source fetching, which may result in failure of access to the website.
Therefore, in this embodiment, the diagnosis result further includes a comparison result of whether the configuration information is consistent. As a possible implementation, the detection of whether the configuration information is consistent may be performed in the manner shown in fig. 3. Referring to fig. 6, fig. 6 is a flowchart illustrating the sub-steps included in step S120 in fig. 2. In this embodiment, step S120 may further include sub-steps S1241 to S142.
Substep S1241, obtaining preconfiguration information of the target website.
And substep S1242, determining whether the website blacklist, the website whitelist, the secondary cache opening and closing information and the source station information in the preconfigured information are consistent with the website blacklist, the website whitelist, the secondary cache opening and closing information and the source station information in the website configuration information.
Optionally, as a management device in the management background, the configuration information of each website preconfigured by the administrator may be stored, and the detection device may obtain preconfiguration information of the target website (i.e., configuration information of a website preconfigured by the administrator corresponding to the target website) from the management device. Alternatively, the configuration information of the website preconfigured by the administrator may be stored in the database, and the detection device may obtain the preconfiguration information corresponding to the target website from the database.
The website configuration information may include a website blacklist and a website whitelist. The website blacklist and the website whitelist may include IP addresses, respectively, for identifying abnormal access. When the access of the user equipment is abnormal access, the user equipment fails to access the website.
In case the pre-configuration information is obtained, the detection device may perform at least one of the following comparisons. Comparing whether the website blacklist in the preconfiguration information is consistent with the website blacklist in the effective website configuration information, comparing whether the website whitelist in the preconfiguration information is consistent with the website whitelist in the effective website configuration information, comparing whether the second-level cache opening and closing information in the preconfiguration information is consistent with the second-level cache opening and closing information in the effective website configuration information, and comparing whether the source station information in the preconfiguration information is consistent with the source station information in the effective website configuration information. After comparison, a comparison result can be obtained. Wherein, the comparison result can comprise various comparison items and results. The alignment item is used to represent the category of the alignment, such as a website blacklist, a website whitelist, etc.
Optionally, an error log can be further included in the diagnosis result, so as to view error reporting information and locate problems. In the case where an abnormal node is determined based on the sub-steps S1211 to S1212 and S1231 to S1232, an error log of the abnormal node may be acquired for each abnormal node. That is, if an abnormal target CDN node is detected, an error log of the abnormal target CDN node may be obtained; if an abnormal target secondary cache node is detected, an error log of the abnormal target secondary cache node can be obtained.
Alternatively, the instrumentation may obtain error logs from the abnormal nodes via a remote execution tool. Wherein, according to the time of the access failure of the target website, one or more error logs can be obtained from each abnormal node, for example, the error log close to the time of the access failure of the target website is obtained. Alternatively, the probing device may obtain the last N pieces of data in the error log of the abnormal node by using the following tail command through the remote execution tool: tail/home/log/nginx/error. The diagnosis result can also comprise node identifications corresponding to the error logs so as to identify equipment corresponding to each error log.
Referring to fig. 7, fig. 7 is a second flowchart of a method for diagnosing website access failure according to an embodiment of the present application. In this embodiment, after step S120, the method may further include step S130.
And step S130, displaying the diagnosis result.
In this embodiment, the diagnosis result may include at least one of a detection result of whether each target CDN node is normal, a detection result of whether each target CDN node accesses the source station normally, a detection result of whether each target secondary cache node accesses the source station normally, and a comparison result of whether configuration information is consistent. The diagnostic results may be presented on a web page for further analysis by a technician and corresponding action taken to make the targeted web site accessible normally.
As a possible implementation, the diagnosis result may be displayed as shown in fig. 8. The left side of fig. 8 is used for displaying website configuration information, and can also display a comparison result so as to manually check the comparison result, and can also manually check whether the effective website configuration information is consistent with the pre-configuration information; the upper right part of fig. 8 is used to display the probing device (i.e. the probing point in fig. 8), the target CDN nodes (i.e. cad01, CDN02, etc. in fig. 8) and the source station, and simultaneously display whether each target CDN node is normal, whether each target CDN node accesses the source station is normal, and whether each corresponding target secondary cache node (as an illustration, only one cache node is shown in fig. 8) accesses the source station is normal; in the presence of an abnormal node, the obtained error log is shown at the bottom side of fig. 8 so that a technician can eliminate the problem in conjunction with the error log. In fig. 8, "normal/failure" is only an illustration, and in specific detection, there is only one result, and the result may be normal or failure, and failure indicates that the detection result is abnormal.
According to the embodiment of the application, the states of all CDN nodes accessed to the target website are automatically detected, so that the overall situation of the target website is obtained, and further, the situation of abnormality of the target website can be judged based on the overall situation, so that staff can quickly adjust to enable the target website to access normally.
In order to perform the corresponding steps in the above embodiments and the various possible ways, an implementation manner of the diagnosis apparatus 200 for website access failure is given below, and alternatively, the diagnosis apparatus 200 for website access failure may employ the device structure of the detection device 100 shown in fig. 1. Further, referring to fig. 9, fig. 9 is a block diagram of a diagnosis device 200 for website access failure according to an embodiment of the application. It should be noted that, the basic principle and the technical effects of the website access failure diagnosis apparatus 200 provided in this embodiment are the same as those of the above embodiment, and for brevity, reference should be made to the corresponding contents in the above embodiment. The website access failure diagnosis apparatus 200 may be applied to a probe device, and the website access failure diagnosis apparatus 200 may include: the information obtaining module 210 and the detecting module 220.
The information obtaining module 210 is configured to obtain website configuration information of the target website. The target website is a website which is failed to be accessed through a Content Delivery Network (CDN) system, the website configuration information comprises target CDN grouping information, and each target CDN node in the target CDN grouping indicated by the target CDN grouping information provides access service of the target website.
The detection module 220 is configured to detect according to the website configuration information, and obtain a diagnosis result. The detection comprises detection of each target CDN node, and the diagnosis result comprises detection results of whether each target CDN node is normal or not.
Referring to fig. 10, fig. 10 is a block diagram of a diagnosis device 200 for website access failure according to an embodiment of the application. In this embodiment, the diagnosis device 200 for website access failure may further include a presentation module 230.
The display module 230 displays the diagnosis result.
Alternatively, the above modules may be stored in the memory 110 shown in fig. 1 or solidified in an Operating System (OS) of the probe apparatus 100 in the form of software or Firmware (Firmware), and may be executed by the processor 120 in fig. 1. Meanwhile, data, codes of programs, and the like, which are required to execute the above-described modules, may be stored in the memory 110.
The embodiment of the application also provides a readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the method for diagnosing website access failure.
In summary, the embodiments of the present application provide a method, an apparatus, a probe device, and a readable storage medium for diagnosing a website access failure, first, website configuration information of a target website with access failure is obtained, where each target CDN node in a target CDN packet indicated by target CDN packet information in the website configuration information provides an access service of the target website; and then, detecting based on the website configuration information to obtain a diagnosis result, wherein the detection comprises detection of each target CDN node, and the diagnosis result comprises detection results of whether each target CDN node is normal or not. Therefore, diagnosis can be performed in an automatic mode, manual operation cost can be reduced, quick finding of problems is facilitated, CDN nodes are fully covered, and the situation that problems are not found due to missing detection of CDN nodes is avoided.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of alternative embodiments of the present application and is not intended to limit the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A method for diagnosing web site access failure, applied to a probe device, the method comprising:
obtaining website configuration information of a target website, wherein the target website is a website which is failed to be accessed through a Content Delivery Network (CDN) system, the website configuration information comprises target CDN grouping information, and each target CDN node in a target CDN grouping indicated by the target CDN grouping information provides access service of the target website;
detecting according to the website configuration information to obtain a diagnosis result, wherein the detection comprises detection of each target CDN node, and the diagnosis result comprises detection results of whether each target CDN node is normal or not.
2. The method of claim 1, wherein the performing the diagnosis process according to the website configuration information to obtain a diagnosis result comprises:
sending an access request for the target website to each target CDN node;
and determining whether each CDN node is normal according to the response condition of each target CDN node.
3. The method of claim 1, wherein the website configuration information further includes source station information of a target source station corresponding to the target website, the diagnosis result further includes a detection result of whether each target CDN node accesses the source station normally, and the performing the diagnosis process according to the website configuration information to obtain the diagnosis result includes:
controlling each target CDN node to access the target source station according to the source station information;
and determining whether the access source station of each target CDN node is normal according to the access condition of each target CDN node to the target source station.
4. The method of claim 3, wherein the website configuration information further includes second-level cache opening and closing information, the diagnosis result further includes a detection result of whether each target second-level cache node accesses the source station normally, the diagnosis process is performed according to the website configuration information to obtain a diagnosis result, and the method further includes:
under the condition that the secondary cache opening and closing information is opened, determining a target secondary cache node corresponding to the target CDN packet;
and aiming at each target secondary cache node, controlling the target secondary cache node to access the target source station according to the source station information, and determining whether the target secondary cache node accesses the source station normally according to the access condition of the target secondary cache node to the target source station.
5. The method of claim 4, wherein the website configuration information is validated configuration information, the diagnosis result further includes a comparison result of whether the configuration information is consistent, the website configuration information further includes a website blacklist and a website whitelist, and the method further includes:
obtaining pre-configuration information of the target website;
and judging whether the website blacklist, the website whitelist, the secondary cache opening and closing information and the source station information in the pre-configuration information are consistent with the website blacklist, the website whitelist, the secondary cache opening and closing information and the source station information in the website configuration information.
6. The method according to any one of claims 2-5, wherein the diagnosis result further includes an error log, and the detecting according to the website configuration information obtains the diagnosis result, further including:
under the condition that abnormal nodes are determined through detection, aiming at each abnormal node, obtaining an error log of the abnormal node.
7. The method according to claim 1, wherein the method further comprises:
and displaying the diagnosis result.
8. A diagnostic apparatus for web site access failure, applied to a probe device, the apparatus comprising:
the information acquisition module is used for acquiring website configuration information of a target website, wherein the target website is a website which is failed to be accessed through a Content Delivery Network (CDN) system, the website configuration information comprises target CDN grouping information, and each target CDN node in a target CDN grouping indicated by the target CDN grouping information provides access service of the target website;
the detection module is used for detecting according to the website configuration information to obtain a diagnosis result, wherein the detection comprises detection of each target CDN node, and the diagnosis result comprises a detection result of whether each target CDN node is normal or not.
9. A probe device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor to implement the method of diagnosing web site access failure of any one of claims 1-7.
10. A readable storage medium having stored thereon a computer program, which when executed by a processor implements the method of diagnosing a web site access failure according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310994267.6A CN116886565A (en) | 2023-08-08 | 2023-08-08 | Diagnosis method, device and detection equipment for website access failure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310994267.6A CN116886565A (en) | 2023-08-08 | 2023-08-08 | Diagnosis method, device and detection equipment for website access failure |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116886565A true CN116886565A (en) | 2023-10-13 |
Family
ID=88268266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310994267.6A Pending CN116886565A (en) | 2023-08-08 | 2023-08-08 | Diagnosis method, device and detection equipment for website access failure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116886565A (en) |
-
2023
- 2023-08-08 CN CN202310994267.6A patent/CN116886565A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7340649B2 (en) | System and method for determining fault isolation in an enterprise computing system | |
US8931096B2 (en) | Detecting malicious use of computer resources by tasks running on a computer system | |
US8978012B1 (en) | Method and system for error reporting and correction in transaction-based applications | |
KR950010833B1 (en) | Automated enrollement of a computer system into a service network of computer systems | |
US20080162688A1 (en) | Proactive problem resolution system, method of proactive problem resolution and program product therefor | |
US11509505B2 (en) | Method and apparatus for operating smart network interface card | |
AU2005331434B2 (en) | Monitoring simulating device, method, and program | |
US8789187B1 (en) | Pattern tracking and capturing human insight in a web application security scanner | |
US20110093954A1 (en) | Apparatus and method for remotely diagnosing security vulnerabilities | |
CN101435760A (en) | Analyzer, analyzing system, and computer program product | |
EP2149090A1 (en) | System diagnostic utility | |
KR102156379B1 (en) | Agentless Vulnerability Diagnosis System through Information Collection Process and Its Method | |
EP3671512B1 (en) | Automated software vulnerability determination | |
WO2013124947A1 (en) | Information system management device and information system management method and program | |
CN111258904A (en) | Webpage element testing method and related device | |
US8385213B2 (en) | Error identification in a computer-based network | |
CN116886565A (en) | Diagnosis method, device and detection equipment for website access failure | |
Huang et al. | PDA: A Tool for Automated Problem Determination. | |
US10645098B2 (en) | Malware analysis system, malware analysis method, and malware analysis program | |
CN108768807B (en) | Virtual-real interconnection method and device for cloud platform | |
Cisco | System Troubleshooting Guidelines | |
CN114268569B (en) | Configurable network operation and maintenance acceptance test method and device | |
CN114039943A (en) | Data processing method and device of domain name system | |
CN110932940B (en) | Source address translation service monitoring method and device | |
CN112650557A (en) | Command execution method and 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 |