CN114448809A - CDN acceleration resource planning method, device, equipment and storage medium - Google Patents

CDN acceleration resource planning method, device, equipment and storage medium Download PDF

Info

Publication number
CN114448809A
CN114448809A CN202111580220.2A CN202111580220A CN114448809A CN 114448809 A CN114448809 A CN 114448809A CN 202111580220 A CN202111580220 A CN 202111580220A CN 114448809 A CN114448809 A CN 114448809A
Authority
CN
China
Prior art keywords
planned
planning
cluster
domain name
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111580220.2A
Other languages
Chinese (zh)
Inventor
陈斌
许玲娜
曾国安
连庆仁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111580220.2A priority Critical patent/CN114448809A/en
Publication of CN114448809A publication Critical patent/CN114448809A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • 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

Landscapes

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

Abstract

The embodiment of the invention relates to the technical field of Internet and discloses a planning method, a planning device and a planning storage medium for CDN acceleration resources. The method comprises the following steps: acquiring service information of a target domain name area; determining the minimum cluster group number required to be planned for the target domain name area according to the service information; the accelerated service resource of a node to be planned in the target domain name area comprises at least one cluster group; detecting whether the minimum cluster group number is larger than the number of nodes to be planned in the target domain name area; under the condition that the minimum cluster group number is larger than the number of the nodes to be planned, planning a first target number of cluster groups for each node to be planned, wherein the first target number is the number of the cluster groups contained in the node to be planned with the minimum cluster group number; and under the condition that the minimum number of the cluster groups is not more than the number of the nodes to be planned, planning a cluster group for each node to be planned. The method overcomes the dependence on the existing planning result and performs global balanced and targeted planning on the accelerated resources of the domain name area.

Description

CDN acceleration resource planning method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a planning method, a planning device, a planning apparatus and a planning storage medium for CDN acceleration resources.
Background
In the process of responding to a Content request of a user, a Content Delivery Network (CDN) needs a central platform to call corresponding acceleration resources from acceleration resources planned for the area in advance based on the location of the user to provide acceleration services for the user. The accelerated resources planned for the area are usually obtained by adjusting the result of the initial planning according to the characteristics of different scenes after the initial planning is manually performed on the accelerated resources.
However, manual planning usually needs to refer to an existing regional resource planning, which is difficult to perform global planning, and the reference to the existing regional resource planning may result in failure to adapt to actual service requirements of the domain name region, and is not strong in pertinence, and failure to perform global planning may result in unbalanced planning results. Even if the adjustment is carried out according to the scene in the following process, the problems of unbalanced planning and poor pertinence still exist.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, equipment and a storage medium for planning CDN accelerated resources, so that the dependence on the existing planning result can be overcome, and global balanced and targeted planning can be performed on the accelerated resources in a domain name area.
In order to achieve the above object, an embodiment of the present invention provides a method for planning CDN acceleration service resources, including: acquiring service information of a target domain name area; determining the minimum cluster group number required to plan for the target domain name area according to the service information; the accelerated service resource of a node to be planned in the target domain name area comprises at least one cluster group; detecting whether the minimum cluster group number is larger than the number of nodes to be planned in the target domain name area; under the condition that the minimum cluster group number is larger than the number of the nodes to be planned, planning a first target number of the cluster groups for each node to be planned, wherein the first target number is the number of the cluster groups contained in the node to be planned with the minimum cluster group number; and under the condition that the minimum cluster group number is not more than the node number to be planned, planning one cluster group for each node to be planned.
In order to achieve the above object, an embodiment of the present invention further provides a device for planning CDN accelerated service resources, including: the acquisition module is used for acquiring the service information of the target domain name area; the determining module is used for determining the minimum cluster group number required to plan for the target domain name area according to the service information; the accelerated service resource of a node to be planned in the target domain name area comprises at least one cluster group; the detection module is used for detecting whether the minimum cluster group number is larger than the number of nodes to be planned in the target domain name area; a first planning module, configured to plan a first target number of the cluster groups for each node to be planned when the minimum number of cluster groups is greater than the number of nodes to be planned, where the first target number is the number of the cluster groups included in the node to be planned, which includes the smallest number of the cluster groups; and the second planning module is used for planning one cluster group for each node to be planned under the condition that the minimum cluster group number is not more than the node number to be planned.
To achieve the above object, an embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for CDN-accelerated service resource planning as described above.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for planning CDN accelerated service resources as described above.
According to the planning method for the CDN acceleration service resources provided by the embodiment of the invention, the minimum cluster group number which needs to be planned for the target domain name area is determined according to the service information of the target domain name area, so that a planning mode which is suitable for the service requirement of the target domain name area is subsequently determined according to the size relation between the minimum cluster group number and the number of nodes to be planned in the target domain name area, the purpose of planning based on different service requirements of the target domain name area and the scale of the nodes to be planned is realized, and the existing planning is not required. Under the condition that the minimum number of cluster groups is larger than the number of nodes to be planned in a target domain name area, a first target number of cluster groups are planned for each node to be planned, so that the cluster groups with the same number of the nodes to be planned are planned, and each node can plan as many cluster groups as possible, so that when a user accesses the domain name area, the whole domain name area has enough accelerated service resources to meet the user requirements, and overload is avoided; under the condition that the minimum number of cluster groups is not more than the number of nodes to be planned in the target domain name area, a cluster group is planned for each node to be planned so as to realize the cluster groups with the same planned number of the nodes to be planned, and the planned cluster group number of each node is not too much, so that when a user accesses the domain name area, enough acceleration service resources are provided to meet the user requirements, and excessive acceleration service resources are not occupied. Therefore, no matter which planning method is adopted, the same number of clusters can be planned for each node to be planned in the domain name area, the situation that part of nodes plan excessive accelerated service resources and accelerated service resources of other nodes are not planned is avoided, and balanced planning is achieved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a method for planning CDN acceleration service resources according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for planning CDN accelerated service resources, which includes a step of planning a device cluster according to another embodiment of the present invention;
FIG. 3 is a flowchart of a CDN acceleration service resource planning method including a step of replanning at least one cluster group according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for planning CDN accelerated service resources according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in another embodiment of the present invention.
Detailed Description
The background art shows that the current planning of the CDN acceleration resources needs to depend on the existing planning results, the planning is unbalanced, the pertinence is not strong, and the like.
In order to solve the above problem, an embodiment of the present invention provides a method for planning CDN acceleration service resources, including: acquiring service information of a target domain name area; determining the minimum cluster group number required to plan for the target domain name area according to the service information; the accelerated service resource of a node to be planned in the target domain name area comprises at least one cluster group; detecting whether the minimum cluster group number is larger than the number of nodes to be planned in the target domain name area; under the condition that the minimum cluster group number is larger than the number of the nodes to be planned, planning a first target number of the cluster groups for each node to be planned, wherein the first target number is the number of the cluster groups contained in the node to be planned with the minimum cluster group number; and under the condition that the minimum cluster group number is not more than the node number to be planned, planning one cluster group for each node to be planned.
The planning method of CDN acceleration service resources provided by the embodiment of the invention determines the minimum cluster group number which needs to be planned for each target domain name area based on the service information of the target domain name area to meet the service requirement of the domain name area, then plans the same number of cluster groups for each node by taking the cluster group number which is planned for the target domain name area not less than the minimum cluster group number as the target, ensures that each node can be planned, and plans in a targeted manner based on the service characteristics of the target domain name area without referring to the existing plan in the whole process to realize global balance and targeted planning, wherein under the condition that the minimum cluster group number is more than the node number to be planned in the target domain name area, the target of planning at least the minimum cluster group number for the target domain name area can be achieved due to planning one cluster group for each node, therefore, a cluster group can be planned for each node, and a redundant cluster group can provide acceleration resources beyond business requirements, so that a target domain name area can normally provide acceleration services even under abnormal conditions; under the condition that the minimum number of cluster groups is not more than the number of nodes to be planned in the target domain name area, because the planning of one cluster group for each node may not reach the goal of planning at least the minimum number of cluster groups for the target domain name area, the same number of cluster groups can be planned for each node as much as possible, and the planning of the same number of cluster groups for each node is limited, only the number of cluster groups containing the nodes to be planned with the minimum number of cluster groups can be planned, and redundant cluster groups can provide acceleration resources beyond business requirements, so that the target domain name area can normally provide acceleration services even under abnormal conditions. The method overcomes the dependence on the planning result of the planned domain name area, and can automatically and uniformly plan the target domain name area according to different service requirements and the scale of the node to be planned in advance.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in various embodiments of the invention, numerous technical details are set forth in order to provide a better understanding of the present invention. However, the claimed invention may be practiced without these specific details or with various changes and modifications based on the following embodiments.
The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The embodiment of the invention provides a method for planning CDN acceleration service resources, which is applied to a server, wherein the server can be a background server, a monitoring server or a central platform server of a CDN system. As shown in fig. 1, the process of the CDN accelerated service resource planning method at least includes:
step 101, acquiring service information of a target domain name area.
In this embodiment, the service information mainly includes traffic bandwidth information of the service.
In some examples, the service information is the overall traffic bandwidth of all services in the target domain name, so that the accelerated resources are planned subsequently according to the overall traffic bandwidth of the target domain name region, the planning complexity can be reduced, and the planning efficiency can be improved.
In other examples, different accelerated resource planning requirements of different types of services are considered, for example, a service index mainly concerned by a live broadcast type service is network performance, so when the accelerated resource planning is performed on the live broadcast type service, an accelerated resource of the same province or the same large area is usually selected, that is, when a cluster group is planned for each node, a cluster group of the same province or the same large area can be planned for each node preferentially, while a download type service does not need to pay more attention to the network performance, traffic bandwidth of such a service can use an accelerated resource across large areas, that is, when a cluster group is planned for each node, an association relation of a position where the cluster group is located does not need to be considered. Therefore, the service information can also be the traffic bandwidths of different types of services, that is, the traffic bandwidth information of the target domain name area is distinguished according to the service types, so that subsequent planning can plan better accelerated resources of the service capacity according to the characteristics of different services, balanced planning based on the service types is realized, the pertinence of the planning on the service type dimension is improved, the quality of subsequent service provision for different services of the target domain name area is improved, and further the customer experience is improved.
It should be noted that, under the condition that the service information is the traffic bandwidths of different types of services, accelerated resource planning may be performed for the different types of services, and in particular, nodes to be planned when accelerated resource planning is performed for the different types of services may be different, for example, a node to be planned in a target domain name region when accelerated resource planning is performed for a live broadcast type of service is a node that meets a certain network performance quality requirement in the target domain name region, and a node to be planned in the target domain name region when accelerated resource planning is performed for a download type of service is a node that is not defined as unplayable in the target domain name region, and the like.
Of course, the above is only a specific example, in other examples, the service information may also be traffic bandwidth information of clients of different levels, and details are not repeated here.
In this embodiment, the target domain name region includes at least one domain name region to be planned, and the domain name region to be planned may be specified by a client or a domain name region detected by the server that a current plan does not match a scene in which a service is actually provided.
In particular, in some examples, it is contemplated that several domain name regions may be served by the same node at the same time, resulting in the planning of different domain name regions affecting each other. Therefore, the target domain name region may include not only the specified domain name region to be planned but also other domain name regions served by the node to be planned within the domain name region to be planned. That is to say, after determining a domain name region to be planned, which needs to perform accelerated resource planning, on the basis of taking the domain name region to be planned as a target domain name region for performing accelerated resource planning, nodes to be planned in the domain name region to be planned are also determined, and then whether the nodes to be planned also serve other domain name regions is determined, if the nodes to be planned serving other domain name regions exist, the other domain name regions served by the nodes to be planned are also taken as the target domain name region for performing accelerated resource planning.
It is worth mentioning that domain name areas which may be affected in the process of domain name area planning to be planned are planned together, so that adverse effects of current planning on existing planning are avoided, and optimal planning on CDN dimensionality is realized.
And step 102, determining the minimum cluster group number required to be planned for the target domain name area according to the service information.
In this embodiment, the accelerated service resource of one node to be planned in the target domain name region includes at least one cluster group. The number of cluster groups included in different nodes to be planned may be the same or different.
In some examples, the service information is S, that is, the total service traffic bandwidth of the target domain name area is S, and the average value of the rated bandwidths of all cluster groups included in each node to be planned in the target domain name area is T, then ([ S/T ] +1) is taken as the minimum cluster group number, where [ S/T ] represents rounding the result of S/T. Of course, in other examples, T may also be a median of a rated bandwidth of all cluster groups included in each node to be planned in the target domain name area, or the like.
In other examples, the service information is { S1, S2, … …, Si }, that is, the traffic bandwidth of the target domain name region class 1 is S1, the traffic bandwidth of the target domain name region class 2 is S2 … …, the traffic bandwidth of the target domain name region class i is Si, and an average value of the rated bandwidths of all the cluster groups included in the nodes satisfying the service requirement of class 1 in the target domain name region is T1, then ([ S1/T1] +1) is used as the minimum cluster group number, where [ S1/T1] indicates that i minimum cluster group numbers are finally obtained by rounding … … the result of S1/T1.
It should be noted that, this embodiment mainly emphasizes that the requirement of the target domain name area for the lower limit of the service traffic is met, and in some cases, not only the minimum number of cluster groups but also the maximum number of cluster groups need to be considered in the planning process, for example, a client specifies a cluster group that can be planned, so that planning can be performed only based on the cluster group that can be planned, or the traffic bandwidth of the target domain name area is limited, so that the bandwidth is out of limit when the number of cluster groups exceeds a certain value. Therefore, in some examples, on the basis of determining the minimum number of cluster groups required to be planned for the target domain name area, the maximum number of cluster groups capable of being planned for the target domain name area may also be determined, so that a limitation condition that the number of planned cluster groups is smaller than the maximum number of cluster groups is increased in a subsequent planning process.
Step 103, detecting whether the minimum cluster group number is larger than the number of nodes to be planned in the target domain name area, if so, executing step 104, and if not, executing step 105.
In this embodiment, the node to be planned is a node that has already been determined to need accelerated resource planning.
It should be noted that the nodes in the target domain name area are not necessarily programmable and not necessarily involved in the planning, for example, some special nodes are dedicated to providing acceleration service for the services or specific contents of some specific customers, and cannot receive other services and provide acceleration service for the services of other customers unless the settings of the nodes are changed, so that the node cannot be planned and does not belong to the node to be planned, or the customer specifies that the planning is performed only on some nodes, and other nodes are not involved in the planning, and the page does not belong to the node to be planned. The present embodiment does not limit how to determine the node that needs to perform accelerated resource planning.
In some examples, before detecting whether the minimum number of cluster groups is greater than the number of nodes to be planned in the target domain name area, the CDN accelerated service resource planning method determines the nodes to be planned in the target area, which may be implemented as follows: acquiring cost information and node characteristic information of all nodes in a target domain name area and customer service information of the target domain name area, wherein the node characteristic information can comprise service types provided by the nodes, service quality information when corresponding services are provided, network state information of the nodes and the like; and screening all nodes in the target domain name area according to the cost information, the node characteristic information and the customer service information to obtain the nodes to be planned. Therefore, the influence of the customer service information, the node cost information and the node service information on the nodes is considered in the process of planning the accelerated resources so as to screen out the nodes to be planned, so that the customer requirements can be better met when the accelerated service is provided, the cost is lower, the customer experience is better, and the wrong planning on the unplanned nodes is also avoided.
And 104, planning a first target number of cluster groups for each node to be planned, wherein the first target number is the number of the cluster groups contained in the node to be planned with the least number of cluster groups.
In this embodiment, first, cluster groups of a first target number are selected from the cluster groups included in each node to be planned, and then the selected cluster groups are planned to the corresponding nodes to be planned. The present embodiment does not limit how to select the cluster group with the first target number, and may select the cluster group randomly, or select the cluster group according to the performance of the cluster group, the cost, or the number of times of planning to the node in the history planning.
In some examples, planning a first target number of cluster groups for each node to be planned may be implemented as follows: and aiming at each node to be planned, randomly selecting cluster groups with a first target number from the included cluster groups, and planning the selected cluster groups to the nodes to be planned.
In other examples, planning the first target number of cluster groups for each node to be planned may be further implemented as follows: and for each node to be planned, sorting the cluster groups contained in each node to be planned from low to high according to the difference between the required bandwidth and the rated bandwidth or the ratio of the required bandwidth to the rated bandwidth, selecting the first M cluster groups in each sequence, and respectively planning the selected cluster groups to the corresponding nodes to be planned, wherein M is the value of the first target number. Therefore, the cluster group capable of providing the maximum available bandwidth is planned for each node to be planned, and overload is avoided when acceleration service is provided based on the planning result.
In still other examples, planning the first target number of cluster groups for each node to be planned may be further implemented as follows: and aiming at each node to be planned, sorting the cluster groups from low to high according to the bandwidth cost, selecting the first M cluster groups in the sequence, and planning the selected cluster groups to the nodes to be planned, wherein M is the value of the first target number. The bandwidth cost is the traffic cost when the service traffic bandwidth is averagely shared by the cluster group according to the account settlement period and the charging mode signed by the maintainer of the node and the operator. Therefore, a cluster group with lower cost is planned for each node to be planned, and the planning result can realize the global cost optimization.
Of course, in other examples, the type of the entity device of the node to be planned may be considered, different devices may serve different types of services, and the node may be planned to the node of the device with the existing related service deployment to reduce resource consumption for deploying the service for the cluster group as much as possible, or the above factors are considered comprehensively, which is not described herein any more.
It can be understood that the number of cluster groups included in each node to be planned is usually not completely the same, and for the nodes to be planned whose number of cluster groups is the first target number, planning the cluster groups of the first target number actually plans all the included cluster groups to the node to be planned, and only for the nodes to be planned whose number of cluster groups exceeds the first target number, selecting the cluster groups of the first target number has an actual meaning, so that all the cluster groups included in the node to be planned whose number of cluster groups is the first target number can be planned, and for the nodes to be planned whose number of cluster groups exceeds the first target number, the node of the first target number is selected first and then planned.
Step 105, a cluster group is planned for each node to be planned.
In this embodiment, a cluster group may be randomly planned from the included cluster groups to simplify the implementation process and reduce the implementation difficulty, or a cluster group with the largest difference between the required bandwidth and the rated bandwidth or the largest ratio between the required bandwidth and the rated bandwidth may be planned for each node to be planned, so that the cluster group with the largest available bandwidth is planned for each node to be planned, and overload and the like during subsequent provision of acceleration service are avoided. It is thus clear that step 105 is substantially the same as step 104 in the case of a first target number of 1, and is not repeated here.
It should be noted that, because the correspondence between the domain name regions and the nodes is many-to-many, when the target domain name region includes a plurality of domain name regions to be planned, a situation may occur in which at least one node provides services for at least two domain name regions at the same time, for example, the node a is both a node to be planned of the domain name region B and a node to be planned of the domain name region C. At this time, an additional condition of the planning set group can be added to the node to be planned, which has the characteristics described above, according to actual requirements. Taking an example that the node a includes five cluster groups, the node a needs to be planned with two cluster groups when participating in the accelerated resource planning of the domain name area B, and the node a needs to be planned with three cluster groups when participating in the accelerated resource planning of the domain name area C: when the accelerated resources planned by each node are expected to be balanced as much as possible, the node makes the planned accelerated resources in different domain name areas coincide as much as possible when participating in the accelerated resource planning of the different domain name areas, namely two cluster groups are selected from three cluster groups planned for the node A in the planning of the domain name area C as the cluster group planned for the node A in the domain name area B; when it is expected that each node is not overloaded after being planned as much as possible, the node makes the planned accelerated resources in different domain name areas misaligned as much as possible when participating in the accelerated resource planning of the different domain name areas, that is, two cluster groups other than the three cluster groups planned for the node a in the planning of the domain name area C are taken as the cluster groups planned for the node a in the domain name area B.
It can be understood that by planning the same number of cluster groups for each node to be planned in the target domain name region, the balance of the accelerated resources planned for each node to be planned on the cluster group dimension is ensured. However, the cluster group actually consists of at least one device cluster, that is, starting from a node of a domain name area of the CDN, the acceleration service resources in the domain name area are layered, the first level is the node, one domain name area includes at least one node, the second level is a cluster group, the cluster group is an acceleration service resource of a next level of the node, such as a physical server cluster, one node includes at least one cluster group, the third level is the device cluster, the device cluster is an acceleration service resource of a next level of the cluster group, one cluster group includes at least one device cluster, and the device cluster is a service cluster divided according to different services. In some examples, a rack containing multiple devices forms a cluster of devices, a cluster of multiple racks forms a cluster group, and multiple racks forms a node. Further, considering that the number of the device clusters included in different cluster groups may be different, the device clusters may be continuously planned for the cluster group planned for each node to be planned, so as to implement balance in the dimensions of the device clusters, and further enhance the balance of the planning.
Based on this, another aspect of the embodiments of the present invention further provides a method for planning CDN acceleration service resources, which is applied to a server, where the server may be a background server, a monitoring server, or a central platform server of a CDN system. As shown in fig. 2, the flow of the CDN accelerated service resource planning method further includes:
step 106, detecting whether the service information meets a preset service threshold condition, if so, executing step 107, and if not, executing step 108.
In this embodiment, the preset service threshold condition may be that a bandwidth peak of the target domain name region is smaller than a specified magnitude, or that the minimum number of device clusters determined according to the service information of the target domain name region is smaller than the number of cluster groups, and so on, and is mainly for distinguishing the requirements of the target domain name region in terms of device clusters, which is not described herein any more.
Step 107, a device cluster is planned for each planned cluster group.
In this embodiment, the acceleration service resource of one cluster group includes at least one device cluster. That is, the acceleration resources in the target domain area are sequentially divided into cluster group levels under the nodes and device cluster levels under the cluster groups.
In some examples, planning a device cluster for each planned cluster group may be implemented as follows: and planning an equipment cluster with the highest priority for each planned cluster group, wherein the equipment cluster in the cluster group has higher priority than the equipment clusters which can be planned outside the cluster group, and the equipment cluster planned in the historical planning in the cluster group has higher priority than other equipment clusters in the cluster group. That is, first, planning an equipment cluster planned in the historical planning in an equipment cluster included in the planned cluster group is tried, in the case that the equipment cluster planned in the historical planning does not exist, planning an equipment cluster included in the planned cluster group is tried, and in the case that the cluster group does not include the equipment cluster, planning an unplayable equipment cluster outside the cluster group is planned for the cluster group. It will be appreciated that a device cluster outside the planned cluster group will join the cluster group through the current planning operation. Therefore, in the planning process, the change of the planned state of the current planned cluster is avoided to the maximum extent, and the resource waste caused by the state change is reduced.
Particularly, when the cluster group has a plurality of equipment clusters planned in the historical planning, one equipment cluster can be selected from the plurality of equipment clusters planned in the historical planning to plan to the cluster group according to information such as the times, cost, difference between required bandwidth and rated bandwidth and the like of each equipment cluster planned in the historical planning, and one equipment cluster planned in the historical planning can also be randomly selected to plan to the cluster group; under the condition that the planned equipment clusters in the historical planning do not exist, when the cluster group comprises a plurality of equipment clusters, one equipment cluster can be selected from the plurality of equipment clusters to plan to the cluster group according to information such as the cost of each equipment cluster, the difference between the required bandwidth and the rated bandwidth and the like, and one equipment cluster can also be randomly selected to plan to the cluster group; under the condition that the cluster group does not contain the equipment cluster, when a plurality of programmable equipment clusters are arranged outside the cluster group, one equipment cluster can be selected from the programmable equipment clusters outside the cluster group according to the cost of each programmable equipment cluster outside the cluster group, the difference between the required bandwidth and the rated bandwidth and other information to be programmed to the cluster group, and the programmable equipment clusters outside the cluster group can also be randomly selected to be programmed to the cluster group.
And 108, planning a second target number of device clusters for each planned cluster group, wherein the second target number is the number of the device clusters contained in the cluster group with the least number of the device clusters.
In this embodiment, step 108 is substantially the same as step 107, and the difference is mainly that the number of device clusters assigned to each cluster group is different, and thus, the description thereof is omitted.
It is worth mentioning that, in the embodiment, it is ensured that the number of the device clusters planned for each planned cluster group is the same, so that the planned acceleration service resources of each cluster group are the same, and the planning balance is further improved.
It can also be understood that the minimum number of cluster groups is determined according to the service information of the target domain name area, and the service requirement of the target domain name area is mainly considered, but the planning result is also influenced by the bearing capacity of each node to be planned. When it is determined based on the current planning that the bandwidth that needs to be provided by the cluster group to which each node to be planned is planned exceeds the rated bandwidth, the cluster group is affected by the quality of the acceleration service provided due to overload, and when the overload time is too long, the performance of the equipment in the cluster group is affected, or even the equipment fails. Thus, in some embodiments, the bandwidth factor of individual cluster groups is also considered in the planning process.
Based on this, another aspect of the embodiments of the present invention further provides a method for planning CDN acceleration service resources, which is applied to a server, where the server may be a background server, a monitoring server, or a central platform server of a CDN system. As shown in fig. 3, the flow of the CDN accelerated service resource planning method further includes:
and step 109, when the required bandwidth of at least one planned cluster group exceeds the rated bandwidth, replanning at least one cluster group from the cluster group or the resource pool included by the nodes to be planned for each node to be planned so as to reduce the required bandwidth of each planned cluster group to be not more than the rated bandwidth.
In this embodiment, the bandwidth required is determined according to the currently planned cluster group. The acceleration resources are maintained in the resource pool that are not enabled, and in particular, the acceleration resources in the resource pool may be enabled through the planning.
It is worth mentioning that the cluster group of each node to be planned is re-planned according to the bandwidth condition of the cluster group of each node to be planned, so that overload of each cluster group when the cluster group is subsequently provided with acceleration service can be avoided, and the quality of the provided service and the performance of equipment are not affected.
It will be appreciated that not only may the cluster group be overloaded, but also the individual clusters of devices within the cluster group. Therefore, similar to the processing of the cluster group, after planning the device cluster for each planned cluster group, the method further includes: and under the condition that the required bandwidth of at least one planned equipment cluster exceeds the rated bandwidth, replanning at least one equipment cluster from the equipment clusters or the resource pools included in the planned cluster group for each planned cluster group so as to reduce the required bandwidth of each planned equipment cluster to be not more than the rated bandwidth.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
Another aspect of the embodiments of the present invention further provides a device for planning CDN accelerated service resources, as shown in fig. 4, including:
the obtaining module 401 is configured to obtain service information of a target domain name region.
A determining module 402, configured to determine, according to the service information, the minimum number of cluster groups that need to be planned for a target domain name area, where an accelerated service resource of a node to be planned in the target domain name area includes at least one cluster group.
A detecting module 403, configured to detect whether the minimum number of cluster groups is greater than the number of nodes to be planned in the target domain name area.
The first planning module 404 is configured to plan a first target number of cluster groups for each node to be planned when the minimum number of cluster groups is greater than the number of nodes to be planned, where the first target number is the number of cluster groups included in the node to be planned, which includes the smallest number of cluster groups.
A second planning module 405, configured to plan a cluster group for each node to be planned when the minimum number of cluster groups is not greater than the number of nodes to be planned.
It should be understood that the present embodiment is an apparatus embodiment corresponding to the method embodiment, and the present embodiment can be implemented in cooperation with the method embodiment. The related technical details mentioned in the method embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied in the method embodiment.
It should be noted that, all the modules involved in this embodiment are logic modules, and in practical application, one logic unit may be one physical unit, may also be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is not so closely related to solve the technical problem proposed by the present invention is not introduced in the present embodiment, but this does not indicate that there is no other unit in the present embodiment.
Another aspect of the embodiments of the present invention further provides an electronic device, as shown in fig. 5, including: at least one processor 501; and a memory 502 communicatively coupled to the at least one processor 501; the memory 502 stores instructions executable by the at least one processor 501, and the instructions are executed by the at least one processor 501, so that the at least one processor 501 can execute the method for planning CDN accelerated service resources according to any one of the method embodiments.
The memory 502 and the processor 501 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 501 and the memory 502 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 501 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 501.
The processor 501 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 502 may be used to store data used by processor 501 in performing operations.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program. When being executed by a processor, the computer program realizes the method for planning the CDN acceleration service resource described in any one of the method embodiments.
That is, those skilled in the art can understand that all or part of the steps in the method according to the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A CDN acceleration service resource planning method is characterized by comprising the following steps:
acquiring service information of a target domain name area;
determining the minimum cluster group number required to plan for the target domain name area according to the service information; the accelerated service resource of a node to be planned in the target domain name area comprises at least one cluster group;
detecting whether the minimum cluster group number is larger than the number of nodes to be planned in the target domain name area;
under the condition that the minimum cluster group number is larger than the number of the nodes to be planned, planning a first target number of the cluster groups for each node to be planned, wherein the first target number is the number of the cluster groups contained in the node to be planned with the minimum cluster group number;
and under the condition that the minimum cluster group number is not more than the node number to be planned, planning one cluster group for each node to be planned.
2. The method for planning CDN acceleration service resources of claim 1, wherein the method further comprises:
detecting whether the service information meets a preset service threshold condition;
under the condition that the target domain name area meets the service threshold condition, planning an equipment cluster for each planned cluster group, wherein the accelerated service resource of one cluster group comprises at least one equipment cluster;
and under the condition that the target domain name area does not meet the service threshold condition, planning a second target number of the equipment clusters for each planned cluster group, wherein the second target number is the number of the equipment clusters contained in the cluster group with the least equipment cluster number.
3. The method as claimed in claim 2, wherein the step of planning a device cluster for each planned cluster group comprises:
planning a highest priority device cluster for each planned cluster group, the device cluster in the cluster group having a higher priority than the device clusters programmable outside the cluster group, the device cluster in the cluster group planned in the historical planning having a higher priority than the other device clusters in the cluster group.
4. The CDN acceleration service resource planning method according to any one of claims 1 to 3, wherein the target domain name region comprises a domain name region to be planned and other domain name regions served by the node to be planned within the domain name region to be planned.
5. The method for planning CDN acceleration service resources according to any one of claims 1 to 3, characterized in that the method further comprises:
and in the case that the required bandwidth of at least one planned cluster group exceeds a rated bandwidth, replanning at least one cluster group from the cluster group or a resource pool included by the nodes to be planned for each node to be planned so as to reduce the required bandwidth of each planned cluster group to be not more than the rated bandwidth, wherein the required bandwidth is determined according to the currently planned cluster group.
6. The method for planning CDN accelerated service resources as recited in claim 5, wherein the planning one cluster group for each node to be planned includes:
and planning a cluster group with the largest difference between the required bandwidth and the rated bandwidth for each node to be planned.
7. The method for planning CDN acceleration service resources according to any one of claims 1 to 3, characterized in that the method further comprises:
acquiring cost information and node characteristic information of all nodes in the target domain name area and customer service information of the target domain name area;
and screening all nodes in the target domain name area according to the cost information, the node characteristic information and the customer service information to obtain the node to be planned.
8. A CDN acceleration service resource planning device is characterized by comprising:
the acquisition module is used for acquiring the service information of the target domain name area;
the determining module is used for determining the minimum cluster group number which needs to be planned for the target domain name area according to the service information; the accelerated service resource of a node to be planned in the target domain name area comprises at least one cluster group;
the detection module is used for detecting whether the minimum cluster group number is larger than the number of nodes to be planned in the target domain name area;
a first planning module, configured to plan a first target number of the cluster groups for each node to be planned when the minimum number of cluster groups is greater than the number of nodes to be planned, where the first target number is the number of the cluster groups included in the node to be planned, which includes the smallest number of the cluster groups;
and the second planning module is used for planning one cluster group for each node to be planned under the condition that the minimum cluster group number is not more than the node number to be planned.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for CDN accelerated service resource planning of any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the CDN accelerated service resource planning method according to any one of claims 1 to 7.
CN202111580220.2A 2021-12-22 2021-12-22 CDN acceleration resource planning method, device, equipment and storage medium Pending CN114448809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111580220.2A CN114448809A (en) 2021-12-22 2021-12-22 CDN acceleration resource planning method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111580220.2A CN114448809A (en) 2021-12-22 2021-12-22 CDN acceleration resource planning method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114448809A true CN114448809A (en) 2022-05-06

Family

ID=81363932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111580220.2A Pending CN114448809A (en) 2021-12-22 2021-12-22 CDN acceleration resource planning method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114448809A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180316623A1 (en) * 2015-12-29 2018-11-01 Wangsu Science & Technology Co., Ltd. Method and system for self-adaptive bandwidth control of cdn platform
CN109618003A (en) * 2019-01-14 2019-04-12 网宿科技股份有限公司 A kind of servers' layout method, server and storage medium
CN109769020A (en) * 2019-01-09 2019-05-17 网宿科技股份有限公司 CDN cluster accelerates serve resources management method and device, electronic equipment and storage medium
CN110445886A (en) * 2019-07-05 2019-11-12 网宿科技股份有限公司 A kind of method and system realizing domain name access and accelerating
CN112714029A (en) * 2021-02-09 2021-04-27 北京金山云网络技术有限公司 Method, device and equipment for scheduling content distribution network bandwidth
CN113225214A (en) * 2021-05-07 2021-08-06 浪潮软件科技有限公司 Method and device for cooperative management of edge CDN node and computer readable medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180316623A1 (en) * 2015-12-29 2018-11-01 Wangsu Science & Technology Co., Ltd. Method and system for self-adaptive bandwidth control of cdn platform
CN109769020A (en) * 2019-01-09 2019-05-17 网宿科技股份有限公司 CDN cluster accelerates serve resources management method and device, electronic equipment and storage medium
CN109618003A (en) * 2019-01-14 2019-04-12 网宿科技股份有限公司 A kind of servers' layout method, server and storage medium
CN110445886A (en) * 2019-07-05 2019-11-12 网宿科技股份有限公司 A kind of method and system realizing domain name access and accelerating
CN112714029A (en) * 2021-02-09 2021-04-27 北京金山云网络技术有限公司 Method, device and equipment for scheduling content distribution network bandwidth
CN113225214A (en) * 2021-05-07 2021-08-06 浪潮软件科技有限公司 Method and device for cooperative management of edge CDN node and computer readable medium

Similar Documents

Publication Publication Date Title
CN111600930B (en) Micro-service request traffic management method, device, server and storage medium
CN108306971B (en) Method and system for sending acquisition request of data resource
CN104394441B (en) A kind of dispatching method, the apparatus and system of video content distribution
CN109167674B (en) Service node scoring method, Domain Name System (DNS) scheduling method and server
CN112512100B (en) Slice priority-based AMF (advanced metering framework) redirection method and newly-added management network element
CN108366020B (en) Method and system for sending acquisition request of data resource
CN105099988A (en) Method used for supporting gray releasing, access method, devices and system
CN104243405A (en) Request processing method, device and system
CN103532873B (en) flow control policy applied to distributed file system
CN105242983B (en) A kind of date storage method and a kind of data storage management service device
CN110661715A (en) Service path optimization method, device, equipment and readable storage medium
CN103746933A (en) Node distribution method and control center
CN106953926A (en) A kind of method for routing and device
CN110244901B (en) Task allocation method and device and distributed storage system
CN110769040B (en) Access request processing method, device, equipment and storage medium
US20190053169A1 (en) Method for dynamic adaptation of a data rate
CN105897838A (en) Network service node selection method and device
CN109120527B (en) Method and system for transmitting service flow
CN114448809A (en) CDN acceleration resource planning method, device, equipment and storage medium
CN114666318B (en) Streaming media data downloading method and device, electronic equipment and storage medium
US20210382872A1 (en) Blockchain-based Data Storage Method, Related Device and Storage Medium
CN110753001A (en) Method and device for efficiently transmitting data and storage medium
CN110677544B (en) PCRF location script updating method, device, equipment and storage medium
CN114726732A (en) CDN bandwidth resource planning method and device, electronic equipment and storage medium
CN114553964A (en) Control method, device and equipment of simulcast system and simulcast system

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