CN107493333A - Web system method for managing resource and system under a kind of cloud computing environment based on SDN - Google Patents
Web system method for managing resource and system under a kind of cloud computing environment based on SDN Download PDFInfo
- Publication number
- CN107493333A CN107493333A CN201710703713.8A CN201710703713A CN107493333A CN 107493333 A CN107493333 A CN 107493333A CN 201710703713 A CN201710703713 A CN 201710703713A CN 107493333 A CN107493333 A CN 107493333A
- Authority
- CN
- China
- Prior art keywords
- server
- link
- session connection
- connection number
- average
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/827—Aggregation of resource allocation or reservation requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1031—Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses web system method for managing resource and system under a kind of cloud computing environment based on SDN, method includes:Web application systems under S1, cloud computing environment of the structure based on SDN;S2, at interval of preset time, obtain instantaneous the session connection number and transient link flow of each server;If the instantaneous session connection number that S3, any server obtain twice in succession is all higher than instantaneous session connection number max-thresholds, resources balance operation is carried out, otherwise performs step S4;S4, obtain average session connection number and link average discharge;S5, by the average session connection number of each server respectively compared with average session connection number max-thresholds and average session connection number polymerization threshold value;S6, resources balance operation or resource polymerization operation are carried out according to comparative result.The beneficial effects of the invention are as follows:Server resource is saved, effectively increases the utilization ratio of existing resource.
Description
Technical field
The present invention relates to SDN technical fields, web system resource pipe under more particularly to a kind of cloud computing environment based on SDN
Manage method and system.
Background technology
Cloud computing is Distributed Calculation, parallel computation, effectiveness calculating, network storage, virtualization, load balancing, Hot Spare
The traditional computers such as redundancy and the product of network technical development fusion, it is a kind of new computation schema paid by usage amount.This
Kind of pattern provides available, easily network access, using the computing resource of distribution according to need, including network, server, storage,
Application software, service etc..Due to the advantage such as high reliability, expansibility, low-maintenance and use cost, virtualization, cloud meter
Calculation technology has obtained very quickly development in recent years, is widely regarded as the technological revolution again of message area.
Under cloud computing environment, enterprise's structure operation system is mainly realized by way of virtual web application cluster.Virtually
Web application clusters, it is the server zone that one group is created in cloud platform using virtualization technology while runs same Web applications
Group, but the external world is like apparently a server.But the virtual web application clothes built at present by cloud computing platform
Business device cluster is only the structure for completing cluster, and the automation dynamic being not implemented to cluster resource manages.Under normal circumstances, user
Need the operation of autonomous monitoring server cluster, obtain server cluster operational factor, voluntarily judge whether to need to server,
Internet resources are extended or polymerize.Because web application systems have multi-user's simultaneously and concurrently access problem, in this case
Need to enter server cluster scale, network link flow Mobile state adjustment, under the conditions of current cloud computing legacy network, data turn
Hair plane is combined closely with control plane, can not be realized the session and flow load balance operation of automation, such as be monitored to use
Concurrently caused session is excessive at family, link flow congestion, the problems such as link utilization is relatively low, also can not be by strategy automatically to resource
It is adjusted.The web server cluster method of adjustment that cloud platform uses at present is primarily present two ways, for virtual server
Resource, during overload, resource request is sent to cloud platform, platform starts virtual machine and is added in server cluster;For net
Network link circuit resource, it is necessary to platform is reset to resources such as router, interchangers, the above for resource adjustment mode without
Method is automatically managed to resource in real time, has had a strong impact on the service efficiency of cloud computing platform, while also result in extreme difference
Consumer's Experience.
The content of the invention
The invention provides web system method for managing resource and system under a kind of cloud computing environment based on SDN, solve
The technical problem of prior art.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:
Web system method for managing resource under a kind of cloud computing environment based on SDN, including:
Web application systems under S1, cloud computing environment of the structure based on SDN, the web application systems include:It is deployed in
Multiple server and SDN controllers on cloud computing platform;
S2, at interval of preset time, obtain instantaneous the session connection number and transient link flow of each server;
S3, the instantaneous session connection number for obtaining each server twice in succession respectively with instantaneous session connection number most
Big threshold value is compared, and the transient link flow that each server is obtained twice in succession respectively with transient link flow
Max-thresholds are compared, if the instantaneous session connection number that any server obtains twice in succession is all higher than the instantaneous session
The transient link flow that connection number max-thresholds or any server obtain twice in succession is all higher than the transient link flow most
Big threshold value, then start resources balance module and resources balance operation is carried out by the SDN controllers, otherwise perform step S4;
S4, instantaneous the session connection number and transient link flow obtained according to each continuous preset times of server,
Obtain average the session connection number and link average discharge of each server;
S5, by the average session connection number of each server respectively with average session connection number max-thresholds and average
Session connection number polymerization threshold value be compared, and by the link average discharge of each server respectively with link average discharge
Max-thresholds and link average discharge polymerization threshold value are compared, and obtain comparative result;
S6, according to the comparative result, start the resources balance module and pass through the SDN controllers and carry out resources balance
Operation or startup resource polymerization module pass through the SDN controllers and carry out resource polymerization operation.
The beneficial effects of the invention are as follows:Two kinds of strategies of foundation session connection number and link flow of the technical program automation
Consider adjustment Web application cluster scales, on the one hand saved largely to Web application clusters relative to manually adding server
Deployment time, avoid due to the problem of can not adjusting server cluster when loading and increasing caused by artificial reason, the opposing party
Face can only save server resource relative to traditional cloud computing platform by way of adding server and realizing load balancing,
Effectively increase the utilization ratio of existing resource.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Preferably, step S6 includes:
When the comparative result is more than the average session connection number maximum for the average session connection number of any server
When the link average discharge of threshold value or any server is more than the link average discharge max-thresholds, start the resources balance
Module carries out resources balance operation by the SDN controllers;
When the comparative result is less than the average session connection number for the average session connection number of at least one server
When polymerizeing the link average discharge of threshold value and at least one server less than link average discharge polymerization threshold value, start
The resource polymerization module carries out resource polymerization operation by the SDN controllers.
Preferably, the method for resources balance operation is carried out by the SDN controllers to be included:
Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis use minimum
First server;
When session connection number need balanced number of resources be less than the maximum balanced number of session connection number of the first server with
The difference and link flow of average session connection number need balanced number of resources maximum less than the link flow of the first server
During the difference of equilibrium amount and link average discharge, by flow table mode by unnecessary load balancing to the first server,
Wherein, the session connection number needs balanced number of resources as the average session connection number max-thresholds and described two
The difference of the average session connection number of individual above server, it is the link average discharge that the link flow, which needs balanced number of resources,
The difference of the link average discharge of max-thresholds and described two above servers.
Preferably, the method for resource polymerization operation is carried out by the SDN controllers to be included:
Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis use minimum
Two servers;
Server session connection numerical digit is in the average session connection number polymerization threshold value and the average session after polymerization
Server-link flow is located at link average discharge polymerization threshold value and the chain between connection number max-thresholds and after polymerization
When between the average discharge max-thresholds of road, both links corresponding to described two servers are polymerize, and discharge two chains
Resource corresponding to any bar link and the link in road shared by server,
Wherein, server session connection number is the average session connection number sum of described two servers after the polymerization,
Server-link flow is the link average discharge sum of described two servers after the polymerization.
Preferably, the multiple server includes:Application server, database server and load-balanced server.
Web system resource management system under a kind of cloud computing environment based on SDN, including:
Module is built, for building the web application systems under the cloud computing environment based on SDN, the web application systems bag
Include:Each server and the SDN controller being deployed on cloud computing platform;
First acquisition module, at interval of preset time, obtaining each server of the web application systems
Instantaneous session connection number and transient link flow;
First comparison module, for instantaneous session connection number and the instantaneous meeting for obtaining each server twice in succession
Words connection number max-thresholds are compared, and each server is continued to the transient link flow and transient link obtained twice
Maximum flow threshold value is compared, if the instantaneous session connection number that any server obtains twice in succession be all higher than it is described instantaneous
The transient link flow that session connection number max-thresholds or any server obtain twice in succession is all higher than the transient link stream
Max-thresholds are measured, then starts resources balance module and resources balance operation is carried out by the SDN controllers, otherwise call the second ratio
Compared with module;
Second acquisition module, for the instantaneous session connection number that is obtained according to each continuous preset times of server and
Transient link flow, average the session connection number and link average discharge of obtained each server;
Second comparison module, for the average session connection number of each server and average session connection number is maximum
Threshold value is compared, and the link average discharge of each server is polymerize into threshold value with average session connection number and compared
Compared with obtaining comparative result;
Operation module, for according to the comparative result, starting the resources balance module and being entered by the SDN controllers
Row resources balance operates or started resource polymerization module and carries out resource polymerization operation by the SDN controllers.
Preferably, the operation module is specifically used for:
When the comparative result is more than the average session connection number maximum for the average session connection number of any server
When the link average discharge of threshold value or any server is more than the link average discharge max-thresholds, start the resources balance
Module carries out resources balance operation by the SDN controllers;
When the comparative result is respectively less than the average session connection for the average session connection number of at least one server
When the link average discharge of number polymerization threshold value and at least one server is respectively less than the link average discharge polymerization threshold value,
Start the resource polymerization module and resource polymerization operation is carried out by the SDN controllers.
Preferably, the resources balance module is specifically used for:
Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis use minimum
First server;
When session connection number need balanced number of resources be less than the maximum balanced number of session connection number of the first server with
The difference and link flow of average session connection number need balanced number of resources maximum less than the link flow of the first server
During the difference of equilibrium amount and link average discharge, by flow table mode by unnecessary load balancing to the first server,
Wherein, the session connection number needs balanced number of resources as the average session connection number max-thresholds and described two
The difference of the average session connection number of individual above server, it is the link average discharge that the link flow, which needs balanced number of resources,
The difference of the link average discharge of max-thresholds and described two above servers.
Preferably, the resource polymerization module is specifically used for:
Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis use minimum
Two servers;
Server session connection numerical digit is in the average session connection number polymerization threshold value and the average session after polymerization
Server-link flow is located at link average discharge polymerization threshold value and the chain between connection number max-thresholds and after polymerization
When between the average discharge max-thresholds of road, both links corresponding to described two servers are polymerize, and discharge two chains
Resource corresponding to any bar link and the link in road shared by server,
Wherein, server session connection number is the average session connection number sum of described two servers after the polymerization,
Server-link flow is the link average discharge sum of described two servers after the polymerization.
Preferably, the multiple server includes:Application server, database server and load balancing service
Device.
Brief description of the drawings
Fig. 1 is web system method for managing resource under a kind of cloud computing environment based on SDN provided in an embodiment of the present invention
Schematic flow sheet;
Fig. 2 is web system resource management side under a kind of cloud computing environment based on SDN that another embodiment of the present invention provides
The schematic flow sheet of method;
Fig. 3 is a kind of structural representation for web application systems that another embodiment of the present invention provides;
Fig. 4 is web system resource management system under a kind of cloud computing environment based on SDN that another embodiment of the present invention provides
The structural representation of system.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the present invention.
As shown in figure 1, web system method for managing resource under a kind of cloud computing environment based on SDN, including:
Web application systems under S101, cloud computing environment of the structure based on SDN, web application systems include:It is deployed in cloud
Multiple server and SDN controllers in calculating platform;
S102, at interval of preset time, obtain instantaneous the session connection number and transient link flow of each server;
S103, the instantaneous session connection number for obtaining each server twice in succession are maximum with instantaneous session connection number respectively
Threshold value is compared, and the transient link flow that each server is obtained twice in succession respectively with transient link maximum flow threshold
Value is compared, if the instantaneous session connection number that any server obtains twice in succession is all higher than instantaneous session connection number maximum
The transient link flow that threshold value or any server obtain twice in succession is all higher than transient link maximum flow threshold value, then starts money
Source balance module carries out resources balance operation by SDN controllers, otherwise performs step S104;
S104, instantaneous the session connection number and transient link flow obtained according to the continuous preset times of each server, are obtained
To average the session connection number and link average discharge of each server;
S105, by the average session connection number of each server respectively with average session connection number max-thresholds and average meeting
Words connection number polymerization threshold value be compared, and by the link average discharge of each server respectively with link average discharge maximum threshold
Value and link average discharge polymerization threshold value are compared, and obtain comparative result;
S106, according to comparative result, start resources balance module and pass through SDN controllers and carry out resources balance operation or startup
Resource polymerization module carries out resource polymerization operation by SDN controllers.
On cloud computing platform dispose application server, database server, load-balanced server, SDN controllers (or
SDN controllers cluster), SDN controllers (or SDN controllers cluster) are deployed in each server, each service
Device is the virtual machine that cloud platform provides, and each server is connected by virtual switch or physical switches, virtually
Interchanger and physical switches are special SDN switch or SDN mixed type interchangers.
After the completion of system constructing, each server of web application systems and its correspondingly is continuously acquired by the sampling interval of time t
The instantaneous session connection number S of linkcurrentAnd transient link flow Bcurrent。
Transient link maximum flow threshold value B is setmax, instantaneous session connection number max-thresholds Smax, will be instantaneous twice in succession
Link flow, instantaneous session connection number are compared with corresponding max-thresholds, if transient link flow twice in succession
Bcurrent>BmaxOr instantaneous session connection number S twice in successioncurrent>Smax, then resources balance operation is carried out, otherwise performs following walk
Suddenly.
It is respectively S to be located in time interval T and obtain n times measurement resultcurrent1,Scurrent2…Scurrentn, pass through formula
(1) it is S to calculate average session connection number in T timeavg:
It is B to be located in time interval T and obtain n times flow measurementcurrent1,Bcurrent2…Bcurrentn, pass through formula
(2) calculating link average discharge in T time is:
Born by the instantaneous session connection of application server in the collection of SDN controllers centralization and computing system with link flow
The average session of load, intervals server and link flow are loaded, and the web application systems of Multi-Client Concurrency Access are taken
Business device and link circuit resource carry out equilibrium and polymerize, and realize the dialogue-based and web application systems of link flow dual strategy and provide
Source dynamic management approach, the cloud platform level of resources utilization is effectively increased, improve user's application experience.
As shown in Fig. 2 web system method for managing resource under a kind of cloud computing environment based on SDN, including:
Web application systems under S201, cloud computing environment of the structure based on SDN, web application systems include:It is deployed in cloud
Multiple server and SDN controllers in calculating platform;
S202, at interval of preset time, obtain instantaneous the session connection number and transient link flow of each server;
S203, the instantaneous session connection number for obtaining each server twice in succession are maximum with instantaneous session connection number respectively
Threshold value is compared, and the transient link flow that each server is obtained twice in succession respectively with transient link maximum flow threshold
Value is compared, if the instantaneous session connection number that any server obtains twice in succession is all higher than instantaneous session connection number maximum
The transient link flow that threshold value or any server obtain twice in succession is all higher than transient link maximum flow threshold value, then starts money
Source balance module carries out resources balance operation by SDN controllers, otherwise performs step S204;
S204, instantaneous the session connection number and transient link flow obtained according to the continuous preset times of each server, are obtained
To average the session connection number and link average discharge of each server;
S205, by the average session connection number of each server respectively with average session connection number max-thresholds and average meeting
Words connection number polymerization threshold value be compared, and by the link average discharge of each server respectively with link average discharge maximum threshold
Value and link average discharge polymerization threshold value are compared, and obtain comparative result;
S206, it is more than average session connection number max-thresholds for the average session connection number of any server when comparative result
Or the link average discharge of any server starts resources balance module and passes through SDN when being more than link average discharge max-thresholds
Controller carries out resources balance operation;
S207, it is less than average session connection number polymerization for the average session connection number of at least one server when comparative result
When the link average discharge of threshold value and at least one server is less than link average discharge polymerization threshold value, start resource polymerization module
Resource polymerization operation is carried out by SDN controllers.
On cloud computing platform dispose application server, database server, load-balanced server, SDN controllers (or
SDN controllers cluster), SDN controllers (or SDN controllers cluster) are deployed in each server, each service
Device is the virtual machine that cloud platform provides, and each server is connected by virtual switch or physical switches, virtually
Interchanger and physical switches are special SDN switch or SDN mixed type interchangers.
After the completion of system constructing, each server of web application systems and its correspondingly is continuously acquired by the sampling interval of time t
The instantaneous session connection number S of linkcurrentAnd transient link flow Bcurrent。
Transient link maximum flow threshold value B is setmax, instantaneous session connection number max-thresholds Smax, will be instantaneous twice in succession
Link flow, instantaneous session connection number are compared with corresponding max-thresholds, if transient link flow twice in succession
Bcurrent>BmaxOr instantaneous session connection number S twice in successioncurrent>Smax, then resources balance operation is carried out, otherwise performs following walk
Suddenly.
It is respectively S to be located in time interval T and obtain n times measurement resultcurrent1,Scurrent2…Scurrentn, pass through formula
(1) it is S to calculate average session connection number in T timeavg:
It is B to be located in time interval T and obtain n times flow measurementcurrent1,Bcurrent2…Bcurrentn, pass through formula
(2) calculating link average discharge in T time is:
If average session connection number max-thresholds are Savg_max, average session connection number polymerization threshold value is Savg_min, link puts down
Equal maximum flow threshold value is Bavg_max, link average discharge polymerization threshold value is Bavg_minIf Savg>Savg_maxOr Bavg>
Bavg_max, then resources balance operation is carried out, if Savg<Savg_minAnd Bavg<Bavg_min, then SDN controller inquiry system meetings are passed through
Words load and link flow status information, meet above-mentioned polymerizing condition if there is more than two, then carry out resource polymerization operation.
Resources balance operating process includes:SDN controllers search session and link circuit resource are comprehensive by global resource information bank
Close using minimum server, if server session connection number maximum equilibrium amount is Sbalance_max, link flow maximum is
Weighing apparatus quantity is Bbalance_max, average session connection number is Savg1, link average discharge is Bavg1, calculating needs balanced number of resources
Sbalance=Savg_max-Savg, Bbalance=Bavg_max-BavgIf Sbalance<Sbalance_max-Savg1And Bbalance<
Bbalance_max-Bavg1, then SDN controllers by flow table mode by unnecessary load balancing to the server, otherwise calculate it is remaining
The load number that weighs Srest_balance=Sbalance-(Sbalance_max-Savg1), Brest_balance=Bbalance-(Bbalance_max-Bavg1),
Continue resources balance operation, until all flows and session number are all balanced to other servers, if not available
Equalization server, then start new application server by cloud platform, and relevant link is established by controller, realize resource
Equalization operation.
Resource polymerization operating process includes:SDN controllers search session and link circuit resource are comprehensive by global resource information bank
Close using two minimum servers, if the average session connection number of two servers is Savg1And Savg2, link average discharge is
Bavg1And Bavg2, calculate server session number S after polymerizationtotal=Savg1+Savg2, link flow B after polymerizationtotal=Bavg1+
Bavg2If Stotal>Savg_maxOr Btotal>Bavg_max, do not perform operation;If Savg_min<Stotal<Savg_maxAnd Bavg_min<
Btotal<Bavg_max, then both links polymerize by SDN controllers, and discharge a wherein link and the resource shared by server,
If Stotal<Savg_minAnd Btotal<Savg_min, then resource polymerization operation is continued, until the type resource can not be found.
Embodiment, configures the Openstack cloud computing platforms being made up of 5 physical servers, and separate unit physical server is matched somebody with somebody
Put the thread processor of 4 cores of Intel Xeon E5620 2.4G 8,64GB RAM, SAS 2.0T RAID5 hard disks, virtual machine creating
Using unified specification, distribution Intel Xeon E5620*1 CPU, 5GB internal memories, 30GB hard disks, operation Ubuntu 14.04LTS
Operating system.Initial Web application systems are made up of 6 virtual servers, including 1 load-balanced server, install Haproxy
Software;4 Web Application Servers, tomcat middlewares and Sun PetStore application programs, 1 SDN controller service are installed
Device, installation Opendaylight increase income controller.Whole Web application system initial deployment states, as shown in Figure 3.
In actual test, average session information timing statisticses section=15min is set, per 1min (i.e. t=in interval time
Once instantaneous session connection number and link instantaneous delivery 1min) are obtained, 15 session connection numbers in time interval are calculated after 15min
Average value as average session connection number Savg, the average value of 15 link flows is as link average discharge Bavg.In addition, set
It is 50 to determine maximum instantaneous session connection number, and maximum instantaneous link flow is 70M, the average minimum polymerization threshold value 8 of session connection number, chain
Average discharge minimum polymerization threshold value in road is 25M, and average session connection number max-thresholds are 20, and link average discharge max-thresholds are
80M。
First, the Web application systems formed using 6 virtual servers of openstack Platform deployments.Monitor web applications
Every server session connection number and its link flow in system, need herein to instantaneous session connection number, link instantaneous delivery,
Average session connection number and link average discharge are acquired and calculated, while need instantaneous to instantaneous session connection number, link
Flow is judged, sees whether exceed max-thresholds twice in succession, if it was exceeded, resources balance operation is carried out, if do not surpassed
Go out, the server in specified time section and link average load are judged.Calculate the average session in specified time interval
Connect number SavgWith link average discharge Bavg, by Savg、BavgWith average session connection number maximum threshold values Smax, link average discharge
Maximum threshold values Bmax, the average minimum polymerization threshold value S of session connection numbermin, the minimum polymerization threshold value B of link average dischargeminCompared
It is right, if Savg>SmaxOr Bavg>Bmax, then resources balance operation is performed, if redundant-server and link satisfaction requirement be present,
By beyond session number and link flow be balanced in other servers, if being not present, started by cloud platform new virtual
Server, and be added in load balancing, realize the equalization operation of load;If Servers-all is satisfied by Smin<Savg<Smax
And Smin<Bavg<Smax, keep existing web application systems scale constant, it is not necessary to carry out resource management action;If more than two
Platform server meets Savg<SminAnd Bavg<Bmin, resource polymerization operation is performed, access path is changed by SDN controllers, by two
Platform server access session and flow are aggregated to in a server access, another server removes application system.
In above-mentioned specific implementation process, adopt and produce access session connection number and link flow in an automated fashion, initially
State whole system includes 1 load-balanced server, 4 Web Application Servers, and 1 SDN controls server (is used to dispose
SDN controllers or cluster), 1 support SDN OpenvSwitch virtual switches, wherein, load-balanced server and web should
OpenvSwitch interchangers are both connected to server, OpenvSwitch interchangers pass through designated lane and SDN controller phases
Connection.Session connection and link flow are produced in experiment by the way of progressively high load, if minimum polymerization connection session number
Threshold value 8, minimum polylink flow threshold value are 25M, and the average session connection threshold value of maximum is 20, maximum link average discharge threshold value
For 80M, initially ensure each server session connection number per minute 5 or so, each of the links flow 20M or so, now session
Load and link flow are respectively less than minimum polymerization threshold value, trigger converging operation, and issuing flow table by SDN controllers changes outside visit
Ask the way footpath, realize resource polymerization, be one by two-server and its link aggregation, whole system reduces by 2 web application services
Device;Hereafter gradually pressurization, the average session connection number of each server is allowed to reach 10, each of the links flow reaches 45M or so, now
Session connection number and link flow are between minimum polymerization threshold value and max-thresholds, meet resource management demand, therefore be not required to
Carry out associative operation;Hereafter, individual server session connection and link flow load are increased, two of which server is averaged
Session number reaches 25, and link flow reaches 90M or so, and two server session connection numbers keep 10, and link flow keeps 45M left
The right side, equalization operation is now triggered, it is negative to remaining two that the two-server session for exceeding max-thresholds and flow equalization will be loaded
Carry in lighter server, its load is met system requirements;Then, continue to increase server session connection quantity and link flow
Amount load, the average session number of each server is set to reach 25, link flow reaches 90M or so, and now Servers-all exceedes
Max-thresholds, equilibrium can not be carried out, now add a new server automatically by cloud platform, and be connected to
OpenvSwitch interchangers, excess traffic is balanced in this new addition server.
The foundation session connection number and two kinds of strategies of link flow that experiment proof this method can automate more than are comprehensive
Close and consider adjustment Web application cluster scales, on the one hand save a large amount of portions to Web application clusters relative to manually adding server
The time is affixed one's name to, is avoided due to the problem of can not adjusting server cluster when loading and increasing caused by artificial reason, another aspect
It can only be saved server resource by way of adding server and realizing load balancing, have relative to traditional cloud computing platform
Effect improves the utilization ratio of existing resource.
As shown in figure 4, web system resource management system under a kind of cloud computing environment based on SDN, including:
Module 401 is built, for building the web application systems under the cloud computing environment based on SDN, web application system bags
Include:Each server and the SDN controller being deployed on cloud computing platform;
First acquisition module 402, at interval of preset time, obtain web application systems each server it is instantaneous
Session connection number and transient link flow;
First comparison module 403, for instantaneous session connection number and the instantaneous meeting for obtaining each server twice in succession
Words connection number max-thresholds are compared, and each server is continued to the transient link flow and transient link flow obtained twice
Max-thresholds are compared, if the instantaneous session connection number that any server obtains twice in succession is all higher than instantaneous session connection
The transient link flow that number max-thresholds or any server obtain twice in succession is all higher than transient link maximum flow threshold value, then
Start resources balance module 407 and resources balance operation is carried out by SDN controllers, otherwise call the second comparison module;
Second acquisition module 404, for the instantaneous session connection number that is obtained according to the continuous preset times of each server and
Transient link flow, average the session connection number and link average discharge of obtained each server;
Second comparison module 405, for the average session connection number of each server and average session connection number is maximum
Threshold value is compared, and the link average discharge of each server is obtained compared with average session connection number polymerization threshold value
To comparative result;
Operation module 406, for according to comparative result, starting resources balance module 407 and carrying out resource by SDN controllers
Equalization operation or startup resource polymerization module 408 pass through SDN controllers and carry out resource polymerization operation.
Specifically, operation module 406 is specifically used for:
When comparative result is more than average session connection number max-thresholds for the average session connection number of any server or appoints
When the link average discharge of one server is more than link average discharge max-thresholds, starts resources balance module 407 and controlled by SDN
Device processed carries out resources balance operation;
It polymerize threshold when comparative result is respectively less than averagely session connection number for the average session connection number of at least one server
When the link average discharge of value and at least one server is respectively less than link average discharge polymerization threshold value, start resource polymerization module
408 carry out resource polymerization operation by SDN controllers.
Specifically, resources balance module 407 is specifically used for:
Searched by SDN controllers from global resource information bank and obtain session and link circuit resource synthesis using minimum the
One server;
When session connection number need balanced number of resources be less than the maximum balanced number of session connection number of first server with it is average
The difference and link flow of session connection number need balanced number of resources less than the link flow maximum equilibrium amount of first server
During with the difference of link average discharge, by flow table mode by unnecessary load balancing to first server,
Wherein, it is average session connection number max-thresholds and two or more server that session connection number, which needs balanced number of resources,
Average session connection number difference, link flow needs balanced number of resources to be taken for link average discharge max-thresholds and two or more
The difference of the link average discharge of business device.
Specifically, resource polymerization module 408 is specifically used for:
Searched by SDN controllers from global resource information bank and obtain session and link circuit resource synthesis using minimum two
Individual server;
Server session connection numerical digit polymerize threshold value and average session connection number most in average session connection number after polymerization
Server-link flow is located at link average discharge polymerization threshold value and link average discharge maximum threshold between big threshold value and after polymerization
When between value, both links corresponding to two servers are polymerize, and discharge any bar link in both links and the link
Resource shared by corresponding server,
Wherein, server session connection number is the average session connection number sum of two servers after polymerization, is taken after polymerization
Business device link flow is the link average discharge sum of two servers.
Specifically, multiple servers include:Application server, database server and load-balanced server.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (10)
- A kind of 1. web system method for managing resource under cloud computing environment based on SDN, it is characterised in that including:Web application systems under S1, cloud computing environment of the structure based on SDN, the web application systems include:It is deployed in cloud meter Calculate multiple server and SDN controllers on platform;S2, at interval of preset time, obtain instantaneous the session connection number and transient link flow of each server;S3, the instantaneous session connection number for obtaining each server twice in succession respectively with instantaneous session connection number maximum threshold Value is compared, and the transient link flow that each server is obtained twice in succession respectively with transient link maximum flow Threshold value is compared, if the instantaneous session connection number that any server obtains twice in succession is all higher than the instantaneous session connection The transient link flow that number max-thresholds or any server obtain twice in succession is all higher than the transient link maximum flow threshold Value, then start resources balance module and resources balance operation is carried out by the SDN controllers, otherwise perform step S4;S4, instantaneous the session connection number and transient link flow obtained according to each continuous preset times of server, are obtained Average the session connection number and link average discharge of each server;S5, by the average session connection number of each server respectively with average session connection number max-thresholds and average session Connection number polymerization threshold value is compared, and the link average discharge of each server is maximum with link average discharge respectively Threshold value and link average discharge polymerization threshold value are compared, and obtain comparative result;S6, according to the comparative result, start the resources balance module and pass through the SDN controllers and carry out resources balance operation Or start resource polymerization module and resource polymerization operation is carried out by the SDN controllers.
- 2. web system method for managing resource under a kind of cloud computing environment based on SDN according to claim 1, its feature It is, step S6 includes:When the comparative result is more than the average session connection number max-thresholds for the average session connection number of any server Or the link average discharge of any server starts the resources balance module when being more than the link average discharge max-thresholds Resources balance operation is carried out by the SDN controllers;When the comparative result is less than the average session connection number polymerization for the average session connection number of at least one server When the link average discharge of threshold value and at least one server is less than link average discharge polymerization threshold value, described in startup Resource polymerization module carries out resource polymerization operation by the SDN controllers.
- 3. web system method for managing resource under a kind of cloud computing environment based on SDN according to claim 2, its feature It is, the method for resources balance operation is carried out by the SDN controllers to be included:Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis using minimum the One server;When session connection number need balanced number of resources be less than the maximum balanced number of session connection number of the first server with it is average The difference and link flow of session connection number need balanced number of resources maximum less than the link flow of the first server balanced During the difference of quantity and link average discharge, by flow table mode by unnecessary load balancing to the first server,Wherein, the session connection number need balanced number of resources for the average session connection number max-thresholds with it is described two with The difference of the average session connection number of upper server, the link flow need balanced number of resources maximum for the link average discharge The difference of the link average discharge of threshold value and described two above servers.
- 4. web system method for managing resource under a kind of cloud computing environment based on SDN according to claim 3, its feature It is, the method for resource polymerization operation is carried out by the SDN controllers to be included:Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis using minimum two Individual server;Server session connection numerical digit is in the average session connection number polymerization threshold value and the average session connection after polymerization Number max-thresholds between and polymerize after server-link flow be located at the link average discharge polymerize threshold value put down with the link When between equal maximum flow threshold value, both links corresponding to described two servers are polymerize, and discharges in the both links Any bar link and the link corresponding to resource shared by server,Wherein, server session connection number is the average session connection number sum of described two servers after the polymerization, described Server-link flow is the link average discharge sum of described two servers after polymerization.
- 5. web system resource management side under a kind of cloud computing environment based on SDN according to claim any one of 1-4 Method, it is characterised in that the multiple server includes:Application server, database server and load-balanced server.
- A kind of 6. web system resource management system under cloud computing environment based on SDN, it is characterised in that including:Module is built, for building the web application systems under the cloud computing environment based on SDN, the web application systems include: Each server and the SDN controller being deployed on cloud computing platform;First acquisition module, at interval of preset time, obtain the web application systems each server it is instantaneous Session connection number and transient link flow;First comparison module, instantaneous session connection number and instantaneous session for each server to be obtained twice in succession connect Connect several max-thresholds to be compared, and each server is continued to the transient link flow and transient link flow obtained twice Max-thresholds are compared, if the instantaneous session connection number that any server obtains twice in succession is all higher than the instantaneous session The transient link flow that connection number max-thresholds or any server obtain twice in succession is all higher than the transient link flow most Big threshold value, then start resources balance module and resources balance operation is carried out by the SDN controllers, otherwise call second to compare mould Block;Second acquisition module, for the instantaneous session connection number according to each continuous preset times acquisition of server and instantaneously Link flow, average the session connection number and link average discharge of obtained each server;Second comparison module, for by the average session connection number of each server and average session connection number max-thresholds It is compared, and the link average discharge of each server is obtained compared with average session connection number polymerization threshold value To comparative result;Operation module, for according to the comparative result, starting the resources balance module and being provided by the SDN controllers Source equalization operation or startup resource polymerization module pass through the SDN controllers and carry out resource polymerization operation.
- 7. web system resource management system under a kind of cloud computing environment based on SDN according to claim 6, its feature It is, the operation module is specifically used for:When the comparative result is more than the average session connection number max-thresholds for the average session connection number of any server Or the link average discharge of any server starts the resources balance module when being more than the link average discharge max-thresholds Resources balance operation is carried out by the SDN controllers;Gather when the comparative result is respectively less than the average session connection number for the average session connection number of at least one server When the link average discharge of conjunction threshold value and at least one server is respectively less than the link average discharge polymerization threshold value, start The resource polymerization module carries out resource polymerization operation by the SDN controllers.
- 8. web system resource management system under a kind of cloud computing environment based on SDN according to claim 7, its feature It is, the resources balance module is specifically used for:Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis using minimum the One server;When session connection number need balanced number of resources be less than the maximum balanced number of session connection number of the first server with it is average The difference and link flow of session connection number need balanced number of resources maximum less than the link flow of the first server balanced During the difference of quantity and link average discharge, by flow table mode by unnecessary load balancing to the first server,Wherein, the session connection number need balanced number of resources for the average session connection number max-thresholds with it is described two with The difference of the average session connection number of upper server, the link flow need balanced number of resources maximum for the link average discharge The difference of the link average discharge of threshold value and described two above servers.
- 9. web system resource management system under a kind of cloud computing environment based on SDN according to claim 8, its feature It is, the resource polymerization module is specifically used for:Searched by the SDN controllers from global resource information bank and obtain session and link circuit resource synthesis using minimum two Individual server;Server session connection numerical digit is in the average session connection number polymerization threshold value and the average session connection after polymerization Number max-thresholds between and polymerize after server-link flow be located at the link average discharge polymerize threshold value put down with the link When between equal maximum flow threshold value, both links corresponding to described two servers are polymerize, and discharges in the both links Any bar link and the link corresponding to resource shared by server,Wherein, server session connection number is the average session connection number sum of described two servers after the polymerization, described Server-link flow is the link average discharge sum of described two servers after polymerization.
- 10. web system resource management system under a kind of cloud computing environment based on SDN according to claim any one of 6-9 System, it is characterised in that the multiple server includes:Application server, database server and load-balanced server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710703713.8A CN107493333B (en) | 2017-08-16 | 2017-08-16 | SDN-based web system resource management method and system in cloud computing environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710703713.8A CN107493333B (en) | 2017-08-16 | 2017-08-16 | SDN-based web system resource management method and system in cloud computing environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107493333A true CN107493333A (en) | 2017-12-19 |
CN107493333B CN107493333B (en) | 2020-06-12 |
Family
ID=60646163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710703713.8A Active CN107493333B (en) | 2017-08-16 | 2017-08-16 | SDN-based web system resource management method and system in cloud computing environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107493333B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449197A (en) * | 2018-01-03 | 2018-08-24 | 北京大学 | A kind of cloudy environment network construction method based on software defined network |
CN110166579A (en) * | 2019-07-16 | 2019-08-23 | 华为技术有限公司 | A kind of server communications method, BAS Broadband Access Server and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110014A (en) * | 2011-03-15 | 2011-06-29 | 合肥华云通信技术有限公司 | Method for balancing loads of virtual machine (VM) |
CN103561055A (en) * | 2013-10-11 | 2014-02-05 | 山东省计算中心 | Web application automatic elastic extension method under cloud computing environment based on sessions |
CN103795805A (en) * | 2014-02-27 | 2014-05-14 | 中国科学技术大学苏州研究院 | Distributed server load balancing method based on SDN |
CN104917678A (en) * | 2015-06-02 | 2015-09-16 | 上海斐讯数据通信技术有限公司 | SDN(software defined networking)-based link aggregation method |
CN105282043A (en) * | 2014-06-20 | 2016-01-27 | 中国电信股份有限公司 | Global network load balancing system, device and method |
CN105391797A (en) * | 2015-12-03 | 2016-03-09 | 北京航空航天大学 | SDN-based cloud server load balancing method and device |
US20160381124A1 (en) * | 2015-06-24 | 2016-12-29 | International Business Machines Corporation | Optimizing routing and load balancing in an sdn-enabled cloud during enterprise data center migration |
-
2017
- 2017-08-16 CN CN201710703713.8A patent/CN107493333B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110014A (en) * | 2011-03-15 | 2011-06-29 | 合肥华云通信技术有限公司 | Method for balancing loads of virtual machine (VM) |
CN103561055A (en) * | 2013-10-11 | 2014-02-05 | 山东省计算中心 | Web application automatic elastic extension method under cloud computing environment based on sessions |
CN103795805A (en) * | 2014-02-27 | 2014-05-14 | 中国科学技术大学苏州研究院 | Distributed server load balancing method based on SDN |
CN105282043A (en) * | 2014-06-20 | 2016-01-27 | 中国电信股份有限公司 | Global network load balancing system, device and method |
CN104917678A (en) * | 2015-06-02 | 2015-09-16 | 上海斐讯数据通信技术有限公司 | SDN(software defined networking)-based link aggregation method |
US20160381124A1 (en) * | 2015-06-24 | 2016-12-29 | International Business Machines Corporation | Optimizing routing and load balancing in an sdn-enabled cloud during enterprise data center migration |
CN105391797A (en) * | 2015-12-03 | 2016-03-09 | 北京航空航天大学 | SDN-based cloud server load balancing method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449197A (en) * | 2018-01-03 | 2018-08-24 | 北京大学 | A kind of cloudy environment network construction method based on software defined network |
CN108449197B (en) * | 2018-01-03 | 2020-11-20 | 北京大学 | Multi-cloud environment network construction method based on software defined network |
CN110166579A (en) * | 2019-07-16 | 2019-08-23 | 华为技术有限公司 | A kind of server communications method, BAS Broadband Access Server and system |
CN110166579B (en) * | 2019-07-16 | 2020-01-03 | 华为技术有限公司 | Server communication method, broadband access server and system |
Also Published As
Publication number | Publication date |
---|---|
CN107493333B (en) | 2020-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102232282B (en) | Method and apparatus for realizing load balance of resources in data center | |
CN104902001B (en) | Web request load-balancing method based on operating system virtualization | |
CN105279027B (en) | A kind of virtual machine deployment method and device | |
CN108090225B (en) | Database instance running method, device and system and computer readable storage medium | |
CN103957231B (en) | A kind of virtual machine distributed task dispatching method under cloud computing platform | |
CN108829494A (en) | Container cloud platform intelligence method for optimizing resources based on load estimation | |
CN103605578B (en) | Load equilibration scheduling method based on virtual machine (vm) migration | |
CN102664814B (en) | Grey-prediction-based adaptive dynamic resource allocation method for virtual network | |
CN108196935B (en) | Cloud computing-oriented virtual machine energy-saving migration method | |
CN104270421B (en) | A kind of multi-tenant cloud platform method for scheduling task for supporting Bandwidth guaranteed | |
CN104216782A (en) | Dynamic resource management method for high-performance computing and cloud computing hybrid environment | |
CN103955509A (en) | Quick search method for massive electric power metering data | |
CN107330056A (en) | Wind power plant SCADA system and its operation method based on big data cloud computing platform | |
CN103713956A (en) | Method for intelligent weighing load balance in cloud computing virtualized management environment | |
CN104881322B (en) | A kind of cluster resource dispatching method and device based on vanning model | |
CN106686136A (en) | Cloud resource scheduling method and device | |
CN104133727A (en) | Load distribution method based on real-time resources | |
CN110489200A (en) | A kind of method for scheduling task suitable for embedded container cluster | |
CN105426241A (en) | Cloud computing data center based unified resource scheduling energy-saving method | |
CN107317864A (en) | The data balancing method and device of a kind of storage device | |
CN103997515B (en) | Center system of selection and its application are calculated in a kind of distributed cloud | |
CN107493333A (en) | Web system method for managing resource and system under a kind of cloud computing environment based on SDN | |
CN104506337B (en) | Mapping method of virtual network and device based on regional faults prediction | |
CN109819047A (en) | A kind of mobile edge calculations resource allocation methods based on incentive mechanism | |
CN106909462A (en) | A kind of cloud resource regulating method and device |
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 |