CN116389311A - Node service deployment method, device, equipment and medium - Google Patents

Node service deployment method, device, equipment and medium Download PDF

Info

Publication number
CN116389311A
CN116389311A CN202310352802.8A CN202310352802A CN116389311A CN 116389311 A CN116389311 A CN 116389311A CN 202310352802 A CN202310352802 A CN 202310352802A CN 116389311 A CN116389311 A CN 116389311A
Authority
CN
China
Prior art keywords
node
deployment
service
deployed
information
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
CN202310352802.8A
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202310352802.8A priority Critical patent/CN116389311A/en
Publication of CN116389311A publication Critical patent/CN116389311A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities

Abstract

The application discloses a node service deployment method, a device, equipment and a medium, which relate to the technical field of computers and comprise the following steps: acquiring a node service deployment request, and determining nodes to be deployed and deployment information based on the node service deployment request; judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node belongs exists in the deployment information, and if so, determining a deployment capacity value; acquiring a local residual capacity value, judging whether the residual capacity value is larger than a deployment capacity value, and if so, determining a service unique identifier; judging whether a historical service unique identifier which is the same as the service unique identifier exists locally or not, if not, formatting the node to be deployed so as to obtain a formatted node to be deployed; and carrying out service deployment starting operation on the formatted nodes to be deployed based on the deployment information so as to obtain the nodes after service deployment. The method and the device can improve service deployment efficiency, increase service deployment accuracy and improve cluster maintenance capability.

Description

Node service deployment method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for deploying node services.
Background
The BeeGFS cluster is a parallel file system which is developed by the Thinkparq team in Germany and is used for realizing high performance of business application by using large-scale hardware, and has wide application in the fields of HPC, AI, machine learning, life science and resource exploration. The BeeGFS cluster adopts a full command line deployment mode, and when the cluster scale is smaller, the deployment time is less. However, if the cluster size is large (e.g. above 5 nodes), the native command line deployment method has the following drawbacks: the time to deploy using the native command line increases linearly with node number (N) growth; the creation and change steps involved in the deployment process are more, so that the service type, service parameters or configuration are easy to be missed when the node scale is large, and the deployment progress is influenced; after deployment, the service state and the configuration of each node of the cluster are lacked, which is not beneficial to the whole inspection and the subsequent maintenance.
From the above, how to improve the efficiency of node service deployment, increase the accuracy of node service deployment, and improve the cluster maintenance capability is a problem to be solved in the field.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a device, and a medium for deploying node services, which relate to the field of computer technology, and can improve efficiency of deploying node services, increase accuracy of deploying node services, and improve cluster maintenance capability. The specific scheme is as follows:
in a first aspect, the present application discloses a node service deployment method, including:
acquiring a node service deployment request, and determining a node to be deployed and deployment information based on the node service deployment request;
judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information;
acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value;
judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally;
and carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment.
Optionally, the determining the node to be deployed and the deployment information based on the node service deployment request includes:
determining a node to be deployed based on the node service deployment request;
and determining deployment information comprising the name of the node to be deployed, the disk to which the node belongs, the deployment capacity value, the unique service identifier and the port number.
Optionally, the obtaining a node service deployment request, and determining the node to be deployed and the deployment information based on the node service deployment request includes:
determining the service type to be deployed according to the node service deployment request;
and determining nodes to be deployed and deployment information based on the service type and the node service deployment request.
Optionally, after the determining whether the network connectivity between the local node and the node to be deployed is normal, the method further includes:
if the network connectivity between the local and the node to be deployed is abnormal, generating a network connectivity re-detection request or a node name re-detection request;
the network connectivity re-detection request or the node name re-detection request is sent to the local.
Optionally, after the determining whether the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally, the method further includes:
if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally, creating a service catalog according to service requirements, and generating a configuration file;
and modifying the configuration parameters in the configuration file according to the port number in the deployment information and the service unique identifier.
Optionally, the performing service deployment starting operation on the formatted node to be deployed based on the deployment information includes:
executing a preset file system mounting command on the formatted node to be deployed through a security protocol to obtain the node to be deployed after the command is executed;
and carrying out service deployment starting operation on the nodes to be deployed after the command is executed based on the deployment information.
Optionally, after the obtaining the service deployed node, the method further includes:
acquiring service states and configuration information of all the nodes after service deployment;
and generating a catalog of the service based on the service state and the configuration information, and storing the catalog of the service to the local.
In a second aspect, the present application discloses a node service deployment apparatus, including:
the node service deployment request acquisition module is used for acquiring a node service deployment request and determining a node to be deployed and deployment information based on the node service deployment request;
the connectivity judging module is used for judging whether the network connectivity between the local and the nodes to be deployed is normal, judging whether a disk to which the nodes in the deployment information belong exists if the network connectivity between the local and the nodes to be deployed is normal, and determining a deployment capacity value in the deployment information if the disk to which the nodes in the deployment information belong exists;
the capacity value judging module is used for acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value;
the service unique identifier judging module is used for judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally, formatting the node to be deployed to obtain a formatted node to be deployed;
and the node service deployment module is used for carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the node service deployment method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the node service deployment method disclosed previously.
It can be seen that the present application provides a node service deployment method, which includes obtaining a node service deployment request, and determining a node to be deployed and deployment information based on the node service deployment request; judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information; acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value; judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally; and carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment. According to the method and the device, service deployment of all nodes in the cluster is realized by executing the deployment tool on a single node, each type of service deployment is distinguished by service types, the nodes to be deployed, the deployment service and main parameters are actively identified according to different input parameters, full-automatic deployment and starting of the service are realized, deployment results can be actively collected, and inspection and subsequent maintenance after deployment are facilitated, so that the efficiency of node service deployment can be improved, the accuracy of node service deployment is improved, and the cluster maintenance capability is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a node service deployment method disclosed in the present application;
FIG. 2 is a flow chart of a method for deploying node services disclosed in the present application;
fig. 3 is a schematic structural diagram of a node service deployment device disclosed in the present application;
fig. 4 is a block diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The BeeGFS cluster is a parallel file system which is developed by the Thinkparq team in Germany and is used for realizing high performance of business application by using large-scale hardware, and has wide application in the fields of HPC, AI, machine learning, life science and resource exploration. The BeeGFS cluster adopts a full command line deployment mode, and when the cluster scale is smaller, the deployment time is less. However, if the cluster size is large (e.g. above 5 nodes), the native command line deployment method has the following drawbacks: the time to deploy using the native command line increases linearly with node number (N) growth; the creation and change steps involved in the deployment process are more, so that the service type, service parameters or configuration are easy to be missed when the node scale is large, and the deployment progress is influenced; after deployment, the service state and the configuration of each node of the cluster are lacked, which is not beneficial to the whole inspection and the subsequent maintenance. From the above, how to improve the efficiency of node service deployment, increase the accuracy of node service deployment, and improve the cluster maintenance capability is a problem to be solved in the field.
Referring to fig. 1, the embodiment of the invention discloses a node service deployment method, which specifically includes:
step S11: and acquiring a node service deployment request, and determining a node to be deployed and deployment information based on the node service deployment request.
In this embodiment, a node service deployment request is acquired, a service type to be deployed is determined according to the node service deployment request, and then a node to be deployed and deployment information are determined based on the service type and the node service deployment request; the deployment information comprises a node name to be deployed, a disk to which the node belongs, a deployment capacity value, a service unique identifier and a port number.
The method and the device are applied to a deployment tool in any node in the cluster, and different service types are transmitted into different custom parameters through setting the service types, so that the inspection, deployment and starting of the service are realized. Taking the deployment of META service as an example: and acquiring a node service deployment request, and then confirming the node name of the META service to be deployed, the disk/partition to which the node belongs, the deployment capacity value, the service ID (Identity document, unique identification) and the port number. For different service types, automatic configuration of specific type parameters can be realized, such as whether the MGMTD service uses a system disk partition or not and whether the partition is formatted or not; whether META and store services use multi-process mode, different process port settings.
Step S12: judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information.
In this embodiment, after determining whether the network connectivity between the local node and the node to be deployed is normal, the method further includes: if the network connectivity between the local and the node to be deployed is abnormal, generating a network connectivity re-detection request or a node name re-detection request; the network connectivity re-detection request or the node name re-detection request is sent to the local.
In this embodiment, it is checked whether a node corresponding to network connectivity between the local node and the node to be deployed is communicable, if the node corresponding to network connectivity is unable to communicate, an exception is thrown, and connectivity or node name is required to be checked to generate a network connectivity redetection request or a node name redetection request, and then the network connectivity redetection request or the node name redetection request is sent to the local node.
In the embodiment, whether the set magnetic disk exists or not is checked, and if the set magnetic disk does not exist, the abnormality is thrown out; if yes, checking whether the residual capacity meets the set capacity requirement, and if not, throwing out the abnormality.
Step S13: and acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value.
Step S14: judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally.
In this embodiment, after determining whether the local has the historical service unique identifier that is the same as the service unique identifier in the node information to be deployed, the method further includes: if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally, creating a service catalog according to service requirements, and generating a configuration file; and modifying the configuration parameters in the configuration file according to the port number in the deployment information and the service unique identifier.
In this embodiment, it is checked whether a service ID already exists at the set node, if so, an exception is thrown, if not, a service directory is created as needed, a configuration file is generated, and configuration parameters are modified according to the port number and the service ID.
Step S15: and carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment.
In the embodiment, a node service deployment request is acquired, and a node to be deployed and deployment information are determined based on the node service deployment request; judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information; acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value; judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally; and carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment. According to the method and the device, service deployment of all nodes in the cluster is realized by executing the deployment tool on a single node, each type of service deployment is distinguished by service types, the nodes to be deployed, the deployment service and main parameters are actively identified according to different input parameters, full-automatic deployment and starting of the service are realized, deployment results can be actively collected, and inspection and subsequent maintenance after deployment are facilitated, so that the efficiency of node service deployment can be improved, the accuracy of node service deployment is improved, and the cluster maintenance capability is improved.
Referring to fig. 2, the embodiment of the invention discloses a node service deployment method, which specifically includes:
step S21: and acquiring a node service deployment request, and determining a node to be deployed and deployment information based on the node service deployment request.
Step S22: judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information.
Step S23: and acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value.
Step S24: judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally.
Step S25: and executing a preset file system mounting command on the formatted node to be deployed through a security protocol to obtain the node to be deployed after the command is executed, and performing service deployment starting operation on the node to be deployed after the command is executed based on the deployment information to obtain the node after service deployment.
In this embodiment, on the premise that each node of the cluster completes encryption-free, service deployment of all nodes of the cluster is implemented in a mode that a single node distributes commands through other nodes of an SSH (security protocol).
Step S26: and acquiring service states and configuration information of all the nodes after service deployment, generating a catalog of the service based on the service states and the configuration information, and storing the catalog of the service to a local place.
In this embodiment, if there is no history service unique identifier that is the same as the service unique identifier in the node information to be deployed locally, disk/partition formatting is performed according to the existing information, file system mounting, service deployment and starting are performed, when all nodes are completely deployed, service states and configuration information are collected by traversing all nodes, a directory to which the service belongs is generated according to the service states and the configuration information, and the directory to which the service belongs is stored locally.
The key points of the application are as follows: the method is applied to a deployment tool in any node in the cluster, namely, a method for realizing cluster deployment through single-node operation; a method for rapidly deploying corresponding services to designated nodes according to service types and parameters to be deployed is provided; and the deployment result is actively collected, so that the subsequent maintenance is convenient.
In the embodiment, a node service deployment request is acquired, and a node to be deployed and deployment information are determined based on the node service deployment request; judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information; acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value; judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally; and carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment. According to the method and the device, service deployment of all nodes in the cluster is realized by executing the deployment tool on a single node, each type of service deployment is distinguished by service types, the nodes to be deployed, the deployment service and main parameters are actively identified according to different input parameters, full-automatic deployment and starting of the service are realized, deployment results can be actively collected, and inspection and subsequent maintenance after deployment are facilitated, so that the efficiency of node service deployment can be improved, the accuracy of node service deployment is improved, and the cluster maintenance capability is improved.
Referring to fig. 3, the embodiment of the invention discloses a node service deployment device, which specifically may include:
the node service deployment request acquisition module 11 is configured to acquire a node service deployment request, and determine a node to be deployed and deployment information based on the node service deployment request;
the connectivity judging module 12 is configured to judge whether network connectivity between the local and the node to be deployed is normal, if the network connectivity between the local and the node to be deployed is normal, judge whether a disk to which the node in the deployment information belongs exists, and if the disk to which the node in the deployment information belongs exists, determine a deployment capacity value in the deployment information;
a capacity value judging module 13, configured to obtain a local residual capacity value, and judge whether the residual capacity value is greater than the deployment capacity value, and if the residual capacity value is greater than the deployment capacity value, determine a service unique identifier in the deployment information;
the service unique identifier determining module 14 is configured to determine whether a historical service unique identifier that is the same as the service unique identifier in the node information to be deployed exists locally, and if the historical service unique identifier that is the same as the service unique identifier in the node information to be deployed does not exist locally, format the node to be deployed to obtain a formatted node to be deployed;
the node service deployment module 15 is configured to perform a service deployment starting operation on the formatted node to be deployed based on the deployment information, so as to obtain a node after service deployment.
In the embodiment, a node service deployment request is acquired, and a node to be deployed and deployment information are determined based on the node service deployment request; judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information; acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value; judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally; and carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment. According to the method and the device, service deployment of all nodes in the cluster is realized by executing the deployment tool on a single node, each type of service deployment is distinguished by service types, the nodes to be deployed, the deployment service and main parameters are actively identified according to different input parameters, full-automatic deployment and starting of the service are realized, deployment results can be actively collected, and inspection and subsequent maintenance after deployment are facilitated, so that the efficiency of node service deployment can be improved, the accuracy of node service deployment is improved, and the cluster maintenance capability is improved.
In some specific embodiments, the node service deployment request acquisition module 11 may specifically include:
the node to be deployed determining module is used for determining the node to be deployed based on the node service deployment request;
the deployment information determining module is used for determining deployment information comprising the name of the node to be deployed, the disk to which the node belongs, the deployment capacity value, the service unique identifier and the port number.
In some specific embodiments, the node service deployment request acquisition module 11 may specifically include:
the service type determining module is used for determining the service type to be deployed according to the node service deployment request;
and the deployment information determining module is used for determining the node to be deployed and the deployment information based on the service type and the node service deployment request.
In some specific embodiments, the connectivity determination module 12 may specifically include:
the connectivity judging module is used for generating a network connectivity re-detection request or a node name re-detection request if the network connectivity between the local node and the node to be deployed is abnormal;
and the re-detection request sending module is used for sending the network connectivity re-detection request or the node name re-detection request to the local.
In some specific embodiments, the service unique identifier determining module 14 may specifically include:
the configuration file generation module is used for creating a service catalog according to service requirements and generating a configuration file if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally;
and the configuration parameter modification module is used for modifying the configuration parameters in the configuration file according to the port number in the deployment information and the service unique identifier.
In some specific embodiments, the node service deployment module 15 may specifically include:
the node to be deployed determination module after the command is executed is used for executing a preset file system mounting command on the formatted node to be deployed through a security protocol so as to obtain the node to be deployed after the command is executed;
and the service deployment starting module is used for carrying out service deployment starting operation on the nodes to be deployed after the command is executed based on the deployment information.
In some specific embodiments, the node service deployment module 15 may specifically include:
all configuration information acquisition modules are used for acquiring service states and configuration information of all the nodes after service deployment;
and the service belonging catalog generating module is used for generating a service belonging catalog based on the service state and the configuration information and storing the service belonging catalog locally.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the node service deployment method performed by the electronic device as disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the node service deployment method performed by the electronic device 20 as disclosed in any of the previous embodiments. The data 223 may include, in addition to data received by the node service deployment device and transmitted by an external device, data collected by the own input/output interface 25, and so on.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the steps of the node service deployment method disclosed in any embodiment are realized.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has described in detail a method, apparatus, device and storage medium for deploying node services, wherein specific examples are applied to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A node service deployment method, comprising:
acquiring a node service deployment request, and determining a node to be deployed and deployment information based on the node service deployment request;
judging whether the network connectivity between the local and the node to be deployed is normal, if so, judging whether a disk to which the node in the deployment information belongs exists, and if so, determining a deployment capacity value in the deployment information;
acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value;
judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and formatting the node to be deployed to obtain a formatted node to be deployed if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally;
and carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment.
2. The node service deployment method according to claim 1, wherein the determining the node to be deployed and the deployment information based on the node service deployment request includes:
determining a node to be deployed based on the node service deployment request;
and determining deployment information comprising the name of the node to be deployed, the disk to which the node belongs, the deployment capacity value, the unique service identifier and the port number.
3. The node service deployment method according to claim 1, wherein the obtaining a node service deployment request and determining a node to be deployed and deployment information based on the node service deployment request include:
determining the service type to be deployed according to the node service deployment request;
and determining nodes to be deployed and deployment information based on the service type and the node service deployment request.
4. The node service deployment method according to claim 1, wherein after the determining whether the network connectivity between the local and the node to be deployed is normal, further comprising:
if the network connectivity between the local and the node to be deployed is abnormal, generating a network connectivity re-detection request or a node name re-detection request;
the network connectivity re-detection request or the node name re-detection request is sent to the local.
5. The node service deployment method according to claim 1, wherein after the determining whether the historical service unique identifier identical to the service unique identifier in the node information to be deployed exists locally, further comprising:
if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally, creating a service catalog according to service requirements, and generating a configuration file;
and modifying the configuration parameters in the configuration file according to the port number in the deployment information and the service unique identifier.
6. The node service deployment method according to claim 1, wherein performing a service deployment initiation operation on the formatted node to be deployed based on the deployment information comprises:
executing a preset file system mounting command on the formatted node to be deployed through a security protocol to obtain the node to be deployed after the command is executed;
and carrying out service deployment starting operation on the nodes to be deployed after the command is executed based on the deployment information.
7. The node service deployment method according to any one of claims 1 to 6, wherein after the obtaining the service deployed node, further comprising:
acquiring service states and configuration information of all the nodes after service deployment;
and generating a catalog of the service based on the service state and the configuration information, and storing the catalog of the service to the local.
8. A node service deployment apparatus, comprising:
the node service deployment request acquisition module is used for acquiring a node service deployment request and determining a node to be deployed and deployment information based on the node service deployment request;
the connectivity judging module is used for judging whether the network connectivity between the local and the nodes to be deployed is normal, judging whether a disk to which the nodes in the deployment information belong exists if the network connectivity between the local and the nodes to be deployed is normal, and determining a deployment capacity value in the deployment information if the disk to which the nodes in the deployment information belong exists;
the capacity value judging module is used for acquiring a local residual capacity value, judging whether the residual capacity value is larger than the deployment capacity value, and determining a service unique identifier in the deployment information if the residual capacity value is larger than the deployment capacity value;
the service unique identifier judging module is used for judging whether a historical service unique identifier which is the same as the service unique identifier in the node information to be deployed exists locally or not, and if the historical service unique identifier which is the same as the service unique identifier in the node information to be deployed does not exist locally, formatting the node to be deployed to obtain a formatted node to be deployed;
and the node service deployment module is used for carrying out service deployment starting operation on the formatted node to be deployed based on the deployment information so as to obtain a node after service deployment.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the node service deployment method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the node service deployment method according to any of claims 1 to 7.
CN202310352802.8A 2023-03-30 2023-03-30 Node service deployment method, device, equipment and medium Pending CN116389311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310352802.8A CN116389311A (en) 2023-03-30 2023-03-30 Node service deployment method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310352802.8A CN116389311A (en) 2023-03-30 2023-03-30 Node service deployment method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116389311A true CN116389311A (en) 2023-07-04

Family

ID=86980219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310352802.8A Pending CN116389311A (en) 2023-03-30 2023-03-30 Node service deployment method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116389311A (en)

Similar Documents

Publication Publication Date Title
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN103237060B (en) A kind of data object acquisition, Apparatus and system
EP2220822B1 (en) Method and apparatus for concurrent topology discovery
EP1704672A1 (en) Automatic update system and method for using a meta mib
CN112769652B (en) Node service monitoring method, device, equipment and medium
CN104363107A (en) Inspection method and equipment for security baseline
CN106357442A (en) Server cluster monitoring method and system
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN104468201A (en) Automatic deleting method and device for offline network equipment
CN108055296B (en) Transaction processing method and device based on micro-service architecture
CN115913872A (en) Server monitoring operation and maintenance method, device, equipment and medium
CN106301855B (en) Network management system deployment method and device and network management system
WO2007040325A1 (en) Device management system using log management object and method for generating and controlling logging data therein
CN116389311A (en) Node service deployment method, device, equipment and medium
KR102246079B1 (en) SYSTEM OF SENSORY DATA ACQUISITION AND SYNCHRONIZATION FOR CLOUD CENTRIC IoT AND METHOD PERFORMING THEREOF
CN113824801B (en) Intelligent integration terminal unified access management component system
CN114363164B (en) Cloud network service arrangement control method, system, storage medium and electronic equipment
CN106886589A (en) A kind of picture storage method, service end and client
CN114035539A (en) Instantiated vehicle type communication matrix generation method, device, equipment and storage medium
CN112769923A (en) Method, device and storage medium for monitoring network equipment performance index in big data scene
CN116055496B (en) Monitoring data acquisition method and device, electronic equipment and storage medium
CN114827086B (en) Method, device, equipment and storage medium for detecting IP discovery
CN117041213A (en) IP exception handling method, device, equipment and medium
CN115834449A (en) Method for discovering and managing collector equipment in industrial audit system
CN113687962A (en) Request processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination