CN109618003A - A kind of servers' layout method, server and storage medium - Google Patents

A kind of servers' layout method, server and storage medium Download PDF

Info

Publication number
CN109618003A
CN109618003A CN201910033120.4A CN201910033120A CN109618003A CN 109618003 A CN109618003 A CN 109618003A CN 201910033120 A CN201910033120 A CN 201910033120A CN 109618003 A CN109618003 A CN 109618003A
Authority
CN
China
Prior art keywords
server
group
website
edge server
edge
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.)
Granted
Application number
CN201910033120.4A
Other languages
Chinese (zh)
Other versions
CN109618003B (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

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 present embodiments relate to field of communication technology, a kind of servers' layout method, server and storage medium are disclosed.In the section Example of the application, servers' layout method is applied to content distributing network CDN system, comprising: obtains planning request;According to planning request and the group name of each Edge Server group, it is determined as the Edge Server group of website service;Wherein, the group name of Edge Server group is used to indicate the information of Edge Server group, and the information of Edge Server group includes at least one of regional information, area information, operator's informaiton, nodename and the affiliated product line information of Edge Server group information.In the realization, CDN system can be according to the group name of Edge Server group, the information for distinguishing any one or any combination in the information such as regional information, area information, operator's informaiton and product line information of Edge Server group, is the more suitable speeding scheme of account planning.

Description

A kind of servers' layout method, server and storage medium
Technical field
The present embodiments relate to field of communication technology, in particular to a kind of servers' layout method, server and storage Medium.
Background technique
Content distributing network (Content Delivery Network, CDN) relies on the Edge Server for being deployed in various regions, The functional modules such as load balancing, content distribution, scheduling by central platform, content needed for obtaining user nearby reduce net Network congestion improves user's access response speed and hit rate.Modern Internet company, in order to support the access of mass users, Often there is up to ten thousand servers to provide service for its rear end.
However, it is found by the inventors that at least there are the following problems in the prior art: when for account planning server, due to nothing Method determines the information such as the position of server, region according to the Internet protocol address of server, leads to not the spy according to client Property, the speeding scheme of the client is more suitable for for account planning.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of servers' layout method, makes it possible to the need in conjunction with client It asks, is the more suitable speeding scheme of account planning.
In order to solve the above technical problems, embodiments of the present invention provide a kind of servers' layout method, it is applied to interior Content distributing network CDN system, comprising the following steps: obtain planning request;It include the letter for needing the website accelerated in planning request Breath;According to planning request and the group name of each Edge Server group, it is determined as the Edge Server group of website service;Wherein, The group name of Edge Server group is used to indicate the information of Edge Server group, and the information of Edge Server group includes Edge Server Group regional information, the area information of Edge Server group, the operator's informaiton of Edge Server group, Edge Server group section At least one of product line information belonging to point title and Edge Server group information.
Embodiments of the present invention additionally provide a kind of server, comprising: at least one processor;And at least one The memory of a processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs quilt At least one processor executes, so that at least one processor is able to carry out the servers' layout side that above embodiment refers to Method.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate The servers' layout method that above embodiment refers to is realized when machine program is executed by processor.
Embodiment of the present invention in terms of existing technologies, due to carrying the website of acceleration in need in planning request Information, CDN system can be requested according to planning, determine the demand of client.Due to the group name instruction edge clothes of Edge Server group Be engaged in device group information, CDN system according to the group name of Edge Server group, can determine Edge Server group area information, The information such as domain information.The demand of CDN system combination client and the information of Edge Server group can determine more suitable for client Speeding scheme.
It include M Edge Server group in each server cluster in addition, including N number of server cluster in CDN system, The characteristic information of business in the information of website including website;Wherein, M and N is positive integer;It is requested according to planning, and each The group name of Edge Server group is determined as the Edge Server group of website service, specifically includes: according to the website in planning request Business characteristic information, determine the corresponding server cluster in website;According to the Edge Server in corresponding server cluster The group name of group, selects an Edge Server group, as the Edge Server group for website service.In the realization, according to business Characteristic information be website publishing server, CDN system is preferably accelerated for website.
In addition, including 4 kinds of server clusters in CDN system;Wherein, the framework of the first server cluster is edge service Device framework includes Edge Server in the first server cluster;The framework of second of server cluster adds for Edge Server Four layers of equalizing layer server architecture include Edge Server and four layers of balanced stratum server in second of server cluster;Third The framework of kind server cluster is that Edge Server adds seven layers of balanced stratum server to add four layers of equalizing layer server architecture, the third It include Edge Server, seven layers of balanced stratum server and four layers of balanced stratum server in server cluster;4th kind of server set The framework of group is that Edge Server adds seven layers of equalizing layer server architecture, include in the 4th kind of server cluster Edge Server and Seven layers of balanced stratum server.
In addition, determining the corresponding server cluster in website according to the characteristic information of the business of the website in planning request, have Body include: if it is determined that the business of website characteristic information instruction website website belong to first kind website, select the first service Device cluster, as the corresponding server cluster in website;If it is determined that the website of the characteristic information instruction website of the business of website belongs to Second class website selects second of server cluster, as the corresponding server cluster in website;If it is determined that the spy of the business of website The website of reference breath instruction website belongs to third class website, selects the third server cluster, or, the 4th kind of server cluster, As the corresponding server cluster in website;Wherein, first kind website is that downloading class website, live streaming class website and online accelerate class net It stands, the second class website is media class website, Internet website, financial class website, game class website and interaction live streaming chat class Website, third class website are that video class website, picture category website, dynamic acceleration class website and the whole network accelerate class website.The realization In, the server cluster of different server framework is distributed for different types of website, and CDN system is enabled to be preferably website Accelerated.
In addition, being determined as the edge clothes of website service in the group name according to planning request and each Edge Server group After device group of being engaged in, servers' layout method further include: if it is determined that the Edge Server group for website service belongs to the first service Device cluster, by the corresponding internet protocol address of the group name of Edge Server group, as the corresponding scheduling IP address in website;If The Edge Server group for being determined as website service belongs to second of server cluster or the third server cluster, by edge service The virtual ip address of the corresponding four layers of balanced stratum server of device group, as the corresponding scheduling IP address in website;If it is determined that being website The Edge Server group of service belongs to the 4th kind of server cluster, by the corresponding seven layers of balanced stratum server of Edge Server group IP address, as the corresponding scheduling IP address in website.
In addition, the form of the group name of Edge Server group are as follows: the region of Edge Server group _ Edge Server group area Product line belonging to domain _ Edge Server group operator _ Edge Server group nodename _ Edge Server group _ described The group # of Edge Server group, the form of the group name of four layers of balanced stratum server group are as follows: the section of four layers of balanced stratum server group The group # of the balanced stratum server group of point title _ tetra- layer, the form of the group name of seven layers of balanced stratum server group are as follows: seven layers of equalizing layer The group # of the balanced stratum server group of nodename _ seven layer of the balanced stratum server group of region _ seven layer of server group.
In addition, before obtaining planning request, servers' layout method further include: obtain the planning to online server File;Wherein, plan that in file include to the IP address of online server, to Edge Server belonging to online server The group name organized and the information to server cluster belonging to online server;According to planning file, dispose to online service Device.
In addition, deployment services device specifically includes according to planning file: according to the IP address to online server, sending Installation instruction is to each to online server, wherein installation instruction is used to indicate to online server from cache server Middle downloading software package installs the software in software package;The IP address to online server is recorded, and to online server The corresponding relationship of the group name of affiliated Edge Server group;According to the information to server cluster belonging to online server, By to online server disposition in server cluster corresponding with the information of server cluster;Instruction of restarting is sent to upper The server of line, wherein instruction of restarting is used to indicate to online Server Restart.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the flow chart of the servers' layout method of first embodiment of the invention;
Fig. 2 is the flow chart of the servers' layout method of second embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the server cluster of the Edge Server framework in second embodiment of the present invention;
Fig. 4 is the server set that the Edge Server of second embodiment of the present invention adds four layers of equalizing layer server architecture The structural schematic diagram of group;
Fig. 5 is that the Edge Server of second embodiment of the present invention adds seven layers of balanced stratum server to add four layers of equalizing layer clothes The structural schematic diagram of the server cluster of business device framework;
Fig. 6 is the server set that the Edge Server of second embodiment of the present invention adds seven layers of equalizing layer server architecture The structural schematic diagram of group;
Fig. 7 is point of the Edge Server of the server cluster of the Edge Server framework of second embodiment of the present invention Cloth schematic diagram;
Fig. 8 is the structural schematic diagram of the server of third embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the server of the 4th embodiment of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of servers' layout methods, are applied to CDN system, can be CDN system The management server etc. of system.As shown in Figure 1, the servers' layout method includes:
Step 101: obtaining planning request.
Specifically, including the information for needing the website accelerated in planning request.
It in one example, include the area information for needing to accelerate, desired operation in the information for the website for needing to accelerate One of the characteristic information of business of quotient's information and website information or any combination.
Step 102: according to planning request and the group name of each Edge Server group, being determined as the edge of website service Server group.
Specifically, multiple Edge Servers are deployed in Edge Server group, the edge in each Edge Server group Server number can according to need setting.The group name of Edge Server group is used to indicate the information of Edge Server group.Edge The information of server group includes the regional information of Edge Server group, the area information of Edge Server group, Edge Server group Operator's informaiton, Edge Server group nodename and Edge Server group belonging at least one of product line information Information.
In one example, Edge Server group is divided into common group and father's layer group, and father's layer component is static parent group and dynamic Father's group.Wherein, common group for caching source station data, is the group for directly serving in user's access.Static parent group refers to common The father's layer group for caching source station data being arranged between group and source station, the request amount in source is returned for reducing CDN.Dynamic father's group refers to The father's layer group that can not cache source station data being arranged between common group or static parent group and source station, for shortening CDN and source station Between response delay.Father's layer group can have one layer or multilayer.CDN system can according to need the site information of acceleration, choosing The Edge Server for selecting common group or father's layer group, is serviced for the website.
In one example, regional information of the group name of Edge Server group by Edge Server group, Edge Server group Area information, the operator's informaiton of Edge Server group, belonging to the nodename of Edge Server group and Edge Server group The information combination such as product line information, and be made of underscore connection.Wherein, regional information refers to be several by global subdivision Behind a region, the information of the region where the Edge Server group.For example, being five continents by global subdivision, it is respectively designated as Continent 1, continent 2, continent 3, continent 4 and continent 5, and with the name label of the first preset format, so that CDN system can determine Region where Edge Server group.Area information refers to each country is divided into several regions after, Edge Server group The information in the region at place.It is great Qu 1, great Qu 2, great Qu 3 etc. respectively for example, A state is divided into several great Qu, and with second The name label of preset format, so that CDN system can determine the region where Edge Server group.Operator's informaiton refer to for The server of the Edge Server group provides the information of the supplier of network service.With the name label edge of third preset format The operator of server group, so that CDN system, which can determine, provides the operator of network service for Edge Server group.Edge clothes The nodename of business device group can be according to default rule, for the abbreviation of Edge Server group setting.Product line information is Refer to the corresponding product characteristic of Edge Server group.
In one example, the form of the group name of Edge Server group are as follows: region _ Edge Server of Edge Server group Product belonging to region _ Edge Server group operator _ Edge Server group nodename _ Edge Server group of group Line _ Edge Server group group #.
In the realization, due to including regional information, the edge service of Edge Server group in the group name of Edge Server group The area information of device group, the operator's informaiton of Edge Server group, the nodename of Edge Server group and Edge Server group Affiliated product line information, CDN system can distinguish the side in Edge Server group by the group name of reading Edge Server group The information such as regional information, area information, operator's informaiton, product line information, have efficiently distinguished each region where edge server Server, quickly recognize each operator, each region, each product line server, convenient for CDN system be client advise Draw server resource.
It should be noted that it will be understood by those skilled in the art that the group name of Edge Server group can be by edge service The regional information of device group, the area information of Edge Server group, the operator's informaiton of Edge Server group, Edge Server group Any combination of the information such as product line information belonging to nodename and Edge Server group, built-up sequence, which can according to need, to be set It sets.For example, the region the group of Edge Server group entitled operator 1_ 1_ nodename 1_ product line 1_ group # 1, alternatively, edge The region the group of server group entitled continent 1_ 1_ nodename 1_ product 1_ group # 1.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the servers' layout method provided in present embodiment, due to being carried in planning request The information for the website for needing to accelerate, CDN system can be requested according to planning, determine the demand of client.Due to Edge Server group Group name instruction Edge Server group information, CDN system can determine Edge Server according to the group name of Edge Server group The information such as area information, the regional information of group.The demand of CDN system combination client and the information of Edge Server group, Neng Gouwei Client determines more suitable speeding scheme.
Second embodiment of the present invention is related to a kind of servers' layout method.Present embodiment is to first embodiment Further refinement, specifically illustrate: CDN system be website publishing Edge Server group process.
Specifically, as shown in Fig. 2, in the present embodiment, include step 201 to step 203, wherein step 201 with Step 101 in first embodiment is roughly the same, and details are not described herein again.Second embodiment and first is mainly introduced below in fact Apply the difference of mode:
Step 201: obtaining planning request.
Step 202: according to the characteristic information of the business of the website in planning request, determination is corresponding with the product type of website Server cluster.
It include M in each server cluster specifically, including that multiple servers have N number of server cluster in CDN system A Edge Server group includes the characteristic information of the business of website in the information of website;Wherein, M and N is positive integer.CDN system According to the characteristic information of the business of website, selection is more suitable for the server cluster of the business, so that CDN system can be preferably somebody's turn to do Website service.
It in one example, include 4 kinds of server clusters in CDN system.Wherein, the framework of the first server cluster is Edge Server framework, includes Edge Server in the first server cluster, and structural schematic diagram is as shown in Figure 3.Second The framework of server cluster is that Edge Server adds four layers of equalizing layer server architecture, includes edge in second of server cluster Server and four layers of balanced stratum server.The framework of the third server cluster is that Edge Server adds seven layers of balanced stratum server Add four layers of equalizing layer server architecture, structural schematic diagram is as shown in figure 4, include edge service in the third server cluster Device, seven layers of balanced stratum server and four layers of balanced stratum server, structural schematic diagram are as shown in Figure 5.4th kind of server cluster Framework be that Edge Server adds seven layers of equalizing layer server architecture, include Edge Server and seven in the 4th kind of server cluster The balanced stratum server of layer, structural schematic diagram are as shown in Figure 6.Wherein, the grouping set of several Edge Server examples is known as side Edge server group;The collection of several four layers balanced stratum server is collectively referred to as four layers of balanced stratum server group;Several seven layers of equalizing layer clothes The collection of business device is collectively referred to as seven layers of balanced stratum server group.
In one example, the form of the group name of four layers of balanced stratum server group are as follows: the section of four layers of balanced stratum server group The group # of the balanced stratum server group of point title _ tetra- layer, the form of the group name of seven layers of balanced stratum server group are as follows: seven layers of equalizing layer The group # of the balanced stratum server group of nodename _ seven layer of the balanced stratum server group of region _ seven layer of server group.For example, The entitled operator 1_ nodename 1_ group # 1 of the group of seven layers of equalizing layer group, alternatively, continent 1_ nodename 1_ group # 1.Four The balanced stratum server group of layer is nodename 1_ group # 1.
In one example, the process of CDN system deployment services device is as follows: CDN system is obtained to online server It plans file, according to planning file, disposes to online server.Wherein, plan that in file include to online server IP address, to the group name of Edge Server group belonging to online server and to server cluster belonging to online server Information.
CDN system is disposed and is illustrated to the process of online server according to planning file below.
Step a:CDN system will plan that the resource management in file to the data input CDN system of online server is put down Platform.Wherein, the information to online server includes the basic informations such as asset number, the hardware configuration to online server, And the IP address information to online server and the correspondence to the group name of Edge Server group belonging to online server Relationship.
Step b:CDN system sends installation instruction to each according to IP address to online server in planning file To online server.Wherein, installation instruction is used to indicate downloads software package to online server from cache server, peace Fill the software in software package.
Specifically, CDN system is based on CDN distribution technology, to bulk service there are multiple when online server Device is distributed.By way of CDN system is accessed agency or directly, installation instruction (i.e. sourse instruction) is distributed to each to upper The server of line.It executes, is found by dns resolution immediate containing source file after online server receives installation instruction Cache server, carry out the downloading and installation of integrated package.It in one example, can be with when issuing installation instruction Basic document is sent to online server, basic document is for guaranteeing that installation instruction can be performed normally.
It should be noted that it will be understood by those skilled in the art that the software in software package can according to need setting, originally Embodiment does not limit the software type in software package.
It is noted that basic document and installation instruction are sent to respectively since CDN system is based on CDN distribution technology It is a to online server, it is each that software package is obtained from cache server after online server receives instruction, reduce The time of deployment services device, so that the time and service device quantity of server disposition is unrelated.
Step c: according to the information to server cluster belonging to online server, will exist to online server disposition In server cluster corresponding with the information of server cluster.
Step d:CDN system sends instruction of restarting to online server.Wherein, instruction of restarting is used to indicate to online Server Restart.
When including below above-mentioned 4 kinds of server clusters to CDN system, according to the feature of the business of the website in planning request Information, the method for determining server cluster corresponding with the product type of website are illustrated.
CDN system is if it is determined that the website of the characteristic information instruction website of the business of website belongs to first kind website, selection the A kind of server cluster, as the corresponding server cluster in website.Wherein, first kind website is downloading class website, live streaming class net It stands and surfs the Internet and accelerate class website.Since the Documents Comparison of downloading class website is big, request is typically from terminal, and live streaming class website needs Real-time interactive, more stable audio-visual service, richer user experience and less expensive operation cost that will be more smooth, online add Fast class website needs to accelerate last one kilometer, accelerate user terminal, accelerate website visiting and accelerate enterprise's application etc., right In such website, CDN system dispatches the server in the server cluster of Edge Server framework for it.
CDN system is if it is determined that the website of the characteristic information instruction website of the business of website belongs to the second class website, selection the Two kinds of server clusters, as the corresponding server cluster in website.Wherein, the second class website is media class website, Internet Website, financial class website, game class website and interaction live streaming chat class website.Since four layers of balanced stratum server are with following several A advantage: it realizes load balancing, has spare machine, the state of real-time detection Edge Server, and Edge Server can be at any time Increase and decrease.And media class website, Internet website be mainly characterized by file it is larger, there are transnational access, it is trans-regional access and Need breakpoint continuous, be mainly characterized by high security requirement, stability requirement height and the IP of financial class website return source high availability, and And concern dynamic data speed, game class website and interaction live streaming chat class website are mainly characterized by requiring large concurrent, low Time delay, small data and proprietary protocol, Edge Server add the server cluster of four layers of equalizing layer server architecture to be more suitable for thus Class website accelerates.
CDN system is if it is determined that the website of the characteristic information instruction website of the business of website belongs to third class website, selection the Three kinds of server clusters, or, the 4th kind of server cluster, as the corresponding server cluster in website.Third class website is video Class website, picture category website, dynamic accelerate class website and the whole network to accelerate class website.Seven layers of balanced stratum server generally have agency (proxy) mode and redirection (redirect).The advantages of proxy mode, is: reducing primary redirect and improves response speed;No It must analyze whether client (player) is supported to redirect;Browser can cache, and be not in buffered file due to IP Change and re-downloads.The advantages of redirection mode, is: reducing the flow of seven layers of balanced stratum server;IP scheduling;Node runs high It is automatically redirected;IP is exposed to outside, is easy to be downloaded tool and remember, causing to steal chain will appear cross-domain (crossdomain) and ask Topic.Video class website be mainly characterized by file greatly and itself is with peculiar function, picture category website is mainly characterized by file It is small and request it is more, dynamic accelerate class website to be mainly characterized by request more, and do not cache generally, the main spy of the whole network station acceleration class Point is that sound separation, intelligent buffer, routing optimality, transmission optimization and website data safety, Edge Server add seven layers of equalizing layer Server adds the server cluster of four layers of equalizing layer server architecture, and, Edge Server adds seven layers of equalizing layer server architecture Server cluster be more suitable for for above-mentioned website acceleration.
It should be noted that it will be understood by those skilled in the art that the above-mentioned Type of website by way of example only, practical application In, each website and server set can be arranged according to the service feature of each website and the construction characteristic of server cluster The corresponding relationship of group.
Step 203: according to the group name of the Edge Server group in corresponding server cluster, selecting an Edge Server Group, as the Edge Server group for website service.
It in one example, include 2 product lines in the server cluster of Edge Server framework, in other words, 2 kinds of applications The distribution schematic diagram of service type, Edge Server is as shown in Figure 7.The form of the group name of Edge Server group is region letter The information of breath _ operator's informaiton _ product line information, the website for needing to accelerate is the service feature information of website, needs to accelerate Area information, application service type, desired operator's informaiton, wherein the service feature information instruction website of website is downloading Class website, the region that the area information instruction for needing to accelerate needs to accelerate is great Qu 1, and desired operator's informaiton instruction is desired Operator is operator A, and website corresponds to the first application service type, i.e. product line 1.CDN system is according to above- mentioned information, on side In the server cluster of edge server architecture, the Edge Server group of a group entitled great Qu 1_ operator A_ product line 1 is selected, The Edge Server group of service as the website accelerated for the needs.
For CDN system after being determined as the Edge Server group of website service, CDN system will be according to Edge Server group institute The server cluster of category, determination are supplied to the IP address that client uses, the i.e. corresponding scheduling IP address in the website.
It in one example, include the first server cluster, second of server cluster, the third clothes in CDN system Business device cluster and the 4th kind of server cluster.CDN system is if it is determined that the Edge Server group for website service belongs to the first clothes Business device cluster, by the corresponding internet protocol address of the group name of Edge Server group, as the corresponding scheduling IP address in website. If it is determined that the Edge Server group for website service belongs to second of server cluster or the third server cluster, edge is taken The virtual ip address of the corresponding four layers of balanced stratum server of device group of being engaged in, as the corresponding scheduling IP address in website.If it is determined that being net The Edge Server group for the service of standing belongs to the 4th kind of server cluster, by the corresponding seven layers of balanced stratum server of Edge Server group IP address, as the corresponding scheduling IP address in website.
It is noted that being server group name by the IP address conversion of the server in each server group, it is convenient for CDN System is managed and dispatches to each server, improves the convenience of server scheduling.
It should be noted that it will be understood by those skilled in the art that other equally loadeds also can be used in practical application Technology, for example, two layers of equally loaded etc., the present embodiment load-balancing technique that limiting server cluster does not use, CDN system By the IP address of the server of server cluster top layer, as corresponding scheduling IP address.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the servers' layout method provided in present embodiment, due to being carried in planning request The information for the website for needing to accelerate, CDN system can be requested according to planning, determine the demand of client.Due to Edge Server group Group name instruction Edge Server group information, CDN system can determine Edge Server according to the group name of Edge Server group The information such as area information, the regional information of group.The demand of CDN system combination client and the information of Edge Server group, Neng Gouwei Client determines more suitable speeding scheme.It in addition to this, is service by the IP address conversion of the server in each server group Device group name is managed and dispatches to each server convenient for CDN system, improves the convenience of server scheduling.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed Core design with process is all in the protection scope of the patent.
Third embodiment of the present invention is related to a kind of servers' layout device, as shown in Figure 8, comprising: obtains module 301 With planning module 302, module 301 is obtained for obtaining planning request;It include the information for needing the website accelerated in planning request. Planning module 302 is used for the group name according to planning request and each Edge Server group, is determined as the edge clothes of website service Business device group;Wherein, the group name of Edge Server group is used to indicate the information of Edge Server group, the packet of Edge Server group Include the regional information of Edge Server group, the area information of Edge Server group, Edge Server group operator's informaiton, edge At least one of product line information belonging to the nodename and Edge Server group of server group information.
It is not difficult to find that present embodiment is system embodiment corresponding with first embodiment, present embodiment can be with First embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment still have in the present embodiment Effect, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in In first embodiment.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment Member.
4th embodiment of the invention is related to a kind of server, as shown in Figure 9, comprising: at least one processor 401; And the memory 402 with the communication connection of at least one processor 401;Wherein, be stored with can be by least one for memory 402 The instruction that processor 401 executes, instruction is executed by least one processor 401, so that at least one processor 401 is able to carry out The servers' layout method that above embodiment refers to.
The server includes: one or more processors 401 and memory 402, is with a processor 401 in Fig. 9 Example.Processor 401, memory 402 can be connected by bus or other modes, in Fig. 9 for being connected by bus.It deposits Reservoir 402 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software program, non-volatile Computer executable program and module.The non-volatile software journey that processor 401 is stored in memory 402 by operation Sequence, instruction and module realize above-mentioned servers' layout side thereby executing the various function application and data processing of equipment Method.
Memory 402 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;It storage data area can the Save option list etc..In addition, memory 402 can be with It can also include nonvolatile memory, for example, at least disk memory, a flash memory including high-speed random access memory Device or other non-volatile solid state memory parts.In some embodiments, it includes relative to processing that memory 402 is optional The remotely located memory of device 401, these remote memories can pass through network connection to external equipment.The example of above-mentioned network Including but not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module is stored in memory 402, when being executed by one or more processor 401, is held Servers' layout method in the above-mentioned any means embodiment of row.
The said goods can be performed the application embodiment provided by method, have the corresponding functional module of execution method and Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to method provided by the application embodiment.
5th embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates Machine program realizes above method embodiment when being executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention, And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (10)

1. a kind of servers' layout method, which is characterized in that be applied to content distributing network CDN system, comprising:
Obtain planning request;It include the information for needing the website accelerated in the planning request;
According to the planning request and the group name of each Edge Server group, it is determined as the Edge Server group of website service; Wherein, the group name of the Edge Server group is used to indicate the information of the Edge Server group, the Edge Server group Information includes the regional information of Edge Server group, the area information of the Edge Server group, the Edge Server group In product line information belonging to operator's informaiton, the nodename of the Edge Server group and the Edge Server group extremely A kind of few information.
2. servers' layout method according to claim 1, which is characterized in that include N number of server in the CDN system Cluster includes M Edge Server group in each server cluster, the business including website in the information of the website Characteristic information;Wherein, M and N is positive integer;
It is described according to it is described planning request and each Edge Server group group name, be determined as the edge service of website service Device group, specifically includes:
According to the characteristic information of the business of the website in the planning request, the corresponding server set in the website is determined Group;
According to the group name of the Edge Server group in the corresponding server cluster, an Edge Server group is selected, as The Edge Server group for website service.
3. servers' layout method according to claim 2, which is characterized in that include 4 kinds of servers in the CDN system Cluster;
Wherein, the framework of the first server cluster is Edge Server framework, includes side in the first described server cluster Edge server;
The framework of second of server cluster is that Edge Server adds four layers of equalizing layer server architecture, second of server It include Edge Server and four layers of balanced stratum server in cluster;
The framework of the third server cluster is that Edge Server adds seven layers of balanced stratum server to add four layers of equalizing layer server rack Structure includes Edge Server, seven layers of balanced stratum server and four layers of balanced stratum server in the third described server cluster;
The framework of 4th kind of server cluster is that Edge Server adds seven layers of equalizing layer server architecture, the 4th kind of server It include the Edge Server and seven layers of balanced stratum server in cluster.
4. servers' layout method according to claim 3, which is characterized in that the institute according in the planning request The characteristic information for stating the business of website determines the corresponding server cluster in the website, specifically includes:
If it is determined that the characteristic information of the business of the website indicates that the website of the website belongs to first kind website, described the is selected A kind of server cluster, as the corresponding server cluster in the website;
If it is determined that the characteristic information of the business of the website indicates that the website of the website belongs to the second class website, described the is selected Two kinds of server clusters, as the corresponding server cluster in the website;
If it is determined that the characteristic information of the business of the website indicates that the website of the website belongs to third class website, described the is selected Three kinds of server clusters, or, the 4th kind of server cluster, as the corresponding server cluster in the website;
Wherein, the first kind website is that downloading class website, live streaming class website and online accelerate class website, second class website For media class website, Internet website, financial class website, game class website and interaction live streaming chat class website, the third Class website is that video class website, picture category website, dynamic acceleration class website and the whole network accelerate class website.
5. servers' layout method according to claim 4, which is characterized in that it is requested described according to the planning, with And the group name of each Edge Server group, it is determined as after the Edge Server group of website service, the servers' layout method Further include:
If it is determined that the Edge Server group for website service belongs to the first described server cluster, by the edge service The corresponding internet protocol address of the group name of device group, as the corresponding scheduling IP address in the website;
If it is determined that the Edge Server group for website service belongs to second of server cluster or the third server Cluster, it is corresponding as the website by the virtual ip address of the corresponding four layers of balanced stratum server of the Edge Server group Dispatch IP address;
If it is determined that the Edge Server group for website service belongs to the 4th kind of server cluster, by the edge service The IP address of the corresponding seven layers of balanced stratum server of device group, as the corresponding scheduling IP address in the website.
6. servers' layout method according to claim 3, which is characterized in that the shape of the group name of the Edge Server group Formula are as follows: the region of the Edge Server group _ Edge Server group region _ Edge Server group operator _ Product line belonging to the nodename of the Edge Server group _ Edge Server group _ Edge Server group group Number, the form of the group name of described four layers balanced stratum server group are as follows: nodename _ institute of described four layers balanced stratum server group State the group # of four layers of balanced stratum server group, the form of the group name of described seven layers balanced stratum server group are as follows: described seven layers The region for the stratum server group that weighs _ seven layers of balanced stratum server group nodename _ seven layers of balanced stratum server group Group #.
7. servers' layout method according to claim 1, which is characterized in that before acquisition planning request, institute State servers' layout method further include:
Obtain the planning file to online server;Wherein, in the planning file include IP to online server Location, to the group name of Edge Server group belonging to online server and the letter to server cluster belonging to online server Breath;
According to the planning file, deployment is described to online server.
8. servers' layout method according to claim 7, which is characterized in that described according to the planning file, deployment The server, specifically includes:
According to the IP address to online server, installation instruction is sent to each described to online server, wherein The installation instruction be used to indicate it is described software package is downloaded from cache server to online server, the software package is installed In software;
The record IP address to online server and described to Edge Server group belonging to online server The corresponding relationship of group name;
According to the information to server cluster belonging to online server, by it is described to online server disposition with In the corresponding server cluster of the information of the server cluster;
Instruction of restarting is sent to described to online server, wherein the instruction of restarting is used to indicate described to online clothes Business, which is thought highly of, opens.
9. a kind of server characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy It is enough to execute such as servers' layout method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located Reason device realizes servers' layout method described in any item of the claim 1 to 8 when executing.
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 true CN109618003A (en) 2019-04-12
CN109618003B 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)

Cited By (4)

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

Citations (19)

* 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
CN101534204A (en) * 2008-03-10 2009-09-16 中国网通集团宽带业务应用国家工程实验室有限公司 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
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 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
US20120254343A1 (en) * 2009-10-02 2012-10-04 Limelight Networks, Inc. Content delivery network cache grouping
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
US20140215051A1 (en) * 2013-01-30 2014-07-31 Cisco Technology, Inc. Aggregating status to be used for selecting a 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
WO2016082553A1 (en) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 Method, device and system for distributing mobile network content
CN107071820A (en) * 2017-04-19 2017-08-18 努比亚技术有限公司 A kind of method of mobile terminal and switch contents Distributor
CN107645525A (en) * 2016-07-21 2018-01-30 阿里巴巴集团控股有限公司 Detection processing, dispatching method and related device, the node of content distributing network
US20180278688A1 (en) * 2017-03-24 2018-09-27 Salesforce.Com, Inc. Content delivery network optimization system
CN109067930A (en) * 2018-06-26 2018-12-21 网宿科技股份有限公司 Domain name cut-in method, domain name analytic method, server, terminal and storage medium

Patent Citations (20)

* 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
CN101534204A (en) * 2008-03-10 2009-09-16 中国网通集团宽带业务应用国家工程实验室有限公司 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
US20120254343A1 (en) * 2009-10-02 2012-10-04 Limelight Networks, Inc. Content delivery network cache grouping
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 Intelligent dispatching method, device and system of content delivery network flow
CN103023797A (en) * 2011-09-23 2013-04-03 百度在线网络技术(北京)有限公司 Data center system and device and method for providing service
CN102546774A (en) * 2011-12-27 2012-07-04 厦门市美亚柏科信息股份有限公司 CDN (content distribution network) routing method for secondary redirection and system
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
US20140215051A1 (en) * 2013-01-30 2014-07-31 Cisco Technology, Inc. Aggregating status to be used for selecting a 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
US20180288141A1 (en) * 2014-11-11 2018-10-04 Wangsu Science & Technology Co., Ltd. Http scheduling system and method of content delivery network
WO2016082553A1 (en) * 2014-11-25 2016-06-02 中兴通讯股份有限公司 Method, device and system for distributing mobile network content
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
CN107645525A (en) * 2016-07-21 2018-01-30 阿里巴巴集团控股有限公司 Detection processing, dispatching method and related device, the node of content distributing network
US20180278688A1 (en) * 2017-03-24 2018-09-27 Salesforce.Com, Inc. Content delivery network optimization system
CN107071820A (en) * 2017-04-19 2017-08-18 努比亚技术有限公司 A kind of method of mobile terminal and switch contents Distributor
CN109067930A (en) * 2018-06-26 2018-12-21 网宿科技股份有限公司 Domain name cut-in method, domain name analytic method, server, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋迎梅等: "基于P4P的CDN系统中内容分发节点选择算法", 《计算机应用》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830564A (en) * 2019-10-30 2020-02-21 北京金山云网络技术有限公司 CDN scheduling method, device, system and computer readable storage medium
CN111209097A (en) * 2019-12-16 2020-05-29 网宿科技股份有限公司 Software deployment method and system
CN111209097B (en) * 2019-12-16 2024-04-05 网宿科技股份有限公司 Software deployment method and system
CN111181782A (en) * 2019-12-24 2020-05-19 新浪网技术(中国)有限公司 Return source processing method and device
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

Also Published As

Publication number Publication date
CN109618003B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN103596066B (en) Method and device for data processing
CN109618003A (en) A kind of servers' layout method, server and storage medium
US10491523B2 (en) Load distribution in data networks
CN101637006B (en) Method and arrangement for mediating web services using UDDI
CN101065947B (en) Web service registry and method of operation
CN109995859A (en) A kind of dispatching method, dispatch server and computer readable storage medium
AU2012228218B2 (en) Method and system for providing a session involving a plurality of software applications
CN106031130A (en) Content delivery network architecture with edge proxy
EP2044749B1 (en) Dispatching request fragments from a response aggregating surrogate
CN105049466A (en) Accountable content stores for information centric networks
CN1972311A (en) A stream media server system based on cluster balanced load
CN102771135A (en) Systems and methods for accessing content using an internet content guide
CN108470298A (en) The methods, devices and systems of resource numerical value transfer
CN103312624A (en) Message queue service system and method
US7779116B2 (en) Selecting servers based on load-balancing metric instances
CN106254561A (en) The real-time offline download method of a kind of Internet resources file and system
CN107741859A (en) Software package management method, apparatus and system based on domestic CPU and OS
WO2001022688A1 (en) Method and system for providing streaming media services
CN109756584A (en) Domain name analytic method, domain name mapping device and computer readable storage medium
CN106708583A (en) Application loading method and device
JP2001092749A (en) System for distributing data
CN106940715B (en) A kind of method and apparatus of the inquiry based on concordance list
CN103609074B (en) Ask to route using specific WEB
CN110248395B (en) Wireless network access method, device, storage medium and computer equipment
CN107968812A (en) The method and device of synchronous local resource and Internet resources

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