CN109347766B - Resource scheduling method and device - Google Patents

Resource scheduling method and device Download PDF

Info

Publication number
CN109347766B
CN109347766B CN201811493748.4A CN201811493748A CN109347766B CN 109347766 B CN109347766 B CN 109347766B CN 201811493748 A CN201811493748 A CN 201811493748A CN 109347766 B CN109347766 B CN 109347766B
Authority
CN
China
Prior art keywords
server
domain name
address
client
name chain
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.)
Expired - Fee Related
Application number
CN201811493748.4A
Other languages
Chinese (zh)
Other versions
CN109347766A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201811493748.4A priority Critical patent/CN109347766B/en
Publication of CN109347766A publication Critical patent/CN109347766A/en
Application granted granted Critical
Publication of CN109347766B publication Critical patent/CN109347766B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for scheduling resources, wherein the method comprises the following steps: obtaining domain name test information, wherein the domain name test information comprises a client accelerated domain name chain of a logic region and a test link of the client accelerated domain name chain, determining a server IP address corresponding to the test link of the client accelerated domain name chain according to the test link of the client accelerated domain name chain in a preset period, accessing a server corresponding to the server IP address, and deleting the server IP address located on the logic region in the client accelerated domain name chain when determining that the server corresponding to the server IP address is abnormal in access. One or more monitors are arranged in the logic area, so that the monitors monitor the server IP address of the logic area of the client acceleration domain name chain, and after the server IP address is determined to be abnormal, only the server IP address of the logic area of the client acceleration domain name chain is deleted, thereby avoiding the problem of CDN resource waste.

Description

Resource scheduling method and device
Technical Field
The embodiment of the invention relates to the field of resource scheduling, in particular to a method and a device for resource scheduling.
Background
In the CDN (Content Delivery Network), various Network contents are cached by a cache server and the cache servers are distributed to various regions, and when a client accesses a Network Content, the client directs the access of the client to the cache server closest to the client, thereby achieving Network acceleration. At present, more and more network resources are accelerated by using a CDN technology, and the user access speed is increased and the pressure of a source station is reduced by using a distance priority principle, a same operator priority principle and the like.
When network resources are accelerated by using the CDN technology, when one or more servers IP (Internet Protocol, Protocol for interconnection between networks) make an abnormal access on a single or multiple client accelerated domain name chains due to software reasons or other reasons, they can still normally access multiple logical areas of other multiple client accelerated domain name chains. After the monitoring system in the prior art feeds back the abnormal server IP address to the scheduling system, the scheduling system deletes the server IP address in each logic area of all the client acceleration domain name chains. In this way, some server IP addresses available on part of the customer acceleration domain name chain or on part of the logical area are deleted, which results in a waste of CDN resources.
Disclosure of Invention
The embodiment of the invention provides a resource scheduling method and device, which aim to delete a server IP address by accurately detecting whether different logic areas of different customer accelerated domain name chains are normally served, so that the waste of CDN resources is avoided.
The method for scheduling resources provided by the embodiment of the invention comprises the following steps:
acquiring domain name test information, wherein the domain name test information comprises a client accelerated domain name chain of a logic area and a test link of the client accelerated domain name chain;
determining a server IP address corresponding to the test link of the client acceleration domain name chain according to a preset period;
accessing a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client accelerated domain name chain;
and deleting the server IP address positioned on the logic area in the client acceleration domain name chain when the server corresponding to the server IP address is determined to be abnormally accessed.
In the technical scheme, whether a server on a logic region is abnormally accessed is tested for a specific logic region in a specific customer accelerated domain name chain, and if the server is determined to be abnormally accessed, the server IP address on the specific logic region in the specific customer accelerated domain name chain is deleted, so that the problem of CDN resource waste caused by that some servers are abnormally accessed on the logic region of a part of customer accelerated domain name chain due to software or other reasons and the server IP address is deleted in the whole customer accelerated domain name chain or the whole logic region is solved.
Optionally, the determining, according to the test link of the client accelerated domain name chain, the server IP address corresponding to the test link of the client accelerated domain name chain according to a preset period includes:
sending a Domain Name resolution request to a Domain Name resolution System (DNS) server according to a preset period according to a test link of a client acceleration Domain Name chain;
and acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS server.
In the technical scheme, the DNS server is adopted to determine the server IP address corresponding to the test link of the client acceleration domain name chain, and the server IP address is used for determining the server corresponding to the access server IP address.
Optionally, the accessing the server corresponding to the server IP address according to the server IP address corresponding to the test link of the client accelerated domain name chain includes:
and sequentially accessing the servers corresponding to the server IP addresses according to the sequence of the server IP addresses corresponding to the test links of the client accelerated domain name chain.
Optionally, the determining that the server corresponding to the server IP address is abnormally accessed includes:
and if the failure times of accessing the server corresponding to the server IP address reach a first threshold value, determining that the server corresponding to the server IP address is abnormal in access.
In the technical scheme, the server access abnormality corresponding to the server IP address is determined only after the failure times of accessing the server corresponding to the server IP address reach the first threshold value, so that the accuracy of deleting the abnormal server IP address on the specific logic area of the specific client acceleration domain name chain is improved.
Optionally, after the deleting the server IP address located on the logical area in the client accelerated domain name chain, the method further includes:
and scheduling resources according to the client acceleration domain name chain after the IP address of the server is deleted, and sending a scheduling result to the DNS server.
In the technical scheme, resource scheduling is carried out according to the client acceleration domain name chain after the server IP address is deleted, and a scheduling result is sent to the DNS server, so that the DNS server is ensured not to respond an abnormal server IP address to a user after receiving a domain name resolution request.
Correspondingly, an embodiment of the present invention further provides a device for resource scheduling, including:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring domain name test information which comprises a client acceleration domain name chain of a logic area and a test link of the client acceleration domain name chain;
the determining unit is used for determining a server IP address corresponding to the test link of the client acceleration domain name chain according to a preset period;
the access unit is used for accessing a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client acceleration domain name chain;
and the processing unit is used for deleting the server IP address positioned on the logic area in the client acceleration domain name chain when the server corresponding to the server IP address is determined to be abnormal in access.
Optionally, the determining unit is specifically configured to:
sending a domain name resolution request to a DNS according to a preset period according to a test link of a client acceleration domain name chain;
and acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS server.
Optionally, the access unit is specifically configured to:
and sequentially accessing the servers corresponding to the server IP addresses according to the sequence of the server IP addresses corresponding to the test links of the client accelerated domain name chain.
Optionally, the processing unit is specifically configured to:
and if the failure times of accessing the server corresponding to the server IP address reach a first threshold value, determining that the server corresponding to the server IP address is abnormal in access.
Optionally, after deleting the server IP address located on the logical zone in the client accelerated domain name chain, the processing unit is further configured to:
and scheduling resources according to the client acceleration domain name chain after the IP address of the server is deleted, and sending a scheduling result to the DNS server.
Correspondingly, an embodiment of the present invention further provides a monitoring system, including:
a scheduling system, a domain name resolution system (DNS) server and a server;
the scheduling system acquires domain name test information; the domain name test information comprises a client accelerated domain name chain of a logic area and a test link of the client accelerated domain name chain;
the dispatching system sends a domain name resolution request to a DNS according to a test link of the client acceleration domain name chain according to a preset period; acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS;
the dispatching system accesses a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client acceleration domain name chain;
and when determining that the server corresponding to the server IP address is abnormal in access, the scheduling system deletes the server IP address located on the logic area in the client acceleration domain name chain.
Correspondingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the resource scheduling method according to the obtained program.
Accordingly, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer-readable instructions are read and executed by a computer, the computer is caused to execute the above method for resource scheduling.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for scheduling resources according to an embodiment of the present invention;
fig. 3 is a schematic diagram of CDN resource logic according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for resource scheduling according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 exemplarily shows a system architecture to which the resource scheduling method provided by the embodiment of the present invention is applicable, and the system architecture may include a scheduling system 101, a monitor 102, and a DNS server 103.
The scheduling system 101 is used for resource scheduling in the CDN, and when it is determined that an access abnormality occurs to an IP address of a certain server, the scheduling system 101 may delete the IP address of the server where the access abnormality occurs, so that the DNS server 103 may respond to the IP address of the server that is closest to the client and where the service access is normal.
The monitor 102 is used for monitoring whether the server in the CDN can be accessed normally.
The DNS server 103 is composed of a domain name resolver and a domain name server. The domain name server is a server which stores domain names and corresponding IP addresses of all hosts in the network and has a function of converting the domain names into the IP addresses. The process of mapping a domain name to an IP address is known as "domain name resolution".
It should be noted that the monitoring machine 102 may be understood as a device installed with monitoring software. The monitoring machine 102 may be a separate device in a specific application process, or may be a device located in the scheduling system 101, and belongs to a part of the scheduling system 101.
Based on the above description, fig. 2 exemplarily shows a flow of a resource scheduling method according to an embodiment of the present invention, where the flow may be executed by a device for resource scheduling. As shown in fig. 2, the process specifically includes:
step 201, domain name test information is obtained.
The domain name test information comprises a client accelerated domain name chain of the logic area and a test link of the client accelerated domain name chain. The logical area is composed of "operator + geographical location", for example, the operator is "telecom", the geographical location is "quan", and the logical area is "telecom quan". The client accelerated domain name chain may be understood as a domain name of a client domain name accelerated in the public network access CDN, for example, an accelerated domain name on the public network with an original domain name of "www.xxxx.com." is "www.xxxx.com.lxdns.com.". The CDN plans different client acceleration domain name chains according to different client acceleration types, where the client acceleration types may include on-demand acceleration, web acceleration, live acceleration, and the like, and accordingly, the client acceleration domain name chains may also be classified as on-demand acceleration, web acceleration, live acceleration, and the like.
Different monitors are arranged on different logic areas, one logic area corresponds to one or more monitors, and the monitors monitor the availability of CDN resources of different customer accelerated domain names on the same logic area. Taking the CDN resource logic diagram shown in fig. 3 as an example, the CDN resources include a server 1, a server 2, a server 3, a server 4, a server 5, and a server 6, and are divided into a client acceleration domain name chain 1 and a client acceleration domain name chain 2 according to a client acceleration type, where both the client acceleration domain name chain 1 and the client acceleration domain name chain 2 include a logic region 1 and a logic region 2, and the logic region 1 of the client acceleration domain name chain 1 and the logic region 1 of the client acceleration domain name chain 2 are the same logic region; logical zone 2 of customer acceleration domain name chain 1 and logical zone 2 of customer acceleration domain name chain 2 are the same logical zone. The monitoring machine 1 monitors a logic region 1 of a client acceleration domain name chain 1 and a logic region 1 of a client acceleration domain name chain 2, namely a monitoring server 1, a server 2 and a server 3; the monitoring machine 2 and the monitoring machine 3 jointly monitor the logic area 2 of the client acceleration domain name chain 1 and the logic area 2 of the client acceleration domain name chain 2, namely, jointly monitor the server 2, the server 3, the server 4 and the server 6 (firstly, the monitoring machine 2 monitors the server 2, the server 3, the server 4 and the server 6; and secondly, the monitoring machine 3 monitors the server 2, the server 3, the server 4 and the server 6).
In fig. 3, obtaining domain name test information is equivalent to obtaining, by the monitor 1, a client accelerated domain name chain 1 of the logical area 1, a test link 1 of the client accelerated domain name chain 1, a client accelerated domain name chain 2 of the logical area 1, and a test link 2 of the client accelerated domain name chain 2; the monitor 2 acquires the client accelerated domain name chain 1 of the logical region 2, the test link 1 of the client accelerated domain name chain 1, the client accelerated domain name chain 2 of the logical region 2, and the test link 2 of the client accelerated domain name chain 2 (the monitor 3 is the same as the monitor 2).
In a specific application scenario, the CDN plans different customer acceleration domain name chains according to different customer acceleration types for different network resources, and different customer acceleration domain name chains may plan different CDN cache server resources to provide different acceleration services. When a telecommunication user in the state of quan inquires to access a certain acceleration resource, the DNS server responds the server IP address of the state of quan on the corresponding client acceleration domain name chain to the telecommunication user in the state of quan, so that the telecommunication user in the state of quan can make a near access.
It should be noted that the IP addresses of the servers used in different logical areas of the accelerated domain name chains of different clients or the same logical area of the accelerated domain name chains of different clients may be the same; the IP addresses of the servers used by different logic areas in a single client accelerated domain name chain can also be the same; the logical zones for different customer acceleration domains are the same, differing only in that the types of CDN resources used by different customer acceleration domains may be different.
Step 202, determining a server IP address corresponding to the test link of the client accelerated domain name chain according to a preset period.
Here, the preset period may be set empirically, and may be set to 2 min.
Specifically, the server IP address corresponding to the test link of the client acceleration domain name chain can be determined by the DNS server: and sending a domain name resolution request to the DNS according to a preset period according to the test link of the client acceleration domain name chain, and acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS. That is, after receiving the test link of the client accelerated domain name chain, the DNS server may resolve the server IP address corresponding to the test link of the client accelerated domain name chain.
With reference to fig. 3, the monitoring machine 1 sends a domain name resolution request to the DNS server according to the test link 1 of the client acceleration domain name chain 1, and obtains an IP address of the server 1 and an IP address of the server 2 corresponding to the test link 1 of the client acceleration domain name chain 1 sent by the DNS server; the monitoring machine 1 sends a domain name resolution request to the DNS server according to the test link 2 of the client acceleration domain name chain 2, and acquires the IP address of the server 2 and the IP address of the server 3 corresponding to the test link 2 of the client acceleration domain name chain 2 sent by the DNS server. Similarly, the server IP address 2, the server IP address 3, and the server IP address 4 corresponding to the test link 1 of the client acceleration domain name chain 1 acquired by the monitor 2 can be known; and the monitoring machine 2 acquires the server IP address 6 corresponding to the testing link 2 of the client acceleration domain name chain 2 (the monitoring machine 3 and the monitoring machine 2).
Step 203, accessing a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client accelerated domain name chain.
Optionally, the servers corresponding to the server IP addresses are sequentially accessed according to the sequence of the server IP addresses corresponding to the test links of the client accelerated domain name chain. It is understood that, according to the server IP addresses corresponding to the test links of the client acceleration domain name chain determined in step 202, the servers corresponding to the server IP addresses are accessed one by one in a polling manner.
With reference to fig. 3, the monitor 1 accesses the server 1, the server 2, and the server 3 by polling; the monitoring machine 2 accesses the server 2, the server 3, the server 4 and the server 6 in a polling mode; the monitor 3 accesses the server 2, the server 3, the server 4 and the server 6 in a polling mode.
And 204, deleting the server IP address located in the logical area in the client acceleration domain name chain when determining that the server corresponding to the server IP address is abnormally accessed.
Here, when accessing the server corresponding to the server IP address according to the server IP address corresponding to the test link of the client accelerated domain name chain, there may be two cases. Firstly, if the access is successful, the server corresponding to the IP address of the server is determined to be normally accessed; and secondly, counting the number of times of access failure if the access failure occurs, and determining that the server corresponding to the IP address of the server is abnormal if the number of times of access failure reaches a first threshold value. And if the failure times of accessing the server corresponding to the server IP address reach the first threshold value, determining that the server corresponding to the server IP address is abnormal in access. The first threshold may be set empirically, for example, the first threshold may be equal to 3.
After determining that a server corresponding to a server IP address is abnormal in access, deleting the abnormal server IP address from a specific logic region of a specific client accelerated domain name chain, that is, in the embodiment of the present invention, determining that a server IP address is abnormal, instead of deleting all client accelerated domain name chains or the abnormal server IP address from all logic regions, determining a specific logic region of a specific client accelerated domain name chain in which the server IP address is abnormal, and only deleting the abnormal server IP address from the specific logic region of the determined specific client accelerated domain name chain.
In the above embodiment, it is determined that the server access abnormality corresponding to the server IP address is not satisfied until the number of failures to access the server corresponding to the server IP address reaches the first threshold, so that the accuracy of deleting the abnormal server IP address in the specific logical area of the specific client acceleration domain name chain is improved. In order to further ensure the accuracy of deleting the IP address of the abnormal server, the embodiment of the present invention provides another implementable manner:
setting N monitors (N is more than or equal to 1) aiming at a certain logic area, and if the monitors which are not less than the set proportion determine that a certain server in the logic area is abnormal, determining to delete the server in the logic area; and if the monitoring machine with the ratio smaller than the set ratio determines that a certain server in the logic area is abnormal, determining not to delete the server in the logic area. The set ratio may be determined empirically, and may be 50%, for example.
After the server IP address on the logic area in the client acceleration domain name chain is deleted, the resource scheduling can be carried out according to the client acceleration domain name chain after the server IP address is deleted, and the scheduling result is sent to the DNS server. So as to ensure that the DNS server does not respond the abnormal server IP address to the user after receiving the domain name resolution request.
According to the embodiment of the invention, domain name test information is obtained, wherein the domain name test information comprises a client acceleration domain name chain of a logic region and a test link of the client acceleration domain name chain, a server IP address corresponding to the test link of the client acceleration domain name chain is determined according to the test link of the client acceleration domain name chain according to a preset period, a server corresponding to the server IP address is accessed according to the server IP address corresponding to the test link of the client acceleration domain name chain, and the server IP address positioned on the logic region in the client acceleration domain name chain is deleted when the server corresponding to the server IP address is determined to be abnormally accessed. The method comprises the steps that one or more monitors are arranged in a logic area, so that the monitors monitor a server of the logic area of a client acceleration domain name chain, and only the server IP address of the logic area of the client acceleration domain name chain is deleted after the IP address of a certain server is determined to be abnormal, so that the problem of CDN resource waste caused by deletion of the server IP address in the whole client acceleration domain name chain or the whole logic area due to abnormal access of some servers on the logic area of part of the client acceleration domain name chain caused by software or other reasons is avoided.
Based on the same inventive concept, fig. 4 exemplarily shows a structure of an apparatus for resource scheduling, which may perform a flow of a method for resource scheduling according to an embodiment of the present invention.
An obtaining unit 401, configured to obtain domain name test information, where the domain name test information includes a client accelerated domain name chain in a logic region and a test link of the client accelerated domain name chain;
a determining unit 402, configured to determine, according to the test link of the client acceleration domain name chain, a server IP address corresponding to the test link of the client acceleration domain name chain according to a preset period;
an accessing unit 403, configured to access a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client acceleration domain name chain;
a processing unit 404, configured to delete the server IP address located on the logical area in the client acceleration domain name chain when it is determined that the server access corresponding to the server IP address is abnormal.
Optionally, the determining unit 402 is specifically configured to:
sending a domain name resolution request to a DNS according to a preset period according to a test link of a client acceleration domain name chain;
and acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS server.
The access unit 403 is specifically configured to:
and sequentially accessing the servers corresponding to the server IP addresses according to the sequence of the server IP addresses corresponding to the test links of the client accelerated domain name chain.
Optionally, the processing unit 404 is specifically configured to:
and if the failure times of accessing the server corresponding to the server IP address reach a first threshold value, determining that the server corresponding to the server IP address is abnormal in access.
Optionally, after the deleting the server IP address located on the logical zone in the client accelerated domain name chain, the processing unit 404 is further configured to:
and scheduling resources according to the client acceleration domain name chain after the IP address of the server is deleted, and sending a scheduling result to the DNS server.
Based on the same inventive concept, an embodiment of the present invention further provides a monitoring system, including:
a scheduling system, a domain name resolution system (DNS) server and a server;
the scheduling system acquires domain name test information; the domain name test information comprises a client accelerated domain name chain of a logic area and a test link of the client accelerated domain name chain;
the dispatching system sends a domain name resolution request to a DNS according to a test link of the client acceleration domain name chain according to a preset period; acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS;
the dispatching system accesses a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client acceleration domain name chain;
and when determining that the server corresponding to the server IP address is abnormal in access, the scheduling system deletes the server IP address located on the logic area in the client acceleration domain name chain.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the resource scheduling method according to the obtained program.
Based on the same inventive concept, embodiments of the present invention further provide a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the method for scheduling resources.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (11)

1. A method for resource scheduling, comprising:
acquiring domain name test information, wherein the domain name test information comprises a client accelerated domain name chain of a logic area and a test link of the client accelerated domain name chain;
determining a server IP address corresponding to the test link of the client acceleration domain name chain according to a preset period;
accessing a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client accelerated domain name chain;
and deleting the server IP address positioned on the logic area in the client acceleration domain name chain when the server corresponding to the server IP address is determined to be abnormally accessed.
2. The method of claim 1, wherein the determining, according to the test link of the client accelerated domain name chain, the server IP address corresponding to the test link of the client accelerated domain name chain according to a preset period comprises:
sending a domain name resolution request to a domain name resolution system (DNS) server according to a test link of a client acceleration domain name chain according to a preset period;
and acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS server.
3. The method of claim 1, wherein the accessing the server corresponding to the server IP address according to the server IP address corresponding to the test link of the client accelerated domain name chain comprises:
and sequentially accessing the servers corresponding to the server IP addresses according to the sequence of the server IP addresses corresponding to the test links of the client accelerated domain name chain.
4. The method of claim 1, wherein the determining that the server IP address corresponds to a server access anomaly comprises:
and if the failure times of accessing the server corresponding to the server IP address reach a first threshold value, determining that the server corresponding to the server IP address is abnormal in access.
5. The method of any of claims 1 to 4, further comprising, after said deleting the server IP address located on the logical zone in the client acceleration domain name chain:
and scheduling resources according to the client acceleration domain name chain after the IP address of the server is deleted, and sending a scheduling result to the DNS server.
6. An apparatus for resource scheduling, comprising:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring domain name test information which comprises a client acceleration domain name chain of a logic area and a test link of the client acceleration domain name chain;
the determining unit is used for determining a server IP address corresponding to the test link of the client acceleration domain name chain according to a preset period;
the access unit is used for accessing a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client acceleration domain name chain;
and the processing unit is used for deleting the server IP address positioned on the logic area in the client acceleration domain name chain when the server corresponding to the server IP address is determined to be abnormal in access.
7. The apparatus of claim 6, wherein the determination unit is specifically configured to:
sending a domain name resolution request to a domain name resolution system (DNS) server according to a test link of a client acceleration domain name chain according to a preset period;
and acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS server.
8. The apparatus of claim 6, wherein the access unit is specifically configured to:
and sequentially accessing the servers corresponding to the server IP addresses according to the sequence of the server IP addresses corresponding to the test links of the client accelerated domain name chain.
9. The apparatus as claimed in claim 6, wherein said processing unit is specifically configured to:
and if the failure times of accessing the server corresponding to the server IP address reach a first threshold value, determining that the server corresponding to the server IP address is abnormal in access.
10. The apparatus of any of claims 6 to 9, wherein after the deleting the server IP address located on the logical zone in the client acceleration domain name chain, the processing unit is further to:
and scheduling resources according to the client acceleration domain name chain after the IP address of the server is deleted, and sending a scheduling result to the DNS server.
11. A monitoring system, comprising:
a scheduling system, a domain name resolution system DNS server and a server in a content delivery network CDN;
the scheduling system acquires domain name test information; the domain name test information comprises a client accelerated domain name chain of a logic area and a test link of the client accelerated domain name chain;
the dispatching system sends a domain name resolution request to a DNS according to a test link of the client acceleration domain name chain according to a preset period; acquiring a server IP address corresponding to the test link of the client acceleration domain name chain sent by the DNS;
the dispatching system accesses a server corresponding to the server IP address according to the server IP address corresponding to the test link of the client acceleration domain name chain;
and when determining that the server corresponding to the server IP address is abnormal in access, the scheduling system deletes the server IP address located on the logic area in the client acceleration domain name chain.
CN201811493748.4A 2018-12-07 2018-12-07 Resource scheduling method and device Expired - Fee Related CN109347766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811493748.4A CN109347766B (en) 2018-12-07 2018-12-07 Resource scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811493748.4A CN109347766B (en) 2018-12-07 2018-12-07 Resource scheduling method and device

Publications (2)

Publication Number Publication Date
CN109347766A CN109347766A (en) 2019-02-15
CN109347766B true CN109347766B (en) 2022-03-08

Family

ID=65302958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811493748.4A Expired - Fee Related CN109347766B (en) 2018-12-07 2018-12-07 Resource scheduling method and device

Country Status (1)

Country Link
CN (1) CN109347766B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381081B (en) * 2019-08-07 2023-07-18 上海视云网络科技有限公司 Network access method and device and electronic equipment
CN112235138B (en) * 2020-10-12 2023-06-02 北京知道未来信息技术有限公司 Server access monitoring method and device, proxy server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741643A (en) * 2009-12-24 2010-06-16 北京世纪互联宽带数据中心有限公司 Content delivery network node detecting method and system
CN102055818A (en) * 2010-12-30 2011-05-11 北京世纪互联工程技术服务有限公司 Distributed intelligent DNS (domain name server) library system
CN102932204A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Monitoring method and monitoring system of content delivery network
WO2017129992A1 (en) * 2016-01-29 2017-08-03 Tectonic Interactive Limited System and method for managing communication sessions between clients and a server
CN108199925A (en) * 2018-01-30 2018-06-22 网宿科技股份有限公司 A kind of data transmission method for uplink, method of reseptance and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741643A (en) * 2009-12-24 2010-06-16 北京世纪互联宽带数据中心有限公司 Content delivery network node detecting method and system
CN102055818A (en) * 2010-12-30 2011-05-11 北京世纪互联工程技术服务有限公司 Distributed intelligent DNS (domain name server) library system
CN102932204A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Monitoring method and monitoring system of content delivery network
WO2017129992A1 (en) * 2016-01-29 2017-08-03 Tectonic Interactive Limited System and method for managing communication sessions between clients and a server
CN108199925A (en) * 2018-01-30 2018-06-22 网宿科技股份有限公司 A kind of data transmission method for uplink, method of reseptance and device

Also Published As

Publication number Publication date
CN109347766A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN107395683B (en) Method for selecting return path and server
CN107528862B (en) Domain name resolution method and device
US10812314B2 (en) Methods and apparatuses for pushing a message
CN109995866B (en) Distributed file verification method and device, computer device and storage medium
CN109842566B (en) DNS (Domain name Server) analysis method and device
CN109768879B (en) Method and device for determining target service server and server
CN108200218B (en) Method and device for realizing load balance and electronic equipment
CN105681358A (en) Domain name hijacking detection method, device and system
CN107707631B (en) Data acquisition method and device
CN103716398A (en) Method and system for monitoring CDN server
CN109347766B (en) Resource scheduling method and device
US20160234129A1 (en) Communication system, queue management server, and communication method
CN110661673B (en) Heartbeat detection method and device
CN113342783A (en) Data migration method and device, computer equipment and storage medium
CN112261133A (en) CDN node control method, device, server and storage medium
CN109873855A (en) A kind of resource acquiring method and system based on block chain network
CN113315853B (en) Cloud protection node scheduling method, system and storage medium
CN109474484B (en) CDN (content delivery network) checking method, device and system
CN111787129A (en) Method and system for configuring local DNS server for client
CN111628878A (en) Fault positioning method, device and system based on multi-stage network nodes
CN117761255A (en) Pollution monitoring method, system, device and program product
CN109495319B (en) Method, device and equipment for determining fault information of CDN node
CN110381081B (en) Network access method and device and electronic equipment
CN111905362A (en) Game guild loading method and server
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220308