CN111400041A - Server configuration file management method and device and computer readable storage medium - Google Patents

Server configuration file management method and device and computer readable storage medium Download PDF

Info

Publication number
CN111400041A
CN111400041A CN202010172455.7A CN202010172455A CN111400041A CN 111400041 A CN111400041 A CN 111400041A CN 202010172455 A CN202010172455 A CN 202010172455A CN 111400041 A CN111400041 A CN 111400041A
Authority
CN
China
Prior art keywords
server
configuration file
request
node server
management operation
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.)
Withdrawn
Application number
CN202010172455.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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010172455.7A priority Critical patent/CN111400041A/en
Publication of CN111400041A publication Critical patent/CN111400041A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The application discloses a method and a device for managing a server configuration file and a computer readable storage medium. The method comprises the steps that pins led out from a baseboard management controller chip of each node server in a server cluster are connected in advance, so that data communication of each node server is achieved based on I2C; when a management operation request of a server configuration file is received, selecting a node server from a server cluster as a main node server based on the task running state of each node server and the CPU resource utilization rate; the management operation request is forwarded to the main node server, and the main node server can issue the management operation request to other node servers which are not the main node server in the server cluster in batches through an I2C communication protocol, so that the configuration file of the high-density multi-node server can be managed efficiently and conveniently.

Description

Server configuration file management method and device and computer readable storage medium
Technical Field
The present application relates to the field of file management technologies, and in particular, to a method and an apparatus for managing a server configuration file, and a computer-readable storage medium.
Background
With the rapid development of server technology, the demands of clients on the types and functions of servers are continuously increased, and high-density multi-node servers are widely applied. The high-density multi-node server can be divided into two levels of management: a CMC (Chassis Management Controller) as a Chassis level Management and a BMC (Baseboard Management Controller) as a node level Management.
In order to conserve IP resources, the CMC is not typically used by users to manage the multi-node server. In the related art, when a BMC is used to manage a multi-node server, each BMC exists independently and horizontally, a user can only set the BMCs of each node one by one, such as network configuration, log setting and the like, each node can only manage configuration files of the node, that is, the node adopts a single-stage management mode, and when the number of nodes in a server cluster is large, each node is sequentially configured with files, which wastes a large amount of time, human resources and financial resources.
In view of this, how to efficiently and conveniently manage configuration files of a high-density multi-node server is a technical problem to be solved by technical personnel.
Disclosure of Invention
The application provides a management method and device of server configuration files and a computer readable storage medium, which can efficiently and conveniently manage the configuration files of a high-density multi-node server.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a method for managing a server configuration file, including:
connecting pins of a baseboard management controller chip of each node server in a server cluster in advance;
when a management operation request of a server configuration file is received, selecting a node server from the server cluster as a main node server based on the task running state of each node server and the CPU resource utilization rate;
and forwarding the management operation request to the master node server, so that the master node server issues the management operation request to the other node servers in the server cluster, which are not the master node server, in batches through an I2C communication protocol.
Optionally, the forwarding the management operation request to the master node server, so that the master node server issues the management operation request to the other node servers in the server cluster in batches through an I2C communication protocol includes:
the management operation request is the server configuration file uploading request, and the management operation request carries node server information of a target receiving node of the configuration file to be updated and the configuration file to be updated;
and forwarding the server configuration file uploading request to the master node server, so that the master node server sends the configuration files to be updated to corresponding target receiving nodes in the server cluster in batches through an I2C communication protocol according to the node server information.
Optionally, after forwarding the server configuration file upload request to the master node server, the method further includes:
if the feedback information of all target receiving nodes is not received within a preset time period, network state information of the preset time period is obtained;
if the network state information is abnormal, when the network state is detected to be normal, the server configuration file uploading request is forwarded to the main node server again;
if the network state information is normal, carrying out file configuration and error reporting;
the preset time period is from the moment of uploading request forwarding of the server configuration file to the moment of acquiring the network state information; the feedback information is that the configuration files are the same or the configuration files are successfully imported.
Optionally, after forwarding the server configuration file upload request to the master node server, the method further includes:
if the feedback information of the first target receiving node is not received within the preset time period, sending a failure configuration instruction of the first target receiving node to the master node server so that the master node server sends the configuration file to be updated to the first target node again, wherein the feedback information comprises the same configuration file or successful configuration file introduction.
Optionally, the forwarding the management operation request to the master node server includes:
the management operation request comprises a configuration file uploading request, a configuration file modifying request and a configuration file deleting request;
when a plurality of management operation requests are received, setting a priority value for the management operation requests according to a preset request processing rule; the request processing rule is determined according to the type of the management operation request and the type of the running task of each node server in the server cluster;
and forwarding the management operation requests to the main node server in sequence from high to low according to the priority values, and calling a plurality of threads to forward a plurality of management operation requests with the same priority values to the main node server at the same time.
Another aspect of the embodiments of the present invention provides a device for managing a server configuration file, including:
the preprocessing module is used for connecting pins of the baseboard management controller chips of the node servers in the server cluster in advance;
the master node server selection module is used for selecting a node server from the server cluster as a master node server based on the task running state and the CPU resource utilization rate of each node server when receiving a management operation request of the server configuration file;
and the configuration file management module is used for forwarding the management operation request to the master node server, so that the master node server sends the management operation request to other node servers in the server cluster, which are not the master node server, in batches through an I2C communication protocol.
Optionally, the configuration file management module is a module that forwards the server configuration file upload request to the master node server, so that the master node server sends the configuration files to be updated to the corresponding target receiving nodes in the server cluster in batch according to the node server information through an I2C communication protocol; the management operation request is the server configuration file uploading request, and the management operation request carries node server information of a target receiving node of the configuration file to be updated and the configuration file to be updated.
Optionally, the configuration file management module includes:
the priority value setting submodule is used for setting a priority value for the management operation request according to a preset request processing rule when receiving a plurality of management operation requests; the request processing rule is determined according to the type of the management operation request and the type of the running task of each node server in the server cluster; the management operation request comprises a configuration file uploading request, a configuration file modifying request and a configuration file deleting request;
and the request issuing submodule is used for forwarding each management operation request to the main node server from high to low in sequence according to the priority value, and forwarding a plurality of management operation requests with the same priority value to the main node server by calling a plurality of threads at the same time.
An embodiment of the present invention further provides a device for managing a server profile, including a processor, where the processor is configured to implement the steps of the method for managing a server profile according to any one of the foregoing embodiments when executing a computer program stored in a memory.
Finally, an embodiment of the present invention provides a computer-readable storage medium, where a management program of a server profile is stored on the computer-readable storage medium, and when executed by a processor, the management program of the server profile implements the steps of the management method of the server profile according to any one of the foregoing items.
The technical scheme provided by the application has the advantages that the lead-out pins of the BMC management chip of each node server in the server cluster are connected in advance, so that data interaction can be carried out among the server nodes through an I2C protocol; when a management operation request of a server configuration file is received, a master node server is selected from each node server based on the task operation state of each node server and the CPU resource utilization rate, so that the master node server can be guaranteed to have enough resources and can efficiently process the management operation request without influencing the normal and stable operation of the running task of the master node server, then the master node can be used for carrying out batch file management operation on other node servers in a cluster, file management operation on each node is not needed, and the configuration file of a high-density multi-node server can be efficiently and conveniently managed.
In addition, the embodiment of the invention also provides a corresponding implementation device and a computer readable storage medium for the management method of the server configuration file, so that the method has higher practicability, and the device and the computer readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for managing a server profile according to an embodiment of the present invention;
fig. 2 is a structural diagram of an embodiment of a server profile management apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of another embodiment of a server profile management apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for managing a server configuration file according to an embodiment of the present invention, where the embodiment of the present invention includes the following:
s101: the pins of the baseboard management controller chips of the node servers in the server cluster are connected in advance.
In the application, in order to realize data communication and file transmission between node servers in subsequent software, pins led out from a substrate controller chip of each node server in a server cluster can be connected in advance.
S102: and when a management operation request of the server configuration file is received, selecting one node server from the server cluster as a main node server based on the task running state and the CPU resource utilization rate of each node server.
In the embodiment of the present invention, the management operation request may be issued by the user to the server cluster through the client, and the management operation request may be a management operation of the user on the configuration file of a certain node server in the cluster, or a management operation of the configuration file on a plurality of, even all, node servers in the cluster, which does not affect the implementation of the present application. The management operation request can be uploading a new configuration file, modifying an original configuration file, deleting the original configuration file and the like, and when a user issues the management operation request of the configuration file, a new configuration file and a receiving address of the configuration file can be simultaneously carried in the request for a scene of uploading the new configuration file, namely the address of a node server needing to add the new configuration file; for the scene of uploading and modifying the original configuration file, the modified parameters and the address of the node server corresponding to the modified configuration file can be carried in the request; and for the scene of uploading and modifying the original configuration file, the address of the node server corresponding to the deleted configuration file can be carried in the request.
In order to ensure that the master node server has enough CPU (Central Processing Unit) resources to process the management operation request without affecting the operation condition of the service itself, and to immediately process the operation request when receiving the management operation request, when selecting the master node server from the cluster, the selection can be performed based on the task operation state of each node server and the CPU resource utilization rate. Optionally, under the condition that the hardware configuration and the software environment of each node server are the same, the master node server operates less services and has a low CPU resource utilization rate and a higher available space for cache compared with other node servers.
S103: and forwarding the management operation request to the master node server, so that the master node server issues the management operation request to the rest node servers in the server cluster, which are not the master node server, in batches through the I2C communication protocol.
The execution subject of the embodiment of the invention can be any node server in the server cluster, and can also be a newly added middleware, which does not affect the implementation of the application, and the execution subject can obtain the running state information and the working state information of all the node servers in the cluster, and the like. After receiving the management operation request, the master node server may issue the management operation request to other node servers in the server cluster in batches through an I2C communication protocol, and after receiving the management operation request, each node server first identifies the type of the management operation request, and then compares the configuration files in its own node based on different types of the management operation request to execute corresponding operations.
For example, the management operation request is a server profile upload request, and the management operation request carries node server information of a target receiving node of the profile to be updated and the profile to be updated, where the node server information is, for example, a node server name and an IP address. After the server configuration file uploading request is forwarded to the master node server, the master node server sends configuration files to be updated to corresponding target receiving nodes in the server cluster in batches through an I2C communication protocol according to node server information, after the target receiving nodes receive the configuration files to be updated, whether information in the configuration inquiry of the target receiving nodes contains configuration information in the configuration files to be updated or not is compared, and if not, the configuration files to be updated are imported; if so, the feedback information with the same configuration file can be sent to the master node server or the execution subject of the embodiment of the invention.
In the technical scheme provided by the embodiment of the invention, the lead-out pins of the BMC management chip of each node server in the server cluster are connected in advance, so that data interaction can be carried out among the server nodes through an I2C protocol; when a management operation request of a server configuration file is received, a master node server is selected from each node server based on the task operation state of each node server and the CPU resource utilization rate, so that the master node server can be guaranteed to have enough resources and can efficiently process the management operation request without influencing the normal and stable operation of the running task of the master node server, then the master node can be used for carrying out batch file management operation on other node servers in a cluster, file management operation on each node is not needed, and the configuration file of a high-density multi-node server can be efficiently and conveniently managed.
As an optional implementation manner, in order to ensure that the node servers in the cluster can timely and accurately manage the configuration file, after S103, the method may further include:
after receiving the management operation request, the preset node server feeds back an execution result in time after executing the management operation request. Because the number of the node servers for managing the configuration file may be 1, or may be multiple, and correspondingly, the feedback information of 1 node server may not be received, or the feedback information of all the node servers may not be received, for different application scenarios, the present application provides different processing manners, which may include:
for the application scenario where there are multiple target receiving nodes, for ease of illustration, the first target receiving node is one of the multiple target receiving nodes. If the feedback information of the first target receiving node is not received within the preset time period, sending a failure configuration instruction of the first target receiving node to the master node server so that the master node server sends the configuration file to be updated to the first target node again, wherein the feedback information comprises the same configuration file or the successful import of the configuration file. If the feedback information of all target receiving nodes is not received within the preset time period, network state information of the preset time period is obtained to eliminate that the non-reception of the feedback information is caused by transmission failure or transmission delay due to network reasons; the preset time period may be from the time of uploading the request and forwarding the server configuration file to the time of obtaining the network status information, and the feedback information may be, for example, that the configuration files are the same or that the configuration files are successfully imported. If the network state information is abnormal, when the network state is detected to be normal, the server configuration file uploading request is forwarded to the main node server again; and if the network state information is normal, carrying out file configuration and error reporting.
For 1 application scene of a target receiving node, if the feedback information of the target receiving node is not received in a preset time period, acquiring network state information of the preset time period; if the network state information is abnormal, when the network state is detected to be normal, the server configuration file uploading request is forwarded to the main node server again; and if the network state information is normal, carrying out file configuration and error reporting.
As another alternative implementation, it may be understood that a user may issue a management operation request to the server cluster through the client, and may also issue a plurality of different types or a plurality of same types of management operation requests, where the types of the management operation requests may include a newly added profile uploading request, a profile modifying request, and a profile deleting request; in order to improve the management efficiency and the management flexibility of the configuration file and improve the user experience, the method may further include the following steps:
when a plurality of management operation requests are received, setting a priority value for the management operation requests according to a preset request processing rule; and forwarding the management operation requests to the main node server in sequence from high to low according to the priority values, and calling a plurality of threads to forward a plurality of management operation requests with the same priority values to the main node server at the same time.
In the embodiment of the invention, the request processing rule can be determined according to the type of the management operation request and the type of the running task of each node server in the server cluster; for example, the newly added configuration file has the highest priority value, the configuration file modification request has the second lowest, the configuration file deletion request has the lowest priority value, the node servers are subjected to priority value division for the importance and time urgency of the operation service, the node servers executing the service with the highest importance level have higher priority values, the node servers with the urgent operation result output time can have higher priority values, and technical personnel in the technical field can perform flexible processing according to actual needs, which is not limited by the present application.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as the logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 is only an exemplary manner, and does not represent that only the execution order is the order.
The embodiment of the invention also provides a corresponding device for the management method of the server configuration file, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the management apparatus for server profiles provided by the embodiments of the present invention is introduced, and the management apparatus for server profiles described below and the management method for server profiles described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 2, fig. 2 is a structural diagram of an apparatus for managing a server profile according to an embodiment of the present invention, in a specific implementation, where the apparatus may include:
the preprocessing module 201 is configured to connect pins of a baseboard management controller chip of each node server in the server cluster in advance.
And the master node server selection module 202 is configured to, when a management operation request of the server configuration file is received, select a node server from the server cluster as the master node server based on the task running state and the CPU resource utilization rate of each node server.
And the configuration file management module 203 is configured to forward the management operation request to the master node server, so that the master node server issues the management operation request to the other node servers in the server cluster, which are not the master node server, in batches through the I2C communication protocol.
As an implementation manner of the embodiment of the present invention, the configuration file management module 203 may be a module that forwards an upload request of a server configuration file to a master node server, so that the master node server sends the configuration file to be updated to corresponding target receiving nodes in a server cluster in batch through an I2C communication protocol according to node server information; the management operation request is a server configuration file uploading request, and the management operation request carries node server information of a target receiving node of the configuration file to be updated and the configuration file to be updated.
Optionally, in some embodiments of this embodiment, the apparatus may include a fault handling module, and the fault handling module may include:
the network state acquisition submodule is used for acquiring network state information of a preset time period if the feedback information of all target receiving nodes is not received in the preset time period; the preset time period is from the moment of uploading the request and forwarding the server configuration file to the moment of acquiring the network state information; the feedback information is that the configuration files are the same or the configuration files are successfully imported.
And the request retransmission submodule is used for retransmitting the server configuration file uploading request to the main node server when the network state is detected to be normal if the network state information is abnormal.
And the error reporting submodule is used for carrying out file configuration error reporting if the network state information is normal.
In other embodiments of this embodiment, the fault handling module may further include:
and the configuration failure information sending submodule is used for sending a configuration failure instruction of the first target receiving node to the main node server if the feedback information of the first target receiving node is not received within the preset time period, so that the main node server sends the configuration file to be updated to the first target node again, and the feedback information comprises the same configuration file or successful configuration file introduction.
In other embodiments of this embodiment, the configuration file management module 203 may further include:
the priority value setting submodule is used for setting a priority value for the management operation request according to a preset request processing rule when receiving a plurality of management operation requests; the request processing rule is determined according to the type of the management operation request and the type of the running task of each node server in the server cluster; the management operation request comprises a configuration file uploading request, a configuration file modifying request and a configuration file deleting request;
and the request issuing submodule is used for forwarding each management operation request to the main node server from high to low in sequence according to the priority value, and forwarding a plurality of management operation requests with the same priority value to the main node server by calling a plurality of threads at the same time.
The functions of the functional modules of the management apparatus for the server configuration file according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can efficiently and conveniently manage the configuration file of the high-density multi-node server.
The above-mentioned management device for the server configuration file is described from the perspective of the functional module, and further, the present application also provides a management device for the server configuration file, which is described from the perspective of hardware. Fig. 3 is a structural diagram of another server profile management apparatus according to an embodiment of the present application. As shown in fig. 3, the apparatus comprises a memory 30 for storing a computer program;
a processor 31 for implementing the steps of the method for managing server profiles as mentioned in the above embodiments when executing the computer program.
The processor 31 may also include a main processor, which is a processor for Processing data in a wake-up state, also called a CPU (Central Processing Unit), and a coprocessor, which is a low power consumption processor for Processing data in a standby state, in some embodiments, the processor 31 may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content to be displayed on a display screen, and in some embodiments, the processor 31 may also include an AI (intelligent processor, which is an AI processor for learning operations related to Artificial Intelligence (AI) Processing.
The memory 30 may include one or more computer-readable storage media, which may be non-transitory, and the memory 30 may further include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices and a flash memory storage device, in this embodiment, the memory 30 is at least used for storing a computer program 301, wherein the computer program can implement the relevant steps of the management method of the server configuration file disclosed in any of the foregoing embodiments after being loaded and executed by the processor 31.
In some embodiments, the management device of the server configuration file may further include a display screen 32, an input/output interface 33, a communication interface 34, a power source 35, and a communication bus 36.
Those skilled in the art will appreciate that the configuration shown in FIG. 3 does not constitute a limitation of the means of managing server profiles and may include more or fewer components than those shown, such as sensors 37.
The functions of the functional modules of the management apparatus for the server configuration file according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can efficiently and conveniently manage the configuration file of the high-density multi-node server.
It is to be understood that, if the management method of the server configuration file in the above embodiment is implemented in the form of a software functional unit and sold or used as a stand-alone product, it may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, an embodiment of the present invention further provides a computer-readable storage medium, in which a management program of a server profile is stored, and the steps of the management method of the server profile according to any one of the above embodiments are performed when the management program of the server profile is executed by a processor.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can efficiently and conveniently manage the configuration file of the high-density multi-node server.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The method, the apparatus, and the computer-readable storage medium for managing a server profile provided by the present application are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method for managing a server profile, comprising:
connecting pins of a baseboard management controller chip of each node server in a server cluster in advance;
when a management operation request of a server configuration file is received, selecting a node server from the server cluster as a main node server based on the task running state of each node server and the CPU resource utilization rate;
and forwarding the management operation request to the master node server, so that the master node server issues the management operation request to the other node servers in the server cluster, which are not the master node server, in batches through an I2C communication protocol.
2. The method for managing the server configuration file according to claim 1, wherein the forwarding the management operation request to the master node server so that the master node server sends the management operation request to the remaining node servers in the server cluster, which are not the master node servers, in batches through an I2C communication protocol comprises:
the management operation request is the server configuration file uploading request, and the management operation request carries node server information of a target receiving node of the configuration file to be updated and the configuration file to be updated;
and forwarding the server configuration file uploading request to the master node server, so that the master node server sends the configuration files to be updated to corresponding target receiving nodes in the server cluster in batches through an I2C communication protocol according to the node server information.
3. The method for managing the server profile according to claim 2, wherein after forwarding the server profile upload request to the master node server, the method further comprises:
if the feedback information of all target receiving nodes is not received within a preset time period, network state information of the preset time period is obtained;
if the network state information is abnormal, when the network state is detected to be normal, the server configuration file uploading request is forwarded to the main node server again;
if the network state information is normal, carrying out file configuration and error reporting;
the preset time period is from the moment of uploading request forwarding of the server configuration file to the moment of acquiring the network state information; the feedback information is that the configuration files are the same or the configuration files are successfully imported.
4. The method for managing the server profile according to claim 2, wherein after forwarding the server profile upload request to the master node server, the method further comprises:
if the feedback information of the first target receiving node is not received within the preset time period, sending a failure configuration instruction of the first target receiving node to the master node server so that the master node server sends the configuration file to be updated to the first target node again, wherein the feedback information comprises the same configuration file or successful configuration file introduction.
5. The method for managing the server configuration file according to any one of claims 1 to 4, wherein the forwarding the management operation request to the primary node server comprises:
the management operation request comprises a configuration file uploading request, a configuration file modifying request and a configuration file deleting request;
when a plurality of management operation requests are received, setting a priority value for the management operation requests according to a preset request processing rule; the request processing rule is determined according to the type of the management operation request and the type of the running task of each node server in the server cluster;
and forwarding the management operation requests to the main node server in sequence from high to low according to the priority values, and calling a plurality of threads to forward a plurality of management operation requests with the same priority values to the main node server at the same time.
6. An apparatus for managing a server profile, comprising:
the preprocessing module is used for connecting pins of the baseboard management controller chips of the node servers in the server cluster in advance;
the master node server selection module is used for selecting a node server from the server cluster as a master node server based on the task running state and the CPU resource utilization rate of each node server when receiving a management operation request of the server configuration file;
and the configuration file management module is used for forwarding the management operation request to the master node server, so that the master node server sends the management operation request to other node servers in the server cluster, which are not the master node server, in batches through an I2C communication protocol.
7. The apparatus for managing server profiles according to claim 6, wherein the profile management module is a module that forwards the server profile upload request to the master node server, so that the master node server sends the profile to be updated to the corresponding target receiving node in the server cluster in batch through an I2C communication protocol according to the node server information; the management operation request is the server configuration file uploading request, and the management operation request carries node server information of a target receiving node of the configuration file to be updated and the configuration file to be updated.
8. The apparatus for managing a server profile according to claim 6 or 7, wherein the profile management module comprises:
the priority value setting submodule is used for setting a priority value for the management operation request according to a preset request processing rule when receiving a plurality of management operation requests; the request processing rule is determined according to the type of the management operation request and the type of the running task of each node server in the server cluster; the management operation request comprises a configuration file uploading request, a configuration file modifying request and a configuration file deleting request;
and the request issuing submodule is used for forwarding each management operation request to the main node server from high to low in sequence according to the priority value, and forwarding a plurality of management operation requests with the same priority value to the main node server by calling a plurality of threads at the same time.
9. An apparatus for managing server profiles, comprising a processor for implementing the steps of the method for managing server profiles according to any one of claims 1 to 5 when executing a computer program stored in a memory.
10. A computer-readable storage medium, on which a management program of a server profile is stored, the management program of the server profile implementing the steps of the management method of the server profile according to any one of claims 1 to 5 when executed by a processor.
CN202010172455.7A 2020-03-12 2020-03-12 Server configuration file management method and device and computer readable storage medium Withdrawn CN111400041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010172455.7A CN111400041A (en) 2020-03-12 2020-03-12 Server configuration file management method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010172455.7A CN111400041A (en) 2020-03-12 2020-03-12 Server configuration file management method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111400041A true CN111400041A (en) 2020-07-10

Family

ID=71432361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010172455.7A Withdrawn CN111400041A (en) 2020-03-12 2020-03-12 Server configuration file management method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111400041A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764826A (en) * 2020-12-30 2021-05-07 中国人寿保险股份有限公司上海数据中心 tuxedo resource batch processing method, system, equipment and medium
CN113609212A (en) * 2021-06-30 2021-11-05 苏州浪潮智能科技有限公司 Method, system and related device for synchronizing configuration files in storage system
TWI812449B (en) * 2022-09-02 2023-08-11 技鋼科技股份有限公司 A multi-node server and communication method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764826A (en) * 2020-12-30 2021-05-07 中国人寿保险股份有限公司上海数据中心 tuxedo resource batch processing method, system, equipment and medium
CN113609212A (en) * 2021-06-30 2021-11-05 苏州浪潮智能科技有限公司 Method, system and related device for synchronizing configuration files in storage system
CN113609212B (en) * 2021-06-30 2023-07-14 苏州浪潮智能科技有限公司 Method, system and related device for synchronizing configuration files in storage system
TWI812449B (en) * 2022-09-02 2023-08-11 技鋼科技股份有限公司 A multi-node server and communication method

Similar Documents

Publication Publication Date Title
CN107590001B (en) Load balancing method and device, storage medium and electronic equipment
CN111400041A (en) Server configuration file management method and device and computer readable storage medium
KR101871383B1 (en) Method and system for using a recursive event listener on a node in hierarchical data structure
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
US20220269564A1 (en) Processing node management method, configuration method, and related apparatus
US9367298B1 (en) Batch configuration mode for configuring network devices
CN109254854A (en) Asynchronous invoking method, computer installation and storage medium
CN114996006A (en) Server arrangement configuration execution method, device, equipment and medium
CN111625592A (en) Load balancing method and device for distributed database
CN111064626A (en) Configuration updating method, device, server and readable storage medium
CN111800511B (en) Synchronous login state processing method, system, equipment and readable storage medium
CN113658351A (en) Product production method and device, electronic equipment and storage medium
CN113347238A (en) Message partitioning method, system, device and storage medium based on block chain
CN111897643A (en) Thread pool configuration system, method, device and storage medium
CN111767126A (en) System and method for distributed batch processing
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN113472886B (en) Distributed cluster system and control method thereof
CN109257256A (en) Apparatus monitoring method, device, computer equipment and storage medium
CN113472638B (en) Edge gateway control method, system, device, electronic equipment and storage medium
CN114760304A (en) Computing power information processing method and system and computing power gateway
CN110768855B (en) Method and device for testing linkmzation performance
CN111209118A (en) Method and device for determining resource allowance, storage medium and electronic equipment
CN111431951A (en) Data processing method, node equipment, system and storage medium
US11526499B2 (en) Adaptively updating databases of publish and subscribe systems using optimistic updates
CN109005059A (en) A kind of system and method for realizing Redis automated back-up

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200710