CN110493321B - Resource acquisition method, edge scheduling system and server - Google Patents

Resource acquisition method, edge scheduling system and server Download PDF

Info

Publication number
CN110493321B
CN110493321B CN201910671278.4A CN201910671278A CN110493321B CN 110493321 B CN110493321 B CN 110493321B CN 201910671278 A CN201910671278 A CN 201910671278A CN 110493321 B CN110493321 B CN 110493321B
Authority
CN
China
Prior art keywords
resource
target
server cluster
scheduling
scheduling system
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
CN201910671278.4A
Other languages
Chinese (zh)
Other versions
CN110493321A (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 CN201910671278.4A priority Critical patent/CN110493321B/en
Publication of CN110493321A publication Critical patent/CN110493321A/en
Application granted granted Critical
Publication of CN110493321B publication Critical patent/CN110493321B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a resource acquisition method, an edge scheduling system and a server, wherein the method comprises the following steps: receiving a resource acquisition request which is sent by a client and points to a target resource, and trying to acquire the target resource from a server cluster; if the target resource cannot be acquired from the server cluster, another target server cluster for storing the target resource is inquired, and an agent scheduling request pointing to the target resource is sent to a target edge scheduling system associated with the target server cluster; and under the condition that the target edge scheduling system responds to the agent scheduling request and acquires the target resource from the target server cluster, receiving the target resource fed back by the target edge scheduling system and providing the target resource to the client. The technical scheme provided by the application can improve convenience and safety of resource acquisition.

Description

Resource acquisition method, edge scheduling system and server
Technical Field
The invention relates to the technical field of internet, in particular to a resource acquisition method, an edge scheduling system and a server.
Background
Currently, in order to increase the loading speed of Network resources, a Content Delivery Network (CDN) is generally used to accelerate the Network resources. Specifically, as shown in fig. 1, the CDN may include a plurality of edge scheduling systems, each edge scheduling system may be associated with a respective server cluster, and cache servers in the server clusters may store various network resources.
As shown in fig. 1, when a client needs to acquire a target resource, a resource acquisition request may be sent to a nearby edge scheduling system a, and then the edge scheduling system a may acquire the target resource from an associated server cluster. However, sometimes the edge scheduling system a may not be able to acquire the target resource from the associated server cluster, in this case, the edge scheduling system a may feed back a redirection link to the client, and through the redirection link, the client may initiate a resource acquisition request to the edge scheduling system B again, so as to attempt to acquire the target resource from the edge scheduling system B.
In the existing resource acquisition mode, when the edge scheduling system accessed by the client for the first time cannot provide the target resource, the client needs to initiate multiple resource acquisition requests to acquire the target resource, which undoubtedly increases the burden of the client and also affects the use experience of the user. In addition, when the client initiates a resource acquisition request to the edge scheduling system B for the second time, the client needs to perform communication negotiation with the edge scheduling system B. However, the credentials used in this communication negotiation process are typically not the client's own credentials, and thus the security of the established communication connection is not guaranteed. In view of this, a more convenient and safer resource acquisition method is needed.
Disclosure of Invention
The application aims to provide a resource acquisition method, an edge scheduling system and a server, which can improve the convenience and the safety of resource acquisition.
In order to achieve the above object, an aspect of the present application provides a resource obtaining method, where the method is applied to an edge scheduling system, and the edge scheduling system is associated with a server cluster; the method comprises the following steps: receiving a resource acquisition request which is sent by a client and points to a target resource, and trying to acquire the target resource from the server cluster; if the target resource cannot be acquired from the server cluster, another target server cluster for storing the target resource is inquired, and an agent scheduling request pointing to the target resource is sent to a target edge scheduling system associated with the target server cluster; and under the condition that the target edge scheduling system responds to the agent scheduling request and acquires the target resource from the target server cluster, receiving the target resource fed back by the target edge scheduling system and providing the target resource to the client.
In order to achieve the above object, another aspect of the present application further provides an edge scheduling system, including: the resource acquisition request processing unit is used for receiving a resource acquisition request which is sent by a client and points to a target resource, and trying to acquire the target resource from the server cluster; the scheduling query unit is used for querying another target server cluster for storing the target resource and sending an agent scheduling request pointing to the target resource to a target edge scheduling system associated with the target server cluster if the target resource cannot be acquired from the server cluster; and the resource providing unit is used for receiving the target resource fed back by the target edge scheduling system and providing the target resource to the client under the condition that the target edge scheduling system responds to the proxy scheduling request and acquires the target resource from the target server cluster.
In order to achieve the above object, another aspect of the present application further provides an edge scheduling server, where the edge scheduling server includes a memory and a processor, the memory is used for storing a computer program, and the computer program, when executed by the processor, implements the above resource obtaining method.
Therefore, according to the technical scheme provided by the application, when the edge scheduling system which is accessed by the client nearby receives the resource acquisition request sent by the client, the corresponding target resource can be tried to be acquired from the associated server cluster. If the edge scheduling system cannot acquire the target resource, another target server cluster for storing the target resource may be queried, and a proxy scheduling request may be sent to the target edge scheduling system associated with the target server cluster, where the proxy scheduling request may be used to acquire the target resource from the target server cluster. Therefore, after receiving the proxy scheduling request, the target edge scheduling system can acquire the target resource from the target server cluster and feed the target resource back to the edge scheduling system accessed by the client. Subsequently, the edge scheduling system may provide the target resource to the client, thereby completing the resource acquisition process. In the resource obtaining process, the client only needs to send a resource obtaining request to the edge scheduling system accessed nearby once, and does not need to send multiple requests to different edge scheduling systems, so that the burden of the client is reduced, and the use experience of a user is optimized. In addition, when the edge scheduling system sends the agent scheduling request to the target edge scheduling system in an agent mode, communication negotiation with the target edge scheduling system is not needed, and therefore safety of resource acquisition is guaranteed.
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 resource acquisition in the prior art;
FIG. 2 is a system architecture diagram of resource acquisition in an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating steps of a resource acquisition method according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of an edge scheduling system according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an edge scheduling server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer terminal in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The present application provides a resource acquisition method, which can be applied to the system shown in fig. 2. In the system, a client, an edge scheduling system which is accessed by the client nearby, a server cluster associated with the edge scheduling system, another target edge scheduling system, a target server cluster associated with the target edge scheduling system and a central scheduling system can be included. The client may be a terminal device used by a user, or may be software running in the terminal device. The client can access an edge scheduling system in the CDN system nearby and obtain the target resource from the edge scheduling system. The server cluster associated with the edge scheduling system may include a plurality of cache servers, each of which may be configured to store network resources, and the edge scheduling system may obtain target resources required by the client from one or more cache servers in the associated server cluster according to a preset scheduling policy. The other target edge scheduling system can communicate with the edge scheduling system which is accessed by the client nearby through a proxy mode (proxy). The target edge scheduling system may also have its own associated target server cluster, and one or more cache servers included in the target server cluster may also be used to store network resources. The central scheduling system may be configured to store resource scheduling information of each edge scheduling system, where the resource scheduling information may indicate which edge scheduling systems have the same resource pool. Each edge scheduling system can actively load the latest resource scheduling information from the central scheduling system, and meanwhile, the central scheduling system can also issue the latest resource scheduling information to each edge scheduling system according to a fixed period.
In the resource obtaining method provided in an embodiment of the present application, the execution main body may be an edge scheduling system to which the client accesses nearby. Referring to fig. 2 and 3, the method may include the following steps.
S1: and receiving a resource acquisition request which is sent by a client and points to a target resource, and attempting to acquire the target resource from the server cluster.
In this embodiment, the client and the nearby edge scheduling system may establish a TCP connection in advance through a three-way handshake principle, and subsequently, the client may send a resource acquisition request to the edge scheduling system through the TCP connection, and the edge scheduling system may also provide a corresponding target resource to the client through the TCP connection. In the process of establishing the TCP connection, the client and the edge scheduling system use an HTTP certificate, and the certificate is usually a certificate belonging to the client, so that the security of the established TCP connection can be guaranteed.
In this embodiment, after the TCP connection is established, the client may send a Resource obtaining request pointing to the target Resource to the edge scheduling system, where the Resource obtaining request may be a URL (Uniform Resource Locator). The resource obtaining request may carry a resource identifier of the target resource. For example, in one application example, the resource acquisition request may be https:// test.com.cn/xx.jpg, where xx.jpg may be the resource identification of the target resource in the form of the picture.
In this embodiment, after receiving the resource obtaining request, the edge scheduling system may schedule the resource obtaining request to a cache server in the associated server cluster for processing. Specifically, the edge scheduling system may schedule the resource acquisition request according to a pre-configured scheduling policy. For example, the edge scheduling system may calculate a hash value of the resource obtaining request through a consistent hash algorithm, and use the hash value in a corresponding cache server in the server cluster as the cache server to which the resource obtaining request is scheduled.
Of course, in practical applications, the edge scheduling system may also schedule the resource obtaining request according to other scheduling policies. For example, the edge scheduling system may detect the current load status of each cache server in the server cluster, and may schedule the resource acquisition request to the cache server with the lowest load.
In this embodiment, the edge scheduling system may attempt to acquire the corresponding target resource from the server cluster by scheduling the resource acquisition request to the cache server in the server cluster. Specifically, according to the scheduling manner of the consistent hash algorithm, after determining the cache server to which the resource acquisition request is mapped in the server cluster, the edge scheduling system may send the resource acquisition request to the cache server, so as to provide the target resource through the cache server. In addition, the edge scheduling system may also traverse each cache server in the server cluster, so as to attempt to acquire the target resource from each cache server in sequence, and after acquiring the target resource, the traversal process may be stopped. In this way, the edge scheduling system may attempt to provide the target resource through a single cache server, and may also attempt to acquire the target resource by traversing multiple cache servers.
S3: if the target resource cannot be acquired from the server cluster, another target server cluster for storing the target resource is inquired, and an agent scheduling request pointing to the target resource is sent to a target edge scheduling system associated with the target server cluster.
In this embodiment, if the cache server to which the resource obtaining request is mapped in the server cluster cannot provide the target resource, or each cache server in the server cluster cannot provide the target resource, it indicates that the edge scheduling system cannot obtain the target resource from the server cluster at present. The reason why the target resource cannot be acquired may be that the target resource does not exist in the cache server at present, but the resource information in the cache server is not updated in time, so that the client is mistakenly accessed to the edge scheduling system. At this time, in order to be able to correctly provide the target resource to the client, the edge scheduling system may query the CDN for another target server cluster for storing the target resource.
Specifically, each edge scheduling system in the CDN may report resource pool information of itself to the central scheduling system according to a specified time period, where the resource pool information may be a resource list of each resource currently stored in a server cluster associated with the edge scheduling system. Therefore, the central scheduling system can collect and analyze the resource scheduling information according to the resource pool information reported by each edge scheduling system, and the resource scheduling information can be used for representing the server cluster with the same resource pool. For example, for server clusters having the same resource pool, the central scheduling system may store the cluster identifiers of the server clusters and the system identifiers of the corresponding edge scheduling systems in the same scheduling set. In practical application, each edge scheduling system in the CDN may load the latest resource scheduling information from the central scheduling system according to a specified period, or each edge scheduling system may also receive the latest resource scheduling information that is actively issued by the central scheduling system, so that the current resource scheduling information in each edge scheduling system may be updated according to the latest resource scheduling information.
In this embodiment, if an edge scheduling system to which a client has access nearby cannot acquire a target resource from an associated server cluster, the edge scheduling system may read current resource scheduling information, and query, according to the current resource scheduling information, a target server cluster having the same resource pool as the server cluster associated with the edge scheduling system. Specifically, the edge scheduling system may use the cluster identifier of the server cluster associated with the edge scheduling system as an index condition, and query, in the resource scheduling information, other cluster identifiers that are in the same scheduling set as the cluster identifier, so as to determine a target server cluster corresponding to the other cluster identifiers.
In a practical application scenario, the resource scheduling information locally stored by the edge scheduling system may include an IP address library, and the IP address library may indicate IP addresses of server clusters having the same resource pool and IP addresses of edge scheduling systems associated with the server clusters. Thus, after the target service cluster is obtained through query, the edge scheduling system can send an agent scheduling request pointing to the target resource to the target edge scheduling system associated with the target server cluster in an agent mode.
In this embodiment, in order to let the target edge scheduling system know that the proxy scheduling request is sent in a proxy-based manner, the edge scheduling system to which the client has access may add a tag used for characterizing proxy scheduling in the resource obtaining request, and send the resource obtaining request carrying the tag to the target edge scheduling system as the proxy scheduling request. For example, the resource acquisition request sent by the client may be https:// test.com.cn/xx.jpg, and the tag characterizing the proxy scheduling may be wsiphost ═ proxy, so that after the tag is added to the resource acquisition request, a proxy scheduling request of https:// test.com.cn/xx.jpgwsiphost ═ proxy may be obtained. Therefore, data interaction can be carried out between the edge scheduling system and the target edge scheduling system in a proxy mode without carrying out an additional communication negotiation process, so that the insecurity of data transmission caused by insecurity of certificates in the communication negotiation process is avoided.
S5: and under the condition that the target edge scheduling system responds to the agent scheduling request and acquires the target resource from the target server cluster, receiving the target resource fed back by the target edge scheduling system and providing the target resource to the client.
In this embodiment, after receiving the proxy scheduling request, the target edge scheduling system may identify the resource identifier of the target resource from the proxy scheduling request, and may attempt to acquire the target resource from the associated target server cluster according to a similar scheduling manner in step S3. When the target edge scheduling system acquires the target resource, the target resource can be returned to the edge scheduling system. The edge scheduling system can provide the target resource to the client, thereby completing the resource acquisition process.
In one embodiment, if the target edge scheduling system still cannot acquire the target resource from the target server cluster, feedback information indicating that the resource cannot be acquired may be sent to the edge scheduling system. After receiving the feedback information indicating that the target resource cannot be obtained, which is sent by the target edge scheduling system, the edge scheduling system may query another server cluster, other than the target server cluster, for storing the target resource again according to the locally stored resource scheduling information, and send an agent scheduling request pointing to the target resource to an edge scheduling system associated with the another server cluster. Similarly, the server cluster associated with the edge scheduling system may also have the same resource pool as another server cluster obtained by querying.
The server clusters having the same resource pool are obtained by querying the current resource scheduling information. However, in practical applications, resources actually stored in some server clusters may not be consistent with the resource scheduling information, so that the target resources cannot be normally acquired, and thus, the target resources are tried to be acquired among different server clusters by using the technical solution provided by the above embodiment of the present application. Such a situation that the actually stored resource does not conform to the resource scheduling information may be corrected when the edge scheduling system reports the resource information, and a server cluster originally in the same scheduling set may be divided into different scheduling sets due to resource change. Therefore, the accuracy of the resource scheduling information can be ensured, and the success rate of resource acquisition can be improved.
Referring to fig. 4, the present application further provides an edge scheduling system, where the edge scheduling system is associated with a server cluster; the edge scheduling system includes:
the request processing unit is used for receiving a resource acquisition request which is sent by a client and points to a target resource, and attempting to acquire the target resource from the server cluster;
the proxy scheduling unit is used for inquiring another target server cluster for storing the target resource and sending a proxy scheduling request pointing to the target resource to a target edge scheduling system associated with the target server cluster if the target resource cannot be acquired from the server cluster;
and the resource feedback unit is used for receiving the target resource fed back by the target edge scheduling system and providing the target resource to the client under the condition that the target edge scheduling system responds to the proxy scheduling request and acquires the target resource from the target server cluster.
In one embodiment, the proxy scheduling unit includes:
and the resource pool query module is used for reading the current resource scheduling information in the edge scheduling system and querying a target server cluster which has the same resource pool with the server cluster associated with the edge scheduling system according to the current resource scheduling information.
In one embodiment, the proxy scheduling unit includes:
and the label adding module is used for adding a label used for representing proxy scheduling in the resource acquisition request, and sending the resource acquisition request carrying the label to the target edge scheduling system as a proxy scheduling request.
In one embodiment, the system further comprises:
and the rescheduling unit is used for querying another server cluster except the target server cluster for storing the target resource again after receiving the feedback information which is sent by the target edge scheduling system and is used for indicating that the target resource cannot be obtained, and sending an agent scheduling request pointing to the target resource to the edge scheduling system associated with the other server cluster.
Referring to fig. 5, the present application further provides an edge scheduling server, where the edge scheduling server includes a processor and a memory, and the memory is used for storing a computer program, and when the computer program is executed by the processor, the resource obtaining method is implemented.
Referring to fig. 6, in the present application, the technical solutions in the above embodiments can be applied to the computer terminal 10 shown in fig. 6. The computer terminal 10 may include one or more (only one shown) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
The memory 104 may be used to store software programs and modules of application software, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Therefore, according to the technical scheme provided by the application, when the edge scheduling system which is accessed by the client nearby receives the resource acquisition request sent by the client, the corresponding target resource can be tried to be acquired from the associated server cluster. If the edge scheduling system cannot acquire the target resource, another target server cluster for storing the target resource may be queried, and a proxy scheduling request may be sent to the target edge scheduling system associated with the target server cluster, where the proxy scheduling request may be used to acquire the target resource from the target server cluster. Therefore, after receiving the proxy scheduling request, the target edge scheduling system can acquire the target resource from the target server cluster and feed the target resource back to the edge scheduling system accessed by the client. Subsequently, the edge scheduling system may provide the target resource to the client, thereby completing the resource acquisition process. In the resource obtaining process, the client only needs to send a resource obtaining request to the edge scheduling system accessed nearby once, and does not need to send multiple requests to different edge scheduling systems, so that the burden of the client is reduced, and the use experience of a user is optimized. In addition, when the edge scheduling system sends the agent scheduling request to the target edge scheduling system in an agent mode, communication negotiation with the target edge scheduling system is not needed, and therefore safety of resource acquisition is guaranteed.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, both the system and the server embodiments can be explained with reference to the introduction of the embodiments of the method described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A resource acquisition method is applied to an edge scheduling system, wherein the edge scheduling system is associated with a server cluster; the method comprises the following steps:
receiving a resource acquisition request which is sent by a client and points to a target resource, and trying to acquire the target resource from the server cluster;
if the target resource cannot be acquired from the server cluster, another target server cluster for storing the target resource is inquired according to the current resource scheduling information, and an agent scheduling request pointing to the target resource is sent to a target edge scheduling system associated with the target server cluster; the agent scheduling request is a resource obtaining request carrying an agent scheduling label, and the edge scheduling system and the target edge scheduling system are communicated in an agent mode;
and under the condition that the target edge scheduling system responds to the agent scheduling request and acquires the target resource from the target server cluster, receiving the target resource fed back by the target edge scheduling system and providing the target resource to the client.
2. The method of claim 1, wherein attempting to acquire the target resource from the cluster of servers comprises:
determining a cache server to which the resource acquisition request is mapped in the server cluster, and sending the resource acquisition request to the cache server so as to provide the target resource through the cache server;
or
Traversing each cache server in the server cluster to obtain the target resource from each cache server in sequence; and stopping the traversal process after the target resource is acquired.
3. The method of claim 1 or 2, wherein the failure to acquire the target resource from the server cluster comprises:
if the cache server to which the resource acquisition request is mapped in the server cluster cannot provide the target resource, or if each cache server in the server cluster cannot provide the target resource, it is determined that the target resource cannot be acquired from the server cluster.
4. The method of claim 1, further comprising:
loading latest resource scheduling information from a central scheduling system according to a specified period, or receiving the latest resource scheduling information issued by the central scheduling system, and updating the current resource scheduling information in the edge scheduling system according to the latest resource scheduling information; the resource scheduling information is used for representing server clusters with the same resource pool.
5. The method of claim 1 or 4, wherein querying another target server cluster for storing the target resource comprises:
and reading the current resource scheduling information in the edge scheduling system, and inquiring a target server cluster which has the same resource pool with the server cluster associated with the edge scheduling system according to the current resource scheduling information.
6. The method of claim 1, wherein sending a proxy scheduling request directed to the target resource to a target edge scheduling system associated with the target server cluster comprises:
and adding a label for representing agent scheduling in the resource acquisition request.
7. The method of claim 1, further comprising:
after receiving feedback information which is sent by the target edge scheduling system and indicates that the target resource cannot be obtained, another server cluster which is used for storing the target resource and is except the target server cluster is inquired again, and an agent scheduling request pointing to the target resource is sent to an edge scheduling system associated with the other server cluster.
8. An edge scheduling system, wherein the edge scheduling system is associated with a cluster of servers; the edge scheduling system includes:
the request processing unit is used for receiving a resource acquisition request which is sent by a client and points to a target resource, and attempting to acquire the target resource from the server cluster;
the proxy scheduling unit is used for inquiring another target server cluster for storing the target resource according to the current resource scheduling information if the target resource cannot be acquired from the server cluster, and sending a proxy scheduling request pointing to the target resource to a target edge scheduling system associated with the target server cluster; the agent scheduling request is a resource obtaining request carrying an agent scheduling label, and the edge scheduling system and the target edge scheduling system are communicated in an agent mode;
and the resource feedback unit is used for receiving the target resource fed back by the target edge scheduling system and providing the target resource to the client under the condition that the target edge scheduling system responds to the proxy scheduling request and acquires the target resource from the target server cluster.
9. The system of claim 8, wherein the proxy scheduling unit comprises:
and the resource pool query module is used for reading the current resource scheduling information in the edge scheduling system and querying a target server cluster which has the same resource pool with the server cluster associated with the edge scheduling system according to the current resource scheduling information.
10. The system of claim 8, wherein the proxy scheduling unit comprises:
and the label adding module is used for adding a label used for representing agent scheduling in the resource acquisition request.
11. The system of claim 8, further comprising:
and the rescheduling unit is used for querying another server cluster except the target server cluster for storing the target resource again after receiving the feedback information which is sent by the target edge scheduling system and is used for indicating that the target resource cannot be obtained, and sending an agent scheduling request pointing to the target resource to the edge scheduling system associated with the other server cluster.
12. An edge scheduling server, characterized in that the edge scheduling server comprises a memory for storing a computer program and a processor, the computer program, when executed by the processor, implementing the method according to any of claims 1 to 7.
CN201910671278.4A 2019-07-24 2019-07-24 Resource acquisition method, edge scheduling system and server Active CN110493321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910671278.4A CN110493321B (en) 2019-07-24 2019-07-24 Resource acquisition method, edge scheduling system and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910671278.4A CN110493321B (en) 2019-07-24 2019-07-24 Resource acquisition method, edge scheduling system and server

Publications (2)

Publication Number Publication Date
CN110493321A CN110493321A (en) 2019-11-22
CN110493321B true CN110493321B (en) 2022-04-22

Family

ID=68548118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910671278.4A Active CN110493321B (en) 2019-07-24 2019-07-24 Resource acquisition method, edge scheduling system and server

Country Status (1)

Country Link
CN (1) CN110493321B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132439B (en) * 2019-12-31 2023-04-21 贵州白山云科技股份有限公司 Data processing method and system and edge node
CN111400051B (en) * 2020-03-31 2023-10-27 京东方科技集团股份有限公司 Resource scheduling method, device and system
CN112243027B (en) * 2020-09-30 2023-04-07 武汉兴图新科电子股份有限公司 System and method for solving mass media stream distribution problem based on cluster technology
CN115134373A (en) * 2022-06-28 2022-09-30 中国工商银行股份有限公司 Data synchronization method and device, storage medium and electronic equipment
CN115689277A (en) * 2022-10-12 2023-02-03 北京思路智园科技有限公司 Chemical industry park risk early warning system under cloud limit collaborative technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394880A (en) * 2011-10-31 2012-03-28 北京蓝汛通信技术有限责任公司 Method and device for processing jump response in content delivery network
CN104320487A (en) * 2014-11-11 2015-01-28 网宿科技股份有限公司 HTTP dispatching system and method for content delivery network
CN108712343A (en) * 2018-05-14 2018-10-26 网宿科技股份有限公司 Distribution method, system, fringe node and the central dispatching system of streaming media resource
CN108737532A (en) * 2018-05-11 2018-11-02 北京大米科技有限公司 A kind of resource acquiring method, client, computer equipment and readable medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170171344A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Scheduling method and server for content delivery network service node
CN107846454A (en) * 2017-10-25 2018-03-27 暴风集团股份有限公司 A kind of resource regulating method, device and CDN system
CN108337327A (en) * 2018-04-26 2018-07-27 拉扎斯网络科技(上海)有限公司 A kind of resource acquiring method and proxy server
CN109600437B (en) * 2018-12-11 2021-11-16 网宿科技股份有限公司 Downloading method of streaming media resource and cache server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394880A (en) * 2011-10-31 2012-03-28 北京蓝汛通信技术有限责任公司 Method and device for processing jump response in content delivery network
CN104320487A (en) * 2014-11-11 2015-01-28 网宿科技股份有限公司 HTTP dispatching system and method for content delivery network
CN108737532A (en) * 2018-05-11 2018-11-02 北京大米科技有限公司 A kind of resource acquiring method, client, computer equipment and readable medium
CN108712343A (en) * 2018-05-14 2018-10-26 网宿科技股份有限公司 Distribution method, system, fringe node and the central dispatching system of streaming media resource

Also Published As

Publication number Publication date
CN110493321A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN110493321B (en) Resource acquisition method, edge scheduling system and server
CN108696374B (en) Method and device for updating client configuration
US20210337046A1 (en) Intelligent scheduling method, terminal device, edge node cluster and intelligent scheduling system
CN109347968B (en) Method, equipment and system for downloading data blocks of resource file
US11765584B2 (en) Message processing method and system, and user plane function device
CN111970315A (en) Method, device and system for pushing message
CN108173774B (en) Client upgrading method and system
CN111885594B (en) Equipment binding method and device
US20130204926A1 (en) Information processing system, information processing device, client terminal, and computer readable medium
EP3876500B1 (en) Subscription message processing method and apparatus, and computer device and storage medium
JP7246379B2 (en) Service layer message templates in communication networks
US20150095496A1 (en) System, method and medium for information processing
CN110213330B (en) Pre-push system, method, device, electronic equipment and computer readable medium
CN112491951A (en) Request processing method, server and storage medium in peer-to-peer network
US11916970B2 (en) Security information exchange between a client and a server
US20160088076A1 (en) Method, device and system for obtaining mobile network data resources
CN113691520B (en) Method and device for acquiring streaming media information, storage medium and electronic device
CN110933121A (en) Connection establishing method, communication processing method and device and communication equipment
EP3688967A1 (en) Service registration based on service capabilities requirements and preferences
CN106899652B (en) Method and device for pushing service processing result
CN113746851A (en) Agent system and method for supporting real-time analysis of GRPC request
CN110049348B (en) Video analysis method and system and video analysis server
CN110933129A (en) Data scheduling method, plug-in, device and scheduling server
CN109688187B (en) Flow load balancing method, device, equipment and readable storage medium
CN107835225B (en) Method, device and equipment for acquiring data information

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