Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for acquiring a capacity of a data center, which can acquire capacity data of the data center more conveniently and quickly, so that a manager can manage the data center according to the capacity data.
In order to achieve the purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for acquiring capacity of a data center is provided, including:
acquiring cabinet distribution information in at least one machine room and corresponding information of intelligent identification codes on at least one cabinet in a data center; the intelligent identification code is arranged on the cabinet, and the intelligent identification code and the cabinet are in one-to-one correspondence; the corresponding information of the intelligent identification code is space use information in the cabinet corresponding to the intelligent identification code;
calculating the size of an available cabinet arrangement space in the machine room according to cabinet distribution information in the machine room;
and generating a capacity report of the data center according to the size of the available cabinet arrangement space of the machine room and the corresponding information of the intelligent identification code.
According to the method for acquiring the capacity of the data center, the cabinet distribution information in each machine room in the data center and the corresponding information of the identification codes arranged on the cabinets in each machine room are acquired, then the size of the available cabinet arrangement space in each machine room can be calculated according to the cabinet distribution information in the machine room, and finally a capacity report of the data center can be generated according to the size of the available cabinet arrangement space in each machine room and the corresponding information of the intelligent identification codes, so that a data center manager can plan the machine room conveniently, and machine room maintenance personnel can accurately maintain the machine room to be maintained.
Optionally, the obtaining the rack distribution information in at least one machine room and the corresponding information of the intelligent identification code on at least one rack in the data center includes:
acquiring a cabinet distribution image and an intelligent identification code image in a machine room from monitoring equipment arranged in the machine room;
and acquiring cabinet distribution information in the machine room and corresponding information of the intelligent identification codes on the cabinets according to the cabinet distribution image and the intelligent identification code image in the machine room and a preset image algorithm.
Optionally, the space usage information in the cabinet corresponding to the intelligent identification code includes:
the erection state of each U position of each server in the cabinet and the type of the server erected by the U position on which the server is erected;
the erection state comprises an empty state and a full state.
Optionally, the method further includes:
acquiring corresponding information of a two-dimensional code of at least one cabinet in at least one machine room in a data center; the two-dimension code is arranged on the cabinet and corresponds to the cabinet one by one;
the corresponding information of the two-dimensional code at least comprises: the name of the data center, the name of the party to which the cabinet belongs, the serial number of the cabinet and the serial number of the machine room to which the cabinet belongs.
Optionally, the method further includes:
and storing the corresponding information of the intelligent identification code on the cabinet according to the corresponding information of the two-dimensional code of the cabinet in a classified manner.
In a second aspect, an apparatus for acquiring capacity of a data center is provided, including: the device comprises an acquisition module, a calculation module and a processing module;
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring cabinet distribution information in at least one machine room in the data center and corresponding information of intelligent identification codes on at least one cabinet;
the intelligent identification code is arranged on the cabinet, and the intelligent identification code and the cabinet are in one-to-one correspondence; the corresponding information of the intelligent identification code is space use information in the cabinet corresponding to the intelligent identification code;
the calculation module is used for calculating the size of the available cabinet arrangement space in the computer room according to the cabinet distribution information in the computer room acquired by the acquisition module;
and the processing module is used for generating a capacity report of the data center according to the size of the available cabinet arrangement space of the computer room calculated by the calculating module and the corresponding information of the intelligent identification code acquired by the acquiring module.
Optionally, the obtaining module is specifically configured to:
acquiring a cabinet distribution image and an intelligent identification code image in a machine room from monitoring equipment arranged in the machine room;
and acquiring cabinet distribution information in the machine room and corresponding information of the intelligent identification codes on the cabinets according to the cabinet distribution image and the intelligent identification code image in the machine room and a preset image algorithm.
Optionally, the space usage information in the cabinet corresponding to the intelligent identification code includes:
the erection state of each U position of each server in the cabinet and the type of the server erected by the U position on which the server is erected;
the erection state comprises an empty state and a full state.
Optionally, the obtaining module is further configured to:
acquiring corresponding information of a two-dimensional code of at least one cabinet in at least one machine room in a data center;
the two-dimension code is arranged on the cabinet and corresponds to the cabinet one by one;
the corresponding information of the two-dimensional code includes: the name of the data center, the name of the party to which the cabinet belongs, the serial number of the cabinet and the serial number of the machine room to which the cabinet belongs.
Optionally, the processing module is further configured to:
and storing the corresponding information of the intelligent identification code acquired by the acquisition module according to the corresponding information of the two-dimensional code of the cabinet acquired by the acquisition module in a classified manner.
The embodiment of the invention provides a method and a device for acquiring data center capacity, wherein the method comprises the following steps: acquiring cabinet distribution information in at least one machine room and corresponding information of intelligent identification codes on at least one cabinet in a data center; the intelligent identification code is arranged on the cabinet, and the intelligent identification code and the cabinet are in one-to-one correspondence; the corresponding information of the intelligent identification code is space use information in the cabinet corresponding to the intelligent identification code; calculating the size of an available cabinet arrangement space in the machine room according to cabinet distribution information in the machine room; and generating a capacity report of the data center according to the size of the available cabinet arrangement space of the machine room and the corresponding information of the intelligent identification code. The method for acquiring the capacity of the data center provided by the embodiment of the invention comprises the steps of firstly acquiring the distribution information of the cabinets in each machine room in the data center and the corresponding information of the identification codes arranged on the cabinets in each machine room, then calculating the size of the arrangement space of the available cabinets in the machine room according to the distribution information of the cabinets in the machine room, and finally generating a capacity report of the data center according to the size of the arrangement space of the available cabinets in the machine room and the corresponding information of the intelligent identification codes, so that a manager of the data center can plan the machine room conveniently, and a maintainer of the machine room can accurately maintain the machine room to be maintained, and because the identification codes which can be directly identified by images are pasted on the cabinets to display the use information of the spaces of the cabinets, compared with the manual acquisition mode in the prior art, the technical scheme provided by the embodiment of the invention is more convenient and rapid to acquire the capacity, and the method has strong adaptability to various situations, and can be normally implemented in a data center administration system with a complex organization structure and the strategic current situation of intermingling of new and old data centers.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, in the embodiments of the present invention, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that, when the difference is not emphasized, the intended meaning is consistent.
The data center often has a plurality of computer rooms, each computer room has a plurality of cabinets, each cabinet has a plurality of servers, and the same computer room may have a plurality of servers of companies, so that a manager of the data center needs to count the capacity of the data center in time so as to rent out an idle cabinet or a cabinet U bit, and a customer is convenient to be informed of saving the time for finding when the customer maintains the server. However, the existing statistical method is artificial statistics, time and labor are wasted, and I efficiency is not high.
In view of the above problem, referring to fig. 1, an embodiment of the present invention provides a method for acquiring a capacity of a data center, including:
101. the method comprises the steps of obtaining cabinet distribution information in at least one machine room in the data center and corresponding information of intelligent identification codes on the at least one cabinet.
The intelligent identification code is arranged on the cabinet, and the intelligent identification code and the cabinet are in one-to-one correspondence; the corresponding information of the intelligent identification code is space use information in the cabinet corresponding to the intelligent identification code;
optionally, the specific obtaining mode is to obtain a cabinet distribution image and an intelligent identification code image in the machine room from monitoring equipment arranged in the machine room, and then obtain cabinet distribution information in the machine room and corresponding information of the intelligent identification code on the cabinet according to a preset image algorithm according to the cabinet distribution image and the intelligent identification code image in the machine room; the monitoring equipment can be a fixed camera or movable monitoring equipment such as an intelligent vision robot and the like, and is determined according to the actual situation.
102. And calculating the size of the available cabinet arrangement space in the machine room according to the cabinet distribution information in the machine room.
Specifically, after the setting position of the equipment cabinets in the equipment room and the size of each equipment cabinet are obtained, the size of the arrangement space of the available equipment cabinets, which is the number of the equipment cabinets that can be arranged in the equipment room, can be determined according to the size of the pre-stored equipment room and the size of the pre-set equipment cabinets.
103. And generating a capacity report of the data center according to the size of the available cabinet arrangement space of the machine room and the corresponding information of the intelligent identification code.
Specifically, after the capacity report of the data center is generated, a data center manager can perform accurate maintenance and management on a machine room or a cabinet of the data center according to the capacity report, so that time waste of maintenance personnel during maintenance is avoided.
According to the method for acquiring the capacity of the data center, the cabinet distribution information in each machine room in the data center and the corresponding information of the identification codes arranged on the cabinets in each machine room are acquired, then the size of the available cabinet arrangement space in the machine room can be calculated according to the cabinet distribution information in the machine room, and finally the capacity report of the data center can be generated according to the size of the available cabinet arrangement space of the machine room and the corresponding information of the intelligent identification codes, so that a data center manager can plan the machine room conveniently, and machine room maintenance personnel can accurately maintain the machine room to be maintained.
Optionally, the space usage information in the cabinet corresponding to the intelligent identification code includes:
the erection state of each U position of each server in the cabinet and the type of the server erected by the U position on which the server is erected; the erection state comprises an empty state and a full state.
Exemplarily, referring to fig. 2, an intelligent identification code is set on a cabinet door, and a specific structure of the intelligent identification code is as shown in fig. 3, where a leftmost number represents a U-bit serial number of the cabinet corresponding to the intelligent identification code, a represents an operation server, B represents a storage server, a label C represents a network server, a label of a white line on a black matrix represents a full state, and a label of a black dot on a black matrix represents a vacant state; in addition, the U position is used for erecting a server in the cabinet, and the height of one U position is 4.445 cm; in addition, the information on the intelligent identification code is replaced or changed by the staff who maintains the cabinet corresponding to the intelligent identification code each time.
Referring to fig. 4, as a supplement to the method for acquiring the capacity of the data center provided in the foregoing embodiment, an embodiment of the present invention further provides another method for acquiring the capacity of the data center, where the method includes:
401. the method comprises the steps of obtaining cabinet distribution information in at least one machine room in the data center and corresponding information of intelligent identification codes on the at least one cabinet.
402. The method comprises the steps of obtaining cabinet distribution information in at least one machine room in the data center and corresponding information of intelligent identification codes on the at least one cabinet.
Specifically, as shown in fig. 2 and 3, the two-dimensional code and the smart identification code are disposed on the same sticker or metal sticker, and the two-dimensional code and the cabinet correspond to each other one by one;
the corresponding information of the two-dimensional code at least comprises: the name of the data center, the name of the party to which the cabinet belongs, the serial number of the cabinet and the serial number of the machine room to which the cabinet belongs; in addition, the information of the two-dimensional code cannot be changed due to the change and maintenance of the server in the cabinet.
403. And calculating the size of the available cabinet arrangement space in the machine room according to the cabinet distribution information in the machine room.
404. And storing the corresponding information of the intelligent identification code on the cabinet according to the corresponding information of the two-dimensional code of the cabinet in a classified manner.
Specifically, in order to classify and organize the corresponding information of all the acquired intelligent identification codes, the two-dimensional codes need to be classified according to the corresponding information of the two-dimensional codes, so that managers can quickly find the server erection condition in any machine room or any cabinet in the storage system.
405. And generating a capacity report of the data center according to the size of the available cabinet arrangement space of the machine room and the corresponding information of the intelligent identification code.
Specifically, generating a data center capacity report based on 404 is more convenient and faster.
The embodiment of the invention provides a method for acquiring the capacity of a data center, which comprises the following steps: acquiring cabinet distribution information in at least one machine room and corresponding information of intelligent identification codes on at least one cabinet in a data center; the intelligent identification code is arranged on the cabinet, and the intelligent identification code and the cabinet are in one-to-one correspondence; the corresponding information of the intelligent identification code is space use information in the cabinet corresponding to the intelligent identification code; calculating the size of an available cabinet arrangement space in the machine room according to cabinet distribution information in the machine room; and generating a capacity report of the data center according to the size of the available cabinet arrangement space of the machine room and the corresponding information of the intelligent identification code. The method for acquiring the capacity of the data center provided by the embodiment of the invention firstly acquires the cabinet distribution information of each machine room in the data center and the corresponding information of the identification codes arranged on the cabinets in each machine room, then the size of the available cabinet arrangement space in the machine room can be calculated according to the cabinet distribution information in the machine room, finally a capacity report of the data center can be generated according to the size of the available cabinet arrangement space of the machine room and the corresponding information of the intelligent identification code, thereby facilitating the data center manager to plan the machine room and ensuring that the machine room maintainer can accurately maintain the machine room to be maintained, because the identification code which can be directly identified by images is used for being pasted on the cabinet to display the cabinet space use information, compared with a manual acquisition mode in the prior art, the technical scheme provided by the embodiment of the invention is more convenient and faster to acquire the capacity of the data center.
Referring to fig. 5, an embodiment of the present invention further provides an apparatus 01 for acquiring capacity of a data center, including: an acquisition module 501, a calculation module 502 and a processing module 503;
an obtaining module 501, configured to obtain cabinet distribution information in at least one machine room in a data center and corresponding information of an intelligent identification code on at least one cabinet;
the intelligent identification code is arranged on the cabinet, and the intelligent identification code and the cabinet are in one-to-one correspondence; the corresponding information of the intelligent identification code is space use information in the cabinet corresponding to the intelligent identification code;
a calculating module 502, configured to calculate the size of the available cabinet arrangement space in the computer room according to the cabinet distribution information in the computer room acquired by the acquiring module 501;
the processing module 503 is configured to generate a capacity report of the data center according to the size of the available cabinet arrangement space of the computer room calculated by the calculating module 502 and the information corresponding to the intelligent identification code acquired by the acquiring module 501.
Optionally, the obtaining module 501 is specifically configured to:
acquiring a cabinet distribution image and an intelligent identification code image in a machine room from monitoring equipment arranged in the machine room;
and acquiring cabinet distribution information in the machine room and corresponding information of the intelligent identification codes on the cabinets according to the cabinet distribution image and the intelligent identification code image in the machine room and a preset image algorithm.
Optionally, the space usage information in the cabinet corresponding to the intelligent identification code includes:
the erection state of each U position of each server in the cabinet and the type of the server erected by the U position on which the server is erected;
the erection state comprises an empty state and a full state.
Optionally, the obtaining module 501 is further configured to:
acquiring corresponding information of a two-dimensional code of at least one cabinet in at least one machine room in a data center;
the two-dimension code is arranged on the cabinet and corresponds to the cabinet one by one;
the corresponding information of the two-dimensional code includes: the name of the data center, the name of the party to which the cabinet belongs, the serial number of the cabinet and the serial number of the machine room to which the cabinet belongs.
Optionally, the processing module 503 is further configured to:
the information corresponding to the intelligent identification code acquired by the acquisition module 501 is classified and stored according to the information corresponding to the two-dimensional code of the cabinet acquired by the acquisition module 501.
The embodiment of the invention provides a device for acquiring the capacity of a data center, which comprises: the device comprises an acquisition module, a calculation module and a processing module; the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring cabinet distribution information in at least one machine room in the data center and corresponding information of intelligent identification codes on at least one cabinet; the intelligent identification code is arranged on the cabinet, and the intelligent identification code and the cabinet are in one-to-one correspondence; the corresponding information of the intelligent identification code is space use information in the cabinet corresponding to the intelligent identification code; the calculation module is used for calculating the size of the available cabinet arrangement space in the computer room according to the cabinet distribution information in the computer room acquired by the acquisition module; and the processing module is used for generating a capacity report of the data center according to the size of the available cabinet arrangement space of the computer room calculated by the calculating module and the corresponding information of the intelligent identification code acquired by the acquiring module. When the capacity of the data center is acquired, the device for acquiring the capacity of the data center firstly acquires the cabinet distribution information in each machine room in the data center and the corresponding information of the identification code arranged on the cabinet in each machine room, then the size of the available cabinet arrangement space in the machine room can be calculated according to the cabinet distribution information in the machine room, and finally the capacity report of the data center can be generated according to the size of the available cabinet arrangement space in the machine room and the corresponding information of the intelligent identification code, so that a manager of the data center can plan the machine room conveniently and a maintainer of the machine room can accurately maintain the machine room to be maintained, and because the identification code capable of being directly identified by images is pasted on the machine room to display the use information of the cabinet space, compared with the manual acquisition mode in the prior art, the technical scheme provided by the embodiment of the invention is more convenient and faster to acquire the capacity of the data center, and the method has strong adaptability to various situations, and can be normally implemented in a data center administration system with a complex organization structure and the strategic current situation of intermingling of new and old data centers.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied in hardware or in software instructions executed by a processor. Embodiments of the present invention also provide a storage medium, which may include a memory for storing computer software instructions for an apparatus for acquiring data center capacity, the computer software instructions including program code designed to perform a method for acquiring data center capacity. Specifically, the software instructions may be composed of corresponding software modules, and the software modules may be stored in a Random Access Memory (RAM), a flash Memory, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a register, a hard disk, a removable hard disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in a core network interface device. Of course, the processor and the storage medium may reside as discrete components in a core network interface device.
The embodiment of the present invention further provides a computer program, where the computer program may be directly loaded into the memory and contains a software code, and the computer program is loaded and executed by a computer, so as to implement the method for acquiring the capacity of the data center.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.