CN111880996A - Bare computer data acquisition method, device, equipment and readable storage medium - Google Patents

Bare computer data acquisition method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111880996A
CN111880996A CN202010745336.6A CN202010745336A CN111880996A CN 111880996 A CN111880996 A CN 111880996A CN 202010745336 A CN202010745336 A CN 202010745336A CN 111880996 A CN111880996 A CN 111880996A
Authority
CN
China
Prior art keywords
information
bare metal
bare
data
project
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010745336.6A
Other languages
Chinese (zh)
Other versions
CN111880996B (en
Inventor
亓洪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data 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 Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202010745336.6A priority Critical patent/CN111880996B/en
Publication of CN111880996A publication Critical patent/CN111880996A/en
Application granted granted Critical
Publication of CN111880996B publication Critical patent/CN111880996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Abstract

The application discloses a bare computer data acquisition method, a bare computer data acquisition device, bare computer data acquisition equipment and a computer readable storage medium, wherein the method comprises the following steps: deploying a bare metal server by using bare metal information and a mirror image file with a monitoring program; acquiring project information by using a project interface; collecting performance information by using a monitoring program; bare metal data is generated by using bare metal information, performance information and project information; the method utilizes bare engine information when deploying the bare engine server, so that the bare engine server obtained by deployment corresponds to the bare engine information; after the project information and the performance information are acquired by the project interface and the monitoring program respectively, the project information and the performance information are not output independently, but bare metal data are generated by the bare metal information, the performance information and the project information together. The performance information, the project information and the bare metal information are integrated to obtain complete bare metal data, and meanwhile, the bare metal data comprise 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

Bare computer data acquisition method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a bare metal data acquisition method, a bare metal data acquisition device, a bare metal data acquisition apparatus, and a computer-readable storage medium.
Background
The bare computer, namely the bare computer server, is a physical computer, is specially designed for running special services, and cannot be interrupted for a long time. It has high stability, durability and reliability. Bare metal 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 server does not have the "noisy neighbor" effect that plagues virtual environments. An important benefit of this isolation is performance predictability. Therefore, the bare metal server has the most stable environment, is very suitable for processing a large amount of data, and is widely used at present. In order to manage and monitor bare computers and know the operating conditions of the bare computers, bare computer data needs to be collected. In the related technology, bare computer data needs to be acquired for multiple times, and the data acquired each time is output independently; and the bare metal data only comprises specific data, does not comprise identification marks or data representing identities, cannot correspond to the specific bare metal server, is not beneficial to the user to check, and is not convenient for the user to manage the bare metal server.
Therefore, how to solve the problem that bare computer data in the related art is not easy for a user to view is a technical problem that needs to be solved by a person skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a bare metal data acquisition method, a bare metal data acquisition device, and a computer readable storage medium, which solve the problem that bare metal data is not easy for a user to view in the related art.
In order to solve the technical problem, the present application provides a bare metal data acquisition method, including:
deploying a bare metal server by using bare metal information and a mirror image file with a monitoring program;
acquiring project information by using 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 project information.
Optionally, the deploying bare metal server using bare metal information and an image file with a monitor program includes:
deploying the bare computer server by using the mirror 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 by using the bare metal information, the performance information, and the project information includes:
filling the performance information, the bare metal information and the project information in a preset data architecture;
updating state information according to the filling condition, and judging whether the state information is in 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 metal information and the performance information and uploading the information to a first database to finish the acquisition of the performance information.
Optionally, the generating bare metal data by using the bare metal information, the performance information, and the project information includes:
acquiring the performance information and the bare metal information from the first database;
determining target project information corresponding to the bare metal information from the project information which is acquired in advance;
and generating the bare metal data by using the performance information, the bare metal information and the target project information.
Optionally, the method further comprises:
and outputting the bare metal data.
Optionally, the outputting the bare metal data includes:
uploading the bare metal data to a second database;
if a query instruction is detected, acquiring bare machine data corresponding to the query instruction from the second database;
and responding the inquiry instruction by using the bare metal data corresponding to the inquiry instruction.
The application also provides a bare metal data acquisition device, including:
the deployment module is used for deploying the bare computer server by utilizing the bare computer information and the mirror image file with the monitoring program;
the first acquisition module is used for acquiring project information by using the project interface;
the second acquisition module is used for acquiring performance information by using the monitoring program;
and the generating module is used for generating bare metal data by utilizing the bare metal information, the performance information and the project information.
The application also provides bare metal data acquisition equipment, which comprises 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 present application further provides 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 described above.
The bare metal data acquisition method provided by the application deploys a bare metal server by using bare metal information and a mirror image file with a monitoring program; acquiring project information by using a project interface; collecting performance information by using a monitoring program; bare metal data is generated by using the bare metal information, the performance information and the project information.
Therefore, the bare metal information is utilized when the bare metal server is deployed, and the bare metal server obtained through deployment corresponds to the bare metal information. After the project information and the performance information are acquired by the project interface and the monitoring program respectively, the project information and the performance information are not output independently, but bare metal data are generated by the bare metal information, the performance information and the project information together. The performance information, the project information and the bare metal information are integrated to obtain complete bare metal data, and meanwhile, the bare metal data comprise bare metal information, so that the bare metal information and the bare metal server are 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, the bare metal data acquisition equipment and the computer readable storage medium also have the 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 needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a bare metal data acquisition method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a bare metal data acquisition system according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a bare metal data acquisition device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of bare metal data acquisition equipment according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in 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 obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In a possible implementation manner, please refer to fig. 1, and fig. 1 is a flowchart of a bare metal data acquisition method according to an embodiment of the present disclosure. The method comprises the following steps:
s101: and deploying the bare metal server by using the bare metal information and the image file with the monitoring program.
Some or all of the steps in this embodiment may be performed by a single server or computer, or may be performed collectively by a plurality of servers, computers, and other electronic devices. Since bare metal servers are generally used in a cloud computing environment, it should be clear to those skilled in the art that cloud hosts and other electronic devices exist in the cloud computing environment, and any one or several electronic devices or cloud hosts, or a combination of electronic devices and cloud hosts, may be used to execute the steps of the bare metal data collection method provided by the embodiment of the present invention.
In order to mark the data acquired by the monitoring program, the acquired bare metal data can be relatively easily matched with a bare metal server, and a user can conveniently check the data; or when the bare metal data is obtained in batches or continuously for multiple times, each bare metal data corresponds to the bare metal server, so that confusion is avoided. Bare metal information is used for identifying a bare metal server, namely for representing the identity of the bare metal server. It should be noted that the embodiment does not limit 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 metal server; or may be the unique name of the bare metal server. It will be apparent to those skilled in the art that the content of the bare metal information corresponding to each bare metal server should be different in order to perform the identification function.
The monitoring program, which may be referred to as a monitoring agent or a collection agent, is used to collect performance information of the bare metal server, and the performance information is used to construct bare metal information. The monitoring program is utilized to collect the performance information, so that occupation of a computing module interface can be avoided, and excessive occupation can cause excessive pressure on the server because the computing module interface is a core service interface. The mode of acquiring the performance data by adopting the monitoring program can not cause pressure on the server due to occupation of the interface of the computing module. In order to collect performance data by using the monitoring program, the monitoring program can be packaged into a mirror image to obtain a mirror image file with the monitoring program. The bare metal information and the image file with the monitoring program are used for deploying the bare metal server, so that the bare metal information and the performance information can be obtained when bare metal data are generated, and a user can check the bare metal data conveniently.
Specifically, in order to improve the data collection efficiency, the performance information may be bound with bare metal information when being collected. The S101 step may include:
step 11: and deploying the bare computer server by using the mirror 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 collecting the performance information, 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 and writing the bare engine information into the configuration file, so that the performance information and the bare engine information can be bound when the monitoring program collects the performance information, and the performance information bound with the bare engine information is obtained. The bare metal information and the performance information do not need to be bound separately in the follow-up process.
S102: and acquiring project information by using the project interface.
The project information is used for indicating what projects are deployed on the bare metal server, namely, for recording the projects corresponding to the bare metal server. The project information may specifically include one or more items of data such as a project ID, a project user ID, a project name, a project user name, and a project status. The project information can be specifically acquired through the project interface, and the specific acquisition mode and process thereof can refer to the related technology, which is not described herein again. It should be noted that, in the following description,
the embodiment does not limit the specific acquisition timing of the item information, and for example, the item information may be acquired according to a preset period, or may be acquired in real time. Since the project information is not identical to the performance information, generally, the project information is not changed after the determination, or the change frequency is low. Therefore, in this embodiment, when the item information is acquired according to the preset period, or when the item information is acquired when the acquisition instruction is detected, the length of the preset period may be larger, and the detection frequency of the acquisition instruction may be lower. The acquired project information can be stored each time, and the pre-acquired project information is called when bare metal data is generated subsequently. For example, a corresponding relationship between the project information and bare metal information may be set, and when bare metal data is acquired, the corresponding project information is determined according to the bare metal information, and the corresponding project information is selected from the pre-collected project information.
It should be noted that, the related art does not have bare metal information for representing the identity of the bare metal server. Therefore, project information cannot be pre-collected and stored and then output later. If the project information is pre-collected, it is not possible to determine which project information the bare metal server corresponds to when output is required, and therefore it is also not possible to determine which project information should be output. The related art needs to frequently acquire and output item information. The bare computer server has bare computer information used for representing the identity of the bare computer server, and project information needing to be output can be determined by matching the corresponding relation between the bare computer information and the project information. Therefore, the acquisition frequency of the project information can be reduced, and the waste of computing 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 metal server, and specifically may include one or more items of data such as CPU utilization, memory utilization, system disk utilization, IP address, state, and the like. The specific manner and process of collecting the performance information by the monitoring program are not limited, and the related technology can be referred to. The performance information may be acquired in real time or may be acquired according to a preset period. Since the performance information represents the operation of the bare metal server, the performance information changes with time as the bare metal server operates. In order to obtain accurate performance information and avoid resource waste, it is preferable in this embodiment that the performance information may be obtained when the obtaining instruction is detected.
In one possible embodiment, the performance information is not necessarily collected for generating bare metal data, and may be used for generating bare metal data, or for other purposes, such as recording the operation condition of a bare metal server. At this time, the S103 step may include:
step 21: performance information is obtained using a monitor.
Step 22: and binding bare machine information and performance information and uploading the information to a first database to finish the acquisition of the performance information.
After the performance information is acquired by using the monitoring information, the bare metal information and the performance information are bound, and the bare metal information and the performance information are uploaded to a first database after the binding, so that the performance information can be acquired. The bound bare metal information and the 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 actual conditions, and the information in the first database can be utilized when the bare metal data needs to be generated; and other work is not influenced, and the bare metal data can be stored in the first database for other threads or function calls when the bare metal data does not need to be generated.
S104: bare metal data is generated by using the bare metal information, the performance information and the project information.
After bare metal information, performance information, and project information are obtained, bare metal data can be generated using the bare metal information, performance information, and project information. 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 architecture or a preset data model structure to obtain corresponding bare computer data. The embodiment does not limit the specific format of the bare metal data, and may be an array, or any other possible data structure. Because the bare computer data comprises the performance information and the project information, the integration of the information is realized; meanwhile, bare metal data comprises bare metal information, and a user can correspond the bare metal data to the bare metal server one by one through the bare metal information, so that the bare metal data is convenient for the user to check and the bare metal server is convenient for the user to manage.
In a possible implementation manner, in order to facilitate uniform management of bare metal data and convenient viewing by a user, better flexibility and extensibility are provided, and a preset data architecture can be used for specifying a format of bare metal data. The S104 step may include:
step 31: and filling performance information, bare engine 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 in a target state.
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 specifically comprises a bare metal information part, an item information part, a performance information part and a state information part. The state information is used for judging whether the bare metal data is generated completely, and the content of the bare metal data can be two or more items, wherein the content comprises a target state. The state information is updated along with the filling condition of the three information, and whether the state information is the target state is judged after each updating. 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, it indicates that the information is not completely filled. With the information filling, after the performance information, bare engine information and project information are all filled, the state information can be updated to 1, namely the target state, and then bare engine data can be determined to be obtained.
The present embodiment does not limit the acquisition sources of the performance information, bare metal information, and project information, and may be information acquired in real time, for example. In step S102, it is stated that the item information may be pre-collected information; it is illustrated in step S103 that the obtained performance information may be stored in the first database after binding the bare metal information. Therefore, in one embodiment, based on the above two embodiments, the step S104 may include:
step 41: and acquiring the performance information and bare metal information from the first database.
Step 42: and determining target project information corresponding to bare metal information from the pre-collected project information.
Step 43: bare metal data is generated by using the performance information, the bare metal information and the target project information.
When bare metal data needs to be generated, for example, when a bare metal information generation instruction is detected or when a bare metal data generation period is reached, the performance information and the bare metal information can be acquired from the first database. Meanwhile, target project information corresponding to bare metal information is determined in the pre-collected project information. After the target project information is determined, bare metal data is generated by using the performance information, bare metal information and the target project information. It should be noted that step 43 may include step 31 to step 33, and the difference is that the item information is the target item information.
After the bare metal data is obtained, the bare metal data can be stored or can be output. In one embodiment, after generating the bare metal data, the method may further include:
step 51: and outputting the bare metal data.
Specifically, the present embodiment does not limit the specific way of output, and for example, the output may be output to a preset path; or can be visually output, namely output to a display device; or may be output to other devices or terminals, for example, for transmission to a target device over a network.
Based on the above embodiment, in another embodiment, bare metal data may not be output actively, but may be responded with bare metal data when a query instruction is detected. Specifically, step 51 may include:
step 61: and uploading bare metal data to a second database.
Step 62: and if the query instruction is detected, acquiring bare metal data corresponding to the query instruction from the second database.
And step 63: and responding to the query instruction by using bare metal data corresponding to the query instruction.
And after the bare metal data is obtained, the bare metal data can be loaded to a second database, and when an inquiry instruction is detected, the bare metal data corresponding to the inquiry instruction in the second database is used for responding to the inquiry instruction. The user can obtain bare computer data by sending the query instruction, and 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 bare metal server obtained by deployment corresponds to the bare metal information. After the project information and the performance information are acquired by the project interface and the monitoring program respectively, the project information and the performance information are not output independently, but bare metal data are generated by the bare metal information, the performance information and the project information together. The performance information, the project information and the bare metal information are integrated to obtain complete bare metal data, and meanwhile, the bare metal data comprise bare metal information, so that the bare metal information and the bare metal server are 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 describe several steps in the above embodiments. Referring to fig. 2, fig. 2 is a schematic structural diagram of a bare metal data acquisition system according to an embodiment of the present disclosure. The system comprises a data acquisition module, an acquisition middleware, a storage DB, a time sequence DB and a plurality of acquisition agents.
Firstly, packaging a monitoring Agent program into a mirror image in a mode of customizing the mirror image, and secondly, injecting a unique ID (namely the ID of the bare computer) of the bare computer into a configuration file of the mirror image monitoring Agent through a ConfigDriver when the system of the bare computer is deployed, so that after the system is deployed and started, the monitoring Agent reads the unique ID and actively reports performance data information. The collection Agent actively uploads the bare metal ID (i.e., bare metal information) and performance information to the timing database (i.e., the first database). The collection middleware is used for maintaining a bare metal resource ID list (for example, the corresponding relation between bare metal information and project information is included), carrying out data model instance initialization on bare metal resources (namely, bare metal data is generated by using a preset data architecture), and being responsible for issuing the data filling process of the project information slot position and the performance information slot position of each bare metal data model instance to the collection data module in the form of task interface calling respectively and waiting for a task execution result. The data acquisition module provides interfaces for filling different types of data and feeds back the result to a calling party (namely a 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 engine ID through reading the time sequence database, data assembly is carried out according to the bare engine ID, the result is fed back to the acquisition middleware after the data assembly is finished, and the performance information slot of the data model is filled with the content and the state is modified to be finished (namely, the state information is updated) after the data assembly is finished. And the project information interface is also used for reading the cloud platform project information in a similar mode, acquiring the required data, feeding back the result after the acquisition is finished, and filling the data into the project information slot of the bare metal model example by the acquisition middleware and modifying the state to be finished. And only when the bare metal data model instance is finished in both performance and the states of the project and the slots, the state modification is finished, and the model instance is put into a storage database (namely a second database) for other external services to access and expose.
In the following, the bare metal data acquisition device provided in the embodiment of the present application is introduced, 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 acquisition device according to an embodiment of the present application, including:
a deployment module 110, configured to deploy a bare metal server by using bare metal information and an image file with a monitoring program;
a first obtaining module 120, configured to obtain project information by using a project interface;
a second obtaining module 130, configured to collect performance information by using the monitoring program;
and a generating module 140, configured to generate bare metal data by using the bare metal information, the performance information, and the project information.
Optionally, the deployment module 110 includes:
the configuration file generation unit is used for deploying the bare computer server by using 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 the performance information, the bare engine information and the project information in the 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 in a target state or not;
and the determining unit is used for determining to obtain the bare metal data if the state information is the target state.
Optionally, the second obtaining module 130 includes:
an acquisition unit configured to acquire performance information using a monitoring program;
and the first uploading unit is used for binding the bare metal information and the performance information and then uploading the information to the first database to finish the acquisition of the performance information.
Optionally, the generating module 140 includes:
the first reading unit is used for acquiring the performance information and the bare metal information from the first database;
the second reading unit is used for determining target project information corresponding to bare engine information from the pre-collected project information;
and the generating unit is used for generating bare metal data by utilizing the performance information, the bare metal information and the target project information.
Optionally, the method further comprises:
and the output module is used for outputting the bare metal data.
Optionally, the output module comprises:
the second uploading unit is used for uploading bare metal data to a second database;
the screening unit is used for acquiring bare computer data corresponding to the query instruction from the second database if the query instruction is detected;
and the response unit is used for responding the query instruction by using the bare metal data corresponding to the query instruction.
In the following, the bare metal data acquisition device provided in the embodiment of the present application is introduced, 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 acquisition device according to an embodiment of the present disclosure. Wherein the bare metal data acquisition 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.
The processor 101 is configured to control the overall operation of the bare metal data acquisition device 100, so as to complete all or part of the steps in the bare metal data acquisition method; memory 102 is used to store various types of data to support operation at bare metal data collection device 100, which may include, for example, instructions for any application or method operating on bare metal data collection device 100, as well as application-related data. The Memory 102 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as one or more of Static Random Access Memory (SRAM), Electrically erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), 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 and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 102 or transmitted through the communication component 105. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, such as 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 (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 105 may include: Wi-Fi part, Bluetooth part, NFC part.
The bare metal data collecting apparatus 100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, and is configured to perform the bare metal data collecting method according to the above embodiments.
In the following, a computer-readable storage medium provided in an embodiment of the present application is introduced, and the computer-readable storage medium described below and the bare metal data acquisition method described above may be referred to correspondingly.
The present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the bare metal data acquisition method.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components 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 components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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 implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present 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. A software module may reside 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 should also be noted that, herein, relationships such as first and second, etc., are intended only 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. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes 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 principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A bare metal data acquisition method is characterized by comprising the following steps:
deploying a bare metal server by using bare metal information and a mirror image file with a monitoring program;
acquiring project information by using 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 project information.
2. The bare metal data acquisition method according to claim 1, wherein the deploying bare metal server using bare metal information and an image file with a monitor program comprises:
deploying the bare computer server by using the mirror image file, and generating a configuration file corresponding to the monitoring program;
and writing the bare metal information into the configuration file.
3. The bare metal data acquisition method according to claim 1, wherein the generating bare metal data using the bare metal information, the performance information, and the project information comprises:
filling the performance information, the bare metal information and the project information in a preset data architecture;
updating state information according to the filling condition, and judging whether the state information is in a target state or not;
and if the state information is the target state, determining to obtain the bare metal data.
4. The bare metal data collection method according to claim 1, wherein collecting performance information using the monitor program comprises:
acquiring the performance information by using the monitoring program;
and binding the bare metal information and the performance information and uploading the information to a first database to finish the acquisition of the performance information.
5. The bare metal data acquisition method according to claim 4, wherein the generating bare metal data using the bare metal information, the performance information and the project information comprises:
acquiring the performance information and the bare metal information from the first database;
determining target project information corresponding to the bare metal information from the project information which is acquired in advance;
and generating the bare metal data by using the performance information, the bare metal information and the target project information.
6. The bare metal data collection method according to claim 1, further comprising:
and outputting the bare metal data.
7. The bare metal data collection method according to claim 6, wherein the outputting the bare metal data comprises:
uploading the bare metal data to a second database;
if a query instruction is detected, acquiring bare machine data corresponding to the query instruction from the second database;
and responding the inquiry instruction by using the bare metal data corresponding to the inquiry instruction.
8. A bare metal data acquisition device, comprising:
the deployment module is used for deploying the bare computer server by utilizing the bare computer information and the mirror image file with the monitoring program;
the first acquisition module is used for acquiring project information by using the project interface;
the second acquisition module is used for acquiring performance information by using the monitoring program;
and the generating module is used for generating bare metal data by utilizing the bare metal information, the performance information and the project information.
9. A bare metal data acquisition device 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 acquisition method according to any one of claims 1 to 7.
10. 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 of any of claims 1 to 7.
CN202010745336.6A 2020-07-29 2020-07-29 Bare metal data acquisition method, device, equipment and readable storage medium Active CN111880996B (en)

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 true CN111880996A (en) 2020-11-03
CN111880996B 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)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110185223A1 (en) * 2010-01-27 2011-07-28 International Business Machines Corporation Target Operating System and File System Agnostic Bare-Metal Restore
CN108829560A (en) * 2018-06-01 2018-11-16 平安科技(深圳)有限公司 Data monitoring method, 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110185223A1 (en) * 2010-01-27 2011-07-28 International Business Machines Corporation Target Operating System and File System Agnostic Bare-Metal Restore
CN108829560A (en) * 2018-06-01 2018-11-16 平安科技(深圳)有限公司 Data monitoring method, 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王德军;王丽娜;郝永芳;: "裸机备份与恢复技术研究", 计算机应用研究, no. 12 *

Also Published As

Publication number Publication date
CN111880996B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
US10705942B1 (en) Simulated testing of API
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
WO2017050146A1 (en) Loading method and device for terminal application (app)
CN112965700B (en) Routing-based micro-service processing method and device, computer equipment and medium
CN105868105A (en) Application traversal testing method and device, and mobile terminal
CN109800135B (en) Information processing method and terminal
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CA2928458A1 (en) User support experience with automatically generated virtual environment
CN113365106B (en) Multimedia resource generation method and device, electronic equipment and storage medium
US9535666B2 (en) Dynamic agent delivery
CN110582750A (en) system and method for task scheduling and device management
CN107276842B (en) Interface test method and device and electronic equipment
CN109408375A (en) The generation method and device of interface document
CN113672441B (en) Method and device for testing intelligent equipment
CN113778442A (en) System menu generating method, device, equipment and storage medium
CN112463634A (en) Software testing method and device under micro-service architecture
CN108459949B (en) Test method and terminal
CN111984259A (en) Interface creating method, device, equipment and storage medium
CN107102937B (en) User interface testing method and device
CN106294345A (en) The treating method and apparatus of the log content of application program
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
CN112306471A (en) Task scheduling method and device
US10169216B2 (en) Simulating sensors
CN111290751A (en) Special effect generation method, device, system, equipment and storage medium
CN111880996A (en) Bare computer data acquisition method, device, equipment and readable 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