CN111880996B - Bare metal data acquisition method, device, equipment and readable storage medium - Google Patents
Bare metal data acquisition method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN111880996B CN111880996B CN202010745336.6A CN202010745336A CN111880996B CN 111880996 B CN111880996 B CN 111880996B CN 202010745336 A CN202010745336 A CN 202010745336A CN 111880996 B CN111880996 B CN 111880996B
- Authority
- CN
- China
- Prior art keywords
- information
- bare metal
- bare
- computer
- metal data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a bare metal data acquisition method, a bare metal data acquisition device, bare metal data acquisition equipment and a computer readable storage medium, wherein the bare metal data acquisition method comprises the following steps: deploying a bare computer server by using bare computer information and an image file with a monitoring program; acquiring project information by utilizing a project interface; collecting performance information by using a monitoring program; generating bare metal data using the bare metal information, the performance information, and the item information; the bare computer information is utilized when the bare computer server is deployed, so that the deployed bare computer server corresponds to the bare computer information; after the item information and the performance information are acquired by the item interface and the monitor program, respectively, the bare metal data is generated by using the bare metal information, the performance information, and the item information, instead of being output separately. By integrating the performance information and the project information with the bare metal information, complete bare metal data can be obtained, and the bare metal data comprises the bare metal information, so that the bare metal information and the bare metal server can be in one-to-one correspondence, and a user can conveniently check the bare metal data.
Description
Technical Field
The present disclosure relates to the field of cloud computing technologies, and in particular, to a bare metal data collection method, a bare metal data collection device, a bare metal data collection apparatus, and a computer readable storage medium.
Background
The bare computer, namely a bare computer server, is a physical computer and is specially designed for running special services without long-time interruption. It has high stability, durability and reliability. Bare computer servers are a single user environment, meaning that the physical resources of a single server may not be shared between two or more users. Because of this physical isolation, bare computer servers do not have a "noisy neighbor" effect that plagues the virtual environment. An important benefit of such isolation is performance predictability. Therefore, bare computer servers have the most stable environment, are well suited for processing large amounts of data, and are currently in widespread use. In order to manage and monitor the bare metal, the operation condition of the bare metal needs to be known, and the data of the bare metal needs to be collected. The related technology needs to collect bare metal data for a plurality of times, and the data collected each time are independently output; the bare computer data only comprises specific data, does not comprise an identity mark or data representing an identity, cannot be corresponding to a specific bare computer server, is not convenient for a user to check, and is also inconvenient for the user to manage the bare computer server.
Therefore, how to solve the problem that bare metal data in the related art is not easy for a user to view is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a bare metal data collection method, a bare metal data collection device, a bare metal data collection apparatus, and a computer-readable storage medium, which solve the problem that bare metal data in the related art is not easy for a user to view.
In order to solve the technical problems, the application provides a bare metal data acquisition method, which comprises the following steps:
deploying a bare computer server by using bare computer information and an image file with a monitoring program;
acquiring project information by utilizing a project interface;
collecting performance information by using the monitoring program;
and generating bare metal data by using the bare metal information, the performance information and the item information.
Optionally, the deploying the bare metal server by using bare metal information and an image file with a monitor program includes:
deploying the bare computer server by using the image file, and generating a configuration file corresponding to the monitoring program;
and writing the bare metal information into the configuration file.
Optionally, the generating bare metal data using the bare metal information, the performance information, and the item information includes:
filling the performance information, the bare metal information and the project information in a preset data architecture;
updating state information according to filling conditions, and judging whether the state information is a target state or not;
and if the state information is the target state, determining to obtain the bare metal data.
Optionally, the collecting performance information by using the monitoring program includes:
acquiring the performance information by using the monitoring program;
and binding the bare computer information with the performance information, and uploading the bound bare computer information and the performance information to a first database to complete acquisition of the performance information.
Optionally, the generating bare metal data using the bare metal information, the performance information, and the item information includes:
acquiring the performance information and the bare metal information from the first database;
determining target item information corresponding to the bare metal information from the pre-collected item information;
generating the bare metal data using the performance information, the bare metal information, and the target item information.
Optionally, the method further comprises:
outputting the bare metal data.
Optionally, the outputting the bare metal data comprises:
uploading the bare metal data to a second database;
if a query instruction is detected, acquiring the bare metal data corresponding to the query instruction from the second database;
responding to the query instruction by utilizing the bare metal data corresponding to the query instruction.
The application also provides a bare metal data acquisition device, comprising:
the deployment module is used for deploying the bare computer server by using the bare computer information and the image file with the monitoring program;
the first acquisition module is used for acquiring project information by utilizing a project interface;
the second acquisition module is used for acquiring performance information by using the monitoring program;
and the generation module is used for generating bare metal data by utilizing the bare metal information, the performance information and the item information.
The application also provides a bare metal data acquisition device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is used for executing the computer program to realize the bare metal data acquisition method.
The application also provides a computer readable storage medium for storing a computer program, wherein the computer program realizes the bare metal data acquisition method when being executed by a processor.
According to the bare metal data acquisition method, bare metal information and an image file with a monitoring program are utilized to deploy a bare metal server; acquiring project information by utilizing a project interface; collecting performance information by using a monitoring program; bare metal data is generated using the bare metal information, performance information, and item information.
It can be seen that the bare metal information is utilized in the deployment of the bare metal server, so that the bare metal server obtained by deployment corresponds to the bare metal information. After the item information and the performance information are acquired by the item interface and the monitor program, respectively, the bare metal data is generated by using the bare metal information, the performance information, and the item information, instead of being output separately. By integrating the performance information, the project information and the bare metal information, complete bare metal data can be obtained, and the bare metal data comprises the bare metal information, so that the bare metal information and the bare metal server can be in one-to-one correspondence, a user can conveniently check the bare metal data, and the user can conveniently manage the bare metal server.
In addition, the application also provides a bare metal data acquisition device, bare metal data acquisition equipment and a computer readable storage medium, and the bare metal data acquisition device and the bare metal data acquisition equipment have the same beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flowchart of a bare metal data collection method according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of a bare metal data collection system according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a bare metal data collection device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a bare metal data collection device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In one possible implementation, please refer to fig. 1, fig. 1 is a flowchart of a bare metal data collection method provided in an embodiment of the present application. The method comprises the following steps:
s101: bare metal servers are deployed using bare metal information and image files with a monitor.
Some or all of the steps in this embodiment may be performed by a single server or computer, or may be performed jointly by a plurality of servers, computers, or other electronic devices. Since bare metal servers are typically used in a cloud computing environment, it should be apparent to those skilled in the art that any one or several electronic devices or cloud hosts, or a combination of electronic devices and cloud hosts, may be used to perform the steps of the bare metal data collection method provided by the embodiments of the present invention.
In order to mark the data acquired by the monitoring program, the acquired bare computer data can be easily matched with a bare computer server, so that the user can check the bare computer data conveniently; or when bare computer data are obtained in batches or continuously for many times, the bare computer data are corresponding to the bare computer server, so that confusion is avoided, and the bare computer server is deployed by using bare computer information in the embodiment. The bare metal information is used to identify the bare metal server, i.e., to represent the identity of the bare metal server. The present embodiment is not limited to the specific content or form of the bare metal information, and may be, for example, a unique ID of each bare metal server; or the serial number information corresponding to the bare computer server; or may be the unique name of the bare metal server. It should be clear to those skilled in the art that the content of the bare computer information corresponding to each bare computer server should be different for identification purposes.
The monitoring program may be referred to as a monitoring agent or collection agent that is used to collect performance information of the bare metal server, which is used to construct bare metal information. The monitoring program is utilized to collect the performance information, so that the occupation of a computing module interface can be avoided, and the excessive occupation can cause the overlarge pressure of a server because the computing module interface is a core service interface. The mode of acquiring performance data by adopting the monitoring program can not cause pressure to the server because the interface of the computing module is occupied. In order to collect performance data by using the monitoring program, the monitoring program may be packaged into an image to obtain an image file with the monitoring program. The bare computer information and the image file with the monitoring program are utilized to deploy the bare computer server, so that the bare computer information and the performance information can be obtained when the bare computer data are generated, and the bare computer data can be conveniently checked by a user.
Specifically, in order to improve the data acquisition efficiency, the performance information can be bound with bare metal information when the performance information is acquired. The step S101 may include:
step 11: and deploying the bare computer server by using the image file, and generating a configuration file corresponding to the monitoring program.
Step 12: and writing bare metal information into the configuration file.
In order to bind the performance information with the bare metal information when the performance information is collected, the bare metal information may be written into a configuration file of the monitoring program. The configuration file of the monitoring program is used for setting the work of the monitoring program, bare metal information is written into the configuration file, and the performance information and the bare metal information can be bound when the monitoring program collects the performance information, so that the performance information bound with the bare metal information is obtained. The binding process of bare metal information and performance information separately is not required.
S102: and acquiring project information by utilizing a project interface.
The item information is used to indicate what item is deployed on the bare metal server, i.e., to record the item corresponding to the bare metal server. The item information may specifically include one or more items of data such as an item ID, an item user ID, an item name, an item user name, an item status, and the like. The project information may be specifically obtained through a project interface, and the specific obtaining manner and process thereof may refer to related technologies, which are not described herein. It should be noted that the number of the substrates,
the embodiment is not limited to a specific acquisition timing of the item information, and may be acquired according to a preset period, or may be acquired in real time, for example. Since the item information is different from the performance information, the item information is generally not changed or changed less frequently after the determination. Therefore, in this embodiment, when the item information is acquired in accordance with the preset period, or when the acquisition instruction is detected, the length of the preset period may be large, and the detection frequency of the acquisition instruction may be low. The item information obtained each time can be stored, and the pre-collected item information is called when bare metal data is generated later. For example, a correspondence relationship between item information and bare metal information may be set, and when bare metal data is acquired, corresponding item information is determined from the bare metal information, and corresponding item information is selected from the pre-acquired item information.
It should be noted that, since the related art does not have bare metal information for representing the bare metal server identity. Therefore, the project information cannot be pre-collected and stored, and then output. Since it is impossible to determine which item information the bare computer server corresponds to when output is required if item information is pre-collected, it is also impossible to determine which item information should be output. The related art needs to frequently acquire and output item information. The bare computer server identity identification method and the bare computer server identity identification system have bare computer information used for representing the identity of the bare computer server, and can determine item information to be output according to the corresponding relation between the bare computer information and the item information. Therefore, the acquisition frequency of the project information can be reduced, and the waste of calculation resources is reduced.
S103: and collecting performance information by using a monitoring program.
The monitoring program is used for collecting performance information, and the performance information is used for representing the running condition of the bare computer server, and can specifically comprise one or more data such as CPU (central processing unit) utilization rate, memory utilization rate, system disk utilization rate, IP (Internet protocol) address, state and the like. The specific manner and process of the monitoring program to collect the performance information is not limited, and reference may be made to the related art. The performance information may be obtained in real time or may be obtained in a preset period. Since the performance information characterizes the operation of the bare computer server, the performance information of the bare computer server changes over time as the bare computer server operates. In order to obtain accurate performance information and avoid wasting resources, in this embodiment, it is preferable to obtain performance information when an obtaining instruction is detected.
In one possible implementation, the acquisition performance information is not necessarily used to generate bare metal data, and may be used for both generating bare metal data and for other purposes, such as for recording the operation of a bare metal server. At this time, the step S103 may include:
step 21: and acquiring performance information by using a monitoring program.
Step 22: and binding the bare computer information and the performance information, and uploading the bound bare computer information and the performance information to a first database to complete acquisition of the performance information.
After the performance information is acquired by using the monitoring information, the bare computer information and the performance information are bound, and the bare computer information and the performance information are uploaded to a first database after being bound, so that the acquisition of the performance information can be completed. The bound bare metal information and performance information are stored in the first database, so that the effect of recording the running condition of the bare metal server can be achieved, and necessary information can be provided for generating bare metal data. The bare metal data can be generated at any time according to the actual situation, and the information in the first database can be utilized when the bare metal data needs to be generated; and without affecting other work, the first database may be saved for other threads or function calls when bare metal data generation is not needed.
S104: bare metal data is generated using the bare metal information, performance information, and item information.
After the bare metal information, performance information, and item information are obtained, bare metal data can be generated using the same. Specifically, the information can be directly determined as bare metal data after being acquired; or the data can be processed according to a preset data structure or a preset data model structure to obtain corresponding bare metal data. The embodiment is not limited to a specific format of bare metal data, and may be, for example, a plurality of groups, or any other possible data structure. The bare metal data comprises performance information and project information, so that information integration is realized; meanwhile, the bare computer data comprises bare computer information, and a user can correspond the bare computer data to the bare computer server one by one through the bare computer information, so that the user can conveniently check the bare computer data and can conveniently manage the bare computer server.
In one possible implementation, in order to facilitate unified management of bare metal data, facilitate user viewing, and have better flexibility and extensibility, the format of the bare metal data may be specified by using a preset data architecture. The step S104 may include:
step 31: and filling performance information, bare metal information and project information in a preset data architecture.
Step 32: and updating the state information according to the filling condition, and judging whether the state information is a target state or not.
Step 33: and if the state information is the target state, determining to obtain bare metal data.
The preset data architecture is used for setting the format of bare metal data, and may specifically include a bare metal information part, an item information part, a performance information part, and a status information part. The state information is used for judging whether the bare metal data is generated completely or not, and the content of the bare metal data can be two or more items, wherein the target state is included. The state information is updated along with the filling condition of the three information, and whether the state information is in a target state is judged after each update. And if the weak state information is the target state, determining to obtain bare metal data. The status information may specifically be a status flag bit, for example, when the status information is 0, indicating that the information is not fully filled. With the filling of the information, after the performance information, the bare metal information and the item information are all filled, the state information can be updated to 1, namely, the target state, and then the bare metal data can be determined to be obtained.
The present embodiment is not limited to the acquisition sources of the performance information, the bare metal information, and the item information, and may be, for example, information acquired in real time. In the step S102, it is explained that the item information may be pre-collected information; in step S103, it is explained that the acquired performance information may be stored in the first database after the bare metal information is bound. Thus, in one embodiment, based on the two embodiments, the step S104 may include:
step 41: performance information and bare metal information are obtained from a first database.
Step 42: target item information corresponding to the bare metal information is determined from the pre-collected item information.
Step 43: bare metal data is generated using the performance information, bare metal information, and target item information.
When it is necessary to generate bare metal data, for example, when a bare metal information generation instruction is detected, or when a bare metal data generation cycle is reached, performance information and bare metal information may be acquired from the first database. Meanwhile, target item information corresponding to the bare metal information is determined in the pre-collected item information. After the target item information is determined, bare metal data is generated using the performance information, the bare metal information, and the target item information. It should be noted that, step 43 may include steps 31 to 33, except that the item information is target item information.
After the bare metal data is obtained, the bare metal data may be stored or may be output. In one embodiment, after generating the bare metal data, the method may further include:
step 51: outputting the bare metal data.
Specifically, the embodiment is not limited to a specific output manner, and may output to a preset path, for example; or can be visually output, i.e. output to a display device; or may be output to other devices or terminals, for example, to a target device via a network.
Based on the above embodiment, in another embodiment, the bare metal data may not be actively output, but may be responded to when a query instruction is detected. Specifically, step 51 may include:
step 61: the bare computer data is uploaded to a second database.
Step 62: if the query instruction is detected, bare metal data corresponding to the query instruction is acquired from the second database.
Step 63: responding to the query instruction by using bare metal data corresponding to the query instruction.
The bare metal data may be brought up to the second database after it is obtained and, upon detection of a query instruction, the query instruction is responded to with the bare metal data in the second database corresponding to the query instruction. The user can acquire bare metal data by sending the query instruction, so that convenience is improved.
By applying the bare metal data acquisition method provided by the embodiment of the application, bare metal information is utilized when the bare metal server is deployed, so that the deployed bare metal server corresponds to the bare metal information. After the item information and the performance information are acquired by the item interface and the monitor program, respectively, the bare metal data is generated by using the bare metal information, the performance information, and the item information, instead of being output separately. By integrating the performance information, the project information and the bare metal information, complete bare metal data can be obtained, and the bare metal data comprises the bare metal information, so that the bare metal information and the bare metal server can be in one-to-one correspondence, a user can conveniently check the bare metal data, and the user can conveniently manage the bare metal server.
Based on the above embodiments, the present embodiment will specifically explain several steps in the above embodiments. Referring to fig. 2, fig. 2 is a schematic structural diagram of a bare metal data collection system according to an embodiment of the present application. The system comprises an acquisition data module, an acquisition middleware, a storage DB, a time sequence DB and a plurality of acquisition agents.
Firstly, packing a monitoring Agent program into a mirror image in a customized mirror image mode, and secondly, injecting a unique ID of a bare machine (namely, a bare machine ID) into a configuration file of the mirror image monitoring Agent through a ConfigDriver when the bare machine system is deployed, so that the monitoring Agent reads the unique ID and actively reports performance data information after the system deployment is started. The acquisition Agent will actively upload the bare metal ID (i.e., bare metal information) and performance information to the timing database (i.e., first database). The acquisition middleware and the acquisition data module interact through a communication protocol, the acquisition middleware is used for maintaining a bare metal resource ID list (for example, comprising the corresponding relation between bare metal information and project information), initializing a data model instance of the bare metal resource (namely, generating bare metal data by utilizing a preset data architecture), and is responsible for respectively calling the project information slot position and the performance information slot position of each bare metal data model instance in a task interface mode, issuing the task interface call mode to the acquisition data module, and waiting for a task execution result. The data collection module provides interfaces for different types of data population and feeds the results back to the caller (i.e., the user). The interface comprises a performance information filling interface and a project information filling interface, wherein the performance information interface acquires performance information and bare metal IDs through reading a time sequence database, performs data assembly according to the bare metal IDs, feeds back results to the acquisition middleware after completion, performs content filling on the performance information slots of the data model after completion, and modifies the state to completion (namely updates state information). The project information interface is used for reading the project information of the cloud platform in a similar mode, acquiring required data, feeding back a result after the completion, and acquiring middleware can fill the data into the project information slot position of the bare computer model instance and modify the state to be completed. Only when the state of the two slots of the performance and the project is completed, the state is modified, and the model instance is permanently stored in a storage database (namely a second database) so as to be accessed and displayed by other external services.
The bare metal data acquisition device provided in the embodiments of the present application is described below, and the bare metal data acquisition device described below and the bare metal data acquisition method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a bare metal data collection device according to an embodiment of the present application, including:
a deployment module 110 for deploying a bare metal server using bare metal information and an image file having a monitor;
a first obtaining module 120, configured to obtain project information by using a project interface;
a second acquisition module 130, configured to acquire performance information by using a monitoring program;
a generation module 140 for generating bare metal data using the bare metal information, the performance information, and the item information.
Optionally, the deployment module 110 includes:
the configuration file generating unit is used for deploying the bare computer server by utilizing the mirror image file and generating a configuration file corresponding to the monitoring program;
and the information writing unit is used for writing the bare metal information into the configuration file.
Optionally, the generating module 140 includes:
the filling unit is used for filling performance information, bare metal information and project information in a preset data architecture;
the updating unit is used for updating the state information according to the filling condition and judging whether the state information is a target state or not;
and the determining unit is used for determining to obtain bare metal data if the state information is the target state.
Optionally, the second obtaining module 130 includes:
an acquisition unit for acquiring performance information by using a monitoring program;
and the first uploading unit is used for binding the bare computer information and the performance information and uploading the bare computer information and the performance information to the first database to complete the acquisition of the performance information.
Optionally, the generating module 140 includes:
a first reading unit for acquiring performance information and bare metal information from a first database;
a second reading unit for determining target item information corresponding to the bare metal information from the item information acquired in advance;
and a generation unit for generating bare metal data using the performance information, the bare metal information, and the target item information.
Optionally, the method further comprises:
and the output module is used for outputting the bare metal data.
Optionally, the output module includes:
the second uploading unit is used for uploading the bare computer data to a second database;
the screening unit is used for acquiring bare metal data corresponding to the query instruction from the second database if the query instruction is detected;
and the response unit is used for responding to the query instruction by utilizing the bare metal data corresponding to the query instruction.
The bare metal data acquisition device provided in the embodiments of the present application is described below, and the bare metal data acquisition device described below and the bare metal data acquisition method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a bare metal data collection device according to an embodiment of the present application. Wherein the bare metal data collection device 100 may include a processor 101 and a memory 102 and may further include one or more of a multimedia component 103, an information input/information output (I/O) interface 104, and a communication component 105.
Wherein the processor 101 is configured to control the overall operation of the bare metal data collection device 100 to perform all or part of the steps in the bare metal data collection method described above; the memory 102 is used to store various types of data to support operation at the bare metal data collection device 100, which may include, for example, instructions for any application or method operating on the bare metal data collection device 100, as well as application-related data. The Memory 102 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as one or more of static random access Memory (Static Random Access Memory, SRAM), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk.
The multimedia component 103 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 102 or transmitted through the communication component 105. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the bare metal data collection device 100 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G or 4G, or a combination of one or more thereof, the respective communication component 105 may thus comprise: wi-Fi part, bluetooth part, NFC part.
The bare engine data collection device 100 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated ASIC), digital signal processors (Digital Signal Processor, abbreviated DSP), digital signal processing devices (Digital Signal Processing Device, abbreviated DSPD), programmable logic devices (Programmable Logic Device, abbreviated PLD), field programmable gate arrays (Field Programmable Gate Array, abbreviated FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the bare engine data collection methods set forth in the above embodiments.
The following describes a computer readable storage medium provided in an embodiment of the present application, where the computer readable storage medium described below and the bare metal data collection method described above may be referred to correspondingly.
The present application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the bare metal data collection method described above.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation should not be considered to be beyond the scope of this application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms include, comprise, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.
Claims (9)
1. A bare metal data collection method, comprising:
deploying a bare computer server by using bare computer information and an image file with a monitoring program; the bare computer information is used for identifying the bare computer server;
acquiring project information by utilizing a project interface;
collecting performance information by using the monitoring program;
generating bare metal data using the bare metal information, the performance information, and the item information;
the generating bare metal data using the bare metal information, the performance information, and the item information includes:
filling the performance information, the bare metal information and the project information in a preset data architecture;
updating state information according to filling conditions, and judging whether the state information is a target state or not;
and if the state information is the target state, determining to obtain the bare metal data.
2. A bare metal data collection method according to claim 1, wherein deploying a bare metal server using bare metal information and an image file with a monitor program comprises:
deploying the bare computer server by using the image file, and generating a configuration file corresponding to the monitoring program;
and writing the bare metal information into the configuration file.
3. A bare metal data collection method according to claim 1, wherein the collecting performance information using the monitor comprises:
acquiring the performance information by using the monitoring program;
and binding the bare computer information with the performance information, and uploading the bound bare computer information and the performance information to a first database to complete acquisition of the performance information.
4. A bare metal data collection method according to claim 3, wherein generating bare metal data using the bare metal information, the performance information, and the item information comprises:
acquiring the performance information and the bare metal information from the first database;
determining target item information corresponding to the bare metal information from the pre-collected item information;
generating the bare metal data using the performance information, the bare metal information, and the target item information.
5. A bare metal data collection method according to claim 1, further comprising:
outputting the bare metal data.
6. A bare metal data collection method according to claim 5, wherein the outputting the bare metal data comprises:
uploading the bare metal data to a second database;
if a query instruction is detected, acquiring the bare metal data corresponding to the query instruction from the second database;
responding to the query instruction by utilizing the bare metal data corresponding to the query instruction.
7. A bare metal data collection device, comprising:
the deployment module is used for deploying the bare computer server by using the bare computer information and the image file with the monitoring program; the bare computer information is used for identifying the bare computer server;
the first acquisition module is used for acquiring project information by utilizing a project interface;
the second acquisition module is used for acquiring performance information by using the monitoring program;
a generation module for generating bare metal data using the bare metal information, the performance information, and the item information;
the generating bare metal data using the bare metal information, the performance information, and the item information includes:
filling the performance information, the bare metal information and the project information in a preset data architecture;
updating state information according to filling conditions, and judging whether the state information is a target state or not;
and if the state information is the target state, determining to obtain the bare metal data.
8. A bare metal data collection apparatus comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor for executing the computer program to implement the bare metal data collection method according to any one of claims 1 to 6.
9. A computer readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the bare metal data collection method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010745336.6A CN111880996B (en) | 2020-07-29 | 2020-07-29 | Bare metal data acquisition method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010745336.6A CN111880996B (en) | 2020-07-29 | 2020-07-29 | Bare metal data acquisition method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111880996A CN111880996A (en) | 2020-11-03 |
CN111880996B true CN111880996B (en) | 2023-08-04 |
Family
ID=73201063
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010745336.6A Active CN111880996B (en) | 2020-07-29 | 2020-07-29 | Bare metal data acquisition method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111880996B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112434278B (en) * | 2020-11-20 | 2024-07-02 | 北京浪潮数据技术有限公司 | Bare metal authentication method, device, equipment and medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9032243B2 (en) * | 2010-01-27 | 2015-05-12 | International Business Machines Corporation | Target operating system and file system agnostic bare-metal restore |
CN108829560B (en) * | 2018-06-01 | 2021-09-28 | 平安科技(深圳)有限公司 | Data monitoring method and device, computer equipment and storage medium |
CN110430084A (en) * | 2019-08-20 | 2019-11-08 | 济南浪潮数据技术有限公司 | Node state monitoring method and device |
CN110795158A (en) * | 2019-10-29 | 2020-02-14 | 北京浪潮数据技术有限公司 | Bare computer server management method, system, electronic equipment and storage medium |
-
2020
- 2020-07-29 CN CN202010745336.6A patent/CN111880996B/en active Active
Non-Patent Citations (1)
Title |
---|
裸机备份与恢复技术研究;王德军;王丽娜;郝永芳;;计算机应用研究(12);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111880996A (en) | 2020-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108293081B (en) | Deep linking of program playback to mobile application state through user interface events | |
CN107729227B (en) | Application program test range determining method, system, server and storage medium | |
CN108347532B (en) | Function access method, device, terminal equipment and storage medium | |
EP2660761A1 (en) | Timestamp management method for data synchronization and terminal therefor | |
CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
CN109359020A (en) | Start time test method and device, computer installation and storage medium | |
CN108776587B (en) | Data acquisition method and device, computer equipment and storage medium | |
CN111352836A (en) | Pressure testing method and related device | |
CN109462507B (en) | Configuration updating method, device and system and electronic equipment | |
CN110781149A (en) | Method, device, equipment and storage medium for managing live broadcast room information | |
CN108984339B (en) | Data recovery method and related product | |
CN113778442A (en) | System menu generating method, device, equipment and storage medium | |
CN111880996B (en) | Bare metal data acquisition method, device, equipment and readable storage medium | |
CN116774949B (en) | Method for storing resource package and server | |
CN112948264B (en) | Method and device for executing test task, system, storage medium and electronic device | |
CN109614271A (en) | Control method, device, equipment and the storage medium of multiple company-data consistency | |
CN112044061B (en) | Game picture processing method and device, electronic equipment and storage medium | |
CN113704281A (en) | Data format conversion method and device, storage medium and electronic equipment | |
CN110019262B (en) | Data updating method and device | |
CN113507529B (en) | Method for realizing file downloading based on Web application | |
CN111001157B (en) | Method and device for generating reference information, storage medium and electronic device | |
CN113110846A (en) | Method and device for acquiring environment variable | |
CN111221567A (en) | Program version switching method and device, computer equipment and storage medium | |
CN106934555B (en) | Workflow organization method and device, computer equipment and storage medium | |
CN114185845A (en) | File management method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |