CN116567077A - Bare metal instruction sending method, device, equipment and storage medium - Google Patents

Bare metal instruction sending method, device, equipment and storage medium Download PDF

Info

Publication number
CN116567077A
CN116567077A CN202310678016.7A CN202310678016A CN116567077A CN 116567077 A CN116567077 A CN 116567077A CN 202310678016 A CN202310678016 A CN 202310678016A CN 116567077 A CN116567077 A CN 116567077A
Authority
CN
China
Prior art keywords
bare metal
parameter data
node
request
thread pool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310678016.7A
Other languages
Chinese (zh)
Inventor
李梦超
杨凯
王磊
张大朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202310678016.7A priority Critical patent/CN116567077A/en
Publication of CN116567077A publication Critical patent/CN116567077A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a bare metal instruction sending method, a bare metal instruction sending device, bare metal instruction sending equipment and a bare metal instruction storage medium. The method is applied to the bare metal service management node and comprises the following steps: acquiring a bare metal operation request; the bare metal operation request includes node information of a bare metal node; according to the node information, establishing communication connection with the bare metal node to obtain a communication connection establishment result; if the communication connection establishment result meets the preset proxy service transmission condition, generating request parameter data according to the bare metal operation request; and sending the parameter data to at least one proxy service device, so that the proxy service device generates an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data, and sending the IPMI instruction to the bare metal node. The technical scheme of the embodiment of the invention realizes the normal transmission of data and instructions between the nodes under the condition that the bare metal node and the bare metal service management node cannot be directly connected in a communication way.

Description

Bare metal instruction sending method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for sending a bare metal instruction.
Background
The bare metal management service is typically a service platform, system or server for managing bare metal, and in a conventional deployment manner, the server of the bare metal management service is capable of directly establishing a communication connection with the bare metal server. However, considering the reality factors, there may be reasons such as network planning and network security, which cause that the bare metal management service cannot directly communicate with the server to which the bare metal belongs, and thus normal instruction or data transmission cannot be performed between the bare metal management service and the bare metal server.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for sending a bare metal instruction, which are used for realizing normal transmission of data and instructions between nodes under the condition that the bare metal node and a bare metal service management node cannot be connected in a normal communication manner.
According to an aspect of the present invention, there is provided a bare metal instruction sending method applied to a bare metal service management node, the method comprising:
acquiring a bare metal operation request; the bare metal operation request comprises node information of a bare metal node;
according to the node information, establishing communication connection with the bare metal node to obtain a communication connection establishment result;
If the communication connection establishment result meets a preset proxy service transmission condition, generating request parameter data according to the bare metal operation request;
and sending the request parameter data to at least one proxy service device, so that the proxy service device generates an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data, and sending the IPMI instruction to the bare metal node.
Optionally, the obtaining the request parameter data sent by the bare metal service management node, and generating the IPMI instruction according to the request parameter data includes:
acquiring request parameter data sent by a bare metal service management node through a message processing thread pool, and acquiring a second thread pool specification of the parameter processing thread pool;
determining a second parameter data allocation strategy according to the data quantity of the request parameter data and the second thread pool specification;
according to the second parameter data distribution strategy, the request parameter data is sent to the parameter processing thread pool;
and generating an IPMI instruction according to the request parameter data by the parameter processing thread pool.
According to the technical scheme, the allocation strategy is generated according to the first thread pool specification and the request parameter data quantity corresponding to different proxy service devices, and the request parameter data is issued based on the allocation strategy, so that the issuing efficiency of the request parameter data is improved, meanwhile, the occurrence of data issuing blocking caused by the existence of a large amount of request parameter data is avoided, the parameter data is issued through the generated data allocation strategy, and the flexibility of issuing the parameter data is improved.
According to an aspect of the present invention, there is provided a bare metal instruction transmission method applied to a proxy service device, the method including:
acquiring request parameter data sent by a bare metal service management node, and generating an IPMI instruction according to the request parameter data; the request parameter data is obtained by the bare metal management service node according to the node information of the bare metal node in the obtained bare metal operation request, establishing communication connection with the bare metal node to obtain a communication connection establishment result, and generating according to the bare metal operation request when the communication connection establishment result meets a preset proxy service transmission condition;
and sending the IPMI instruction to the bare metal node.
According to the technical scheme, when the communication connection establishment result between the agent service equipment and the bare metal node meets the proxy service transmission condition, the generated request parameter data is sent to the proxy service equipment for processing, and the proxy service equipment generates the IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node, so that the normal transmission of data and instructions between the nodes is realized under the condition that normal communication connection between the bare metal node and the bare metal service management node cannot be realized.
Optionally, the obtaining the request parameter data sent by the bare metal service management node, and generating the IPMI instruction according to the request parameter data includes:
acquiring request parameter data sent by a bare metal service management node through a message processing thread pool, and acquiring a second thread pool specification of the parameter processing thread pool;
determining a second parameter data allocation strategy according to the data quantity of the request parameter data and the second thread pool specification;
according to the second parameter data distribution strategy, the request parameter data is sent to the parameter processing thread pool;
and generating an IPMI instruction according to the request parameter data by the parameter processing thread pool.
According to the technical scheme, the corresponding allocation strategy is generated according to the acquired data volume of the request parameter data and the second thread pool specification, and the request parameter data is issued based on the corresponding allocation strategy, so that the issuing efficiency of the proxy service equipment for issuing the request parameter data is improved, meanwhile, the occurrence of data issuing blocking caused when a large amount of request parameter data exists is avoided, the parameter data is issued by generating the corresponding allocation strategy, and the flexibility of issuing the parameter data is improved.
Optionally, the updating manner of the first thread pool specification of the message processing thread pool and the second thread pool specification of the parameter processing thread pool is as follows:
acquiring current proxy parameter data of the proxy service equipment in a current period;
inputting the current agent parameter data into a specification updating network model obtained by training in advance to obtain a model output result output by the specification updating network model; the specification updating network model is obtained based on historical proxy parameter data training of the proxy service equipment in a historical period;
and updating the first thread pool specification and the second thread pool specification by adopting the model output result.
According to the technical scheme, the current proxy parameter data is input into the specification updating network model obtained through pre-training, the model output result output by the specification updating network model is obtained, and the first thread pool specification and the second thread pool specification are updated by adopting the model output result, so that the dynamic updating of the first thread pool specification and the second thread pool specification is realized, the equipment performance of the proxy service equipment is continuously optimized, and the data processing capacity and the data processing efficiency of the request parameter data are continuously improved.
Optionally, the training manner of the specification updating network model is as follows:
acquiring historical proxy parameter data of the proxy service equipment in a historical period; the historical proxy parameter data comprises historical input parameter data and historical output parameter data;
the historical proxy parameter data is used as a sample training set and is input into a preset neural network model to carry out model training, and the specification updating network model is obtained;
wherein the neural network model comprises an hidden layer; the number of hidden neurons in the hidden layer is determined based on the input data amount of the historical input parameter data and the output parameter data amount of the historical output parameter data.
According to the technical scheme, the historical proxy parameter data is used as the sample training set and is input into the preset neural network model for model training, so that the specification updating network model is obtained, and the training accuracy of the specification updating network model is improved; the method adopts the mode of determining the number of the hidden neurons in the neural network model by adopting the input data quantity of the historical input parameter data and the output data quantity of the historical output parameter data, thereby realizing the accurate setting of the neural network model, improving the model training accuracy and further improving the determining accuracy of the thread pool specification.
According to another aspect of the present invention, there is provided a bare metal instruction transmission apparatus configured at a bare metal service management node, including:
the operation request acquisition module is used for acquiring a bare metal operation request; the bare metal operation request comprises node information of a bare metal node;
the connection result determining module is used for establishing communication connection with the bare metal node according to the node information to obtain a communication connection establishment result;
the parameter data generation module is used for generating request parameter data according to the bare metal operation request if the communication connection establishment result meets the preset proxy service transmission condition;
and the parameter data sending module is used for sending the request parameter data to at least one proxy service device, so that the proxy service device generates an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data and sends the IPMI instruction to the bare metal node.
According to another aspect of the present invention, there is provided a bare metal instruction transmission apparatus configured to a proxy service device, including:
the instruction generation module is used for acquiring request parameter data sent by the bare metal service management node and generating an IPMI instruction according to the request parameter data; the request parameter data is obtained by the bare metal management service node according to the node information of the bare metal node in the obtained bare metal operation request, establishing communication connection with the bare metal node to obtain a communication connection establishment result, and generating according to the bare metal operation request when the communication connection establishment result meets a preset proxy service transmission condition;
And the instruction sending module is used for sending the IPMI instruction to the bare metal node.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the bare metal instruction transmission method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the bare metal instruction transmission method according to any of the embodiments of the present invention when executed.
According to the technical scheme, communication connection between the bare metal node and the bare metal node is established according to the node information in the obtained bare metal operation request, and a communication connection establishment result is obtained; if the communication connection establishment result meets the preset proxy service transmission condition, generating request parameter data according to the bare metal operation request; and sending the request parameter data to at least one proxy service device, so that the proxy service device generates an IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node. According to the technical scheme, when the communication connection establishment result between the agent service equipment and the bare metal node meets the proxy service transmission condition, the generated request parameter data is sent to the proxy service equipment for processing, and the proxy service equipment generates the IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node, so that normal transmission of data and instructions between the nodes is realized under the condition that direct communication connection between the bare metal node and the bare metal service management node is not possible.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a bare metal instruction transmission method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a bare metal command transmission method according to a second embodiment of the invention;
FIG. 3 is a flow chart of a bare metal command transmission method according to a third embodiment of the invention;
fig. 4 is a flowchart of a bare metal instruction transmission method according to a fourth embodiment of the present invention;
fig. 5 is an interactive schematic diagram of a bare metal command transmission method according to a fifth embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a bare metal command transmission device according to a sixth embodiment of the invention;
fig. 7 is a schematic structural diagram of a bare metal command transmission device according to a seventh embodiment of the invention;
fig. 8 is a schematic structural diagram of an electronic device implementing a bare metal command transmission method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a bare metal command sending method provided in an embodiment of the present invention, where the embodiment is applicable to a case where a bare metal service management node normally sends data and commands to a bare metal node, the method may be performed by a bare metal command sending device, the bare metal command sending device may be implemented in a form of hardware and/or software, and the bare metal command sending device may be configured in the bare metal service management node. As shown in fig. 1, the method includes:
s110, acquiring a bare metal operation request; the bare metal operation request includes node information of a bare metal node.
Wherein the bare metal operation request may be a series of HTTP (Hyper Text Transfer Protocol ) requests for operating the bare metal. For example, the bare metal operation request may be a bare metal power operation request or the like.
The node information may include node address information, node account information, node identification information, and the like of the bare metal node. The node information of the bare metal node can be specifically obtained by carrying out request analysis on a bare metal operation request.
The bare metal service management node may be a server node such as a platform or a system for managing the bare metal node. For example, the bare metal service management node may be an Ironic service node in the OpenStack open source cloud computing management platform project.
The method includes the steps of monitoring a bare metal operation http request sent by the outside, and when the bare metal operation http request is monitored, analyzing the request of the http request to obtain a request analysis result, specifically, analyzing the request by adopting an existing request analysis mode, which is not limited in this embodiment. The bare metal service management node obtains node information of the bare metal node from the request analysis result, and may include node address information, node identification information, node account information, and the like, for example.
And S120, establishing communication connection with the bare metal node according to the node information to obtain a communication connection establishment result.
The node information may include node address information and node identification information of a bare metal node corresponding to the bare metal operation request, so that the bare metal node requesting the operation may be determined by the node address information and the node identification information in the node information.
The bare metal service management node may determine, according to the node identification information in the node information, a bare metal node requesting operation, and according to the node address information in the node information, establish a communication connection with the bare metal node requesting operation, to obtain a communication connection establishment result. The communication connection establishment result may include success of communication connection establishment and failure of communication connection establishment.
S130, if the communication connection establishment result meets the preset proxy service transmission condition, generating request parameter data according to the bare metal operation request.
The proxy service transmission condition may be preset by a related technician, for example, the proxy service transmission condition may be that the communication connection establishment between the bare metal service management node and the bare metal node fails.
It should be noted that, in a real scenario, there may be a case where the bare metal service management node and the bare metal node cannot normally establish communication connection due to reasons such as network planning or network security. Therefore, the transmission of data or instructions between the bare metal service management node and the bare metal node can be realized through the third party proxy service.
For example, if the communication connection establishment result meets the preset proxy service transmission condition, that is, the communication connection establishment between the bare metal service management node and the bare metal node fails, the bare metal service management node generates request parameter data according to the bare metal operation request; if the communication connection establishment result does not meet the preset proxy service transmission condition, that is, the communication connection establishment between the bare metal service management node and the bare metal node is successful, the bare metal service management node can directly generate an IPMI (Intelligent Platform Management Interface ) instruction according to the bare metal operation request, and send the IPMI instruction to the bare metal node.
The request parameter data can be obtained by analyzing a bare metal operation request. For example, the request parameter data may include bare metal drive data, IPMI command parameter data, and the like; the bare metal driving data may further include node addresses, node ports, node account data, and the like of the bare metal nodes.
Alternatively, the path profile may be generated in advance and stored into the bare metal service management node. The path configuration file is configured with the issued path information of the instruction or the data, wherein the path information can comprise the path information of the bare metal node and the path information of the proxy service equipment. The issuing mode of the instruction or the data can be determined according to the path information existing in the configuration file.
Specifically, under the condition that the bare metal service management node and the bare metal node can normally perform communication connection, a path configuration file stored in advance by the node itself can be obtained, and a command or data issuing mode is selected according to path information in the configuration file. If the configuration file has only the path information of the proxy service equipment, issuing request parameter data based on the path information of the proxy service equipment; if the configuration file has the path information of the bare metal node and only has the path information of the bare metal node, issuing an IPMI instruction based on the path information of the bare metal node; if the path information of the proxy service device and the bare metal node exist in the configuration file at the same time, the issuing mode of the instruction or the data can be determined according to the priority corresponding to the corresponding path information. The priority of the path information may be preset in the path configuration file by a related technician.
S140, the request parameter data is sent to at least one proxy service device, so that the proxy service device generates an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data, and the IPMI instruction is sent to the bare metal node.
The agent service equipment, the bare metal service management node and the bare metal node can be successfully connected with each other.
It should be noted that, in the same time, the bare metal service management node may acquire a large amount of bare metal operation requests, which correspondingly generates a large amount of request parameter data. Therefore, the number of the devices of the proxy service device can be at least one, and when the data volume of the request parameter data is large, the plurality of proxy service devices process the request parameter data at the same time, so that the data processing efficiency can be improved. It should be noted that the same request is handled by one proxy service device only, and when there are a large number of requests, different proxy service devices may handle different requests at the same time.
The bare metal service management node sends the request parameter data to at least one proxy service device, specifically, the request parameter data is sent to each proxy service device in a polling mode. Aiming at any proxy service equipment, after receiving request parameter data, generating an IPMI instruction according to the request parameter data, specifically, performing data splicing on the request parameter according to an IPMI instruction generation rule to obtain the IPMI instruction; and the proxy service equipment sends the generated IPMI instruction to the bare metal node.
According to the technical scheme, communication connection between the bare metal node and the bare metal node is established according to the node information in the obtained bare metal operation request, and a communication connection establishment result is obtained; if the communication connection establishment result meets the preset proxy service transmission condition, generating request parameter data according to the bare metal operation request; and sending the request parameter data to at least one proxy service device, so that the proxy service device generates an IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node. According to the technical scheme, when the communication connection establishment result between the agent service equipment and the bare metal node meets the proxy service transmission condition, the generated request parameter data is sent to the proxy service equipment for processing, and the proxy service equipment generates the IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node, so that normal transmission of data and instructions between the nodes is realized under the condition that direct communication connection between the bare metal node and the bare metal service management node is not possible.
Example two
Fig. 2 is a flowchart of a bare metal command sending method according to a second embodiment of the present invention, where the present embodiment is optimized and improved based on the above technical solutions.
Further, the step of sending the request parameter data to at least one proxy service device is performed to obtain a first thread pool specification of a message processing thread pool corresponding to each proxy service device; determining a first parameter data allocation strategy according to the specification of each first thread and the data quantity of the request parameter data; and sending the request parameter data to each proxy service device according to the first parameter data distribution strategy. To perfect the transmission mode of the request parameter data to each proxy service device. In the embodiments of the present invention, the descriptions of other embodiments may be referred to in the portions not described in detail.
As shown in fig. 2, the method comprises the following specific steps:
s210, acquiring a bare metal operation request; the bare metal operation request includes node information of a bare metal node.
S220, establishing communication connection with the bare metal node according to the node information, and obtaining a communication connection establishment result.
S230, if the communication connection establishment result meets the preset proxy service transmission condition, request parameter data are generated according to the bare metal operation request.
S240, obtaining a first thread pool specification of the message processing thread pool corresponding to each proxy service device.
The message processing thread pool is used for receiving request parameter data sent by the bare metal service management node; the first thread pool rule may be a thread pool size of the message processing thread pool for characterizing a data amount or a number of requests of request parameter data that the message processing thread pool is capable of processing.
The first thread pool specifications of the message processing thread pools corresponding to the proxy service devices may be the same or different, and may be specifically preset by related technicians.
It can be understood that the bare metal service management node obtains the first thread pool specification of the message processing thread pool of each proxy service device, which has the effect of reasonably distributing request parameter data to each proxy service device subsequently, thereby avoiding data blocking.
S250, determining a first parameter data distribution strategy according to the specification of each first thread pool and the data quantity of the request parameter data.
The first parameter data allocation policy may be a distribution policy of a data size of the request parameter data that needs to be distributed to each proxy server device by the bare metal service management node.
Request parameter data of an amount matched with the data amount which can be processed by the message processing thread pool can be sent to the corresponding proxy service device according to the first thread pool specification of each proxy service device.
For example, if there are a proxy service device a, a proxy service device B, and a proxy service device C, it may be determined that the proxy service device a is capable of processing 30 pieces of data according to a first thread pool specification of a message processing thread pool of the proxy service device a; determining that the proxy service device B can process 50 pieces of data according to the first thread pool specification of the message processing thread pool of the proxy service device B; the proxy service device C may be determined to be capable of processing 60 pieces of data based on the first thread pool specification of the message processing thread pool of the proxy service device C. Then, according to the data amount of the request parameter data, it is determined whether the request parameter data needs to be distributed to three proxy service devices, for example, if the data amount of the request parameter data is 200 pieces of parameter data, the corresponding first parameter data distribution policy is to distribute 30 pieces of data in the 200 pieces of parameter data to the proxy service device a for processing, distribute 50 pieces of data in the 200 pieces of parameter data to the proxy service device B for processing, and distribute 60 pieces of data in the 200 pieces of parameter data to the proxy service device a for processing, and the remaining 60 pieces of parameter data wait for processing in the message queue. If the data size of the request parameter data is 40 pieces of parameter data, the 40 pieces of parameter data may be sent to the proxy service device B or the proxy service device C for processing, and specifically, the proxy service device may be selected by a polling method, which is not limited in this embodiment.
S260, according to the first parameter data distribution strategy, the request parameter data are sent to each proxy service device, so that the proxy service device generates an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data, and the IPMI instruction is sent to the bare metal node.
The method includes the steps that according to the data quantity of request parameter data distributed to each proxy service device in a first parameter data distribution strategy, corresponding quantity of request parameter data is sent to each proxy service device, so that each proxy service device can generate an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data, and the IPMI instruction is sent to a bare metal node.
According to the technical scheme of the embodiment, the first thread pool specification of the message processing thread pool corresponding to each proxy service device is obtained; determining a first parameter data allocation strategy according to the specification of each first thread pool and the data quantity of the request parameter data; and sending the request parameter data to each proxy service device according to the first parameter data distribution strategy. According to the technical scheme, the allocation strategy is generated according to the first thread pool specification and the request parameter data quantity corresponding to different proxy service devices, and the request parameter data is issued based on the allocation strategy, so that the issuing efficiency of the request parameter data is improved, meanwhile, the occurrence of data issuing blocking caused by the existence of a large amount of request parameter data is avoided, the parameter data is issued through the generated data allocation strategy, and the flexibility of issuing the parameter data is improved.
Example III
Fig. 3 is a flowchart of a bare metal instruction sending method provided in a third embodiment of the present invention, where the present embodiment is applicable to a case where a bare metal service management node normally sends data and instructions to a bare metal node, the method may be performed by a bare metal instruction sending device, the bare metal instruction sending device may be implemented in a form of hardware and/or software, and the bare metal instruction sending device may be configured in a proxy service device. As shown in fig. 3, the method includes:
s310, acquiring request parameter data sent by a bare metal service management node, and generating an IPMI instruction according to the request parameter data; the method comprises the steps that request parameter data are obtained by a bare metal management service node according to node information of the bare metal node in an obtained bare metal operation request, communication connection between the request parameter data and the bare metal node is established, a communication connection establishment result is obtained, and when the communication connection establishment result meets preset proxy service transmission conditions, the request parameter data are generated according to the bare metal operation request.
Wherein the bare metal operation request may be a series of HTTP requests for operating the bare metal. For example, the bare metal operation request may be a bare metal power operation request or the like.
The node information may include node address information, node account information, node identification information, and the like of the bare metal node. The node information of the bare metal node can be specifically obtained by carrying out request analysis on a bare metal operation request.
The bare metal service management node may be a server node such as a platform or a system for managing the bare metal node. For example, the bare metal service management node may be an Ironic service node in the OpenStack open source cloud computing management platform project.
The node information may include node address information and node identification information of a bare metal node corresponding to the bare metal operation request, so that the bare metal node requesting the operation may be determined by the node address information and the node identification information in the node information.
The method includes the steps of monitoring a bare metal operation http request sent by the outside, and when the bare metal operation http request is monitored, analyzing the request of the http request to obtain a request analysis result, specifically, analyzing the request by adopting an existing request analysis mode, which is not limited in this embodiment. The bare metal service management node obtains node information of the bare metal node from the request analysis result, and may include node address information, node identification information, node account information, and the like, for example.
The bare metal service management node may determine, according to the node identification information in the node information, a bare metal node requesting operation, and according to the node address information in the node information, establish a communication connection with the bare metal node requesting operation, to obtain a communication connection establishment result. The communication connection establishment result may include success of communication connection establishment and failure of communication connection establishment.
The proxy service transmission condition may be preset by a related technician, for example, the proxy service transmission condition may be that the communication connection establishment between the bare metal service management node and the bare metal node fails.
For example, if the communication connection establishment result meets the preset proxy service transmission condition, that is, the communication connection establishment between the bare metal service management node and the bare metal node fails, the bare metal service management node generates request parameter data according to the bare metal operation request; if the communication connection establishment result does not meet the preset proxy service transmission condition, that is, the communication connection establishment between the bare metal service management node and the bare metal node is successful, the bare metal service management node can directly generate an IPMI instruction according to the bare metal operation request, and send the IPMI instruction to the bare metal node.
The request parameter data can be obtained by analyzing a bare metal operation request. For example, the request parameter data may include bare metal drive data, IPMI command parameter data, and the like; the bare metal driving data may further include node addresses, node ports, node account data, and the like of the bare metal nodes.
The agent service equipment, the bare metal service management node and the bare metal node can be successfully connected with each other.
It should be noted that, in the same time, the bare metal service management node may acquire a large amount of bare metal operation requests, which correspondingly generates a large amount of request parameter data. Therefore, the number of the devices of the proxy service device can be at least one, and when the data volume of the request parameter data is large, the plurality of proxy service devices process the request parameter data at the same time, so that the data processing efficiency can be improved.
The bare metal service management node sends the request parameter data to at least one proxy service device, specifically, the request parameter data is sent to each proxy service device in a polling mode. Aiming at any proxy service equipment, after receiving request parameter data, generating an IPMI instruction according to the request parameter data, specifically, performing data splicing on the request parameter according to an IPMI instruction generation rule to obtain the IPMI instruction; and the proxy service equipment sends the generated IPMI instruction to the bare metal node.
Optionally, sending the request parameter data to at least one proxy service device includes: acquiring a first thread pool specification of a message processing thread pool corresponding to each proxy service device; determining a first parameter data allocation strategy according to the specification of each first thread pool and the data quantity of the request parameter data; and sending the request parameter data to each proxy service device according to the first parameter data distribution strategy.
The message processing thread pool is used for receiving request parameter data sent by the bare metal service management node; the first thread pool rule may be a thread pool size of the message processing thread pool for characterizing a data amount or a number of requests of request parameter data that the message processing thread pool is capable of processing.
The first thread pool specifications of the message processing thread pools corresponding to the proxy service devices may be the same or different, and may be specifically preset by related technicians.
It can be understood that the bare metal service management node obtains the first thread pool specification of the message processing thread pool of each proxy service device, which has the effect of reasonably distributing request parameter data to each proxy service device subsequently, thereby avoiding data blocking.
The first parameter data allocation policy may be a policy of a size of a data amount of the request parameter data that needs to be distributed to each proxy server device by the bare metal service management node.
Request parameter data of an amount matched with the data amount which can be processed by the message processing thread pool can be sent to the corresponding proxy service device according to the first thread pool specification of each proxy service device.
S320, the IPMI instruction is sent to the bare metal node.
For example, according to the data amount of the request parameter data distributed to each proxy service device in the first parameter data distribution policy, the corresponding amount of the request parameter data may be sent to each proxy service device, so that each proxy service device generates an intelligent platform management interface IPMI instruction according to the request parameter data, and sends the IPMI instruction to the bare metal node.
According to the technical scheme, request parameter data sent by a bare metal service management node are obtained, and an IPMI instruction is generated according to the request parameter data; the method comprises the steps that request parameter data are obtained by a bare metal management service node according to node information of a bare metal node in an obtained bare metal operation request, communication connection between the request parameter data and the bare metal node is established, a communication connection establishment result is obtained, and when the communication connection establishment result meets preset proxy service transmission conditions, the request parameter data are generated according to the bare metal operation request; IPMI instructions are sent to bare metal nodes. According to the technical scheme, when the communication connection establishment result between the agent service equipment and the bare metal node meets the proxy service transmission condition, the generated request parameter data is sent to the proxy service equipment for processing, and the proxy service equipment generates the IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node, so that normal transmission of data and instructions between the nodes is realized under the condition that direct communication connection between the bare metal node and the bare metal service management node is not possible.
Example IV
Fig. 4 is a flowchart of a bare metal command sending method according to a fourth embodiment of the present invention, where the present embodiment is optimized and improved based on the above technical solutions.
Further, the step of acquiring request parameter data sent by the bare metal service management node, generating an IPMI instruction according to the request parameter data, and refining the request parameter data to acquire the request parameter data sent by the bare metal service management node through a message processing thread pool, and acquiring a second thread pool specification of the parameter processing thread pool; determining a second parameter data allocation strategy according to the data quantity of the request parameter data and the specification of the second thread pool; according to the second parameter data distribution strategy, sending the request parameter data to a parameter processing thread pool; and generating the IPMI instruction by the parameter processing thread pool according to the request parameter data. To perfect the acquisition mode of the request parameter data. In the embodiments of the present invention, the descriptions of other embodiments may be referred to in the portions not described in detail.
As shown in fig. 4, the method comprises the following specific steps:
s410, acquiring request parameter data sent by the bare metal service management node through the message processing thread pool, and acquiring a second thread pool specification of the parameter processing thread pool.
The method comprises the steps that request parameter data are obtained by a bare metal management service node according to node information of the bare metal node in an obtained bare metal operation request, communication connection between the request parameter data and the bare metal node is established, a communication connection establishment result is obtained, and when the communication connection establishment result meets preset proxy service transmission conditions, the request parameter data are generated according to the bare metal operation request.
The message processing thread pool may be a thread pool deployed in the proxy service device for acquiring request parameter data. The thread pool size of the message processing thread pool may be the first thread pool specification, and may specifically be preset by a related technician according to actual requirements. The first thread pool specification is used to characterize the size of the amount of data that can be obtained for the request parameter data.
The parameter processing thread pool may be a thread pool deployed in the proxy service device for processing request parameter data and generating IPMI instructions. The thread pool size of the parameter processing thread pool may be the second thread pool specification, and may specifically be preset by a related technician according to actual requirements. The second thread pool specification is used to characterize the data size of request parameter data that can be processed.
Illustratively, request parameter data sent by a bare metal service management node is acquired through a message processing thread pool deployed in a proxy service device, and a data stream of the acquired request parameter data is determined. A second thread pool specification for a parameter processing thread pool deployed in the proxy service device may be obtained from the message processing thread pool.
S420, determining a second parameter data allocation strategy according to the data volume of the request parameter data and the second thread pool specification.
The second parameter data allocation policy may be a message processing thread pool, and the second parameter data allocation policy needs to be a distribution policy of the data size of the request parameter data distributed to the parameter processing thread pool.
For example, a distribution batch to the parameter processing thread pool may be determined according to the acquired second thread pool specification and the data volume of the request parameter data, so as to obtain a second parameter data distribution policy. Specifically, if the data size of the acquired request parameter data is 50 pieces of data, it can be determined that the parameter processing thread pool can process 20 pieces of data at a time according to the second thread pool specification, the request parameter data is divided into three batches, and the three batches are sequentially issued to the parameter processing thread pool for processing, so that the thread pool is prevented from being blocked. If the data flow of the acquired request parameter data is 10 pieces of data, the parameter processing thread pool can be determined to be capable of processing 20 pieces of data at one time according to the second thread pool specification, and then all the request parameter data can be directly issued to the parameter processing thread pool for processing.
S430, sending the request parameter data to the parameter processing thread pool according to the second parameter data distribution strategy.
For example, the request parameter data may be sent to the parameter processing thread pool according to the distribution batch determined by the second parameter data distribution policy and the data amount of the request parameter data to be issued in each batch.
S440, generating an IPMI instruction by the parameter processing thread pool according to the request parameter data.
S450, the IPMI instruction is sent to the bare metal node.
According to the technical scheme, request parameter data sent by a bare metal service management node is obtained through a message processing thread pool, and a second thread pool specification of the parameter processing thread pool is obtained; determining a second parameter data allocation strategy according to the data quantity of the request parameter data and the specification of the second thread pool; according to the second parameter data distribution strategy, sending the request parameter data to a parameter processing thread pool; and generating the IPMI instruction by the parameter processing thread pool according to the request parameter data. According to the technical scheme, the corresponding allocation strategy is generated according to the acquired data volume of the request parameter data and the second thread pool specification, and the request parameter data is issued based on the corresponding allocation strategy, so that the issuing efficiency of the proxy service equipment for issuing the request parameter data is improved, meanwhile, the occurrence of data issuing blocking caused when a large amount of request parameter data exists is avoided, the parameter data is issued by generating the corresponding allocation strategy, and the flexibility of issuing the parameter data is improved.
It should be noted that, the first thread pool specification of the message processing thread pool and the second thread pool specification of the parameter processing thread pool of each proxy service device may be preset by related technicians according to actual requirements, and the set values of the first thread pool specification and the second thread pool specification corresponding to different proxy service devices may be the same or different. In order to further improve the processing efficiency of each proxy service device on the request parameter data, the first thread pool specification and the second thread pool specification corresponding to each proxy service device can be dynamically updated.
In an alternative embodiment, the first thread pool specification of the message processing thread pool and the second thread pool specification of the parameter processing thread pool are updated as follows: acquiring current proxy parameter data of proxy service equipment in a current period; inputting the current agent parameter data into a specification updating network model obtained by pre-training to obtain a model output result output by the specification updating network model; the specification updating network model is obtained based on historical proxy parameter data training of the proxy service equipment in a historical period; and updating the first thread pool specification and the second thread pool specification by using the model output result.
The current proxy parameter data may include at least one of the number of times of calling the self-proxy service device in each minute, the rate of change of the number of times of calling the self-proxy service device in each minute, the data amount of the request parameter data accumulated in each minute for the self-proxy service device, the CPU (Central Processing Unit ) utilization rate of the server to which the self-proxy service device belongs, the memory utilization rate of the server to which the self-proxy service device belongs, and the like in the current period.
The number of times change rate P of the proxy service device i is determined as follows:
wherein a is i Representing the number of times the proxy service device i is called in the current minute; b i Representing the number of times the proxy service device i was invoked in the previous minute; c i Indicating the number of times the proxy service device i was invoked in the next minute.
The current agent parameter data further comprises a current first thread pool specification and a current second thread pool specification under the current period.
The specification update network model may be a pre-trained network model for determining thread pool specifications. For example, the specification update network model may be a BP (Back-ProPagation) network model. Optionally, the BP network model may be trained based on historical proxy parameter data in a historical period to obtain a trained specification updated network model.
The input parameter data in the model training process can be the frequency change rate, the calling frequency, the CPU utilization rate, the memory utilization rate and the like of the self-service equipment under the history period; the output parameter data may be a historical first thread pool specification and a historical second thread pool specification at a historical period.
According to the technical scheme of the alternative embodiment, the current proxy parameter data is input into the specification updating network model obtained through pre-training, the model output result output by the specification updating network model is obtained, and the first thread pool specification and the second thread pool specification are updated by adopting the model output result, so that the dynamic updating of the first thread pool specification and the second thread pool specification is realized, the equipment performance of the proxy service equipment is continuously optimized, and the data processing capacity and the data processing efficiency of the request parameter data are continuously improved.
It should be noted that, to further improve the accuracy of updating the first thread pool specification and the second thread pool specification, more accurate model training may be performed on the specification update network model, so as to improve the accuracy of model training of the specification update model, and further improve the accuracy of determining the thread pool specification.
In an alternative embodiment, the specification update network model is trained as follows: acquiring historical proxy parameter data of proxy service equipment in a historical period; the historical proxy parameter data comprises historical input parameter data and historical output parameter data; the historical proxy parameter data is used as a sample training set and is input into a preset neural network model to carry out model training, so that a specification updating network model is obtained; wherein the neural network model comprises an hidden layer; the number of hidden neurons in the hidden layer is determined based on the input data amount of the history input parameter data and the output data amount of the history output parameter data.
Wherein the historical proxy parameter data may include historical input parameter data and historical output parameter data.
The historical input parameter data may include at least one of the number of times of calling the self-acting service device in each minute, the change rate of the number of times of calling the self-acting service device in each minute, the data amount of the request parameter data accumulated in each minute in the message queue for the self-acting service device, the CPU utilization rate of the server to which the self-acting service device belongs, the memory utilization rate of the server to which the self-acting service device belongs, and the like in the historical period.
Wherein the historical proxy parameter data includes a historical first thread pool specification and a historical second thread pool specification under a historical cycle.
The neural network model may be preset by a related technician, and for example, the neural network model may be a BP network model. The preset BP network model can comprise three layers, namely an input layer, an hidden layer and an output layer. Wherein the hidden layer includes at least one hidden neuron. The number of neurons in the output layer is related to the input data amount of the historical input parameter data; the number of neurons of the output layer is related to the output data amount of the historical input parameter data.
For example, if the history input parameter data includes X1, X2, X3, X4, and X5, respectively, where X1 represents the number of times of calling the self-acting service device per minute in the history period, X2 represents the number of times of calling the self-acting service device per minute in the history period, X3 represents the data amount of the request parameter data accumulated in the message queue of the self-acting service device per minute in the history period, X4 represents the CPU utilization of the server to which the self-acting service device belongs in the history period, and X5 represents the CPU utilization of the server to which the self-acting service device belongs in the history period. Correspondingly, the number of neurons in the input layer is 5.
And if the historical output parameter data are Y1 and Y2 respectively, wherein Y1 represents a historical first thread pool specification obtained in a historical period, and Y2 represents a historical second thread pool specification obtained in the historical period. Correspondingly, the number of neurons in the output layer is 2.
The neurons in the input layer are respectively connected with weights of the neurons in the hidden layer, and the neurons in the hidden layer are respectively connected with weights of the neurons in the output layer to form a neural network model. The initial weight values between neurons can be preset by the relevant technicians and continuously optimized and updated during training.
Wherein the number of hidden neurons in the hidden layer is determined based on the input data amount of the historical input parameter data and the output parameter data amount of the historical output parameter data. The number of neurons in the hidden layer/is determined as follows:
wherein n represents the input data quantity, namely the parameter number of the input parameters; m represents the output data quantity, namely the parameter number of the output parameters; a is a constant, and the value range is [0, 10].
The historical input parameter data and the historical output parameter data are input into a preset neural network model as sample training to perform model training, and a trained specification updating network model is obtained.
According to the technical scheme of the alternative embodiment, the historical proxy parameter data is used as a sample training set and is input into a preset neural network model for model training, so that a specification updating network model is obtained, and the training accuracy of the specification updating network model is improved; the method adopts the mode of determining the number of the hidden neurons in the neural network model by adopting the input data quantity of the historical input parameter data and the output data quantity of the historical output parameter data, thereby realizing the accurate setting of the neural network model, improving the model training accuracy and further improving the determining accuracy of the thread pool specification.
Example five
Fig. 5 is an interaction schematic diagram of a bare metal command sending method according to a fifth embodiment of the present invention. The present embodiment provides a preferred example based on the above-described embodiments.
As shown in fig. 5, the method comprises the following specific steps:
s501, a bare metal service management node acquires a bare metal operation request;
s502, establishing communication connection with the bare metal node according to node information of the bare metal node in the bare metal operation request, and obtaining a communication connection establishment result;
S503A, if the communication connection establishment result does not meet the preset proxy service transmission condition, generating an IPMI instruction according to the bare metal operation request, and sending the IPMI instruction to the bare metal node;
S503B, if the communication connection establishment result meets the preset proxy service transmission condition, generating request parameter data according to the bare metal operation request.
S504, obtaining a first thread pool specification of a message processing thread pool corresponding to each proxy service device;
s505, determining a first parameter data allocation strategy according to the specification of each first thread pool and the data quantity of the request parameter data;
s506, according to the first parameter data distribution strategy, sending the request parameter data to each proxy service device;
s507, the proxy service equipment acquires request parameter data sent by the bare metal service management node through the message processing thread pool, and acquires a second thread pool specification of the parameter processing thread pool;
s508, determining a second parameter data allocation strategy according to the data volume of the request parameter data and the specification of the second thread pool;
s509, according to a second parameter data distribution strategy, sending request parameter data to a parameter processing thread pool;
s510, generating an IPMI instruction by the parameter processing thread pool according to the request parameter data;
s511, the IPMI instruction is sent to the bare metal node.
Example six
Fig. 6 is a schematic structural diagram of a bare metal command sending device according to a sixth embodiment of the present invention. The device for sending the bare metal instruction provided by the embodiment of the invention can be suitable for the condition that the bare metal service management node normally sends data and instructions to the bare metal node, and the device for sending the bare metal instruction can be realized in a hardware and/or software mode and is configured at the bare metal service management node, as shown in fig. 6, and the device specifically comprises: an operation request acquisition module 601, a connection result determination module 602, a parameter data generation module 603, and a parameter data transmission module 604. Wherein, the liquid crystal display device comprises a liquid crystal display device,
An operation request acquisition module 601, configured to acquire a bare metal operation request; the bare metal operation request comprises node information of a bare metal node;
a connection result determining module 602, configured to establish a communication connection with the bare metal node according to the node information, to obtain a communication connection establishment result;
a parameter data generating module 603, configured to generate request parameter data according to the bare metal operation request if the communication connection establishment result meets a preset proxy service transmission condition;
and the parameter data sending module 604 is configured to send the request parameter data to at least one proxy service device, so that the proxy service device generates an intelligent platform management interface IPMI instruction according to the request parameter data, and sends the IPMI instruction to the bare metal node.
According to the technical scheme, communication connection between the bare metal node and the bare metal node is established according to the node information in the obtained bare metal operation request, and a communication connection establishment result is obtained; if the communication connection establishment result meets the preset proxy service transmission condition, generating request parameter data according to the bare metal operation request; and sending the request parameter data to at least one proxy service device, so that the proxy service device generates an IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node. According to the technical scheme, when the communication connection establishment result between the agent service equipment and the bare metal node meets the proxy service transmission condition, the generated request parameter data is sent to the proxy service equipment for processing, and the proxy service equipment generates the IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node, so that normal transmission of data and instructions between the nodes is realized under the condition that direct communication connection between the bare metal node and the bare metal service management node is not possible.
Optionally, the parameter data sending module 604 includes:
a first specification obtaining unit, configured to obtain a first thread pool specification of a message processing thread pool corresponding to each proxy service device;
a first allocation policy determining unit, configured to determine a first parameter data allocation policy according to each of the first thread pool specifications and the data amount of the request parameter data;
and the parameter data sending unit is used for sending the request parameter data to each proxy service device according to the first parameter data distribution strategy.
The bare metal instruction sending device provided by the embodiment of the invention can execute the bare metal instruction sending method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example seven
Fig. 7 is a schematic structural diagram of a bare metal command sending device according to a seventh embodiment of the present invention. The device for sending the bare metal instruction provided by the embodiment of the invention can be suitable for the situation that the bare metal service management node normally sends data and instructions to the bare metal node, and the device for sending the bare metal instruction can be realized in a hardware and/or software mode and is configured in proxy service equipment, as shown in fig. 7, and the device specifically comprises: an instruction generation module 701 and an instruction transmission module 702. Wherein, the liquid crystal display device comprises a liquid crystal display device,
The instruction generating module 701 is configured to obtain request parameter data sent by the bare metal service management node, and generate an IPMI instruction according to the request parameter data; the request parameter data is obtained by the bare metal management service node according to the node information of the bare metal node in the obtained bare metal operation request, establishing communication connection with the bare metal node to obtain a communication connection establishment result, and generating according to the bare metal operation request when the communication connection establishment result meets a preset proxy service transmission condition;
and the instruction sending module 702 is configured to send the IPMI instruction to the bare metal node.
According to the technical scheme, request parameter data sent by a bare metal service management node are obtained, and an IPMI instruction is generated according to the request parameter data; the method comprises the steps that request parameter data are obtained by a bare metal management service node according to node information of a bare metal node in an obtained bare metal operation request, communication connection between the request parameter data and the bare metal node is established, a communication connection establishment result is obtained, and when the communication connection establishment result meets preset proxy service transmission conditions, the request parameter data are generated according to the bare metal operation request; IPMI instructions are sent to bare metal nodes. According to the technical scheme, when the communication connection establishment result between the agent service equipment and the bare metal node meets the proxy service transmission condition, the generated request parameter data is sent to the proxy service equipment for processing, and the proxy service equipment generates the IPMI instruction according to the request parameter data and sends the IPMI instruction to the bare metal node, so that normal transmission of data and instructions between the nodes is realized under the condition that direct communication connection between the bare metal node and the bare metal service management node is not possible.
Optionally, the instruction generating module 701 includes:
the second specification acquisition unit is used for acquiring request parameter data sent by the bare metal service management node through the message processing thread pool and acquiring a second thread pool specification of the parameter processing thread pool;
a second allocation policy determining unit, configured to determine a second parameter data allocation policy according to the data amount of the request parameter data and the second thread pool specification;
the parameter data sending residue is used for sending the request parameter data to the parameter processing thread pool according to the second parameter data distribution strategy;
and the instruction generating unit is used for generating an IPMI instruction by the parameter processing thread pool according to the request parameter data.
Optionally, the updating manner of the first thread pool specification of the message processing thread pool and the second thread pool specification of the parameter processing thread pool is as follows:
acquiring current proxy parameter data of the proxy service equipment in a current period;
inputting the current agent parameter data into a specification updating network model obtained by training in advance to obtain a model output result output by the specification updating network model; the specification updating network model is obtained based on historical proxy parameter data training of the proxy service equipment in a historical period;
And updating the first thread pool specification and the second thread pool specification by adopting the model output result.
Optionally, the training manner of the specification updating network model is as follows:
acquiring historical proxy parameter data of the proxy service equipment in a historical period; the historical proxy parameter data comprises historical input parameter data and historical output parameter data;
the historical proxy parameter data is used as a sample training set and is input into a preset neural network model to carry out model training, and the specification updating network model is obtained;
wherein the neural network model comprises an hidden layer; the number of hidden neurons in the hidden layer is determined based on the input data amount of the historical input parameter data and the output data amount of the historical output parameter data.
The bare metal instruction sending device provided by the embodiment of the invention can execute the bare metal instruction sending method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example eight
Fig. 8 shows a schematic diagram of an electronic device 80 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 8, the electronic device 80 includes at least one processor 81, and a memory, such as a Read Only Memory (ROM) 82, a Random Access Memory (RAM) 83, etc., communicatively connected to the at least one processor 81, in which the memory stores a computer program executable by the at least one processor, and the processor 81 can perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 82 or the computer program loaded from the storage unit 88 into the Random Access Memory (RAM) 83. In the RAM 83, various programs and data required for the operation of the electronic device 80 can also be stored. The processor 81, the ROM 82 and the RAM 83 are connected to each other via a bus 84. An input/output (I/O) interface 85 is also connected to bus 84.
Various components in the electronic device 80 are connected to the I/O interface 85, including: an input unit 86 such as a keyboard, mouse, etc.; an output unit 87 such as various types of displays, speakers, and the like; a storage unit 88 such as a magnetic disk, an optical disk, or the like; and a communication unit 89, such as a network card, modem, wireless communication transceiver, etc. The communication unit 89 allows the electronic device 80 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
Processor 81 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 81 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 81 performs the various methods and processes described above, such as the bare metal instruction sending method.
In some embodiments, the bare metal instruction sending method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 88. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 80 via the ROM 82 and/or the communication unit 89. When the computer program is loaded into the RAM 83 and executed by the processor 81, one or more steps of the bare metal instruction transmission method described above may be performed. Alternatively, in other embodiments, processor 81 may be configured to perform the bare metal instruction sending method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The bare metal instruction sending method is characterized by being applied to a bare metal service management node and comprising the following steps of:
acquiring a bare metal operation request; the bare metal operation request comprises node information of a bare metal node;
according to the node information, establishing communication connection with the bare metal node to obtain a communication connection establishment result;
if the communication connection establishment result meets a preset proxy service transmission condition, generating request parameter data according to the bare metal operation request;
And sending the request parameter data to at least one proxy service device, so that the proxy service device generates an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data, and sending the IPMI instruction to the bare metal node.
2. The method of claim 1, wherein said sending the request parameter data to at least one proxy service device comprises:
acquiring a first thread pool specification of a message processing thread pool corresponding to each proxy service device;
determining a first parameter data allocation strategy according to the specification of each first thread pool and the data quantity of the request parameter data;
and sending the request parameter data to each proxy service device according to the first parameter data distribution strategy.
3. A bare metal command transmission method, applied to a proxy service device, comprising:
acquiring request parameter data sent by a bare metal service management node, and generating an IPMI instruction according to the request parameter data; the request parameter data is obtained by the bare metal management service node according to the node information of the bare metal node in the obtained bare metal operation request, establishing communication connection with the bare metal node to obtain a communication connection establishment result, and generating according to the bare metal operation request when the communication connection establishment result meets a preset proxy service transmission condition;
And sending the IPMI instruction to the bare metal node.
4. The method of claim 3, wherein the obtaining the request parameter data sent by the bare metal service management node and generating the IPMI command according to the request parameter data comprises:
acquiring request parameter data sent by a bare metal service management node through a message processing thread pool, and acquiring a second thread pool specification of the parameter processing thread pool;
determining a second parameter data allocation strategy according to the data quantity of the request parameter data and the second thread pool specification;
according to the second parameter data distribution strategy, the request parameter data is sent to the parameter processing thread pool;
and generating an IPMI instruction according to the request parameter data by the parameter processing thread pool.
5. The method of claim 4, wherein the first thread pool specification of the message processing thread pool and the second thread pool specification of the parameter processing thread pool are updated in the following manner:
acquiring current proxy parameter data of the proxy service equipment in a current period;
inputting the current agent parameter data into a specification updating network model obtained by training in advance to obtain a model output result output by the specification updating network model; the specification updating network model is obtained based on historical proxy parameter data training of the proxy service equipment in a historical period;
And updating the first thread pool specification and the second thread pool specification by adopting the model output result.
6. The method of claim 5, wherein the specification update network model is trained as follows:
acquiring historical proxy parameter data of the proxy service equipment in a historical period; the historical proxy parameter data comprises historical input parameter data and historical output parameter data;
the historical proxy parameter data is used as a sample training set and is input into a preset neural network model to carry out model training, and the specification updating network model is obtained;
wherein the neural network model comprises an hidden layer; the number of hidden neurons in the hidden layer is determined based on the input data amount of the historical input parameter data and the output data amount of the historical output parameter data.
7. A bare metal command transmission apparatus, configured in a bare metal service management node, comprising:
the operation request acquisition module is used for acquiring a bare metal operation request; the bare metal operation request comprises node information of a bare metal node;
the connection result determining module is used for establishing communication connection with the bare metal node according to the node information to obtain a communication connection establishment result;
The parameter data generation module is used for generating request parameter data according to the bare metal operation request if the communication connection establishment result meets the preset proxy service transmission condition;
and the parameter data sending module is used for sending the request parameter data to at least one proxy service device, so that the proxy service device generates an Intelligent Platform Management Interface (IPMI) instruction according to the request parameter data and sends the IPMI instruction to the bare metal node.
8. A bare metal command transmission apparatus, configured in a proxy service device, comprising:
the instruction generation module is used for acquiring request parameter data sent by the bare metal service management node and generating an IPMI instruction according to the request parameter data; the request parameter data is obtained by the bare metal management service node according to the node information of the bare metal node in the obtained bare metal operation request, establishing communication connection with the bare metal node to obtain a communication connection establishment result, and generating according to the bare metal operation request when the communication connection establishment result meets a preset proxy service transmission condition;
And the instruction sending module is used for sending the IPMI instruction to the bare metal node.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the bare metal instruction transmission method according to any one of claims 1-2 and/or claims 3-6.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores computer instructions for causing a processor to implement the bare metal instruction transmission method according to any one of claims 1-2 and/or 3-6 when executed.
CN202310678016.7A 2023-06-08 2023-06-08 Bare metal instruction sending method, device, equipment and storage medium Pending CN116567077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310678016.7A CN116567077A (en) 2023-06-08 2023-06-08 Bare metal instruction sending method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310678016.7A CN116567077A (en) 2023-06-08 2023-06-08 Bare metal instruction sending method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116567077A true CN116567077A (en) 2023-08-08

Family

ID=87488032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310678016.7A Pending CN116567077A (en) 2023-06-08 2023-06-08 Bare metal instruction sending method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116567077A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117407124A (en) * 2023-12-13 2024-01-16 之江实验室 Service execution method based on constructed data arrangement strategy generation model

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117407124A (en) * 2023-12-13 2024-01-16 之江实验室 Service execution method based on constructed data arrangement strategy generation model
CN117407124B (en) * 2023-12-13 2024-03-12 之江实验室 Service execution method based on constructed data arrangement strategy generation model

Similar Documents

Publication Publication Date Title
CN112988381B (en) Method and device for generating optimization information for cloud resources and electronic equipment
CN116567077A (en) Bare metal instruction sending method, device, equipment and storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN114051057B (en) Cloud equipment queuing time determination method and device, electronic equipment and medium
CN116594563A (en) Distributed storage capacity expansion method and device, electronic equipment and storage medium
CN114579311B (en) Method, device, equipment and storage medium for executing distributed computing task
CN114327918B (en) Method and device for adjusting resource amount, electronic equipment and storage medium
CN116440504B (en) Game resource processing method, device and storage medium
CN117076720B (en) Embedded table access method and device, electronic equipment and storage medium
CN116055386B (en) Port weight updating method, device, chip and storage medium
CN116633881A (en) Bandwidth control method, device, equipment and medium
CN116661960A (en) Batch task processing method, device, equipment and storage medium
CN116167464A (en) Method, device, equipment and medium for predicting operation time of federal learning task
CN117081939A (en) Traffic data processing method, device, equipment and storage medium
CN117196510A (en) Processing method and device for table skip, electronic equipment and storage medium
CN117749614A (en) Protocol rule determining method and device, electronic equipment and storage medium
CN117041182A (en) Main server node selection method, device, equipment and medium of distributed component
CN117349016A (en) Resource allocation method, device, equipment and medium
CN116450915A (en) Application degradation method, device, electronic equipment and storage medium
CN117493000A (en) Task processing method, device, equipment and medium
CN117421126A (en) Multi-tenant server-free platform resource management method
CN117651078A (en) Data transmission method and device, electronic equipment and storage medium
CN117608944A (en) Method and device for calculating weight migration volume ratio, electronic equipment and storage medium
CN117785494A (en) Asynchronous process processing method, device and system, electronic equipment and storage medium
CN116361008A (en) Task balanced distribution method, device, equipment and medium based on electric power Internet of things

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