CN110659748A - Information acquisition method and device, electronic equipment and storage medium - Google Patents

Information acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110659748A
CN110659748A CN201910830637.6A CN201910830637A CN110659748A CN 110659748 A CN110659748 A CN 110659748A CN 201910830637 A CN201910830637 A CN 201910830637A CN 110659748 A CN110659748 A CN 110659748A
Authority
CN
China
Prior art keywords
module
information
server
weight information
weight
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.)
Pending
Application number
CN201910830637.6A
Other languages
Chinese (zh)
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910830637.6A priority Critical patent/CN110659748A/en
Publication of CN110659748A publication Critical patent/CN110659748A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information acquisition method, an information acquisition device, electronic equipment and a storage medium, relates to the technical field of information, and aims to solve the problem that time consumption is long when information of the current total bearing of a cabinet is known by browsing historical data, and the method comprises the following steps: determining second weight information of the server according to the first weight information of each module in the server, wherein each module is composed of at least one material in the server, and one material is located in one module; and informing the single cabinet for storing the server of the second weight information so that the single cabinet determines the residual bearing information of the single cabinet according to the received second weight information. According to the method and the device, materials in the server are classified according to the modules, the weight of the server is determined according to the weight of the modules, and the server is informed to the single cabinet, so that the current total bearing information of the single cabinet can be obtained dynamically, historical data do not need to be browsed, and time is saved.

Description

Information acquisition method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to an information obtaining method and apparatus, an electronic device, and a storage medium.
Background
With the development of computer and network technologies, cabinets are becoming an important component of the computer and network technologies. IT (Internet Technology) facilities such as servers and network communication devices in data centers are being developed toward miniaturization, networking and rack-mounting. And cabinets are becoming one of the leading corners in this change.
However, the weight information of the servers of different data centers is different. When the machine is damaged after being over-guaranteed, part of the damaged machines in the cabinet can only be off-shelf, and at the moment, if a new machine needs to be deployed on the shelf, the historical data must be browsed to determine the current total load bearing information of the cabinet for storing the servers, and the number of servers capable of being on the shelf is further recalculated. Alternatively, for the accessory expansion requirements of the business, the weight of the newly added accessory needs to be known, and historical data needs to be browsed.
And historical data needs to be browsed, the information of the current total bearing of the cabinet is known, and the expansion and distribution requirements are finally completed, so that the consumed time is long.
Disclosure of Invention
The disclosure provides an information acquisition method, an information acquisition device, electronic equipment and a storage medium, and aims to at least solve the problem that time consumption is long when information of the current total load of a cabinet is known by browsing historical data in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an information acquisition method, applied to a server, including:
determining second weight information of the server according to the first weight information of each module in the server, wherein the module is composed of at least one material in the server, and one material is located in one module;
and informing the single cabinet for storing the server of the second weight information so that the single cabinet determines the residual bearing information of the single cabinet according to the received second weight information.
In an alternative embodiment, the first weight information is determined by:
after an in-place signal of a module is detected, determining first weight information of the module, which is stored in a storage chip corresponding to the module; or
After an in-place signal of a module is detected, an identifier of the module stored in a storage chip corresponding to the module is determined, and first weight information corresponding to the identifier is determined according to a corresponding relation between the identifier of the module and the first weight information, wherein the identifier of the module is configured in advance in the server.
In an optional implementation manner, the step of determining the second weight information of the server according to the first weight information of each module in the server includes:
and taking the sum of the first weight information of each module in the server as the second weight information of the server.
According to a second aspect of the embodiments of the present disclosure, there is provided an information obtaining method, applied to a single cabinet, including:
acquiring second weight information of servers stored in the single cabinet, wherein the second weight information is determined according to the first weight information of each module in the servers, the module is composed of at least one material in the servers, and one material is located in one module;
and determining the residual bearing information of the single cabinet according to the second weight information.
In an optional embodiment, the step of obtaining the second weight information of the server stored in the single rack includes:
and acquiring second weight information of the server from the server corresponding to the address information according to the address information in the address information set corresponding to the single cabinet.
In an optional embodiment, the determining the remaining load bearing information of the single cabinet according to the second weight information includes:
and taking the difference between third weight information and fourth weight information as the remaining bearing information, wherein the weight information is the difference between the bearing information of the floor under the single cabinet and the self weight information of the single cabinet, and the fourth weight information is the sum of the second weight information of all the servers stored in the single cabinet.
According to a third aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus, applied to a server, including:
a first determining unit configured to perform determining second weight information of the server according to first weight information of modules in the server, wherein the modules are composed of at least one material in the server, and one material is located in one module;
and the information notification unit is configured to notify the single cabinet for storing the server of the second weight information, so that the single cabinet determines the residual bearing information of the single cabinet according to the received second weight information.
In an alternative embodiment, the first notification unit is further configured to determine the first weight information by:
after an in-place signal of a module is detected, determining first weight information of the module, which is stored in a storage chip corresponding to the module; or
After an in-place signal of a module is detected, an identifier of the module stored in a storage chip corresponding to the module is determined, and first weight information corresponding to the identifier is determined according to a corresponding relation between the identifier of the module and the first weight information, wherein the identifier of the module is configured in advance in the server.
In an optional implementation manner, the first determining unit is specifically configured to:
and taking the sum of the first weight information of each module in the server as the second weight information of the server.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus including:
an information acquisition unit configured to perform acquisition of second weight information of servers stored in the single cabinet, wherein the second weight information is determined according to first weight information of modules in the servers, the modules are composed of at least one material in the servers, and one material is located in one module;
a second determination unit configured to perform determining remaining load bearing information of the single cabinet according to the second weight information.
In an optional implementation manner, the information obtaining unit is specifically configured to:
and acquiring second weight information of the server from the server corresponding to the address information according to the address information in the address information set corresponding to the single cabinet.
In an optional implementation manner, the second determining unit is specifically configured to:
and taking the difference between third weight information and fourth weight information as the remaining bearing information, wherein the weight information is the difference between the bearing information of the floor under the single cabinet and the self weight information of the single cabinet, and the fourth weight information is the sum of the second weight information of all the servers stored in the single cabinet.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information acquisition method according to any one of the first aspect of the embodiments of the present disclosure.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information acquisition method according to any one of the second aspect of the embodiments of the present disclosure.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a non-volatile readable storage medium, wherein when executed by a processor of an electronic device, instructions of the storage medium enable the electronic device to perform the information acquisition method of any one of the first aspect or the information acquisition method of any one of the second aspect of the embodiments of the present disclosure.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a non-volatile readable storage medium, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the information acquisition method according to any one of the second aspect of the embodiments of the present disclosure.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer program product, which, when run on the electronic device according to the seventh aspect, causes the electronic device to execute a method that implements any one of the above first aspect and the first aspect of the embodiments of the present disclosure may relate to.
According to a tenth aspect of the embodiments of the present disclosure, there is provided a computer program product, which, when run on the electronic device according to the eighth aspect, causes the electronic device to execute a method that implements any of the above-mentioned second aspect and the second aspect of the embodiments of the present disclosure.
According to an eleventh aspect of embodiments of the present disclosure, there is provided an information acquisition system including a server and a single cabinet:
the server is used for determining second weight information of the server according to the first weight information of each module in the server, wherein each module is composed of at least one material in the server, and one material is positioned in one module; and informing the single cabinet for storing the server of the second weight information.
The single cabinet is used for acquiring second weight information of the servers stored in the single cabinet; and determining the residual bearing information of the single cabinet according to the second weight information.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the embodiment of the disclosure classifies the materials in the server according to the modules, acquires the weight of the modules by detecting the modules contained in the server, determines the weight of the server, informs the single cabinet of the weight by the server, further determines the remaining bearing information by the single cabinet, when the modules in the server change, the weight of the server changes, and the single cabinet can acquire the weight information of the server in real time, so that the information of the current total bearing of the single cabinet can be dynamically determined in real time, and further determines the remaining bearing information of the single cabinet, thereby realizing that the data center can dynamically acquire the total weight of the current single cabinet through a cabinet-level RMC (Remote management console), and therefore, the bearing condition of each cabinet of the data center can be dynamically acquired without looking over historical data, real-time resource information can be quickly acquired, and time is saved, and facilitates management of the data center.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a block diagram illustrating an information acquisition system according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a method for detecting a bit signal and obtaining a die set signal according to an exemplary embodiment;
FIG. 3A is a schematic diagram illustrating a determination of a weight of a die set in accordance with an exemplary embodiment;
FIG. 3B is a schematic diagram illustrating another determination of module weight according to an exemplary embodiment;
FIG. 4 is a diagram illustrating address information in accordance with an exemplary embodiment;
FIG. 5 is a flow diagram illustrating a method of information acquisition in accordance with an exemplary embodiment;
FIG. 6 is a flow diagram illustrating another method of information acquisition in accordance with an illustrative embodiment;
FIG. 7 is a schematic diagram illustrating a method timing relationship for information acquisition, according to an example embodiment;
FIG. 8 is a block diagram illustrating an information acquisition device according to an exemplary embodiment;
FIG. 9 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating another information acquisition device according to an example embodiment;
FIG. 11 is a block diagram illustrating another electronic device in accordance with an exemplary embodiment;
FIG. 12 is a block diagram illustrating a computing device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Some of the words that appear in the text are explained below:
1. the term "and/or" in the embodiments of the present disclosure describes an association relationship of associated objects, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
2. The term "electronic equipment" in the embodiments of the present disclosure refers to equipment that is composed of electronic components such as integrated circuits, transistors, and electronic tubes, and functions by applying electronic technology (including) software, and includes electronic computers, robots controlled by the electronic computers, numerical control or program control systems, and the like.
3. The term "data center" in the embodiments of the present disclosure is a globally collaborative network of specific devices for transferring, accelerating, presenting, computing, storing data information over the internet network infrastructure.
4. The term "cabinet" in the embodiments of the present disclosure refers to an article for storing a computer and related control devices, which can provide protection for the storage devices, shield electromagnetic interference, arrange the devices orderly and orderly, facilitate later maintenance of the devices, and provide basic services such as power and cooling for the servers, storage, exchange, and security of a data center, which need to be placed in the cabinet; in fact, it is an important component of a data room.
The application scenario described in the embodiment of the present disclosure is for more clearly illustrating the technical solution of the embodiment of the present disclosure, and does not form a limitation on the technical solution provided in the embodiment of the present disclosure, and as a person having ordinary skill in the art knows, with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present disclosure is also applicable to similar technical problems. Wherein, in the description of the present disclosure, unless otherwise indicated, "plurality" means.
At present, in most data centers, the load of the floor under a single cabinet is generally not more than 800kg, the weight of the cabinet is 150kg, and the weight of a single server is 40kg to 100kg (including the weight of a tray or a guide rail), so accurate calculation is needed before shelving, and the number of machines which can be deployed in the single cabinet is calculated as follows: the total weight of the servers on shelf can be 800-.
When a new machine needs to be deployed and put on the shelf, or new accessories need to be added for the accessory extensive allocation demand of the service, the historical data needs to be browsed to perform complex calculation.
The embodiment of the disclosure mainly provides a method for dynamically acquiring the total weight of a single cabinet by a data center through a cabinet-level RMC, so that resource management personnel can clearly know the capacity expansion condition of the cabinet.
In view of the above scenario, the embodiments of the present disclosure are described in further detail below with reference to the drawings of the specification.
As shown in fig. 1, a schematic diagram of an information acquisition system according to an exemplary embodiment of the present disclosure is shown, the system including: a server 10 and a single cabinet 20.
The server 10 is used for determining second weight information of the server according to the first weight information of each module in the server, wherein each module is composed of at least one material in the server, and one material is positioned in one module; and informing the single cabinet for storing the server of the second weight information.
The single cabinet 20 is used for acquiring second weight information of the servers stored in the single cabinet; and determining the residual bearing information of the single cabinet according to the second weight information.
Through the scheme, materials in the server are classified according to the modules, the weight of the modules is obtained by detecting the modules contained in the server, the weight of the server is further determined, the server notifies the single cabinet of the weight, further, the single cabinet determines the residual bearing information, when the modules in the server change, the weight of the server also changes, the server weight information can be obtained by the single cabinet in real time, the residual bearing information can be dynamically determined in real time, the total weight of the single cabinet can be dynamically obtained by the data center through the cabinet-level RMC, resource management personnel can conveniently and clearly know the capacity expansion condition of the cabinet. By the method, the bearing condition of each cabinet of the data center can be dynamically obtained, the maximum bearing of the server can be increased or added, real-time resource information can be quickly obtained, and the management of the data center is facilitated.
In the disclosed embodiments, materials refer to elements in a server, including but not limited to some or all of the following:
a CPU (Central Processing Unit), a heat sink, a memory, a hard disk bracket, a fan case, a network card, an AC (Alternating Current) power supply, a chassis base, and an HBA (host Adapter) card.
In the embodiment of the present disclosure, various components in the server may be classified according to a self-defined classification rule, and an optional classification rule is: the minimum unit of a module is that when a certain material is present, the material combined with it must be present.
Wherein, a material can only be located in a module, for example, the material in the server 1 contains two CPUs and two radiators, for example, respectively: the CPU1, the CPU2, the radiator 1 and the radiator 2 are all located in one module, that is, the materials contained in different modules are different, for example, the CPU1 and the radiator 1 are located in the module a1, the CPU2 and the radiator 2 are located in the module a2, although the CPU and the radiator are contained in the module a1 and the module a2, the CPU1 and the CPU2 are different materials, and the radiator 1 and the radiator 2 are different materials.
For example, the CPU cannot exist separately from the heat sink, the CPU and the heat sink must appear in pairs, and table 1 is a table of module component classes obtained by dividing according to the above classification principle, which is provided in the embodiment of the present disclosure, as follows:
Figure BDA0002190582690000091
Figure BDA0002190582690000101
TABLE 1
The material description column describes the type or category, brand, size and the like of materials, 5120 and 5228 in the module A refer to the type of a CPU, low-grade and high-grade refer to the category of a radiator, the module A can be subdivided into a plurality of types according to different material descriptions, three types shown in the upper table are common, namely '5120 + high-grade radiator', '5120 + low-grade radiator' and '5118 + low-grade radiator', the three material descriptions respectively correspond to three module codes, namely K000001, K000002 and K000003, and the corresponding module weights are different; the module B is subdivided into two types according to the size of the memory; module C has also been divided into three different material descriptions, wherein 4056, 4038, 3056 refer to three different fan models, and module D, module G, module H are the same reason, all include two material description modes respectively.
Among them, SSD (Solid State Drives) and HDD (Hard Disk Drive) are two kinds of Hard disks; g is GB (gigabyte) for short, T is TB (terabyte) for short; u is a unit representing the external dimensions of the server and is an abbreviation of unit, 1U being 1.75 inches being 44.45 mm.
The module code is an identifier of the module, and the identifier of the module and the first weight information have a corresponding relationship, which can be referred to as the corresponding relationship between the module code and the module weight in table 1, and the module code corresponds to the module weight one to one.
A BMC (Baseboard Management Controller) on a server motherboard is a small operating system independent of a server system, and is used to facilitate operations such as remote Management, monitoring, installation, and restart of the server. The BMC is started to operate when being powered on, and is not influenced independently of the service program, so that the BMC is prevented from entering a machine room due to crash or reinstallation of a system.
The BMC is only a chip integrated on a motherboard (which is also inserted on the motherboard in various forms such as PCIE (Peripheral Component Interconnect Express, high-speed serial computer expansion bus standard), and has only one standard RJ45(Registered Jack) network port as an external expression form, and an independent IP (Internet Protocol, Protocol for interconnection between networks).
In the embodiment of the present disclosure, at least one module may be divided during server system design, optionally, different modules are applied to different modules, and the BMC may accurately determine whether a module exists on each module.
Specifically, after a module is in place at a certain module position, an in-place signal is sent to the BMC, and after receiving the in-place signal, the BMC obtains the identifier of the module or the weight of the module from a module memory chip through a System Management Bus (SMbus) Bus. As shown in fig. 2, after the module a sends an in-place signal to the BMC, the BMC may obtain the stored module information from the separate memory chip of the module through the SMbus, where the obtained module information may be the identifier of the module or the weight of the module.
In the embodiment of the present disclosure, there are many ways for the server to determine the first weight information of the module, and two ways are listed below:
the first determination method is that after the in-place signal of the module is detected, first weight information of the module stored in a storage chip corresponding to the module is determined.
The module information obtained in this manner is the weight of the module, and as shown in fig. 3A, the module information is stored in a module storage chip, including the module description, the module code, and the module weight.
For three different modules a shown in table 1, the modules may respectively correspond to different modules, for example, the module a1 corresponds to the module a with the module code of K000001, the module a2 corresponds to the module a with the module code of K000002, and the module A3 corresponds to the module a with the module code of K000003, so if the module a1 detects that 1 module a1 is in place, 1 in-place signal is sent to the BMC, the BMC acquires first weight information of the module a with the module code of K000001 from a module storage chip corresponding to the module a1 through an SMbus bus, and as can be seen from table 1, the first weight information is 1.1 kg; if module A1 detects that 2 of the group A1 are present, 2 present signals are sent to the BMC.
Take fig. 3A as an example, where the BMC receives 8 in-place signals, which correspond to 2K 000001, 1K 000004, 1K 000006, 1K 000010, 1K 000013, and 1K 000015, respectively, and the corresponding module weights are: 1.1kg, 0.12kg, 2.5kg, 1.2kg, 3.1kg, 16kg, so the sum of the weights of the modules calculated by BMC is:
1.1 × 2+0.12+2.5+1.2+3.1 × 2+16 ═ 27.02 kg. Thus, the total weight of the server corresponding to the BMC is 27.02kg, and the second weight information of the server may be represented as 27.02 kg.
And determining the identifier of the module stored in the storage chip corresponding to the module after the in-place signal of the module is detected, and determining first weight information corresponding to the identifier according to the corresponding relation between the identifier of the module and the first weight information which are pre-configured in the server.
Specifically, after the position of the module a has two modules a in place, two in-place signals are sent to the BMC, and after the BMC receives the in-place signals, the BMC obtains the identifier of the module from the module memory chip through the SMbus bus, as shown in fig. 3B, then the BMC determines the first weight information of the module according to the corresponding relationship between the identifier of the preconfigured module and the first weight information, such as the corresponding relationship between the module code and the module weight shown in the two rightmost columns in table 1, if the identifier (module code) of the module obtained from the module memory chip is K000001, the weight of the corresponding module is 1.1kg, the weight of the two modules a is 2.2kg, similarly, the weight of the module B with the module code of K00004 is 0.12kg, the weight of the module C with the module code of K00006 is 2.5kg, the weight of the module D with the module code of K00010 is 1.2kg, and the weight of the module G with the module code of K00013 is 3.1kg, the weight of the module H with module code K00015 was 16 kg.
The BMC determines that the total weight of the server corresponding to the BMC is 27.02kg by calculation, so the second weight information of the server may be represented as 27.02 kg.
In one possible embodiment, the BMC stores the calculated second weight information of the server in a fixed storage space.
It should be noted that, in the embodiment of the present disclosure, the bus used by the BMC to obtain the weight information from the module memory chip is not limited to the SMbus, and other buses such as an SGPIO (Serial General Purpose Input/Output) may also be used.
In an optional embodiment, the single cabinet is preconfigured with an address information set, and the address information set includes a management IP statically allocated to the server, so that the single cabinet can obtain the second weight information of the corresponding server according to the server management IP. The server management IP may be an IP address of the BMC management network.
Specifically, the management IPs of the servers stored in the single cabinet are statically allocated, and the weight of the corresponding server can be obtained through the remote management network according to the management IPs of all the servers in the single cabinet.
Taking fig. 4 as an example, the management network IPs included in the preconfigured address information set are respectively: 172.10.10.2, 172.10.10.3, … … and 172.10.10.11 respectively correspond to the server 1, the server 2, … … and the server 11, and the weight of the stored server can be obtained from the BMC corresponding to the servers through the management network IP, wherein the weight of the server 1 is 35kg, the weight of the server 2 is 45kg and the weight of the server 10 is 40 kg.
In the embodiment of the present disclosure, the total weight of all servers in a single cabinet can be obtained by adding the weights of all servers in a single cabinet, and taking the server shown in fig. 4 as an example, the fourth weight information may be represented as: 35kg +45kg + … … +40kg, and assuming that the total weight of the server is 400kg, the fourth weight information is 400kg, which is called A data.
Meanwhile, a value obtained by subtracting the weight of the relevant component of the single cabinet (referred to as the self-weight information of the single cabinet) from the load bearing information of the floor under the single cabinet is used as third weight information, which is called as B data. Assuming that the floor bears 800kg and the weight of the single cabinet is 150kg, the third weight information is 650kg which is 800kg-150 kg.
In the disclosed embodiment, the data A is subtracted from the data B, so that the remaining weight information of a single cabinet can be determined, and the number of machines which can be deployed or the number of accessories added to a certain machine can be known according to the remaining weight information.
When the B data is 650kg and the a data is 400kg, B-a is 250kg, so the remaining load bearing information of the single cabinet can be represented as 250kg, and thus, approximately 6 servers can be deployed, and assuming that the servers 11 to 16 are, the single cabinet can statically allocate 6 management IPs, which are respectively: 172.10.10.12, 172.10.10.13, 172.10.10.14, 172.10.10.15, 172.10.10.16, 172.10.10.17, and updates the set of address information.
Alternatively, if it is assumed that the address information set includes 16 management IPs and the address information set corresponds to 16 servers, the weight of the server 11 to the server 16 acquired when the third weight information is determined is 0.
When the server 1 adds one module a (K000002), the weight of the server 1 becomes 35.7kg +0.7 kg.
When the fan and the fan rack in the server 1 are damaged and need to be replaced, assuming that the original module C is K000006, the original module C is taken down, and then a signal which can indicate that the module C is taken down is sent to the BMC, and the weight of the server obtained by recalculating by the BMC is 35kg-2.5 kg-32.5 kg; assuming that a new module C (K000008) is then used, a bit signal is sent to the BMC, and the weight of the server calculated by the BMC is 32.5kg +2.8kg — 35.3 kg.
Fig. 5 is a flowchart illustrating an information obtaining method according to an exemplary embodiment, applied in a server, as shown in fig. 5, including the following steps:
determining second weight information of the server according to the first weight information of each module in the server in step S51, wherein the module is composed of at least one material in the server, and one material is located in one module;
in step S52, the single cabinet for storing the server is notified of the second weight information, so that the single cabinet determines the remaining load bearing information of the single cabinet according to the received second weight information.
In an alternative embodiment, the first weight information is determined by:
after an in-place signal of a module is detected, determining first weight information of the module, which is stored in a storage chip corresponding to the module; or
After an in-place signal of a module is detected, an identifier of the module stored in a storage chip corresponding to the module is determined, and first weight information corresponding to the identifier is determined according to a corresponding relation between the identifier of the module and the first weight information, wherein the identifier of the module is configured in advance in the server.
In an optional implementation manner, the step of determining the second weight information of the server according to the first weight information of each module in the server includes:
and taking the sum of the first weight information of each module in the server as the second weight information of the server.
Fig. 6 is a flowchart illustrating an information obtaining method according to an exemplary embodiment, applied to a single cabinet, as shown in fig. 6, including the following steps:
in step S61, obtaining second weight information of the servers stored in the single cabinet, where the second weight information is determined according to the first weight information of each module in the servers, where the module is composed of at least one material in the servers, and one material is located in one module;
in step S62, the remaining load bearing information of the single cabinet is determined according to the second weight information.
In an optional embodiment, the step of obtaining the second weight information of the server stored in the single rack includes:
and acquiring second weight information of the server from the server corresponding to the address information according to the address information in the address information set corresponding to the single cabinet.
In an optional embodiment, the determining the remaining load bearing information of the single cabinet according to the second weight information includes:
and taking the difference between third weight information and fourth weight information as the remaining bearing information, wherein the weight information is the difference between the bearing information of the floor under the single cabinet and the self weight information of the single cabinet, and the fourth weight information is the sum of the second weight information of all the servers stored in the single cabinet.
Fig. 7 is a flowchart illustrating a complete method for information acquisition according to an exemplary embodiment, which specifically includes the following steps:
step 71, after detecting the module in-place signal, the server 1 obtains the weight of the module from the storage information corresponding to the module in place;
step 71', after detecting the module in-place signal, the server 2 obtains the weight of the module from the storage information corresponding to the module in place;
step 72, the server 1 determines the weight of the server according to the weight of each module in the server;
step 72', the server 2 determines the weight of the server according to the weight of each module in the server;
step 73, the single cabinet acquires the weight of the corresponding server according to the pre-configured server management IP address;
and step 74, determining the residual load bearing information of the single cabinet by the single cabinet according to the weight of each server stored in the single cabinet, the load bearing information of the floor under the single cabinet and the self weight of the single cabinet.
It should be noted that, the step 71 and the step 71' shown in fig. 7 only describe a specific manner of acquiring the module weight by the server, but do not mean that only the in-place signal of one module is detected, and generally, there are multiple modules in one server, and therefore there are multiple in-place signals detected, which are not described in detail in the step 71, and the specific process can refer to the above-mentioned embodiment.
Fig. 7 shows that there are two servers (server 1 and server 2) in a single cabinet, where step 71, step 72, step 71 ', and step 72' respectively represent the process of determining their own weights by the two servers, and if there are many servers in a single cabinet, the same determination method is used, and the repeated details are not repeated.
Specifically, in step 73 and step 73', it is indicated that the single cabinet obtains the weight of the corresponding server according to the preconfigured server management IP, and similarly, the same manner is used when there are a plurality of servers in one single cabinet, and repeated details are not repeated.
Fig. 8 is a block diagram illustrating an information acquisition apparatus according to an example embodiment. Applied to a server, referring to fig. 8, the apparatus includes a first determination unit 800 and an information notification unit 801.
The first determining unit 800 is configured to perform determining second weight information of the server according to first weight information of modules in the server, wherein the modules are composed of at least one material in the server, and one material is located in one module;
the information notification unit 801 is configured to perform notification of the second weight information to a single cabinet for storing the server, so that the single cabinet determines the remaining load bearing information of the single cabinet according to the received second weight information.
In an alternative embodiment, the first notification unit 800 is further configured to determine the first weight information by:
after an in-place signal of a module is detected, determining first weight information of the module, which is stored in a storage chip corresponding to the module; or
After an in-place signal of a module is detected, an identifier of the module stored in a storage chip corresponding to the module is determined, and first weight information corresponding to the identifier is determined according to a corresponding relation between the identifier of the module and the first weight information, wherein the identifier of the module is configured in advance in the server.
In an optional implementation manner, the first determining unit 800 is specifically configured to:
and taking the sum of the first weight information of each module in the server as the second weight information of the server.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit executes the request has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating an electronic device 900 according to an example embodiment, the apparatus comprising:
a processor 910;
a memory 920 for storing instructions executable by the processor 910;
wherein the processor 910 is configured to execute the instructions to implement any information obtaining method applied to the server in the embodiments of the present disclosure.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 920 comprising instructions, executable by the processor 910 of the electronic device 900 to perform the above-described method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiment of the present disclosure further provides a computer program product, which, when running on the electronic device shown in fig. 9, causes the electronic device to execute any one of the information acquisition methods applied to the server in the embodiment of the present disclosure or any one of the methods that may be involved in any one of the information acquisition methods.
Fig. 10 is a block diagram illustrating an information acquisition apparatus according to an example embodiment. Applied to a server, referring to fig. 10, the apparatus includes an information notifying unit 1000 and a second determining unit 1001.
The information obtaining unit 1000 is configured to perform obtaining second weight information of servers stored in the single cabinet, where the second weight information is determined according to the first weight information of each module in the servers, the module is composed of at least one material in the servers, and one material is located in one module;
the second determining unit 1001 is configured to determine the remaining load bearing information of the single cabinet according to the second weight information.
In an optional implementation manner, the information obtaining unit 1000 is specifically configured to:
and acquiring second weight information of the server from the server corresponding to the address information according to the address information in the address information set corresponding to the single cabinet.
In an optional implementation manner, the second determining unit 1001 is specifically configured to:
and taking the difference between third weight information and fourth weight information as the remaining bearing information, wherein the weight information is the difference between the bearing information of the floor under the single cabinet and the self weight information of the single cabinet, and the fourth weight information is the sum of the second weight information of all the servers stored in the single cabinet.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit executes the request has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 11 is a block diagram illustrating an electronic device 1100 according to an example embodiment, the apparatus comprising:
a processor 1110;
a memory 1120 for storing instructions executable by the processor 1110;
wherein the processor 1110 is configured to execute the instructions to implement any one of the information obtaining methods applied to a single cabinet in the embodiments of the present disclosure.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 1120 comprising instructions, executable by the processor 1110 of the electronic device 1100 to perform the method described above is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiment of the present disclosure further provides a computer program product, which, when running on the electronic device shown in fig. 11, causes the electronic device to execute any one of the information acquisition methods applied to a single cabinet or any one of the methods that may be involved in any one of the information acquisition methods.
Fig. 12 is a computing device provided by an embodiment of the present disclosure, and a computing device 120 according to this implementation of the present disclosure is described below with reference to fig. 12. The computing device 120 of fig. 12 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As in fig. 12, computing device 120 is embodied in the form of a general purpose computing device. Components of computing device 120 may include, but are not limited to: the at least one processing unit 121, the at least one memory unit 122, and a bus 123 connecting various system components (including the memory unit 122 and the processing unit 121).
Bus 123 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 122 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)1221 and/or cache memory unit 1222, and may further include Read Only Memory (ROM) 1223.
Storage unit 122 may also include a program/utility 1225 having a set (at least one) of program modules 1224, such program modules 1224 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Computing device 120 may also communicate with one or more external devices 124 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with computing device 120, and/or with any devices (e.g., router, modem, etc.) that enable computing device 120 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interfaces 125. Also, the computing device 120 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 126. As shown, network adapter 126 communicates with other modules for computing device 120 over bus 123. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 120, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The computer program product of the disclosed embodiments may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a computing device.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An information acquisition method is applied to a server, and comprises the following steps:
determining second weight information of the server according to the first weight information of each module in the server, wherein the module is composed of at least one material in the server, and one material is located in one module;
and informing the single cabinet for storing the server of the second weight information so that the single cabinet determines the residual bearing information of the single cabinet according to the received second weight information.
2. The method of claim 1, wherein the first weight information is determined by:
after an in-place signal of a module is detected, determining first weight information of the module, which is stored in a storage chip corresponding to the module; or
After an in-place signal of a module is detected, an identifier of the module stored in a storage chip corresponding to the module is determined, and first weight information corresponding to the identifier is determined according to a corresponding relation between the identifier of the module and the first weight information, wherein the identifier of the module is configured in advance in the server.
3. An information acquisition method is applied to a single cabinet, and comprises the following steps:
acquiring second weight information of servers stored in the single cabinet, wherein the second weight information is determined according to the first weight information of each module in the servers, the module is composed of at least one material in the servers, and one material is located in one module;
and determining the residual bearing information of the single cabinet according to the second weight information.
4. The method of claim 3, wherein the step of obtaining second weight information for servers stored in the single rack comprises:
and acquiring second weight information of the server from the server corresponding to the address information according to the address information in the address information set corresponding to the single cabinet.
5. An information acquisition apparatus, applied to a server, includes:
a first determining unit configured to perform determining second weight information of the server according to first weight information of modules in the server, wherein the modules are composed of at least one material in the server, and one material is located in one module;
and the information notification unit is configured to execute sending the second weight information to a single cabinet for storing the server, so that the single cabinet determines the remaining bearing information of the single cabinet according to the received second weight information.
6. An information acquisition device, applied to a single cabinet, includes:
an information acquisition unit configured to perform acquisition of second weight information of servers stored in the single cabinet, wherein the second weight information is determined according to first weight information of modules in the servers, the modules are composed of at least one material in the servers, and one material is located in one module;
a second determination unit configured to perform determining remaining load bearing information of the single cabinet according to the second weight information.
7. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information acquisition method of claim 1 or claim 2.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information acquisition method of claim 3 or claim 4.
9. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information acquisition method according to claim 1 or claim 2.
10. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information acquisition method of claim 3 or claim 4.
CN201910830637.6A 2019-09-04 2019-09-04 Information acquisition method and device, electronic equipment and storage medium Pending CN110659748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910830637.6A CN110659748A (en) 2019-09-04 2019-09-04 Information acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910830637.6A CN110659748A (en) 2019-09-04 2019-09-04 Information acquisition method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110659748A true CN110659748A (en) 2020-01-07

Family

ID=69037899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910830637.6A Pending CN110659748A (en) 2019-09-04 2019-09-04 Information acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110659748A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250283A (en) * 2015-06-05 2016-12-21 广达电脑股份有限公司 For automatically determining the System and method for of server rack weight
CN107038100A (en) * 2017-03-22 2017-08-11 深圳市共济科技股份有限公司 The real time capacity display methods and system of a kind of data center
CN207600584U (en) * 2017-11-09 2018-07-10 郑州云海信息技术有限公司 A kind of overweight warning circuit of server cabinet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250283A (en) * 2015-06-05 2016-12-21 广达电脑股份有限公司 For automatically determining the System and method for of server rack weight
CN107038100A (en) * 2017-03-22 2017-08-11 深圳市共济科技股份有限公司 The real time capacity display methods and system of a kind of data center
CN207600584U (en) * 2017-11-09 2018-07-10 郑州云海信息技术有限公司 A kind of overweight warning circuit of server cabinet

Similar Documents

Publication Publication Date Title
CN106020854B (en) Applying firmware updates in a system with zero downtime
CN100459503C (en) Method and system of obtaining physical slot number of single board, and type of slot
US9582377B1 (en) Dynamic sizing of storage capacity for a remirror buffer
US8316248B2 (en) Virtual PC management method, virtual PC management system, and virtual PC management program
CN104503932B (en) More mainboard server main substrate Management Controller referee methods and system
CN101120317A (en) Method, apparatus and system for dynamically reassigning memory from one virtual machine to another
US20080065874A1 (en) System and method for dynamic determination of system topology in a multiple building block server system
US6427176B1 (en) Method and apparatus for maintaining system labeling based on stored configuration labeling information
CN101821724A (en) Centralized server rack management using usb
US9098257B2 (en) Information handling system server architecture for improved management communication
EP2892212A1 (en) Micro server, method of allocating MAC address, and computer readable recording medium
US9116860B2 (en) Cascading failover of blade servers in a data center
US9805335B2 (en) Distributed enterprise equipment inventory location system
CN107179804B (en) Cabinet device
US11228518B2 (en) Systems and methods for extended support of deprecated products
CN107145304B (en) Server, storage system and related method
US20240103876A1 (en) Direct swap caching with zero line optimizations
US7882389B2 (en) Dynamic reassignment of devices attached to redundant controllers
CN112732035B (en) Temperature real-time monitoring and fan management device and server
CN100392631C (en) Multiple host support for remote expansion apparatus
CN110515540B (en) Method and device for topology of hard disk
CN110659748A (en) Information acquisition method and device, electronic equipment and storage medium
US11809893B2 (en) Systems and methods for collapsing resources used in cloud deployments
CN110908863A (en) ARM engine cluster server
CN115509978A (en) Method, device, equipment and storage medium for determining physical position of external plug-in equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200107

RJ01 Rejection of invention patent application after publication