CN110535685B - Fault determination method and device and computer readable storage medium - Google Patents

Fault determination method and device and computer readable storage medium Download PDF

Info

Publication number
CN110535685B
CN110535685B CN201910677451.1A CN201910677451A CN110535685B CN 110535685 B CN110535685 B CN 110535685B CN 201910677451 A CN201910677451 A CN 201910677451A CN 110535685 B CN110535685 B CN 110535685B
Authority
CN
China
Prior art keywords
data
server
target
address
data server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910677451.1A
Other languages
Chinese (zh)
Other versions
CN110535685A (en
Inventor
翟小东
支堃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910677451.1A priority Critical patent/CN110535685B/en
Publication of CN110535685A publication Critical patent/CN110535685A/en
Application granted granted Critical
Publication of CN110535685B publication Critical patent/CN110535685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a fault determination method, a fault determination device and a computer readable storage medium, and belongs to the technical field of computers. According to the method, the address of a target data server can be determined according to a geographic storage area corresponding to target multimedia data, a data acquisition request is sent to the target data server based on the address of the target data server, and finally, if the target multimedia data returned by the target data server are not received, the data stored in the target data server is determined to have an acquisition fault. Therefore, data with acquisition faults in each geographic storage area can be rapidly and comprehensively detected in advance, the problem that a user cannot normally acquire target multimedia data can be avoided to a certain extent, and the data acquisition efficiency is improved.

Description

Fault determination method and device and computer readable storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a fault determination method and device and a computer readable storage medium.
Background
At present, for a user to watch multimedia conveniently, data of one multimedia is often stored in servers at multiple positions, so that when the user requests to watch the multimedia, the user can request the stored data of the multimedia from the server which is most matched with factors such as the position of the user, the bandwidth of used equipment, time delay, equipment state and the like, and thus, the user can stably and quickly obtain the data of the multimedia, and further the data obtaining efficiency is improved.
However, multimedia data may have an acquisition failure, which may prevent a user from normally acquiring the multimedia data, and therefore, a failure determination method is urgently needed to determine the multimedia data having the failure, so as to ensure that each user can normally provide the multimedia data, and ensure that the viewing process of the user can be smoothly implemented.
Disclosure of Invention
The invention provides a fault determination method, a fault determination device and a computer readable storage medium, which are used for solving the problem that a user cannot normally acquire data due to the fact that multimedia data have acquisition faults.
According to a first aspect of the present invention, there is provided a fault determination method applied to a terminal, the method including:
determining the address of a target data server according to the geographic storage area corresponding to the target multimedia data; the target data server is arranged in the geographic storage area, and the target multimedia data are stored in the target data server;
sending a data acquisition request to the target data server based on the target data server address;
and if the target multimedia data returned by the target data server is not received, determining that the data stored in the target data server has a corresponding fault.
Optionally, the determining an address of the target data server according to the geographic storage area corresponding to the target multimedia data includes:
for each geographic storage area, sending a data server address request to a scheduling server corresponding to target multimedia data; the data server address request comprises a position identifier of the geographic storage area and an identifier of the target multimedia data;
and receiving the address of the target data server returned by the scheduling server.
Optionally, the target multimedia data includes a plurality of data fragments;
the sending of the data server address request to the scheduling server corresponding to the target multimedia data includes:
acquiring a scheduling server address corresponding to each data fragment;
and for each data fragment, sending a data server address request to a scheduling server corresponding to the data fragment based on the scheduling server address corresponding to the data fragment.
Optionally, the obtaining the address of the scheduling server corresponding to each data fragment includes:
generating a background service request; the background service request at least comprises an identifier of the target multimedia data and an authority verification identifier;
sending the background service request to a preset background server;
receiving a scheduling server address corresponding to each data fragment returned by the background server; the background server is used for verifying the terminal based on the authority verification identification; and returning the scheduling server address corresponding to each data fragment based on the identification of the target multimedia data under the condition of passing the verification.
Optionally, after determining that there is an acquisition failure in the data stored in the target data server, the method further includes:
receiving an error code returned by the target data server; wherein, different error codes correspond to different fault types;
sending fault processing reminding information to a user; the fault processing reminding information comprises the identification of the target data server and the error code, and is used for reminding a user of processing the target data server.
Optionally, the method further includes:
and if the target multimedia data returned by the target data server is received, determining that the data stored in the target data server has no acquisition fault.
According to a second aspect of the present invention, there is provided a fault determination apparatus applied to a terminal, the apparatus may include:
the first determining module is used for determining the address of a target data server according to the geographic storage area corresponding to the target multimedia data; the target data server is arranged in the geographic storage area, and the target multimedia data are stored in the target data server;
the first sending module is used for sending a data acquisition request to the target data server based on the address of the target data server;
and the second determining module is used for determining that the data stored in the target data server has an acquisition fault if the target multimedia data returned by the target data server is not received.
Optionally, the first determining module is specifically configured to:
for each geographic storage area, sending a data server address request to a scheduling server corresponding to target multimedia data; the data server address request comprises a position identifier of the geographic storage area and an identifier of the target multimedia data;
and receiving the address of the target data server returned by the scheduling server.
Optionally, the target multimedia data includes a plurality of data fragments;
the first determining module is further specifically configured to:
acquiring a scheduling server address corresponding to each data fragment;
and for each data fragment, sending a data server address request to a scheduling server corresponding to the data fragment based on the scheduling server address corresponding to the data fragment.
Optionally, the first determining module is further specifically configured to:
generating a background service request; the background service request at least comprises an identifier of the target multimedia data and an authority verification identifier;
sending the background service request to a preset background server;
receiving a scheduling server address corresponding to each data fragment returned by the background server; the background server is used for verifying the terminal based on the authority verification identifier; and returning the scheduling server address corresponding to each data fragment based on the identification of the target multimedia data under the condition of passing the verification.
Optionally, the apparatus further comprises:
the receiving module is used for receiving the error code returned by the target data server; wherein, different error codes correspond to different fault types;
the second sending module is used for sending fault processing reminding information to the user; the fault processing reminding information comprises the identification of the target data server and the error code, and is used for reminding a user of processing the target data server.
Optionally, the apparatus further comprises:
and the third determining module is used for determining that the data stored in the target data server has no acquisition fault if the target multimedia data returned by the target data server is received.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the fault determination method according to the first aspect.
Aiming at the prior art, the invention has the following advantages:
the method comprises the steps of determining an address of a target data server according to a geographic storage area corresponding to target multimedia data, wherein the target data server is provided with the geographic storage area and stores the target multimedia data, sending a data acquisition request to the target data server based on the address of the target data server, and finally determining that the data stored in the target data server has an acquisition fault if the target multimedia data returned by the target data server are not received. In the embodiment of the invention, the data acquisition request is sent to the target data server which stores the target multimedia data in the geographic storage area corresponding to the target multimedia data, the data stored in the target data server which does not return the target multimedia data is determined to have the acquisition fault, the data with the acquisition fault in each geographic storage area is further rapidly and comprehensively checked, meanwhile, the problem that a user cannot normally acquire the target multimedia data can be avoided to a certain extent by checking the data with the acquisition fault in each geographic storage area in advance, and the data acquisition efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a method for determining a fault according to an embodiment of the present invention;
FIG. 2-1 is a flow chart illustrating steps of another method for fault determination provided by an embodiment of the present invention;
fig. 2-2 is a schematic process diagram of another fault determination method provided in the embodiment of the present invention;
fig. 3 is a block diagram of a fault determination apparatus provided by an embodiment of the present invention;
fig. 4 is a block diagram of another fault determination apparatus provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart of steps of a fault determining method provided in an embodiment of the present invention, which is applied to a terminal, and as shown in fig. 1, the method may include:
step 101, determining the address of a target data server according to the geographic storage area corresponding to the target multimedia data.
In the embodiment of the present invention, the target multimedia data may be data corresponding to the target multimedia, the target multimedia may be multimedia that can be provided for a user to view, the multimedia may be a file of a type such as video, audio, text, and the like, further, the geographic storage area corresponding to the target multimedia data may be an area including a server in which the target multimedia data is stored, specifically, a machine room may be disposed in the geographic storage area corresponding to the target multimedia data, and the machine room may include the server in which the target multimedia data is stored.
Accordingly, the target data server may be a server which is disposed in the geographic storage area and stores target multimedia data. Where the geographic storage area may indicate different cities, different countries, etc.
Specifically, in this step, the target multimedia data may correspond to a plurality of geographic storage areas, that is, the target multimedia data may be stored in servers located at different positions, and therefore, in this step, the address of the server storing the target multimedia data in each geographic storage area may be determined, and the address of the target data server may be obtained. Further, the operation of determining the target data server address can be executed when fault detection is needed, so that compared with the problem that the multimedia data cannot be normally obtained when the user actually obtains the multimedia data, the problem is fed back to the data provider, and correspondingly, the data provider determines that the server has a fault through user feedback.
And 102, sending a data acquisition request to the target data server based on the address of the target data server.
In this step, the data obtaining request may be a request for requesting target multimedia data from a target server, and specifically, the terminal may send the data obtaining request to the target data server with the target data server address as the target address, where the data obtaining request may include an identifier request of the target multimedia, so that the target data server may determine data to be returned according to the identifier in the data obtaining request, and may further return the target multimedia data to the terminal based on the data obtaining request.
Step 103, if the target multimedia data returned by the target data server is not received, determining that the data stored in the target data server has an acquisition fault.
In the embodiment of the present invention, the acquisition failure refers to that data stored in the target data server cannot be normally acquired, and the acquisition failure may be caused by various reasons, for example, the acquisition failure may be caused by a problem in the data itself, or may be caused by factors other than the data itself, for example, the acquisition failure may be caused by an address error of the target data server, a hardware failure of the target data server, or a lack of data existence information or a storage error in the data stored in the target data server.
Further, if there is no acquisition fault in the data stored in the target data server, the target data server will often return the target multimedia data to the terminal after receiving the data acquisition request, therefore, in the embodiment of the present invention, if the target multimedia data returned by the target data server is received, it may be considered that there is no acquisition fault in the data stored in the target data server, and correspondingly, if the target multimedia data returned by the target data server is not received, it may be determined that there is an acquisition fault in the data stored in the target data server, so as to perform fault maintenance in time, avoid the problem that the user cannot normally acquire the target multimedia data, and further improve the data acquisition efficiency.
In summary, the method for determining a failure provided in the embodiments of the present invention may determine an address of a target data server according to a geographic storage area corresponding to target multimedia data, where the target data server sets the geographic storage area and stores the target multimedia data, send a data acquisition request to the target data server based on the address of the target data server, and finally determine that an acquisition failure exists in data stored in the target data server if the target multimedia data returned by the target data server is not received. In the embodiment of the invention, the data acquisition request is sent to the target data server which stores the target multimedia data in the geographic storage area corresponding to the target multimedia data, the data stored in the target data server which does not return the target multimedia data is determined to have the acquisition fault, the data with the acquisition fault in each geographic storage area is further rapidly and comprehensively checked, meanwhile, the problem that a user cannot normally acquire the target multimedia data can be avoided to a certain extent by checking the data with the acquisition fault in each geographic storage area in advance, and the data acquisition efficiency is improved.
Fig. 2-1 is a flowchart of steps of another fault determination method provided in an embodiment of the present invention, which is applied to a terminal, and as shown in fig. 2-1, the method may include:
step 201, for each geographic storage area, sending a data server address request to a scheduling server corresponding to the target multimedia data.
In this step, the data server address request may include a location identifier of the geographic storage area and an identifier of the target multimedia data, where the location identifier of the geographic storage area may indicate the geographic storage area, and the storage identifiers of different geographic storage areas are different, further, the scheduling server corresponding to the target multimedia data may be a server that manages a target data server, and the scheduling server may return, to the terminal, an address of the server that is in the geographic storage area indicated by the location identifier and stores the target multimedia data indicated by the identifier of the target multimedia data, that is, a target data server address, based on the data server address request.
For target multimedia with a small data volume, the target multimedia data may be stored in 1 data server, and accordingly, the number of the scheduling servers corresponding to the target multimedia data may be 1, and the 1 scheduling server corresponding to the target multimedia data is the scheduling server that manages the data server.
Further, since the data amount of the target multimedia may be relatively large, the target multimedia data corresponding to the target multimedia may be divided into a plurality of data fragments for storage, and accordingly, the target multimedia data may include a plurality of data fragments, different data fragments may be stored in different data servers, and different data servers may be managed by different scheduling servers, and therefore, the servers storing different data fragments may be managed by different scheduling servers, and accordingly, the scheduling server corresponding to the target multimedia data may be multiple. For example, assume that the target multimedia data comprises 6 data slices: data fragment 1, data fragment 2, data fragment 3, data fragment 4, data fragment 5 and data fragment 6, wherein data fragment 1 and data fragment 2 are stored in data server a, data fragment 3, data fragment 4 and data fragment 5 are stored in data server B, data fragment 6 is stored in data server c, and data server a and data server B are managed by dispatch server a, and data server c is managed by dispatch server B, then, the dispatch servers corresponding to the target multimedia data can be 2, and these two dispatch servers can be respectively: dispatch server a and dispatch server B.
Further, the process of dividing the target multimedia data into a plurality of data fragments for storage may be performed when the target multimedia data is initially stored. For example, taking target multimedia data as video stream data as an example, the data volume of the video stream data is often large, and the video stream data may be stored in different servers in the form of a plurality of video stream slices, where a data slice is a video stream slice. It should be noted that, in practical applications, resolutions of different videos may be different, and a video with a higher resolution often has a larger corresponding video code stream data amount, and accordingly, a video code stream slice of the video often has more video code stream slices, whereas a video with a lower resolution often has a smaller corresponding video code stream data amount, and accordingly, a video code stream slice of the video often has less video code stream slices.
Further, compared with the mode that a user plays videos through a traditional playing tool and confirms that video code stream data has an acquisition fault under the condition that the videos cannot be played normally, in the embodiment of the invention, target multimedia data can be acquired from a target data server for detection when detection is needed, the whole detection operation is more flexible, meanwhile, the video code stream data is often stored in servers of a plurality of geographic storage areas, the user can determine the fault mode through video playing through the traditional playing tool, and the video code stream data in the geographic storage area where the user is located can only be detected.
Furthermore, a terminal provided with the conventional playing tool may have a problem of a low version, and thus, for high-resolution video code stream data, a user may not be able to analyze the high-resolution video code stream data through the conventional playing tool, and thus, the problem of the high-resolution video code stream data cannot be found. Specifically, when the target multimedia data includes a plurality of data fragments, the step may be implemented by steps 2011 to 2012 below:
step 2011, the address of the scheduling server corresponding to each data fragment is obtained.
In this step, since servers storing different data fragments may be managed by different scheduling servers, in order to ensure that addresses of servers storing data fragments are comprehensively obtained, addresses of scheduling servers corresponding to data fragments may be obtained first, and specifically, an operation of obtaining addresses of scheduling servers corresponding to each data fragment may be implemented by the following substeps (1) to (3):
substep (1): a background service request is generated.
In this step, the background service request may be spliced based on a designated splicing rule of the background service request, the splicing operation may be performed based on a broadcast verification tool set in the terminal, the designated splicing rule of the background service request may be preset, each element and a sequence of each element that the background service request needs to include may be defined in the designated splicing rule of the background service request, and for example, the splicing rule of the background service request may be a scheduling splicing rule that is adopted when a multimedia player receives a play request for multimedia and splices a background service request for requesting the multimedia data. Furthermore, at least an identifier of a target multimedia and an authority identifier for representing verification authority can be defined in the specified splicing rule of the background service request, so that in the subsequent step, the address of the scheduling server can be smoothly acquired based on the background service request.
Further, compared with a mode that when a user requests target multimedia data, for example, the user selects the target multimedia data through the player and sends a request instruction to the terminal, the terminal executes the splicing background service request and accordingly acquires the target multimedia data, in the embodiment of the invention, the background service request is actively spliced when a fault needs to be detected, the opportunity for splicing the background service request can be autonomously determined according to the detection requirement, and the flexibility is strong.
Substep (2): and sending the background service request to a preset background server.
In this step, the background server may be deployed with a background server, where fragment information of the target multimedia may be stored in the background server, where the fragment information at least may include the number of data fragments included in the target multimedia and a scheduling server address corresponding to the data fragment, and the scheduling server corresponding to the data fragment manages the data server in which the data fragment is stored.
Substep (3): and receiving the scheduling server address corresponding to each data fragment returned by the background server.
In this step, the backend server may verify the terminal based on the authority identifier in the backend service request after receiving the backend service request, specifically, the backend server may compare the authority identifier with a preset authority identifier, and if the authority identifier is consistent with the preset authority identifier, it is indicated that the terminal has a verification authority, because the terminal is considered to pass the verification, it may then determine a data fragment corresponding to the target multimedia data indicated by the identifier of the target multimedia data, and then send a scheduling server address corresponding to each data fragment to the terminal, and accordingly, the terminal may receive a scheduling server address corresponding to each data fragment returned by the backend server. Further, if the two are not consistent, it indicates that the terminal does not have the verification authority, and at this time, an authentication error identifier may be returned to the terminal, so that the terminal can quickly know that the background server cannot return the address of the scheduling server due to the authority problem. It should be noted that, in an actual application scenario, the background server may also return other data fragment information to the terminal, for example, sequence information of each data fragment, and the like, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, the background service request containing the identification of the target multimedia data and the authority verification identification is sent to the background server, and the address of the scheduling server returned by the background server under the condition that the terminal has the verification authority is received, so that the address of the scheduling server can be prevented from being maliciously obtained to a certain extent, and the safety of data storage is further ensured. Meanwhile, compared with a mode that the authority verification is carried out on the terminal by the scheduling server, the authority verification is realized through the background server, the scheduling server can be lightened to a certain extent, and the normal operation of the scheduling server is further ensured.
Step 2011, for each data slice, based on the address of the scheduling server corresponding to the data slice, sending a data server address request to the scheduling server corresponding to the data slice.
In this step, by sending a data server address request to a scheduling server corresponding to a data fragment, an address of a server which is in the geographic storage area and stores the data fragment and is returned by the scheduling server can be obtained, so that the sending operation is executed for each data fragment, and then data server address requests corresponding to all data fragments included in the target multimedia can be obtained, and thus it can be ensured that all data fragments included in the target multimedia are verified.
Step 202, receiving the address of the target data server returned by the dispatching server.
In this step, the scheduling server may return, to the terminal, the address of the server that is located in the geographic storage area indicated by the location identifier and stores the target multimedia data indicated by the identifier of the target multimedia data, based on the data server address request that includes the location identifier of the geographic storage area and the identifier of the target multimedia data and is sent by the terminal. Accordingly, the terminal can receive the address of the server returned by the scheduling server, and further obtain the address of the target data server.
Step 203, sending a data acquisition request to the target data server based on the target data server address.
Specifically, the implementation manner of this step may refer to step 102, and details of this embodiment of the present invention are not described herein.
And step 204, if the target multimedia data returned by the target data server is not received, determining that the data stored in the target data server has an acquisition fault.
Specifically, the implementation manner of this step may refer to step 103, which is not described herein again in this embodiment of the present invention.
Further, in an actual application process, a problem that the target data server cannot return the target multimedia data due to an acquisition failure of data stored in the target data server may be caused by various types of reasons, and accordingly, the target data server may pre-define corresponding error codes for different types of failures, so that each error code may represent one type of failure. Further, the target data server may return an error code to the terminal when the target multimedia data cannot be returned, and accordingly, the terminal may receive the error code returned by the target data server and send a fault processing reminding message to the user, where the fault processing reminding message may include identification information and the error code of the target data server, and the fault processing reminding message may be used to remind the user to process the target data server.
For example, fig. 2-2 is a swim lane diagram of a fault determination method provided in an embodiment of the present invention, as shown in fig. 2-2, a terminal may splice a background service request through an internal broadcast verification tool, then request a background service to obtain play information, that is, request a scheduling server address from a background server, and accordingly, the background server may return play information, where the play information may include a scheduling server address, and then, the terminal may request the scheduling server to obtain a target data server (CDN) address, that is, request the scheduling server address from the scheduling server, and accordingly, the scheduling server may return the target data server address, and then, based on each geographic storage region, the terminal may request the CDN address to obtain target multimedia data, that is, request the target multimedia data from the target data server, and further traverse each geographic storage region, thereby implementing a cyclic multiple CDN rooms, and accordingly, the target data server may return the target multimedia data.
In summary, in the fault determining method provided in the embodiment of the present invention, for each geographic storage area, the terminal may send a data server address request to the scheduling server corresponding to the target multimedia data, then receive a target data server address returned by the scheduling server, then determine a target data server address according to the geographic storage area corresponding to the target multimedia data, where the target data server is disposed in the geographic storage area and stores the target multimedia data, send a data obtaining request to the target data server based on the target data server address, and finally determine that the data stored in the target data server has an obtaining fault if the target multimedia data returned by the target data server is not received. In the embodiment of the invention, the data acquisition request is sent to the target data server which stores the target multimedia data in the geographic storage area corresponding to the target multimedia data, the data stored in the target data server which does not return the target multimedia data is determined to have the acquisition fault, the data with the acquisition fault in each geographic storage area is further rapidly and comprehensively checked, meanwhile, the problem that a user cannot normally acquire the target multimedia data can be avoided to a certain extent by checking the data with the acquisition fault in each geographic storage area in advance, and the data acquisition efficiency is improved.
Fig. 3 is a block diagram of a fault determining apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus 30 may include:
a first determining module 301, configured to determine an address of a target data server according to a geographic storage area corresponding to target multimedia data; the target data server is arranged in the geographic storage area, and the target multimedia data are stored in the target data server.
A first sending module 302, configured to send a data obtaining request to the target data server based on the address of the target data server.
A second determining module 303, configured to determine that there is an acquisition failure in the data stored in the target data server if the target multimedia data returned by the target data server is not received.
In summary, the failure determining apparatus provided in the embodiments of the present invention may determine the address of the target data server according to the geographic storage area corresponding to the target multimedia data, where the target data server sets the geographic storage area and stores the target multimedia data, send a data obtaining request to the target data server based on the address of the target data server, and finally determine that the data stored in the target data server has an obtaining failure if the target multimedia data returned by the target data server is not received. In the embodiment of the invention, the data acquisition request is sent to the target data server which stores the target multimedia data in the geographic storage area corresponding to the target multimedia data, the data stored in the target data server which does not return the target multimedia data is determined to have the acquisition fault, the data with the acquisition fault in each geographic storage area is further rapidly and comprehensively checked, meanwhile, the problem that a user cannot normally acquire the target multimedia data can be avoided to a certain extent by checking the data with the acquisition fault in each geographic storage area in advance, and the data acquisition efficiency is improved.
Fig. 4 is a block diagram of another fault determination apparatus provided in an embodiment of the present invention, and as shown in fig. 4, the apparatus 40 may include:
a first determining module 401, configured to determine an address of a target data server according to a geographic storage area corresponding to target multimedia data; the target data server is arranged in the geographic storage area, and the target multimedia data are stored in the target data server.
A first sending module 402, configured to send a data obtaining request to the target data server based on the address of the target data server.
A second determining module 403, configured to determine that there is an acquisition failure in the data stored in the target data server if the target multimedia data returned by the target data server is not received.
Optionally, the first determining module is specifically configured to:
for each geographic storage area, sending a data server address request to a scheduling server corresponding to target multimedia data; and the data server address request comprises the position identifier of the geographic storage area and the identifier of the target multimedia data.
And receiving the address of the target data server returned by the dispatching server.
Optionally, the target multimedia data includes a plurality of data slices.
The first determining module is further specifically configured to:
and acquiring the address of the scheduling server corresponding to each data fragment.
And for each data fragment, sending a data server address request to a scheduling server corresponding to the data fragment based on the scheduling server address corresponding to the data fragment.
Optionally, the first determining module is further specifically configured to:
generating a background service request; the background service request at least comprises the identification of the target multimedia data and the authority verification identification.
And sending the background service request to a preset background server.
And receiving the dispatching server address corresponding to each data fragment returned by the background server. The background server is used for verifying the terminal based on the authority verification identification; and returning the scheduling server address corresponding to each data fragment based on the identification of the target multimedia data under the condition of passing the verification.
Optionally, the apparatus 40 further includes:
a receiving module 404, configured to receive an error code returned by the target data server; wherein different error codes correspond to different fault types.
A second sending module 405, configured to send a fault handling notification message to a user; the fault processing reminding information comprises the identification of the target data server and the error code, and is used for reminding a user of processing the target data server.
Optionally, the apparatus 40 further includes:
a third determining module 406, configured to determine that there is no acquisition fault in the data stored in the target data server if the target multimedia data returned by the target data server is received.
In summary, the failure determining apparatus provided in the embodiments of the present invention may determine the address of the target data server according to the geographic storage area corresponding to the target multimedia data, where the target data server sets the geographic storage area and stores the target multimedia data, send a data obtaining request to the target data server based on the address of the target data server, and finally determine that the data stored in the target data server has an obtaining failure if the target multimedia data returned by the target data server is not received. In the embodiment of the invention, the data acquisition request is sent to the target data server which stores the target multimedia data in the geographic storage area corresponding to the target multimedia data, the data stored in the target data server which does not return the target multimedia data is determined to have the acquisition fault, the data with the acquisition fault in each geographic storage area is rapidly and comprehensively checked, meanwhile, the problem that the user cannot normally acquire the target multimedia data can be avoided to a certain extent by checking the data with the acquisition fault in each geographic storage area in advance, and the data acquisition efficiency is improved.
For the above device embodiment, since it is basically similar to the method embodiment, the description is simple, and for relevant points, reference may be made to the partial description of the method embodiment.
Preferably, an embodiment of the present invention further provides a terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the foregoing embodiment of the fault determination method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the fault determination method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As is readily imaginable to the person skilled in the art: any combination of the above embodiments is possible, and thus any combination between the above embodiments is an embodiment of the present invention, but the present disclosure is not necessarily detailed herein for reasons of space.
The fault determination methods provided herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system embodying aspects of the present invention will be apparent from the above description. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore, may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the fault determination method according to embodiments of the invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (11)

1. A fault determination method is applied to a terminal, and comprises the following steps:
when fault detection is needed, determining the address of a target data server according to the geographic storage area corresponding to the target multimedia data; the target data server is arranged in the geographic storage area, the target multimedia data are stored in the target data server, and the address of the target data server comprises the address of the target data server in each geographic storage area, which stores the target multimedia data;
sending a data acquisition request to the target data server based on the address of the target data server to check faults in advance;
if the target multimedia data returned by the target data server is not received, determining that the data stored in the target data server has an acquisition fault;
receiving an error code returned by the target data server; wherein, different error codes correspond to different fault types;
sending fault processing reminding information to a user; the fault processing reminding information comprises the identification of the target data server and the error code, and is used for reminding a user of processing the target data server.
2. The method of claim 1, wherein determining the target data server address according to the geographic storage region corresponding to the target multimedia data comprises:
for each geographic storage area, sending a data server address request to a scheduling server corresponding to target multimedia data; the data server address request comprises a position identifier of the geographic storage area and an identifier of the target multimedia data;
and receiving the address of the target data server returned by the dispatching server.
3. The method of claim 2, wherein the target multimedia data comprises a plurality of data slices;
the sending of the data server address request to the scheduling server corresponding to the target multimedia data includes:
acquiring a scheduling server address corresponding to each data fragment;
and for each data fragment, sending a data server address request to a scheduling server corresponding to the data fragment based on the scheduling server address corresponding to the data fragment.
4. The method of claim 3, wherein the obtaining the address of the scheduling server corresponding to each data slice comprises:
generating a background service request; the background service request at least comprises an identifier of the target multimedia data and an authority verification identifier;
sending the background service request to a preset background server;
receiving a scheduling server address corresponding to each data fragment returned by the background server; the background server is used for verifying the terminal based on the authority verification identifier; and returning the address of the scheduling server corresponding to each data fragment based on the identification of the target multimedia data under the condition of passing the verification.
5. The method of claim 1, further comprising:
and if the target multimedia data returned by the target data server is received, determining that the data stored in the target data server has no acquisition fault.
6. A fault determination apparatus, applied to a terminal, the apparatus comprising:
the first determining module is used for determining the address of a target data server according to the geographic storage area corresponding to the target multimedia data when fault detection is required; the target data server is arranged in the geographic storage area, the target multimedia data are stored in the target data server, and the address of the target data server comprises the address of the target data server in each geographic storage area, which stores the target multimedia data;
the first sending module is used for sending a data acquisition request to the target data server based on the address of the target data server so as to check faults in advance;
the second determining module is used for determining that the data stored in the target data server has an acquisition fault if the target multimedia data returned by the target data server is not received;
the receiving module is used for receiving the error code returned by the target data server; wherein, different error codes correspond to different fault types;
the second sending module is used for sending fault processing reminding information to the user; the fault processing reminding information comprises the identification of the target data server and the error code, and is used for reminding a user of processing the target data server.
7. The apparatus of claim 6, wherein the first determining module is specifically configured to:
for each geographic storage area, sending a data server address request to a scheduling server corresponding to target multimedia data; the data server address request comprises a position identifier of the geographic storage area and an identifier of the target multimedia data;
and receiving the address of the target data server returned by the dispatching server.
8. The apparatus of claim 7, wherein the target multimedia data comprises a plurality of data slices;
the first determining module is further specifically configured to:
acquiring a scheduling server address corresponding to each data fragment;
and for each data fragment, sending a data server address request to a scheduling server corresponding to the data fragment based on the scheduling server address corresponding to the data fragment.
9. The apparatus of claim 8, wherein the first determining module is further specifically configured to:
generating a background service request; the background service request at least comprises an identifier of the target multimedia data and an authority verification identifier;
sending the background service request to a preset background server;
receiving a scheduling server address corresponding to each data fragment returned by the background server; the background server is used for verifying the terminal based on the authority verification identifier; and returning the scheduling server address corresponding to each data fragment based on the identification of the target multimedia data under the condition of passing the verification.
10. The apparatus of claim 6, further comprising:
and the third determining module is used for determining that the data stored in the target data server has no acquisition fault if the target multimedia data returned by the target data server is received.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of fault determination according to any one of claims 1 to 5.
CN201910677451.1A 2019-07-25 2019-07-25 Fault determination method and device and computer readable storage medium Active CN110535685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910677451.1A CN110535685B (en) 2019-07-25 2019-07-25 Fault determination method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910677451.1A CN110535685B (en) 2019-07-25 2019-07-25 Fault determination method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110535685A CN110535685A (en) 2019-12-03
CN110535685B true CN110535685B (en) 2023-01-13

Family

ID=68661318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910677451.1A Active CN110535685B (en) 2019-07-25 2019-07-25 Fault determination method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110535685B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112261118B (en) * 2020-10-19 2022-03-25 腾讯科技(深圳)有限公司 Multimedia data anomaly detection method, terminal and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905526A (en) * 2014-03-05 2014-07-02 深圳市同洲电子股份有限公司 Dispatching method and server
CN107171885A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of methods, devices and systems of detection service device running status
CN108038020A (en) * 2018-01-02 2018-05-15 福建中金在线信息科技有限公司 Webpage fault trace method, apparatus, electronic equipment and computer-readable storage medium
CN109120432A (en) * 2018-07-18 2019-01-01 北京奇艺世纪科技有限公司 A kind of failed server localization method and device
CN109831470A (en) * 2017-11-23 2019-05-31 阿里巴巴集团控股有限公司 Application data management method, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10205801B2 (en) * 2016-01-12 2019-02-12 International Business Machines Corporation Data transfer policies between source and target servers in a wide area network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905526A (en) * 2014-03-05 2014-07-02 深圳市同洲电子股份有限公司 Dispatching method and server
CN107171885A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of methods, devices and systems of detection service device running status
CN109831470A (en) * 2017-11-23 2019-05-31 阿里巴巴集团控股有限公司 Application data management method, device and electronic equipment
CN108038020A (en) * 2018-01-02 2018-05-15 福建中金在线信息科技有限公司 Webpage fault trace method, apparatus, electronic equipment and computer-readable storage medium
CN109120432A (en) * 2018-07-18 2019-01-01 北京奇艺世纪科技有限公司 A kind of failed server localization method and device

Also Published As

Publication number Publication date
CN110535685A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
US11068964B2 (en) Method and device for processing service request
WO2017113677A1 (en) User behavior data processing method and system
CN109862379B (en) Log processing method and device, mobile terminal and storage medium
JP6613373B2 (en) Technology that determines client-side effects of server-side behavior using canary analysis
US8769042B2 (en) Delivering a file
CN104468399B (en) Data transmission method and device and server
CN107071550B (en) Video data sharing method and device
CN110535685B (en) Fault determination method and device and computer readable storage medium
CN104050054B (en) Processing method for installation package installation failure and cause determining method and device
CN112153410A (en) High-concurrency testing method and system for streaming media service
CN114245182B (en) Live video stream acquisition method and device
CN108271050B (en) Live broadcast room program recommendation method and device
CN110740353A (en) Request identification method and device
CN110944231B (en) Monitoring method and device of video player
US9317669B1 (en) Verifying ownership of content
CN110602483B (en) Video fault determination method, device and computer readable storage medium
CN106792227A (en) A kind of live middle interactive method and device
CN108271033B (en) Video live broadcast method and device
CN107968779A (en) Auth method and device
US11729246B2 (en) Apparatus and method for determining types of uniform resource locator
CN112995648B (en) Internet television full-flow fault diagnosis method and device and computing equipment
CN108111880B (en) Obstacle removing method and obstacle removing system
CN117171235B (en) Data analysis method based on industrial identification and related equipment
CN110717118B (en) Page activation method and device in application, electronic equipment and storage medium
CN106453207B (en) Advertisement material data website verification 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
GR01 Patent grant
GR01 Patent grant