CN110417596A - Expansion method and device for available area - Google Patents

Expansion method and device for available area Download PDF

Info

Publication number
CN110417596A
CN110417596A CN201910691242.2A CN201910691242A CN110417596A CN 110417596 A CN110417596 A CN 110417596A CN 201910691242 A CN201910691242 A CN 201910691242A CN 110417596 A CN110417596 A CN 110417596A
Authority
CN
China
Prior art keywords
computing capability
available area
server
increased
dilatation
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
CN201910691242.2A
Other languages
Chinese (zh)
Other versions
CN110417596B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910691242.2A priority Critical patent/CN110417596B/en
Publication of CN110417596A publication Critical patent/CN110417596A/en
Application granted granted Critical
Publication of CN110417596B publication Critical patent/CN110417596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the present application discloses the expansion method and device for available area.One specific embodiment of the above method includes: to obtain the first computing capability of each server at least one current available area;The second computing capability for intending increased each server at least one above-mentioned available area is obtained, and obtains the third computing capability for intending each server in newly-increased available area;Based on each first computing capability, each second computing capability and each third computing capability, the dilatation strategy for meeting preset disaster tolerance condition is determined;Above-mentioned dilatation strategy is exported, to instruct the dilatation of at least one above-mentioned available area.The embodiment can carry out dilatation to each available area at low cost in the case where meeting disaster tolerance condition.

Description

Expansion method and device for available area
Technical field
The invention relates to field of computer technology, and in particular to expansion method and device for available area.
Background technique
Data center is the particular device network of global collaboration, be used to transmit in Internet infrastructure, accelerate, It shows, calculate, storing data information.Data center can be multi-functional building, can accommodate multiple servers and communication Equipment.These equipment are held together it is usually because in their requirements and physical security having the same to environment Demand, and be arranged so that convenient for safeguarding.Available area may include at least one data center, therefore available area has than single The stronger availability of data center, fault-tolerant ability and scalability, user can choose available area and carry out establishing resource.
Summary of the invention
The embodiment of the present application proposes the expansion method and device for available area.
In a first aspect, the embodiment of the present application provides a kind of expansion method for available area, comprising: obtain currently at least First computing capability of each server in one available area;Increased each server is intended in acquisition at least one above-mentioned available area The second computing capability, and obtain the third computing capability for intending each server in newly-increased available area;It is calculated based on each first Ability, each second computing capability and each third computing capability determine the dilatation strategy for meeting preset disaster tolerance condition;In output Dilatation strategy is stated, to instruct the dilatation of at least one above-mentioned available area.
In some embodiments, above-mentioned that energy is calculated based on each first computing capability, each second computing capability and each third Power determines and meets the dilatation strategy of preset disaster tolerance condition, comprising: according to each first computing capability, each second computing capability, each Third computing capability and respectively coefficient corresponding with each first computing capability, each second computing capability, each third computing capability, Determine objective function, wherein the value of above-mentioned coefficient is 0 or 1;According to above-mentioned disaster tolerance condition, the pact of above-mentioned objective function is determined Beam condition;Determine the value of each coefficient when above-mentioned objective function is minimized under above-mentioned constraint condition;According to identified each The value of coefficient determines above-mentioned dilatation strategy.
In some embodiments, it is above-mentioned according to each first computing capability, each second computing capability, each third computing capability with And coefficient corresponding with each first computing capability, each second computing capability, each third computing capability, determine objective function, It include: the first computing capability that each server in the available area is determined for the available area at least one above-mentioned available area, In Intend the second computing capability of increased each server in the available area and calculates energy with each first computing capability respectively, each second The corresponding coefficient of power, determines the variable quantity of computing capability summation in the available area;According to each server in the available area for intending increasing newly Third computing capability and coefficient corresponding with each third computing capability, determine that the computing capability for intending newly-increased available area is total With;According to the computing capability summation of the variable quantity of each computing capability summation and quasi- newly-increased available area, objective function is determined.
In some embodiments, above-mentioned disaster tolerance condition includes at least one of the following: that remaining can in any available area failure The sum of computing capability with server in area is greater than or equal to the first calculating energy of each server at least one above-mentioned available area The sum of power, the computing capability of increased server is less than computing capability maximum corresponding with the available area in each available area The sum of computing capability of each server is less than preset computing capability threshold value in value, quasi- newly-increased available area.
In some embodiments, the above-mentioned dilatation strategy of above-mentioned output, comprising: for every at least one above-mentioned available area A available area determines whether the sum of computing capability of each server changes in the available area according to above-mentioned dilatation strategy;It rings It should change in determining the sum of the computing capability of each server in the available area, export above-mentioned dilatation strategy.
Second aspect, the embodiment of the present application provide a kind of flash chamber for available area, comprising: first obtains list Member is configured to obtain the first computing capability of each server at least one current available area;Second acquisition unit is configured At obtaining the second computing capability for intending at least one above-mentioned available area increased each server, and obtain it is quasi- it is newly-increased can With the third computing capability of server each in area;Policy determining unit is configured to based on each first computing capability, each second Calculation ability and each third computing capability determine the dilatation strategy for meeting preset disaster tolerance condition;Tactful output unit, is configured At above-mentioned dilatation strategy is exported, to instruct the dilatation of at least one above-mentioned available area.
In some embodiments, above-mentioned policy determining unit is further configured to: according to each first computing capability, each Two computing capabilitys, each third computing capability and respectively with each first computing capability, each second computing capability, each third calculate energy The corresponding coefficient of power, determines objective function, wherein the value of above-mentioned coefficient is 0 or 1;According to above-mentioned disaster tolerance condition, determine above-mentioned Bound for objective function;Determine the value of each coefficient when above-mentioned objective function is minimized under above-mentioned constraint condition;Root According to the value of identified each coefficient, above-mentioned dilatation strategy is determined.
In some embodiments, above-mentioned policy determining unit is further configured to: at least one above-mentioned available area In available area, determine the first computing capability of each server in the available area, intend increased each server in the available area The second computing capability and coefficient corresponding with each first computing capability, each second computing capability respectively, determine the available area The variable quantity of middle computing capability summation;According to intend in newly-increased available area the third computing capability of each server and with each third The corresponding coefficient of computing capability determines the computing capability summation for intending newly-increased available area;According to the variation of each computing capability summation Amount and the computing capability summation for intending newly-increased available area, determine objective function.
In some embodiments, above-mentioned disaster tolerance condition includes at least one of the following: that remaining can in any available area failure The sum of computing capability with server in area is greater than or equal to the first calculating energy of each server at least one above-mentioned available area The sum of power, the computing capability of increased server is less than computing capability maximum corresponding with the available area in each available area The sum of computing capability of each server is less than preset computing capability threshold value in value, quasi- newly-increased available area.
In some embodiments, above-mentioned tactful output unit is further configured to: at least one above-mentioned available area In each available area determine whether the sum of computing capability of each server occurs in the available area according to above-mentioned dilatation strategy Variation;In response to determining that the sum of the computing capability of each server in the available area changes, above-mentioned dilatation strategy is exported.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress It sets, is stored thereon with one or more programs, when said one or multiple programs are executed by said one or multiple processors, make It obtains said one or multiple processors realizes the method as described in first aspect any embodiment.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method as described in first aspect any embodiment is realized when program is executed by processor.
The expansion method and device provided by the above embodiment for available area of the application, first it is available it is current extremely First computing capability of each server in a few available area.And it obtains and intends increased each clothes at least one above-mentioned available area Second computing capability of business device, and obtain the third computing capability for intending each server in newly-increased available area.Then, based on each First computing capability, each second computing capability and each third computing capability determine the dilatation plan for meeting preset disaster tolerance condition Slightly.Finally, output dilatation strategy, to instruct the dilatation of at least one available area.The method of the present embodiment can meet disaster tolerance In the case where condition, dilatation is carried out to each available area at low cost.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the expansion method for available area of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the expansion method for available area of the application;
Fig. 4 is the flow chart according to another embodiment of the expansion method for available area of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the flash chamber for available area of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the expansion method for available area or the flash chamber for available area that can apply the application The exemplary system architecture 100 of embodiment.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..For example, user can send first of each server in current each available area by terminal device 101,102,103 The information such as computing capability.Various telecommunication customer end applications, such as web page browsing can be installed on terminal device 101,102,103 Device application, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard When part, the various electronic equipments of information input, including but not limited to smart phone, plate are can be with display screen and supported Computer, E-book reader, pocket computer on knee and desktop computer etc..When terminal device 101,102,103 is soft When part, it may be mounted in above-mentioned cited electronic equipment.Its may be implemented into multiple softwares or software module (such as Distributed Services are provided), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as provide support to the dilatation strategy of available area Background server.Background server can the data such as computing capability to each server received carry out the processing such as analyzing, and Processing result (such as dilatation strategy) is fed back into terminal device 101,102,103.
It should be noted that server 105 can be hardware, it is also possible to software.When server is hardware, Ke Yishi The distributed server cluster of ready-made multiple server compositions, also may be implemented into individual server.When server 105 is software When, multiple softwares or software module (such as providing Distributed Services) may be implemented into, single software also may be implemented into Or software module.It is not specifically limited herein.
It should be noted that the expansion method provided by the embodiment of the present application for available area can be by terminal device 101, it 102,103 executes, can also be executed by server 105.Correspondingly, it can be set for the flash chamber of available area in end In end equipment 101,102,103, also it can be set in server 105.When the present embodiment method by terminal device 101, 102, when 103 execution, above system framework 100 can not include network 104 and server 105.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the expansion method for available area according to the application is shown 200.The expansion method for available area of the present embodiment, comprising the following steps:
Step 201, the first computing capability of each server at least one current available area is obtained.
It in the present embodiment, can for the executing subject of the expansion method of available area (such as server 105 shown in FIG. 1) It is calculated with obtaining first of each server at least one current available area by wired connection mode or radio connection Ability.Specifically, executing subject locally can store the first computing capability of each server in each available area.Alternatively, when holding When row main body is server, can from terminal device used by a user (such as terminal device shown in FIG. 1 101,102, 103) place receives the first computing capability.When executing subject is terminal device, it can receive user and pass through company, terminal device institute The first computing capability that the input equipment connect is inputted.
Herein, the first computing capability is used to indicate the performance indicator of server, may include the arithmetic speed, interior of server The speed of the capacity of the capacity, external memory deposited, I/O.Above-mentioned first computing capability can be indicated by a numerical value.Numerical value is bigger, Illustrate that the performance of server is better.Numerical value is smaller, illustrates that the performance of server is poorer.Above-mentioned numerical value can be commented by existing performance Software is surveyed to obtain.
It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connection, WiFi connection, bluetooth Connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection and other currently known or exploitations in the future Radio connection.
Step 202, the second computing capability for intending increased each server at least one available area is obtained, and is obtained Intend the third computing capability of each server in newly-increased available area.
In the present embodiment, when carrying out dilatation to current each available area, new clothes can be increased in current each available area Business device, can also increase new available area.Also, technical staff can preset intends increased clothes in each available area The quantity and computing capability of business device, can also pre-set the quantity and computing capability for intending server in increased available area. It is understood that intending the quantity of increased server herein and computing capability can be what technical staff was transformed according to available area Budget determines.When executing subject is server, the second computing capability of above-mentioned each server and each third calculate energy Power can be user and be sent to executing subject by terminal device.When executing subject is terminal device, the of each server Two computing capabilitys and each third computing capability can be what user was inputted by input equipment.
Step 203, it is based on each first computing capability, each second computing capability and each third computing capability, determines and meets The dilatation strategy of preset disaster tolerance condition.
Executing subject after acquiring each first computing capability, each second computing capability and each third computing capability, It can determine the dilatation strategy for meeting preset disaster tolerance condition.For example, preset disaster tolerance condition are as follows: when single available area failure, The computing capability of other available areas is still able to satisfy demand.Herein, meet demand can refer to the calculating energy for calculating other available areas Power summation is greater than preset threshold.Alternatively, preset disaster tolerance condition are as follows: after transformation, the computing capability summation of each available area is greater than Preset threshold.In this way, executing subject can with it is determined that practical server increased in each available area computing capability, that is, exist Which server increased in each available area, reduces which server, the position that increased server is placed.It is understood that Executing subject can determine at least one dilatation strategy.
Step 204, dilatation strategy is exported, to instruct the dilatation of at least one available area.
Executing subject can export above-mentioned dilatation strategy after determining dilatation strategy.The technical staff of available area is connecing Dilatation strategy is received, extending capacity reformation can be carried out to each available area.Specifically, executing subject can increase pair in each available area The server answered, to realize the dilatation to each available area.
In some optional implementations of the present embodiment, above-mentioned steps 204 can specifically include unshowned in Fig. 2 Following steps: for each available area at least one available area, according to dilatation strategy, each server in the available area is determined The sum of computing capability whether change;In response to determining that the sum of the computing capability of each server in the available area becomes Change, exports dilatation strategy.
In this implementation, for each available area, executing subject can be first determined whether according to dilatation strategy to available area After transformation, the computing capability summation of each server is either with or without changing.If there is a change, then illustrate to need to the available area Carry out extending capacity reformation.If illustrating not needing to carry out extending capacity reformation to the available area there is no variation.
It with continued reference to Fig. 3, Fig. 3 is shown according to one of the application scenarios of the expansion method for available area of the present embodiment It is intended to.In the application scenarios of Fig. 3, user calculates energy for the first of server each in active area by terminal device 301 Power is sent to server 302.User also passes through terminal device 301 and has input intends the of increased each server in each available area Two computing capabilitys, and intend the third computing capability of each server in newly-increased available area.Server 302 is receiving each first After computing capability, each second computing capability and each third computing capability, the dilatation for meeting preset disaster tolerance condition can be determined Strategy.Finally, exporting dilatation strategy to terminal device 301, user can be according to dilatation strategy, to expand each available area Hold.
The expansion method provided by the above embodiment for available area of the application, first it is available it is current at least one First computing capability of each server in available area.And it obtains and intends increased each server at least one above-mentioned available area Second computing capability, and obtain the third computing capability for intending each server in newly-increased available area.Then, based on each first Calculation ability, each second computing capability and each third computing capability determine the dilatation strategy for meeting preset disaster tolerance condition.Most Afterwards, dilatation strategy is exported, to instruct the dilatation of at least one available area.The method of the present embodiment can meet disaster tolerance condition In the case where, dilatation is carried out to each available area at low cost.
With continued reference to Fig. 4, it illustrates dilatation strategy is determined in the expansion method for available area according to the application The process 400 of one embodiment.As shown in figure 4, in the present embodiment dilatation can be carried out to each available area by following steps:
Step 401, according to each first computing capability, each second computing capability, each third computing capability and respectively and respectively First computing capability, each second computing capability, the corresponding coefficient of each third computing capability, determine objective function.
In the present embodiment, then executing subject can will by each first computing capability respectively with corresponding multiplication Each product addition.The result that objective function can be used to indicate to be added.Herein, the meaning of objective function is, constrains meeting When condition, the computing capability that increased server is actually needed is determined.
For example, the first computing capability of server is illustrated respectively in table 1 in current each available area, to available When area carries out dilatation, the second computing capability for intending newly-increased server in each available area is shown in Table 2 below.In newly-increased available area The third computing capability of each server is respectively T1, T2..., TH
First computing capability of server in the current each available area of table 1
Intend the second computing capability of newly-increased server in each available area of table 2
Wherein, with A in table 1ijTo indicate the first computing capability of each server in each available area, wherein the value of i is [1, N], the value of j are [1, Ki], N is the quantity of existing available area, KiIndicate the quantity of server in i-th of available area.
Each coefficient corresponding with each first computing capability can be expressed as o11 Then the computing capability summation of each server can indicate in existing available area are as follows:
Each coefficient corresponding with each second computing capability can be expressed as p11 The computing capability summation for then intending increased each server in existing available area can indicate are as follows:
Each coefficient corresponding with each third computing capability can be expressed as q1、q2…qH.Then intend respectively taking in newly-increased available area The computing capability summation of business device can indicate are as follows:
f3=q1T1+q2T2+…+qHTH
Objective function can be with are as follows:
F=-f1+f2+f3
For another example, objective function can be indicated, the available area of non-failure increased server calculating energy The difference of the computing capability summation of server in the available area of power summation and failure.In this way, when objective function is consistently greater than 0, i.e., Can satisfy in any available area failure, in the available area of non-failure increased server computing capability summation remain to it is full The business demand of the available area of sufficient failure.
Computing capability summation of the available area of failure before extending capacity reformation is indicated with X, in terms of the available area that x indicates non-failure The variable quantity of calculation ability.Assuming that the 1st available area failure, the 2nd~N number of non-failure of available area, then objective function can be indicated are as follows:
F=-X1+x2+x3+…+xN
In some optional implementations, if the computing capability summation of the redundant server in existing available area is Z, intend The computing capability summation of server is t in newly-increased available area.Then above-mentioned objective function also may indicate that are as follows:
F=-X1+x2+x3+…+xN+t+Z。
In some optional implementations of the present embodiment, executing subject can pass through following step unshowned in Fig. 4 It is rapid to determine objective function: to determine at least one available area whether to include redundant computation ability;In response to determining at least one It include redundant computation ability in available area, according to each first computing capability, each second computing capability, each third computing capability, superfluous Remaining computing capability and coefficient corresponding with each first computing capability, each second computing capability, each third computing capability, really Set the goal function.
In this implementation, whether it includes redundant computation ability that executing subject can be determined first in current each available area. Specifically, whether executing subject can include redundant server in current each available area by determining.Herein, redundant server is Refer to the server that do not apply.It, can be according to the first of redundant server if including redundant server in current each available area Computing capability, to determine the redundant computation ability of each available area.
Then, for each available area, executing subject can be calculated according to the first of server each in the available area first Intend in ability, the available area increased each server the second computing capability and respectively with each first computing capability, each second The corresponding coefficient of computing capability, to calculate the variable quantity of computing capability in the available area.Come with the data instance in Tables 1 and 2 It says, for the 1st available area, the variable quantity of computing capability are as follows:
Likewise, the variable quantity of the computing capability of the 2nd available area are as follows:
Based on same mode, executing subject can also calculate the variable quantity of the computing capability of n-th available area.
For intending newly-increased available area, executing subject can according to third computing capability each in the available area and with each third The corresponding coefficient of computing capability, to determine the computing capability summation of quasi- newly-increased available area.With T1, T2..., THTo indicate quasi- newly-increased The computing capability of each server in available area, with q1, q2..., qHTo indicate and T1, T2..., THCorresponding coefficient is come with t Indicate the computing capability summation of quasi- newly-increased available area.Then there is following formula:
T=q1T1+q2T2+…+qHTH
Executing subject is total in the computing capability of variable quantity and newly-increased available area that each available area computing capability is calculated With it is rear, can determine objective function are as follows:
Step 402, according to disaster tolerance condition, bound for objective function is determined.
In the present embodiment, executing subject can be analyzed disaster tolerance condition, determine bound for objective function.True When determining constraint condition, executing subject locally can store the corresponding relationship of disaster tolerance condition and constraint condition, and executing subject can be with According to above-mentioned corresponding relationship, to determine constraint condition corresponding with disaster tolerance condition.
For example, the computing capability summation of other available areas can satisfy failure when disaster tolerance condition is single available area failure Available area computing capability summation.Then bound for objective function are as follows:
-X1+x2+x3+…+xn+t+Z≥0;
x1-X2+x3+…+xn+t+Z≥0;
……
x1+x2+x3+…-Xn+t+Z≥0;
x1+x2+x3+…+xn+t+Z≥0。
Wherein, t is the computing capability summation for intending newly-increased available area, and Z is the redundant computation ability of current each available area.
For another example disaster tolerance condition is to guarantee that redundant computation ability is greater than or equal to preset threshold x in each available area0.Then Bound for objective function is x1≥x0、x2≥x0…xN≥x0
Step 403, the value of each coefficient when objective function is minimized under constraint condition is determined.
In the present embodiment, coefficient corresponding with each first computing capability, each second computing capability, each third computing capability Value can take 0 or 1.Since each first computing capability, each second computing capability and each third computing capability be not known, The value of only each coefficient is unknown, therefore is minimized under constraint condition by calculating target function, can be determined each The specific value of coefficient.
Step 404, according to the value of identified each coefficient, dilatation strategy is determined.
In the present embodiment, for coefficient corresponding with each first computing capability, i.e. o11 When its value is 0, indicate to need to retain corresponding first in active area Computing capability when value is 1, indicates to need to remove corresponding first computing capability in active area.Due to each first Computing capability be it is corresponding with server, may thereby determine that in available area have server processing (such as retain or go Except).For coefficient corresponding with each second computing capability, i.e. p11 When its value is 0, expression does not need to increase the corresponding server of the second computing capability in active area.It takes When value is 1, indicate to need to increase the corresponding server of the second computing capability in active area.For being calculated with each third For the corresponding coefficient of ability, i.e. q1, q2..., qH, when value is 0, expression is not needed to increase in quasi- newly-increased available area and is somebody's turn to do Third computing capability corresponding server when value is 1, indicates to need to increase the third in quasi- newly-increased available area to calculate energy The corresponding server of power.
Executing subject can be by the value of each coefficient, as dilatation strategy.It can also be by the value of each coefficient and its is right The meaning answered, as dilatation strategy.
In some optional implementations of the present embodiment, above-mentioned disaster tolerance condition may include at least one of following: In When any available area failure, the sum of computing capability of server is greater than or equal to each at least one available area in remaining available area The sum of first computing capability of server;The computing capability of increased server is less than and the available area pair in each available area The computing capability maximum value answered;Intend the sum of computing capability of each server in newly-increased available area and is less than preset computing capability threshold Value.
In this implementation, computing capability maximum value can be according to the computing capability for each server that can be purchased and count It calculates.Each server that can be purchased is determined according to purchase cost.
The expansion method provided by the above embodiment for available area of the application, can in the case where controlling cost, Disaster tolerance transformation is carried out to each available area, to improve the redundancy ability of each available area.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind to be used for available area Flash chamber one embodiment, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be with Applied in various electronic equipments.
As shown in figure 5, the flash chamber 500 for available area of the present embodiment includes: first acquisition unit 501, second Acquiring unit 502, policy determining unit 503 and tactful output unit 504.
First acquisition unit 501, be configured to obtain each server at least one current available area first calculate energy Power.
Second acquisition unit 502 is configured to obtain and intends the second of increased each server at least one available area Computing capability, and obtain the third computing capability for intending each server in newly-increased available area.
Policy determining unit 503 is configured to based on each first computing capability, each second computing capability and each third Calculation ability determines the dilatation strategy for meeting preset disaster tolerance condition.
Tactful output unit 504, is configured to export dilatation strategy, to instruct the dilatation of at least one available area.
In some optional implementations of the present embodiment, policy determining unit 503 can be further configured to: root According to each first computing capability, each second computing capability, each third computing capability and respectively with each first computing capability, each second Computing capability, the corresponding coefficient of each third computing capability, determine objective function.Wherein, the value of above-mentioned coefficient is 0 or 1.According to Disaster tolerance condition, determines bound for objective function.Determine taking for each coefficient when objective function is minimized under constraint condition Value.According to the value of identified each coefficient, dilatation strategy is determined.
In some optional implementations of the present embodiment, policy determining unit 503 can be further configured to: really It whether include redundant computation ability at least one fixed available area;It include redundant computation at least one available area in response to determining Ability, according to each first computing capability, each second computing capability, each third computing capability, redundant computation ability and with each One computing capability, each second computing capability, the corresponding coefficient of each third computing capability, determine objective function.
In some optional implementations of the present embodiment, disaster tolerance condition is included at least one of the following: any available When area's failure, the sum of computing capability of server is greater than or equal to each server at least one available area in remaining available area The sum of first computing capability, the computing capability of increased server is less than calculating corresponding with the available area in each available area The sum of computing capability of each server is less than preset computing capability threshold value in ability maximum value, quasi- newly-increased available area.
In some optional implementations of the present embodiment, tactful output unit 504 can be further configured to: right Each available area at least one available area determines the calculating of each server in the available area according to the dilatation strategy Whether the sum of ability changes;In response to determining that the sum of the computing capability of each server in the available area changes, export Dilatation strategy.
It should be appreciated that for the unit 501 recorded in the flash chamber 500 of available area to unit 504 respectively with reference Fig. 2 Described in each step in method it is corresponding.As a result, above with respect to for available area expansion method description operation and Feature is equally applicable to device 500 and unit wherein included, and details are not described herein.
Below with reference to Fig. 6, it illustrates the electronic equipment that is suitable for being used to realize embodiment of the disclosure, (example is as shown in figure 1 Server or terminal device) 600 structural schematic diagram.Terminal device in embodiment of the disclosure can include but is not limited to all As mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP are (portable Formula multimedia player), the mobile terminal and such as number TV, desk-top meter of car-mounted terminal (such as vehicle mounted guidance terminal) etc. The fixed terminal of calculation machine etc..Terminal device/server shown in Fig. 6 is only an example, should not be to the implementation of the disclosure The function and use scope of example bring any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM603 are connected with each other by bus 604. Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.Communication device 609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.Each box shown in Fig. 6 can represent a device, can also root According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.It should be noted that computer-readable medium described in embodiment of the disclosure can be with It is computer-readable signal media or computer readable storage medium either the two any combination.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have The electrical connection of one or more conducting wires, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer Readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded execution system, device Either device use or in connection.And in embodiment of the disclosure, computer-readable signal media may include In a base band or as the data-signal that carrier wave a part is propagated, wherein carrying computer-readable program code.It is this The data-signal of propagation can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate Combination.Computer-readable signal media can also be any computer-readable medium other than computer readable storage medium, should Computer-readable signal media can send, propagate or transmit for by instruction execution system, device or device use or Person's program in connection.The program code for including on computer-readable medium can transmit with any suitable medium, Including but not limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.Above-mentioned computer-readable medium carries one or more program, when said one or more When a program is executed by the electronic equipment, so that the electronic equipment: obtaining the of each server at least one current available area One computing capability;The second computing capability for intending increased each server at least one available area is obtained, and is obtained quasi- new The third computing capability of each server in the available area of increasing;Based on each first computing capability, each second computing capability and each Three computing capabilitys determine the dilatation strategy for meeting preset disaster tolerance condition;Dilatation strategy is exported, to instruct at least one available area Dilatation.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof The computer program code of work, described program design language include object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor Including first acquisition unit, second acquisition unit, policy determining unit and tactful output unit.Wherein, the title of these units The restriction to the unit itself is not constituted under certain conditions, for example, first acquisition unit is also described as, " acquisition is worked as The unit of first computing capability of each server at least one preceding available area ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member it should be appreciated that embodiment of the disclosure involved in invention scope, however it is not limited to the specific combination of above-mentioned technical characteristic and At technical solution, while should also cover do not depart from foregoing invention design in the case where, by above-mentioned technical characteristic or its be equal Feature carries out any combination and other technical solutions for being formed.Such as disclosed in features described above and embodiment of the disclosure (but It is not limited to) technical characteristic with similar functions is replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of expansion method for available area, comprising:
Obtain the first computing capability of each server at least one current available area;
It obtains and intends the second computing capability of increased each server at least one described available area, and obtain quasi- newly-increased The third computing capability of each server in available area;
Based on each first computing capability, each second computing capability and each third computing capability, determination meets preset disaster tolerance item The dilatation strategy of part;
The dilatation strategy is exported, to instruct the dilatation of at least one available area.
2. according to the method described in claim 1, wherein, it is described based on each first computing capability, each second computing capability and Each third computing capability determines the dilatation strategy for meeting preset disaster tolerance condition, comprising:
According to each first computing capability, each second computing capability, each third computing capability and respectively with each first computing capability, Each second computing capability, the corresponding coefficient of each third computing capability, determine objective function, wherein the value of the coefficient be 0 or 1;
According to the disaster tolerance condition, the bound for objective function is determined;
Determine the value of each coefficient when the objective function is minimized under the constraint condition;
According to the value of identified each coefficient, the dilatation strategy is determined.
3. described according to each first computing capability, each second computing capability, each according to the method described in claim 2, wherein Three computing capabilitys and coefficient corresponding with each first computing capability, each second computing capability, each third computing capability, really Set the goal function, comprising:
For the available area at least one described available area, the first computing capability, the In of each server in the available area are determined Intend the second computing capability of increased each server in the available area and calculates energy with each first computing capability respectively, each second The corresponding coefficient of power, determines the variable quantity of computing capability summation in the available area;
According to intending the third computing capability of each server and coefficient corresponding with each third computing capability in newly-increased available area, Determine the computing capability summation for intending newly-increased available area;
According to the computing capability summation of the variable quantity of each computing capability summation and quasi- newly-increased available area, objective function is determined.
4. method according to claim 1-3, wherein the disaster tolerance condition includes at least one of the following: in office When one available area failure, the sum of computing capability of server is greater than or equal at least one described available area in remaining available area The sum of first computing capability of each server, the computing capability of increased server is less than and the available area in each available area The sum of computing capability of each server is less than preset computing capability in corresponding computing capability maximum value, quasi- newly-increased available area Threshold value.
5. according to the method described in claim 1, wherein, the output dilatation strategy, comprising:
Each available area at least one described available area is determined and respectively taken in the available area according to the dilatation strategy Whether the sum of the computing capability of business device changes;
In response to determining that the sum of the computing capability of each server in the available area changes, the dilatation strategy is exported.
6. a kind of flash chamber for available area, comprising:
First acquisition unit is configured to obtain the first computing capability of each server at least one current available area;
Second acquisition unit is configured to obtain the second calculating for intending increased each server at least one described available area Ability, and obtain the third computing capability for intending each server in newly-increased available area;
Policy determining unit is configured to based on each first computing capability, each second computing capability and each third computing capability, Determine the dilatation strategy for meeting preset disaster tolerance condition;
Tactful output unit is configured to export the dilatation strategy, to instruct the dilatation of at least one available area.
7. device according to claim 6, wherein the policy determining unit is further configured to:
According to each first computing capability, each second computing capability, each third computing capability and respectively with each first computing capability, Each second computing capability, the corresponding coefficient of each third computing capability, determine objective function, wherein the value of the coefficient be 0 or 1;
According to the disaster tolerance condition, the bound for objective function is determined;
Determine the value of each coefficient when the objective function is minimized under the constraint condition;
According to the value of identified each coefficient, the dilatation strategy is determined.
8. device according to claim 7, wherein the policy determining unit is further configured to:
For the available area at least one described available area, the first computing capability, the In of each server in the available area are determined Intend the second computing capability of increased each server in the available area and calculates energy with each first computing capability respectively, each second The corresponding coefficient of power, determines the variable quantity of computing capability summation in the available area;
According to intending the third computing capability of each server and coefficient corresponding with each third computing capability in newly-increased available area, Determine the computing capability summation for intending newly-increased available area;
According to the computing capability summation of the variable quantity of each computing capability summation and quasi- newly-increased available area, objective function is determined.
9. according to the described in any item devices of claim 6-8, wherein the disaster tolerance condition includes at least one of the following: in office When one available area failure, the sum of computing capability of server is greater than or equal at least one described available area in remaining available area The sum of first computing capability of each server, the computing capability of increased server is less than and the available area in each available area The sum of computing capability of each server is less than preset computing capability in corresponding computing capability maximum value, quasi- newly-increased available area Threshold value.
10. device according to claim 6, wherein the strategy output unit is further configured to:
Each available area at least one described available area is determined and respectively taken in the available area according to the dilatation strategy Whether the sum of the computing capability of business device changes;
In response to determining that the sum of the computing capability of each server in the available area changes, the dilatation strategy is exported.
11. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Such as method as claimed in any one of claims 1 to 5.
CN201910691242.2A 2019-07-29 2019-07-29 Capacity expansion method and device for available area Active CN110417596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910691242.2A CN110417596B (en) 2019-07-29 2019-07-29 Capacity expansion method and device for available area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910691242.2A CN110417596B (en) 2019-07-29 2019-07-29 Capacity expansion method and device for available area

Publications (2)

Publication Number Publication Date
CN110417596A true CN110417596A (en) 2019-11-05
CN110417596B CN110417596B (en) 2023-07-28

Family

ID=68364001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910691242.2A Active CN110417596B (en) 2019-07-29 2019-07-29 Capacity expansion method and device for available area

Country Status (1)

Country Link
CN (1) CN110417596B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140244718A1 (en) * 2013-02-27 2014-08-28 Oracle International Corporation Networking support for zone clusters based on virtualization of servers
CN105471986A (en) * 2015-11-23 2016-04-06 华为技术有限公司 Data center construction scale assessment method and apparatus
CN106254166A (en) * 2016-09-30 2016-12-21 中国银联股份有限公司 A kind of cloud platform resource allocation method based on Disaster Preparation Center and system
CN107733676A (en) * 2016-08-12 2018-02-23 中国移动通信集团浙江有限公司 A kind of method and system of flexible scheduling resource
CN109413147A (en) * 2018-09-13 2019-03-01 深圳壹账通智能科技有限公司 Management method, device, equipment and the computer readable storage medium of service node

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140244718A1 (en) * 2013-02-27 2014-08-28 Oracle International Corporation Networking support for zone clusters based on virtualization of servers
CN105471986A (en) * 2015-11-23 2016-04-06 华为技术有限公司 Data center construction scale assessment method and apparatus
CN107733676A (en) * 2016-08-12 2018-02-23 中国移动通信集团浙江有限公司 A kind of method and system of flexible scheduling resource
CN106254166A (en) * 2016-09-30 2016-12-21 中国银联股份有限公司 A kind of cloud platform resource allocation method based on Disaster Preparation Center and system
CN109413147A (en) * 2018-09-13 2019-03-01 深圳壹账通智能科技有限公司 Management method, device, equipment and the computer readable storage medium of service node

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹春江;鲍开锋;: "基于server SAN超融合架构的电子政务异地灾备中心研究" *

Also Published As

Publication number Publication date
CN110417596B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US9996239B2 (en) Enumeration and modification of cognitive interface elements in an ambient computing environment
CN108027905A (en) Reservation management terminal, reservation management method and reservation management program
CN109447635A (en) Information storage means and device for block chain
CN110362750A (en) Target user determines method, apparatus, electronic equipment and computer-readable medium
CN111861225A (en) Task allocation method and device, electronic equipment and storage medium
CN109885593A (en) Method and apparatus for handling information
EP4044044A1 (en) Method and apparatus for processing information
CN110516463A (en) Method and apparatus for generating information
CN111966950A (en) Log sending method and device, electronic equipment and computer readable medium
CN110135903A (en) Advertisement position ranks method, system, medium and electronic equipment
CN110059301A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110417596A (en) Expansion method and device for available area
CN111782933A (en) Method and device for recommending book list
CN109949806A (en) Information interacting method and device
CN110456957A (en) Show exchange method, device, equipment, storage medium
CN109840168A (en) Software rejuvenation method, apparatus, terminal and medium
US20190166521A1 (en) Managing bandwidth in mobile telecommunications networks
CN109710154A (en) Method and apparatus for showing chat message
CN110188119A (en) Method and apparatus for obtaining data
WO2021159871A1 (en) Method and apparatus for outputting information
CN109067649A (en) node processing method and device, storage medium and electronic equipment
CN111327472B (en) Method and device for acquiring target network
CN110187987B (en) Method and apparatus for processing requests
CN110309848A (en) The method that off-line data and stream data real time fusion calculate
CN112446768A (en) Item information recommendation method and device, electronic equipment and computer readable medium

Legal Events

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