CN104935610B - A kind of control method and control device of server cluster - Google Patents

A kind of control method and control device of server cluster Download PDF

Info

Publication number
CN104935610B
CN104935610B CN201410098122.9A CN201410098122A CN104935610B CN 104935610 B CN104935610 B CN 104935610B CN 201410098122 A CN201410098122 A CN 201410098122A CN 104935610 B CN104935610 B CN 104935610B
Authority
CN
China
Prior art keywords
server
control device
time
found
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410098122.9A
Other languages
Chinese (zh)
Other versions
CN104935610A (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 Minglue Zhaohui Technology Co Ltd
Original Assignee
BEIJING XUEZHITU NETWORK 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 XUEZHITU NETWORK TECHNOLOGY Co Ltd filed Critical BEIJING XUEZHITU NETWORK TECHNOLOGY Co Ltd
Priority to CN201410098122.9A priority Critical patent/CN104935610B/en
Publication of CN104935610A publication Critical patent/CN104935610A/en
Application granted granted Critical
Publication of CN104935610B publication Critical patent/CN104935610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Power Sources (AREA)

Abstract

The invention proposes a kind of server control method and system and control device, a server in server cluster is control device, this method comprises: other servers in control device setting server cluster are device for cooling, and is closed.The present invention can reduce the power consumption of server, while extend the service life of server.

Description

A kind of control method and control device of server cluster
Technical field
The present invention relates to internet area more particularly to the control methods and control device of a kind of server cluster.
Background technique
With the arriving of big data era, the data volume that enterprise collects increasingly expands, and needs constantly to expand server cluster Scale is to meet the processing and storage demand of data.Under normal conditions, a server cluster consists of several servers, often Platform server process and a part of data are stored, and keep being switched on or standby mode, is responded when needing using data, And return to the partial data that this server is stored.
It is smaller using the demand of data in certain network applications, it may only need to use sub-fraction data once in a while. For example, enterprise may need to back up the operation log in all Enterprise Informatization systems by date, only need to extract when audit The partial data of specific date, and this partial data is only stored on a server in service cluster.Under similar scene, If whole servers in cluster is made to keep open state, and actually only used wherein sub-fraction server, from power consumption, Server service life angularly for, not used server brings a large amount of wasting of resources.
Summary of the invention
It to solve the above-mentioned problems, can the invention proposes a kind of control method of server cluster and control device The power consumption of server is reduced, while extending the service life of server.
In order to achieve the above object, the invention proposes a kind of control method of server cluster, in server cluster One server is control device, this method comprises:
It is device for cooling that other servers in server cluster, which are arranged, in control device, and closes device for cooling.
Preferably, the control device is preset between the Data Identification of the data stored in server and server First corresponding relationship presets the second corresponding relationship between server and type of server;When the control device receives When to data access request from the user, this method further include:
The Data Identification that the control device is searched in first corresponding relationship in the data area request is corresponding Server, the corresponding type of server of server found is searched in second corresponding relationship;
The control device generates access record, and the access record includes the server found, the service found Device type and access time.
Preferably, the control device is that other described servers distribute the first timer respectively in advance;When the control When the type of server that device is found is device for cooling, this method further include:
The type of server found is changed to thermal by the control device;
The control device opens the server found, and the service found according to the setting of the first preset time First timer of device;
When first timer is first preset time, the control device close described in the service that finds Device.
Preferably, when the type of server that the control device is found is thermal, this method further include:
First timer of the server that the control device is found according to first preset time resetting.
Preferably, this method further include:
The control device searches the access record of the device for cooling, using clustering methodology in the second preset time Next time is calculated at the time of may access, according to the second timer is arranged at the time of being calculated.
Preferably, when second timer be calculated at the time of when, this method further include:
The first timer of the corresponding server is arranged according to the first preset time for the control device;
When first timer is first preset time, the control device closes the corresponding service Device.
Preferably, described calculated at the time of may accessing next time using clustering methodology includes:
The control device obtains the access time of the access record found;
The control device is arranged the access of the access time the latest and is recorded as current accessed record;
Calculate access time and the time difference of upper one access record of the current accessed record;
When the time difference being calculated is less than the first preset time, a control device setting upper access The step of being recorded as current accessed record, continuing to execute calculating;
When the time difference being calculated is greater than or equal to first preset time, the control device is by institute It states the time difference being calculated and is denoted as the first difference;
A step of control device setting upper access is recorded as current accessed record, continues to execute calculating;
When the time difference being calculated is greater than or equal to first preset time, the control device is by institute It states the time difference being calculated and is denoted as the second difference;
The control device calculates the ratio of first difference and second difference;
When the ratio being calculated is greater than preset threshold or less than the inverse of the preset threshold, the control device will It is set as infinitely great the next time at the time of may accessing;
Otherwise, it is set as at the time of the control device may access the next time from when the access of access record the latest Between rise, at the time of after the average value of first difference and second difference.
Preferably, the preset threshold is 1.2.
Preferably, second preset time is one hour.
Preferably, first preset time is six hours.
The invention also provides a kind of control devices, include at least:
Setup module, other servers for being arranged in server cluster are device for cooling;
Control module, for closing device for cooling.
Preferably, further includes:
Memory module, between the Data Identification of the data for saving pre-set server, storing in server First corresponding relationship, the second corresponding relationship between pre-set server and type of server;
Searching module searches the data for receiving data access request from the user in the first corresponding relationship The corresponding server of Data Identification in range of requests, it is corresponding to search the server found in second corresponding relationship Type of server;
Generation module, for generating access record, the access record includes the server found, the service found Device type and access time.
Preferably, further includes:
Distribution module, for distributing the first timer respectively in advance for other described servers;
The control module, is also used to:
It detects that the type of server found is device for cooling, the type of server found is changed to thermal; Open the server found, and the first timer of the server found according to the setting of the first preset time;Detection It is first preset time, the server found described in closing to first timer.
Preferably, the control module, is also used to:
It detects that the type of server that the control device is found is thermal, is reset according to first preset time First timer of the server found.
Preferably, the searching module, is also used to:
In the second preset time, the access record of the device for cooling is searched;
The control module, is also used to:
It is calculated using clustering methodology at the time of may access next time, according to the second timing is arranged at the time of being calculated Device.
Preferably, the control module, is also used to:
Detect that second timer is that the corresponding clothes are arranged according to the first preset time at the time of being calculated First timer of business device;Detect that first timer is first preset time, described in the control device closing Corresponding server.
The present invention can reduce the power consumption of server, while extend the service life of server.
Detailed description of the invention
The attached drawing in the embodiment of the present invention is illustrated below, the attached drawing in embodiment be for of the invention into one Step understands, is used to explain the present invention, does not constitute a limitation on the scope of protection of the present invention together with specification.
Fig. 1 is the flow chart of the control method of server cluster proposed by the present invention;
Fig. 2 is the method flow diagram at the time of present invention may be accessed using clustering methodology calculating is next;
Fig. 3 is the structure composition figure of control device proposed by the present invention.
Specific embodiment
For the ease of the understanding of those skilled in the art, the invention will be further described with reference to the accompanying drawing, not It can be used to limit the scope of the invention.
A server referring to Fig. 1, the invention proposes a kind of control method of server cluster, in server cluster For control device.
Preset in control server server, the data stored in server Data Identification between it is first corresponding Relationship presets the second corresponding relationship between server and type of server, and distributes the first meter respectively for a server When device.
Wherein, server can be mark (such as Internet protocol (IP, Internet Protocol) of server Location), Data Identification can be data number, and type of server can be device for cooling or thermal.
When type of server is device for cooling, server may be at closing or dormant state;When type of server is heat When device, server may be on or standby state.
Control device can be, but not limited to be in using remote technology control server and open or close or suspend mode or standby State, concrete implementation mode belong to the prior art, cannot protection scope for the purpose of limiting the invention.
This method comprises:
Other servers in step 100, control device setting server cluster are device for cooling, and close device for cooling.
When control device receives data access request from the user, this method further include:
Step 101, control device search the lookup of the Data Identification in the data access request in the first corresponding relationship Corresponding server searches the corresponding type of server of the server found in the second corresponding relationship.
In this step, when the type of server that control device is found is device for cooling, clothes that control device will be found Business device type is changed to thermal;The server found is opened, and the server found is arranged according to the first preset time First timer.
When the first timer is the first preset time, control device closes the server found.
In this step when the type of server that control device is found be thermal when, control device according to first it is default when Between reset the first timer of the server found.
Wherein, the first preset time is six hours.
Step 102, control device generate access record, and access record includes the server found, the service found Device type and access time.
In the control method of server cluster of the invention, further includes:
Step 103, control device search the access record of device for cooling, using clustering methodology in the second preset time Next time is calculated at the time of may access, according to the second timer is arranged at the time of being calculated.
In this step, when the second timer be calculated at the time of when, control device is arranged according to the first preset time First timer of corresponding server;When the first timer is the first preset time, control device closes corresponding service Device.
In this step, the second preset time is one hour.
In this step, referring to fig. 2, using clustering methodology calculate next time may access at the time of include:
Step 200, control device obtain the access time of the access record found.
Step 201, the access of control device setting access time the latest are recorded as current accessed record.
Step 202, the access time for calculating current accessed record and the time difference of upper one access record.
Step 203, when the time difference being calculated is less than the first preset time, control device setting it is upper one access It is recorded as current accessed record, executes step 202;When the time difference being calculated is greater than or equal to the first preset time, Execute step 204.
The time difference being calculated is denoted as the first difference by step 204, control device;
Step 205, the upper access of control device setting are recorded as current accessed record, execute step 202.
Step 206, when the time difference being calculated is less than the first preset time, control device setting it is upper one access It is recorded as current accessed record, continues to execute step 202;When the time difference being calculated is greater than or equal to the first preset time When, execute step 207.
The time difference being calculated is denoted as the second difference by step 207, control device.
Step 208, control device calculate the ratio of the first difference and the second difference.
Step 209, when the ratio being calculated is greater than preset threshold or when less than the inverse of preset threshold, executes step 210, it is no to then follow the steps 211.
In this step, preset threshold 1.2.
Step 210, control device are set as infinitely great at the time of may accessing next time.
Step 211, control device are set as from the access time of access record the latest at the time of may accessing next time, At the time of after the average value of the first difference and the second difference.
Referring to Fig. 3, the invention also provides a kind of control devices, include at least:
Setup module, other servers for being arranged in server cluster are device for cooling;
Control module, for closing device for cooling.
In control device of the invention, further includes:
Memory module, between the Data Identification of the data for saving pre-set server, storing in server First corresponding relationship, the second corresponding relationship between pre-set server and type of server;
Searching module searches data access in the first corresponding relationship for receiving data access request from the user The Data Identification of request searches corresponding server, and the corresponding server of the server found is searched in the second corresponding relationship Type;
Generation module, for generating access record, the access record includes the server found, the service found Device type and access time.
In control device of the invention, further includes:
Distribution module, for distributing the first timer respectively in advance for other described servers;
The control module, is also used to:
It detects that the type of server found is device for cooling, the type of server found is changed to thermal; Open the server found, and the first timer of the server found according to the setting of the first preset time;Detection It is first preset time, the server found described in closing to first timer.
In control device of the invention, the control module is also used to:
It detects that the type of server that the control device is found is thermal, is reset according to first preset time First timer of the server found.
In control device of the invention, the searching module is also used to:
In the second preset time, the access record of the device for cooling is searched;
The control module, is also used to:
It is calculated using clustering methodology at the time of may access next time, according to the second timing is arranged at the time of being calculated Device.
In control device of the invention, the control module is also used to:
Detect that second timer is that the corresponding clothes are arranged according to the first preset time at the time of being calculated First timer of business device;Detect that first timer is first preset time, described in the control device closing Corresponding server.
The present invention can reduce the power consumption of server, while extend the service life of server.
It should be noted that embodiment described above be merely for convenience of it will be understood by those skilled in the art that, and It is not used in and limits the scope of the invention, under the premise of not departing from inventive concept of the invention, those skilled in the art couple Any obvious replacement and improvement that the present invention is made etc. are within the scope of the present invention.

Claims (14)

1. a kind of control method of server cluster, which is characterized in that the type of server in the server cluster includes cold Device or thermal, a server in the server cluster are control device, this method comprises:
It is device for cooling that other type of server in server cluster, which are arranged, in control device, and closes device for cooling, wherein described cold Device, which refers to, can close or the device of dormant state;
The control device presets the first corresponding pass between the Data Identification of the data stored in server and server System;Preset the second corresponding relationship between server and type of server;When the control device is received from user Data access request when, this method further include:
The control device searches the corresponding clothes of Data Identification in the data access request in first corresponding relationship Business device, searches the corresponding type of server of server found in second corresponding relationship;
The control device generates access record, and the access record includes the server found, the server category found Type and access time.
2. control method according to claim 1, which is characterized in that the control device is other described servers in advance The first timer is distributed respectively;When the type of server that the control device is found is device for cooling, this method further include:
The type of server found is changed to thermal by the control device, wherein the thermal, which refers to, to open Or standby device;
The server that the control device unlatching is found, and the server found according to the setting of the first preset time First timer;
When first timer is first preset time, the control device close described in the server that finds.
3. control method according to claim 2, which is characterized in that when the type of server that the control device is found When for thermal, this method further include:
First timer of the server that the control device is found according to first preset time resetting.
4. control method according to claim 1, which is characterized in that this method further include:
The control device is searched the access record of the device for cooling, is calculated using clustering methodology in the second preset time At the time of next time may access, according to the second timer is arranged at the time of being calculated.
5. control method according to claim 4, which is characterized in that at the time of second timer is to be calculated When, this method further include:
The first timer of the corresponding server is arranged according to the first preset time for the control device;
When first timer is first preset time, the control device closes the corresponding server.
6. control method according to claim 4, which is characterized in that described calculated using clustering methodology may visit next time Include: at the time of asking
The control device obtains the access time of the access record found;
The control device is arranged the access of the access time the latest and is recorded as current accessed record;
Calculate access time and the time difference of upper one access record of the current accessed record;
When the time difference being calculated is less than the first preset time, the control device setting upper access record The step of being recorded for current accessed, continuing to execute calculating;
When the time difference being calculated is greater than or equal to first preset time, the control device is by the meter Obtained time difference is denoted as the first difference;
A step of control device setting upper access is recorded as current accessed record, continues to execute calculating;
When the time difference being calculated is greater than or equal to first preset time, the control device is by the meter Obtained time difference is denoted as the second difference;
The control device calculates the ratio of first difference and second difference;
When the ratio being calculated is greater than preset threshold or less than the inverse of the preset threshold, the control device will be described It is set as infinitely great next time at the time of may accessing;
Otherwise, the access time from access record the latest is set as at the time of the control device may access the next time It rises, at the time of after the average value of first difference and second difference.
7. control method according to claim 6, which is characterized in that the preset threshold is 1.2.
8. according to control method described in claim 4~7 any one, which is characterized in that second preset time is one Hour.
9. according to control method described in Claims 2 or 3 or 5 or 6 or 7, which is characterized in that first preset time is six Hour.
10. a kind of control device, which is characterized in that include at least:
Setup module, other type of server for being arranged in server cluster are device for cooling, wherein the server cluster In type of server include device for cooling or thermal, the device for cooling, which refers to, can close or the device of dormant state;
Control module, for closing device for cooling;
Memory module, first between Data Identification for saving the data stored in pre-set server and server Corresponding relationship, the second corresponding relationship between pre-set server and type of server;
Searching module searches the data in first corresponding relationship for receiving data access request from the user The corresponding server of Data Identification in access request, it is corresponding to search the server found in second corresponding relationship Type of server;
Generation module, for generating access record, the access record includes the server found, the server category found Type and access time.
11. control device according to claim 10, which is characterized in that further include:
Distribution module, for distributing the first timer respectively in advance for other described servers;
The control module, is also used to:
It detects that the type of server found is device for cooling, the type of server found is changed to thermal, wherein The thermal, which refers to, can open or standby device;The server found is opened, and institute is arranged according to the first preset time State the first timer of the server found;First timer is detected for first preset time, described in closing The server found.
12. control device according to claim 11, which is characterized in that the control module is also used to:
Detect that the type of server that the control device is found is thermal, according to first preset time resetting First timer of the server found.
13. control device according to claim 10, which is characterized in that the searching module is also used to:
In the second preset time, the access record of the device for cooling is searched;
The control module, is also used to:
It is calculated using clustering methodology at the time of may access next time, according to the second timer is arranged at the time of being calculated.
14. control device according to claim 12, which is characterized in that the control module is also used to:
It detects that the second timer is at the time of be calculated, is arranged the of the corresponding server according to the first preset time One timer;Detect that first timer is first preset time, the control device closes the corresponding clothes Business device.
CN201410098122.9A 2014-03-17 2014-03-17 A kind of control method and control device of server cluster Active CN104935610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410098122.9A CN104935610B (en) 2014-03-17 2014-03-17 A kind of control method and control device of server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410098122.9A CN104935610B (en) 2014-03-17 2014-03-17 A kind of control method and control device of server cluster

Publications (2)

Publication Number Publication Date
CN104935610A CN104935610A (en) 2015-09-23
CN104935610B true CN104935610B (en) 2019-03-01

Family

ID=54122582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410098122.9A Active CN104935610B (en) 2014-03-17 2014-03-17 A kind of control method and control device of server cluster

Country Status (1)

Country Link
CN (1) CN104935610B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924210A (en) * 2018-06-27 2018-11-30 杭州贝店科技有限公司 Service request processing method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1717657A (en) * 2002-11-27 2006-01-04 国际商业机器公司 Automated power control policies based on application-specific redundancy characteristics
CN1755634A (en) * 2004-09-29 2006-04-05 国际商业机器公司 Method, system for supporting a large number of intermittently used application clusters
CN102014169A (en) * 2010-12-22 2011-04-13 北京中电普华信息技术有限公司 Distributed service system as well as distributed service system task execution method and device
CN102622273A (en) * 2012-02-23 2012-08-01 中国人民解放军国防科学技术大学 Self-learning load prediction based cluster on-demand starting method
CN102708000A (en) * 2012-04-19 2012-10-03 北京华胜天成科技股份有限公司 System and method for realizing energy consumption control through virtual machine migration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1717657A (en) * 2002-11-27 2006-01-04 国际商业机器公司 Automated power control policies based on application-specific redundancy characteristics
CN1755634A (en) * 2004-09-29 2006-04-05 国际商业机器公司 Method, system for supporting a large number of intermittently used application clusters
CN102014169A (en) * 2010-12-22 2011-04-13 北京中电普华信息技术有限公司 Distributed service system as well as distributed service system task execution method and device
CN102622273A (en) * 2012-02-23 2012-08-01 中国人民解放军国防科学技术大学 Self-learning load prediction based cluster on-demand starting method
CN102708000A (en) * 2012-04-19 2012-10-03 北京华胜天成科技股份有限公司 System and method for realizing energy consumption control through virtual machine migration

Also Published As

Publication number Publication date
CN104935610A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
US10031671B2 (en) Method, apparatus, and system for calculating identification threshold to distinguish cold data and hot data
US10719260B2 (en) Techniques for storing and retrieving data from a computing device
US10021355B2 (en) Method and device for processing request
US20190149553A1 (en) Method, device and server for managing user login sessions
CN105100032A (en) Method and apparatus for preventing resource steal
CN104702625A (en) Method and device for scheduling access request in CDN (Content Delivery Network)
CN109800270B (en) Data storage and query method and Internet of things system
CN104202440A (en) Method for identifying terminal, server and system
US11163499B2 (en) Method, apparatus and system for controlling mounting of file system
US10002075B1 (en) Managing memory resources in a network environment in order to handle querying of logical data structures
Xiong et al. Design and implementation of a prototype cloud video surveillance system
WO2014180154A1 (en) A method and apparatus for data communication
CN103595566A (en) Method and device for detecting idle IP addresses
US9954940B2 (en) Method for providing content delivery network service and electronic device thereof
CN103399791A (en) Method and device for migrating virtual machines on basis of cloud computing
US9489281B2 (en) Access point group controller failure notification system
CN104516744A (en) Software updating method and system
CN104935610B (en) A kind of control method and control device of server cluster
CN106294842A (en) A kind of data interactive method, platform and distributed file system
CN103595761A (en) Data processing method based on distributed file system and server
US20220360514A1 (en) Network-based control method for power consumption of applications, terminal and storage medium
CN104038566A (en) Virtual switching device address learning method, apparatus and system
US10572486B2 (en) Data communication in a distributed data grid
CN107689876A (en) The distribution management method of metadata in distributed objects storage system
CN103118115A (en) Cloud computing user oriented method and cloud computing user oriented device for managing virtual machines

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 2020, second floor, building 27, No. 25, North Third Ring West Road, Haidian District, Beijing 100080

Patentee after: Beijing minglue Zhaohui Technology Co.,Ltd.

Address before: Room 084, 17th Floor, Room 1704, Qingyun Contemporary Building, Building 9, Manting Fangyuan Community, Qingyun Li, Haidian District, Beijing 102218

Patentee before: BEIJING SUPERTOOL INTERNET TECHNOLOGY LTD.

CP03 Change of name, title or address