CN109618003B - Server planning method, server and storage medium - Google Patents

Server planning method, server and storage medium Download PDF

Info

Publication number
CN109618003B
CN109618003B CN201910033120.4A CN201910033120A CN109618003B CN 109618003 B CN109618003 B CN 109618003B CN 201910033120 A CN201910033120 A CN 201910033120A CN 109618003 B CN109618003 B CN 109618003B
Authority
CN
China
Prior art keywords
server
group
website
edge server
layer
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
CN201910033120.4A
Other languages
Chinese (zh)
Other versions
CN109618003A (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 CN201910033120.4A priority Critical patent/CN109618003B/en
Publication of CN109618003A publication Critical patent/CN109618003A/en
Application granted granted Critical
Publication of CN109618003B publication Critical patent/CN109618003B/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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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 embodiment of the invention relates to the technical field of communication, and discloses a server planning method, a server and a storage medium. In some embodiments of the present application, a server planning method is applied to a content delivery network CDN system, and includes: acquiring a planning request; determining an edge server group serving the website according to the planning request and the group name of each edge server group; the group name of the edge server group is used for indicating information of the edge server group, and the information of the edge server group comprises at least one of region information, area information, operator information, node name and affiliated product line information of the edge server group. In the implementation, the CDN system can distinguish any one or any combination of information of the regional information, the operator information, the product line information, and the like of the edge server group according to the group name of the edge server group, and plan a more appropriate acceleration scheme for the customer.

Description

Server planning method, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a server planning method, a server and a storage medium.
Background
A Content Delivery Network (CDN) depends on edge servers deployed in various regions, and through functional modules of load balancing, Content Delivery, scheduling and the like of a central platform, a user can obtain required Content nearby, Network congestion is reduced, and the access response speed and hit rate of the user are improved. Modern internet companies often have tens of thousands of servers at their back-end to provide services in order to support access by a large number of users.
However, the inventors found that at least the following problems exist in the prior art: when a server is planned for a client, information such as the location and the area of the server cannot be determined according to the internet protocol address of the server, so that an acceleration scheme more suitable for the client cannot be planned for the client according to the characteristics of the client.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the invention aims to provide a server planning method, which can be used for planning a more appropriate acceleration scheme for a client by combining the requirements of the client.
In order to solve the above technical problem, an embodiment of the present invention provides a server planning method, which is applied to a content delivery network CDN system, and includes the following steps: acquiring a planning request; the planning request comprises information of a website needing to be accelerated; determining an edge server group serving the website according to the planning request and the group name of each edge server group; the group name of the edge server group is used for indicating information of the edge server group, and the information of the edge server group comprises at least one of region information of the edge server group, area information of the edge server group, operator information of the edge server group, node name of the edge server group and product line information to which the edge server group belongs.
An embodiment of the present invention further provides a server, 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, the instructions being executable by the at least one processor to enable the at least one processor to perform the server planning method mentioned in the above embodiments.
Embodiments of the present invention also provide 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 server planning method mentioned in the above embodiments.
Compared with the prior art, the CDN system can determine the requirements of the customers according to the planning request because the planning request carries the information of the website needing to be accelerated. Because the group name of the edge server group indicates information of the edge server group, the CDN system can determine information such as regional information and regional information of the edge server group according to the group name of the edge server group. The CDN system can determine a more appropriate acceleration scheme for the customer by combining the requirements of the customer and the information of the edge server group.
In addition, the CDN system comprises N server clusters, each server cluster comprises M edge server groups, and the information of the website comprises the characteristic information of the service of the website; wherein M and N are positive integers; determining an edge server group serving a website according to the planning request and the group name of each edge server group, specifically comprising: determining a server cluster corresponding to the website according to the characteristic information of the website service in the planning request; and selecting one edge server group as an edge server group serving the website according to the group name of the edge server group in the corresponding server cluster. In the implementation, the server is planned for the website according to the characteristic information of the service, so that the CDN system can better accelerate the website.
In addition, the CDN system includes 4 server clusters; the first server cluster is of an edge server architecture and comprises edge servers; the architecture of the second type of server cluster is an edge server plus four-layer balance layer server architecture, and the second type of server cluster comprises an edge server and four-layer balance layer servers; the third server cluster is a structure consisting of an edge server, a seven-layer balancing layer server and a four-layer balancing layer server, and comprises the edge server, the seven-layer balancing layer server and the four-layer balancing layer server; the fourth server cluster is a structure of an edge server and a seven-layer balancing layer server, and the fourth server cluster comprises the edge server and the seven-layer balancing layer server.
In addition, determining a server cluster corresponding to the website according to the feature information of the service of the website in the planning request specifically includes: if the characteristic information of the service of the website indicates that the website of the website belongs to a first type of website, selecting a first type of server cluster as a server cluster corresponding to the website; if the characteristic information of the service of the website indicates that the website of the website belongs to the second type of website, selecting a second type of server cluster as a server cluster corresponding to the website; if the characteristic information of the service of the website indicates that the website of the website belongs to a third type of website, selecting a third server cluster or a fourth server cluster as a server cluster corresponding to the website; the first type of websites are download websites, live websites and internet surfing acceleration websites, the second type of websites are media websites, internet websites, financial websites, game websites and interactive live chat websites, and the third type of websites are video websites, picture websites, dynamic acceleration websites and full-network acceleration websites. In the implementation, server clusters of different server architectures are allocated to different types of websites, so that the CDN system can better accelerate the websites.
In addition, after determining the edge server group serving the website according to the planning request and the group name of each edge server group, the server planning method further includes: if the edge server group serving the website belongs to the first server cluster, taking an internet protocol IP address corresponding to the group name of the edge server group as a scheduling IP address corresponding to the website; if the edge server group serving the website belongs to the second server cluster or the third server cluster, taking the virtual IP address of the four-layer balance layer server corresponding to the edge server group as a scheduling IP address corresponding to the website; and if the edge server group serving the website belongs to the fourth server cluster, taking the IP address of the seven-layer balance layer server corresponding to the edge server group as the scheduling IP address corresponding to the website.
In addition, the group name of the edge server group is in the form of: the node name of the regional _ edge server group of the edge server group, the product line to which the operator _ edge server group of the regional _ edge server group of the edge server group belongs, the group number of the edge server group, and the group name of the four-layer balanced layer server group is in the form of: node name of the four-layer balanced layer server group — group number of the four-layer balanced layer server group, and the form of the group name of the seven-layer balanced layer server group is: area of seven-tier equilibrium tier server group _ node name of seven-tier equilibrium tier server group _ group number of seven-tier equilibrium tier server group.
In addition, before obtaining the planning request, the server planning method further includes: acquiring a planning file of a server to be online; the planning file comprises an IP address of a server to be online, a group name of an edge server group to which the server to be online belongs and information of a server cluster to which the server to be online belongs; and deploying the server to be on-line according to the planning file.
In addition, according to the planning file, deploying the server specifically includes: sending an installation instruction to each server to be online according to the IP address of the server to be online, wherein the installation instruction is used for instructing the server to be online to download a software package from a cache server and install software in the software package; recording the corresponding relation between the IP address of the server to be online and the group name of the edge server group to which the server to be online belongs; according to the information of the server cluster to which the server to be online belongs, deploying the server to be online in the server cluster corresponding to the information of the server cluster; and sending a restart instruction to the server to be online, wherein the restart instruction is used for indicating the server to be online to restart.
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 flow chart of a server planning method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a server planning method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server cluster of an edge server architecture in a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server cluster of an edge server plus four-tier equilibrium layer server architecture according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server cluster of an edge server plus seven-tier balancing layer server plus four-tier balancing layer server architecture according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server cluster of an edge server plus seven-tier balanced-tier server architecture according to a second embodiment of the present invention;
fig. 7 is a distribution diagram of an edge server of a server cluster of an edge server architecture according to a second embodiment of the present invention;
fig. 8 is a schematic configuration diagram of a server according to a third embodiment of the present invention;
fig. 9 is a schematic configuration diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the present invention relates to a server planning method, which is applied to a CDN system, and may be a management server of the CDN system. As shown in fig. 1, the server planning method includes:
step 101: a planning request is obtained.
Specifically, the planning request includes information of a website that needs to be accelerated.
In one example, the information of the website needing to be accelerated includes one or any combination of area information needing to be accelerated, expected operator information and feature information of the service of the website.
Step 102: and determining the edge server group serving the website according to the planning request and the group name of each edge server group.
Specifically, a plurality of edge servers are deployed in the edge server group, and the number of edge servers in each edge server group can be set as required. The group name of the edge server group is information indicating the edge server group. The information of the edge server group includes at least one of region information of the edge server group, operator information of the edge server group, node name of the edge server group, and product line information to which the edge server group belongs.
In one example, the edge server groups are divided into normal groups and parent group groups, and the parent group is divided into static parent groups and dynamic parent groups. Wherein, the common group is used for caching the source station data and directly serves the group accessed by the user. The static parent group is a parent layer group which is arranged between the ordinary group and the source station and can cache the data of the source station, and is used for reducing the request amount of the CDN back to the source. The dynamic parent group is a parent group set between the ordinary group or the static parent group and the source station and is used for shortening response delay between the CDN and the source station. The parent set of layers may have one or more layers. The CDN system may select an edge server of a common group or a parent group according to website information that needs to be accelerated to serve the website.
In one example, the group name of the edge server group is composed of information combinations such as region information of the edge server group, operator information of the edge server group, node name of the edge server group, and product line information to which the edge server group belongs, and is connected by underlining. The region information is information of a region where the edge server group is located after the global is divided into a plurality of regions. For example, dividing the world into five continents, named continent 1, continent 2, continent 3, continent 4 and continent 5, respectively, and marking with names in a first preset format enables the CDN system to determine the region where the edge server group is located. The regional information is information of a region where the edge server group is located after each country is divided into a plurality of regions. For example, dividing country a into a plurality of large areas, namely large area 1, large area 2, large area 3, etc., and marking the large areas with names in a second preset format enables the CDN system to determine the area where the edge server group is located. The operator information refers to information of a provider that provides a network service for the servers of the edge server group. And marking the operator of the edge server group with a name in a third preset format, so that the CDN system can determine the operator providing the network service for the edge server group. The node name of the edge server group may be an abbreviation set for the edge server group according to a preset rule. The product line information refers to product characteristics corresponding to the edge server group.
In one example, the group name of the edge server group is in the form of: product line to which node name of operator of regional edge server group of edge server group, edge server group belongs, group number of the edge server group.
In the implementation, because the group name of the edge server group includes the region information of the edge server group, the area information of the edge server group, the operator information of the edge server group, the node name of the edge server group, and the product line information to which the edge server group belongs, the CDN system can distinguish information such as the region information, the area information, the operator information, and the product line information of the edge server in the edge server group by reading the group name of the edge server group, efficiently distinguish the servers of each region, quickly identify the servers of each operator, each area, and each product line, and is convenient for the CDN system to plan server resources for customers.
It should be noted that, as can be understood by those skilled in the art, the group name of the edge server group may be any combination of the area information of the edge server group, the operator information of the edge server group, the node name of the edge server group, the product line information to which the edge server group belongs, and the like, and the combination order may be set as needed. For example, the group name of the edge server group is operator 1_ area 1_ node name 1_ product line 1_ group number 1, or the group name of the edge server group is continent 1_ area 1_ node name 1_ product 1_ group number 1.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, in the server planning method provided by the embodiment, since the planning request carries information of a website to be accelerated, the CDN system can determine the demand of the customer according to the planning request. Because the group name of the edge server group indicates information of the edge server group, the CDN system can determine information such as regional information and regional information of the edge server group according to the group name of the edge server group. The CDN system can determine a more appropriate acceleration scheme for the customer by combining the requirements of the customer and the information of the edge server group.
A second embodiment of the invention relates to a server planning method. This embodiment is a further refinement of the first embodiment, and specifically describes: the CDN system plans the process of the edge server group for the website.
Specifically, as shown in fig. 2, the present embodiment includes steps 201 to 203, where step 201 is substantially the same as step 101 in the first embodiment, and is not repeated here. The following mainly describes differences between the second embodiment and the first embodiment:
step 201: a planning request is obtained.
Step 202: and determining a server cluster corresponding to the product type of the website according to the characteristic information of the service of the website in the planning request.
Specifically, the CDN system includes a plurality of servers and N server clusters, each server cluster includes M edge server groups, and information of a website includes feature information of a service of the website; wherein M and N are positive integers. The CDN system selects a server cluster more suitable for the service according to the characteristic information of the service of the website, so that the CDN system can better serve the website.
In one example, a CDN system includes 4 server clusters. The architecture of the first server cluster is an edge server architecture, the first server cluster includes an edge server, and a schematic structural diagram of the first server cluster is shown in fig. 3. The second server cluster architecture is an edge server plus four-layer balance layer server architecture, and the second server cluster architecture comprises an edge server and four-layer balance layer servers. The third server cluster architecture is an edge server plus seven-layer balance layer server plus four-layer balance layer server architecture, and a schematic structural diagram of the third server cluster architecture is shown in fig. 4, and a schematic structural diagram of the third server cluster architecture includes an edge server, a seven-layer balance layer server and a four-layer balance layer server, and is shown in fig. 5. The architecture of the fourth server cluster is an edge server plus seven balanced layer server architecture, the fourth server cluster includes an edge server and seven balanced layer servers, and a schematic structural diagram of the fourth server cluster is shown in fig. 6. Wherein, the grouping set of a plurality of edge server instances is called an edge server group; the set of the plurality of four-layer equilibrium layer servers is called a four-layer equilibrium layer server group; the collection of several seven-tier equalization layer servers is called a seven-tier equalization layer server group.
In one example, the group name of the four-tier balanced tier server group is in the form of: node name of the four-layer balanced layer server group — group number of the four-layer balanced layer server group, and the form of the group name of the seven-layer balanced layer server group is: area of seven-tier equilibrium tier server group _ node name of seven-tier equilibrium tier server group _ group number of seven-tier equilibrium tier server group. For example, the group name of the seven-layer equalization layer group is operator 1_ node name 1_ group number 1, or continent 1_ node name 1_ group number 1. The four-layer balance layer server group is the node name 1_ group number 1.
In one example, the procedure for a CDN system to deploy a server is as follows: the CDN system acquires a planning file of a server to be online and deploys the server to be online according to the planning file. The planning file comprises the IP address of the server to be online, the group name of the edge server group to which the server to be online belongs and the information of the server cluster to which the server to be online belongs.
The following illustrates a process of deploying a server to be online by the CDN system according to the planning file.
Step a: and the CDN system inputs the information of the server to be on-line in the planning file into a resource management platform of the CDN system. The information of the server to be online comprises the asset number, hardware configuration and other basic information of the server to be online, and the corresponding relation between the IP address information of the server to be online and the group name of the edge server group to which the server to be online belongs.
Step b: and the CDN system sends an installation instruction to each server to be online according to the IP address of the server to be online in the planning file. The installation instruction is used for instructing a server to be online to download the software package from the cache server and install the software in the software package.
Specifically, when there are multiple servers to be online, the CDN system distributes servers in batches based on the CDN delivery technology. The CDN system distributes the installation instruction (i.e., the source instruction) to each server to be online in an agent or direct access manner. And executing the server to be online after receiving the installation instruction, finding the closest cache server containing the source file through DNS analysis, and downloading and installing the complete software package. In one example, when the installation instruction is issued, a base file may be sent to the server to be online, and the base file is used to ensure that the installation instruction can be executed normally.
It should be noted that, as can be understood by those skilled in the art, the software in the software package may be configured as required, and the present embodiment does not limit the type of software in the software package.
It is worth mentioning that, because the CDN system sends the base file and the installation instruction to each server to be online based on the CDN delivery technology, each server to be online obtains the software package from the cache server after receiving the instruction, which reduces the time to deploy the servers, so that the time to deploy the servers is independent of the number of servers.
Step c: and deploying the server to be online in the server cluster corresponding to the information of the server cluster according to the information of the server cluster to which the server to be online belongs.
Step d: and the CDN system sends a restart instruction to a server to be on-line. The restarting instruction is used for indicating the server to be online to restart.
A method for determining a server cluster corresponding to a product type of a website according to feature information of a service of the website in a planning request when the CDN system includes the 4 server clusters will be described below.
If the CDN system determines that the characteristic information of the service of the website indicates that the website of the website belongs to a first type of website, selecting a first type of server cluster as a server cluster corresponding to the website. The first type of website is a downloading type website, a live broadcasting type website and an internet surfing acceleration type website. Because the file size of the download website is larger, the request generally comes from the terminal, the live broadcast website needs smoother real-time interaction, more stable video and audio service, richer user experience and lower operation cost, the internet-surfing acceleration website needs to accelerate the last kilometer, accelerate the user side, accelerate website access, accelerate enterprise application and the like, and for the website, the CDN system schedules the server in the server cluster of the edge server architecture for the website.
And if the CDN system determines that the characteristic information of the service of the website indicates that the website of the website belongs to a second type of website, selecting a second type of server cluster as a server cluster corresponding to the website. The second type of websites are media websites, internet websites, financial websites, game websites and interactive live broadcast chat websites. The four-layer balance layer server has the following advantages: the load balance is realized, the backup machine is arranged, the state of the edge server is detected in real time, and the edge server can be increased and decreased at any time. The main characteristics of the media website and the internet website are that the files are large, cross-country access exists, cross-region access exists and breakpoint continuity is needed, the main characteristics of the financial website are that safety requirements are high, stability requirements are high, IP source return availability is high, dynamic data speed is concerned, the main characteristics of the game website and the interactive live broadcast chat website are that large concurrency, low time delay, small data and a private protocol are required, and a server cluster of an edge server and a four-layer balance layer server framework is more suitable for accelerating the website.
And if the CDN system determines that the characteristic information of the service of the website indicates that the website of the website belongs to a third type of website, selecting a third server cluster or a fourth server cluster as a server cluster corresponding to the website. The third kind of websites are video websites, picture websites, dynamic acceleration websites and full-network acceleration websites. A seven-tier balanced tier server typically has a proxy (proxy) mode and a redirect (redirect). The advantages of the proxy mode are: the response speed is improved by reducing the first redirection; it is not necessary to analyze whether the client (player) supports redirection; the browser can cache the files, and the cached files cannot be downloaded again due to the change of the IP. The advantages of the redirection mode are: reducing the flow of the seven-layer balance layer server; IP scheduling; automatic redirection of node run-up; IP is exposed externally and is easily remembered by the download tool, causing a cross-domain (crossdomain) problem with hotlinking. The video website is mainly characterized by large files and special functions, the picture website is mainly characterized by small files and many requests, the dynamic acceleration website is mainly characterized by many requests and generally not cached, the whole website acceleration is mainly characterized by dynamic and static separation, intelligent caching, route optimization, transmission optimization and website data security, the edge server is provided with a server cluster of a structure of seven-layer equalization layer servers and four-layer equalization layer servers, and the server cluster of the structure of the edge server and seven-layer equalization layer servers is more suitable for accelerating the website.
It should be noted that, those skilled in the art may understand that the foregoing types of websites are merely examples, and in practical applications, the corresponding relationship between each website and the server cluster may be set according to the service features of each website and the architecture features of the server cluster.
Step 203: and selecting one edge server group as an edge server group serving the website according to the group name of the edge server group in the corresponding server cluster.
In one example, a server cluster of an edge server architecture includes 2 product lines, or 2 application service types, and a distribution diagram of edge servers is shown in fig. 7. The group name of the edge server group is in the form of area information _ operator information _ product line information, and the information of the website needing to be accelerated is business feature information of the website, area information needing to be accelerated, an application service type and expected operator information, wherein the business feature information of the website indicates that the website is a download-type website, the area information needing to be accelerated indicates that the area needing to be accelerated is a large area 1, the expected operator information indicates that the expected operator is an operator A, and the website corresponds to a first application service type, namely the product line 1. According to the information, the CDN system selects an edge server group with the group name of large area 1_ operator A _ product line 1 from a server cluster of an edge server architecture as an edge server group serving the website needing acceleration.
After the CDN system determines the edge server group serving the website, the CDN system determines, according to the server cluster to which the edge server group belongs, an IP address provided for the customer to use, that is, a scheduling IP address corresponding to the website.
In one example, the CDN system includes a first server cluster, a second server cluster, a third server cluster, and a fourth server cluster. If the CDN system determines that the edge server group serving the website belongs to the first server cluster, the Internet protocol IP address corresponding to the group name of the edge server group is used as a scheduling IP address corresponding to the website. And if the edge server group serving the website belongs to the second server cluster or the third server cluster, taking the virtual IP address of the four-layer balance layer server corresponding to the edge server group as the scheduling IP address corresponding to the website. And if the edge server group serving the website belongs to the fourth server cluster, taking the IP address of the seven-layer balance layer server corresponding to the edge server group as the scheduling IP address corresponding to the website.
It is worth mentioning that the IP addresses of the servers in each server group are converted into server group names, so that the CDN system can manage and schedule the servers conveniently, and the convenience of server scheduling is improved.
It should be noted that, as will be understood by those skilled in the art, in practical applications, other load balancing techniques, for example, two-tier load balancing, may also be used.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, in the server planning method provided by the embodiment, since the planning request carries information of a website to be accelerated, the CDN system can determine the demand of the customer according to the planning request. Because the group name of the edge server group indicates information of the edge server group, the CDN system can determine information such as regional information and regional information of the edge server group according to the group name of the edge server group. The CDN system can determine a more appropriate acceleration scheme for the customer by combining the requirements of the customer and the information of the edge server group. In addition, the IP addresses of the servers in each server group are converted into the server group names, so that the CDN system can manage and schedule the servers conveniently, and the convenience of server scheduling is improved.
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.
A third embodiment of the present invention relates to a server planning apparatus, as shown in fig. 8, including: an obtaining module 301 and a planning module 302, wherein the obtaining module 301 is used for obtaining a planning request; the planning request includes information of the website to be accelerated. The planning module 302 is configured to determine an edge server group serving a website according to the planning request and a group name of each edge server group; the group name of the edge server group is used for indicating information of the edge server group, and the information of the edge server group comprises at least one of region information of the edge server group, area information of the edge server group, operator information of the edge server group, node name of the edge server group and product line information to which the edge server group belongs.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first 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 to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the present invention relates to a server, as shown in fig. 9, including: at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the server planning method according to the above embodiments.
The server includes: one or more processors 401 and a memory 402, one processor 401 being exemplified in fig. 9. The processor 401 and the memory 402 may be connected by a bus or other means, and fig. 9 illustrates the connection by a bus as an example. Memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 401 executes various functional applications of the device and data processing by executing nonvolatile software programs, instructions, and modules stored in the memory 402, that is, implements the above-described server planning method.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to an external device 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.
One or more modules are stored in the memory 402 and, when executed by the one or more processors 401, perform the server planning method of any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above 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 of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), 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 examples for carrying out 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 server planning method is applied to a Content Delivery Network (CDN) system and comprises the following steps:
acquiring a planning request; the planning request comprises information of a website needing to be accelerated, wherein the information of the website needing to be accelerated comprises one or any combination of regional information needing to be accelerated, expected operator information and feature information of services of the website;
determining an edge server group serving the website according to the planning request and the group name of each edge server group; the group name of the edge server group is used for indicating information of the edge server group, and the information of the edge server group includes at least one of region information of the edge server group, area information of the edge server group, operator information of the edge server group, node name of the edge server group, and product line information to which the edge server group belongs.
2. The server planning method according to claim 1, wherein the CDN system includes N server clusters, each server cluster includes M edge server groups, and the information of the website includes characteristic information of a service of the website; wherein M and N are positive integers;
the determining, according to the planning request and the group name of each edge server group, an edge server group serving a website specifically includes:
determining a server cluster corresponding to the website according to the characteristic information of the service of the website in the planning request;
and selecting one edge server group as the edge server group serving the website according to the group name of the edge server group in the corresponding server cluster.
3. The server planning method according to claim 2, wherein the CDN system includes 4 server clusters;
the architecture of a first type of server cluster is an edge server architecture, and the first type of server cluster comprises edge servers;
the architecture of a second type of server cluster is an edge server plus four-layer balance layer server architecture, and the second type of server cluster comprises an edge server and four-layer balance layer servers;
the third server cluster is a structure of an edge server and a seven-layer balancing layer server and a four-layer balancing layer server, and comprises the edge server, the seven-layer balancing layer server and the four-layer balancing layer server;
the architecture of a fourth server cluster is an edge server plus seven-layer balancing layer server architecture, and the fourth server cluster comprises the edge server and seven-layer balancing layer servers.
4. The server planning method according to claim 3, wherein the determining, according to the feature information of the service of the website in the planning request, the server cluster corresponding to the website specifically includes:
if the characteristic information of the service of the website indicates that the website belongs to a first type of website, selecting the first type of server cluster as a server cluster corresponding to the website;
if the characteristic information of the service of the website indicates that the website belongs to a second type of website, selecting the second type of server cluster as a server cluster corresponding to the website;
if the characteristic information of the service of the website indicates that the website belongs to a third type of website, selecting a third type of server cluster or a fourth type of server cluster as a server cluster corresponding to the website;
the first-class websites are downloading websites, live-broadcasting websites and internet-surfing acceleration websites, the second-class websites are media websites, internet websites, financial websites, game websites and interactive live-broadcasting chatting websites, and the third-class websites are video websites, picture websites, dynamic acceleration websites and full-network acceleration websites.
5. The server planning method according to claim 4, wherein after determining the edge server group serving the website according to the planning request and the group name of each edge server group, the server planning method further comprises:
if the edge server group serving the website belongs to the first server cluster, taking an internet protocol IP address corresponding to the group name of the edge server group as a scheduling IP address corresponding to the website;
if the edge server group serving the website is determined to belong to the second server cluster or the third server cluster, taking the virtual IP address of the four-layer balance layer server corresponding to the edge server group as the scheduling IP address corresponding to the website;
and if the edge server group serving the website belongs to the fourth server cluster, taking the IP address of the seven-layer balance layer server corresponding to the edge server group as the scheduling IP address corresponding to the website.
6. The server planning method according to claim 3, wherein the group name of the edge server group is in the form of: a region of the edge server group, an operator of the edge server group, a node name of the edge server group, a product line to which the edge server group belongs, and a group number of the edge server group;
the set of the four-layer balance layer servers is called a four-layer balance layer server group, and the group name of the four-layer balance layer server group is in the form of: node name of the four-layer balanced layer server group — group number of the four-layer balanced layer server group;
the set of the seven-layer balance layer servers is called a seven-layer balance layer server group, and the group name of the seven-layer balance layer server group is in the form of: a region of the seven-tier equilibrium tier server group _ a node name of the seven-tier equilibrium tier server group _ a group number of the seven-tier equilibrium tier server group.
7. The server planning method according to claim 1, wherein prior to the obtaining of the planning request, the server planning method further comprises:
acquiring a planning file of a server to be online; the planning file comprises an IP address of a server to be online, a group name of an edge server group to which the server to be online belongs and information of a server cluster to which the server to be online belongs;
and deploying the server to be on-line according to the planning file.
8. The server planning method according to claim 7, wherein the deploying the server according to the planning file specifically includes:
sending an installation instruction to each server to be online according to the IP address of the server to be online, wherein the installation instruction is used for instructing the server to be online to download a software package from a cache server and install software in the software package;
recording the corresponding relation between the IP address of the server to be on-line and the group name of the edge server group to which the server to be on-line belongs;
according to the information of the server cluster to which the server to be online belongs, deploying the server to be online in the server cluster corresponding to the information of the server cluster;
and sending a restart instruction to the server to be online, wherein the restart instruction is used for indicating the server to be online to restart.
9. A server, 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 memory stores instructions executable by the at least one processor to enable the at least one processor to perform the server planning method of any one of claims 1 to 8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the server planning method according to any one of claims 1 to 8.
CN201910033120.4A 2019-01-14 2019-01-14 Server planning method, server and storage medium Active CN109618003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910033120.4A CN109618003B (en) 2019-01-14 2019-01-14 Server planning method, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910033120.4A CN109618003B (en) 2019-01-14 2019-01-14 Server planning method, server and storage medium

Publications (2)

Publication Number Publication Date
CN109618003A CN109618003A (en) 2019-04-12
CN109618003B true CN109618003B (en) 2022-02-22

Family

ID=66018779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910033120.4A Active CN109618003B (en) 2019-01-14 2019-01-14 Server planning method, server and storage medium

Country Status (1)

Country Link
CN (1) CN109618003B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830564B (en) * 2019-10-30 2022-11-01 北京金山云网络技术有限公司 CDN scheduling method, device, system and computer readable storage medium
CN111209097B (en) * 2019-12-16 2024-04-05 网宿科技股份有限公司 Software deployment method and system
CN111181782B (en) * 2019-12-24 2022-09-16 新浪网技术(中国)有限公司 Return source processing method and device
CN114448809A (en) * 2021-12-22 2022-05-06 网宿科技股份有限公司 CDN acceleration resource planning method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1493094A4 (en) * 2002-04-09 2008-11-05 Akamai Tech Inc Method and system for tiered distribution in a content delivery network
CN103023797A (en) * 2011-09-23 2013-04-03 百度在线网络技术(北京)有限公司 Data center system and device and method for providing service
CN103227839A (en) * 2013-05-10 2013-07-31 网宿科技股份有限公司 Management system for regional autonomy of content distribution network server
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
CN104303489A (en) * 2012-04-30 2015-01-21 Nec欧洲有限公司 Method for performing dns resolution in a network, content distribution system and client terminal for deployment in a content distribution system
CN104320487A (en) * 2014-11-11 2015-01-28 网宿科技股份有限公司 HTTP dispatching system and method for content delivery network
CN104834722A (en) * 2015-05-12 2015-08-12 网宿科技股份有限公司 CDN (Content Delivery Network)-based content management system
CN105162878A (en) * 2015-09-24 2015-12-16 网宿科技股份有限公司 Distributed storage based file distribution system and method
CN107071820A (en) * 2017-04-19 2017-08-18 努比亚技术有限公司 A kind of method of mobile terminal and switch contents Distributor

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534204B (en) * 2008-03-10 2011-08-31 中国网通集团宽带业务应用国家工程实验室有限公司 Streaming media information distribution system and method thereof and user end
WO2010033938A2 (en) * 2008-09-19 2010-03-25 Limelight Networks, Inc. Content delivery network stream server vignette distribution
US8219645B2 (en) * 2009-10-02 2012-07-10 Limelight Networks, Inc. Content delivery network cache grouping
CN101764747B (en) * 2009-12-24 2012-05-02 北京云快线软件服务有限公司 Intelligent dispatching method, device and system of content delivery network flow
CN102546774A (en) * 2011-12-27 2012-07-04 厦门市美亚柏科信息股份有限公司 CDN (content distribution network) routing method for secondary redirection and system
US9712412B2 (en) * 2013-01-30 2017-07-18 Cisco Technology, Inc. Aggregating status to be used for selecting a content delivery network
CN105704708A (en) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 Mobile network content distribution method, device and system
CN107645525A (en) * 2016-07-21 2018-01-30 阿里巴巴集团控股有限公司 Detection processing, dispatching method and related device, the node of content distributing network
US10567332B2 (en) * 2017-03-24 2020-02-18 Salesforce.Com, Inc. Content delivery network optimization system
CN109067930B (en) * 2018-06-26 2021-09-17 网宿科技股份有限公司 Domain name access method, domain name resolution method, server, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1493094A4 (en) * 2002-04-09 2008-11-05 Akamai Tech Inc Method and system for tiered distribution in a content delivery network
CN103023797A (en) * 2011-09-23 2013-04-03 百度在线网络技术(北京)有限公司 Data center system and device and method for providing service
CN104303489A (en) * 2012-04-30 2015-01-21 Nec欧洲有限公司 Method for performing dns resolution in a network, content distribution system and client terminal for deployment in a content distribution system
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
CN103227839A (en) * 2013-05-10 2013-07-31 网宿科技股份有限公司 Management system for regional autonomy of content distribution network server
CN104320487A (en) * 2014-11-11 2015-01-28 网宿科技股份有限公司 HTTP dispatching system and method for content delivery network
CN104834722A (en) * 2015-05-12 2015-08-12 网宿科技股份有限公司 CDN (Content Delivery Network)-based content management system
CN105162878A (en) * 2015-09-24 2015-12-16 网宿科技股份有限公司 Distributed storage based file distribution system and method
CN107071820A (en) * 2017-04-19 2017-08-18 努比亚技术有限公司 A kind of method of mobile terminal and switch contents Distributor

Also Published As

Publication number Publication date
CN109618003A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN109618003B (en) Server planning method, server and storage medium
CN108028853B (en) System, method, and medium for customizable event-triggered computation at edge locations
CN101616170B (en) Method for supplying media stream service and system thereof
CN107707943B (en) A kind of method and system for realizing cloud service fusion
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
CN108600300B (en) Log data processing method and device
KR20150054998A (en) Method and apparatus for automated deployment of geographically distributed applications within a cloud
AU2021259515B2 (en) Sharing geographically concentrated workload among neighboring mec hosts of multiple carriers
CN116566984B (en) Routing information creation method and device of k8s container cluster and electronic equipment
KR102389334B1 (en) Virtual machine provisioning system and method for cloud service
KR102650892B1 (en) Apparatus for container orchestration in geographically distributed multi cloud environment and method using the same
CN113301079B (en) Data acquisition method, system, computing device and storage medium
CN112988378A (en) Service processing method and device
CN110582090A (en) CDN scheduling method, scheduling system and MEC network element
US20210037090A1 (en) Systems and Methods for Server Failover and Load Balancing
CN113783963A (en) Data transmission method, server node, gateway device and network system
JP2002342193A (en) Method, device and program for selecting data transfer destination server and storage medium with data transfer destination server selection program stored therein
CN114189560A (en) Resource transmission method and device, storage medium and electronic device
US8301775B2 (en) Affiliate bandwidth management
US11872497B1 (en) Customer-generated video game player matchmaking in a multi-tenant environment
US11316765B2 (en) Load balancing across bandwidth carrying circuits
US11652724B1 (en) Service proxies for automating data center builds
CN108282547A (en) Resource accesses pre-control method and device
CN104468832A (en) Portable distributed architecture based on http protocol
CN113688114A (en) Mirror image uploading method and system and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant