CN114745261A - Agent-based intelligent management method, device, equipment and storage medium - Google Patents

Agent-based intelligent management method, device, equipment and storage medium Download PDF

Info

Publication number
CN114745261A
CN114745261A CN202210296281.4A CN202210296281A CN114745261A CN 114745261 A CN114745261 A CN 114745261A CN 202210296281 A CN202210296281 A CN 202210296281A CN 114745261 A CN114745261 A CN 114745261A
Authority
CN
China
Prior art keywords
agent
task data
information
task
node
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
CN202210296281.4A
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.)
Cloudwise Beijing Technology Co Ltd
Original Assignee
Cloudwise Beijing 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 Cloudwise Beijing Technology Co Ltd filed Critical Cloudwise Beijing Technology Co Ltd
Priority to CN202210296281.4A priority Critical patent/CN114745261A/en
Publication of CN114745261A publication Critical patent/CN114745261A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The utility model discloses an Agent-based intelligent management method, device, equipment and storage medium, the method comprises: acquiring preset information of at least one node to be installed, executing installation of a management tool and at least one Agent corresponding to the node based on the preset information, and acquiring node installation information after installation is completed; sending node installation information to a server side so that the server side completes the registration of the node; receiving a task notification from the server, and sending a task data reading request to the server based on the task notification; the method comprises the steps of obtaining task data of at least one first target Agent, executing a corresponding task script command based on the task data, and sending execution state information to a server, so that the server updates the state of the at least one target Agent based on the execution state information. The method disclosed by the invention can improve the operation and maintenance management level and the operation and maintenance management efficiency of the system.

Description

Agent-based intelligent management method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of Agent management, in particular to an Agent-based intelligent management method, device, equipment and storage medium.
Background
At present, the Agent technology plays an increasingly important role, and management work of agents, such as server agents, is uniformly logged into a server by operation and maintenance personnel, manual operation and maintenance operation are performed by executing script commands, large-scale batch operation is performed due to lack of a uniform management tool, so that efficiency is low, misoperation is easy to occur, and normal operation of a service system is possibly influenced due to resource preemption and the like caused by the conditions that individual Agent codes are not standardized, uniform monitoring is lacked and the like.
Therefore, an Agent-based intelligent management tool needs to be provided, so that the operation and maintenance management level and the operation and maintenance management efficiency are improved.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present disclosure provide an Agent-based intelligent management method, apparatus, device, and storage medium, which can improve operation and maintenance management level and operation and maintenance management efficiency of Agent management.
According to a first aspect of the present disclosure, an Agent-based intelligent management method is provided, which includes the following steps on a node device side:
acquiring preset information of at least one node to be installed, executing installation of a management tool and at least one Agent corresponding to the node based on the preset information, and acquiring node installation information after the installation is finished;
sending the node installation information to a server side so that the server side completes the registration of the node;
receiving a task notification from the server, and sending a task data reading request to the server based on the task notification;
the method comprises the steps of obtaining task data of at least one first target Agent, executing a corresponding task script command based on the task data, enabling the at least one first target Agent to execute configuration operation corresponding to the task data, and obtaining an execution state of the configuration operation; and
and sending the execution state information to the server, so that the server updates the state of the at least one target Agent based on the execution state information.
In an optional implementation manner, the obtaining preset information of at least one node to be installed, and executing installation of a management tool and at least one Agent corresponding to the node based on the preset information includes:
acquiring a tool installation instruction determined based on system platform information of at least one node to be installed and configuration information of the at least one node to be installed;
executing installation of a management tool corresponding to the node based on the tool installation instruction; and
and after the management tool is confirmed to be installed, the management tool completes installation of at least one Agent corresponding to the node based on the configuration information.
In an optional embodiment, the management tool is a management Agent, and the management Agent communicates with the at least one Agent based on an HTTP protocol, and the method further includes:
and the management tool acquires the state information of at least one Agent corresponding to the node, and dynamically adjusts the state of the at least one Agent on the basis of the state information.
In an optional implementation manner, preferably, the dynamically adjusting the state of the at least one Agent based on the state information includes:
comparing the resource consumption state information of each Agent with a corresponding preset threshold to obtain a first comparison result, determining at least one second target Agent based on the first comparison result, and suspending the second target Agent, wherein the at least one Agent comprises the second target Agent; and/or
And comparing the total resource consumption information of the at least one Agent corresponding to the node with a preset range to obtain a second comparison result, and determining at least one third target Agent and dynamically adjusting the resource consumption state of the third target Agent based on the second comparison result and the priority sequence of the at least one Agent, wherein the at least one Agent comprises the third target Agent.
In an optional embodiment, the obtaining task data of at least one first target Agent includes:
and acquiring task identification information, identification information of at least one first target Agent and type information.
In an optional implementation manner, preferably, the type information includes at least one of: installing tasks, unloading tasks and upgrading tasks;
the executing the corresponding task script based on the task data to enable the at least one first target Agent to execute the configuration operation corresponding to the task data includes:
after the management tool obtains the task data of the installation task, checking whether an installation package corresponding to the current task data can run in the current system platform; distributing a preset working catalog for each Agent in the at least one Agent to serve as identification information of the Agent; decompressing the installation package into the working directory and executing an Agent starting command; and/or
After the management tool obtains the task data of the unloading task, analyzing and obtaining the identification information of the first target Agent; acquiring the current working state of the first target Agent, and stopping the first target Agent if the first target Agent is currently in operation; directly operating the configuration file of the first target Agent, and deleting the working directory of the first target Agent; and/or
After the management tool obtains the task data of the upgrading task, checking version information, system platform types and CPU (Central processing Unit) architectures of a current installation package carried in an upgrading command corresponding to the task data, determining whether the current installation package can be installed in the current first target Agent, and if the current installation package is determined to be installed in the current first target Agent, directly modifying the configuration file of the first target Agent and executing a restarting command of the first target Agent so as to execute the upgrading command.
According to a second aspect of the present disclosure, an Agent-based intelligent management method is provided, including, at a server:
receiving address information of node equipment to be configured and task data of at least one first target Agent, and executing address information splicing operation;
storing the spliced address information and the task data into a cache database, and inserting the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information;
receiving a task data reading request of the node equipment, reading the task data in the cache database, and sending the task data to the node equipment; and
and receiving execution state information of the node equipment, and updating the state of at least one target Agent in the relational database based on the execution state information.
According to a third aspect of the present disclosure, there is provided an Agent-based intelligent management method, including, at a client:
receiving address information of node equipment to be configured and task data of at least one first target Agent;
sending the address information and task data of at least one first target Agent to the server according to claim 7;
the communication between the client and the server is realized through a B/S architecture, and the client supports remote configuration operation and/or local configuration operation on the node equipment.
According to a fourth aspect of the present disclosure, there is provided an Agent-based intelligent management method, including:
the method comprises the steps that a client receives address information of node equipment to be configured and task data of at least one first target Agent, and sends the address information and the task data of the at least one first target Agent to a server;
the server receives the address information of the node equipment to be configured and task data of at least one first target Agent, and executes address information splicing operation; the server stores the spliced address information and the task data into a cache database, and inserts the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information;
the node equipment receives a task notification from the server and sends a task data reading request to the server based on the task notification;
the server receives a task data reading request of the node equipment, reads the task data in the cache database, and sends the task data to the node equipment;
the node equipment acquires task data of at least one first target Agent, executes a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquires an execution state of the configuration operation; and
and sending the execution state information to the server, and updating the state of at least one target Agent in the relational database by the server based on the execution state information.
According to a fifth aspect of the present disclosure, there is provided an Agent-based intelligent management apparatus for a node device, the apparatus including:
the installation unit is used for acquiring preset information of at least one node to be installed, executing installation of a management tool and at least one Agent corresponding to the node based on the preset information, and acquiring node installation information after the installation is finished;
the registration unit is used for sending the node installation information to a server so that the server completes the registration of the node;
the data request unit is used for receiving a task notification from the server and sending a task data reading request to the server based on the task notification;
the data acquisition unit is used for acquiring task data of at least one first target Agent, executing a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquiring an execution state of the configuration operation; and
and the data sending unit is used for sending the execution state information to the server, so that the server updates the state of the at least one target Agent based on the execution state information.
In an alternative embodiment, the mounting unit comprises:
the acquisition subunit is used for acquiring a tool installation instruction determined based on system platform information of at least one node to be installed and configuration information of the at least one node to be installed;
the execution subunit is used for executing the installation of the management tool corresponding to the node based on the tool installation instruction; and
and the confirming subunit is used for confirming that the management tool completes the installation of at least one Agent corresponding to the node based on the configuration information after the management tool completes the installation.
In an alternative embodiment, the apparatus further comprises:
and the dynamic adjustment unit is used for acquiring the state information of at least one Agent corresponding to the node by the management tool and automatically dynamically adjusting the state of the at least one Agent based on the state information.
In an optional embodiment, the dynamic adjustment unit comprises:
the first comparison subunit is configured to compare the resource consumption state information of each Agent with a corresponding preset threshold to obtain a first comparison result, determine at least one second target Agent based on the first comparison result, and suspend the second target Agent, where the at least one Agent includes the second target Agent; and/or
And the second comparison subunit is configured to compare the total resource consumption information of the at least one Agent corresponding to the node with a preset range to obtain a second comparison result, determine at least one third target Agent based on the second comparison result and the priority order of the at least one Agent, and dynamically adjust the resource consumption state of the third target Agent, where the at least one Agent includes the third target Agent.
In an alternative embodiment, the data acquisition unit comprises:
and the information acquisition subunit is used for acquiring the task identification information, the identification information of the at least one first target Agent and the type information.
In an optional implementation, the information obtaining subunit includes:
an installation task subunit to: after the management tool obtains the task data of the installation task, checking whether an installation package corresponding to the current task data can run in the current system platform; distributing a preset working catalog for each Agent in the at least one Agent to serve as identification information of the Agent; decompressing the installation package into the working directory and executing an Agent starting command; and/or
An offload task subunit to: after the management tool obtains the task data of the unloading task, analyzing and obtaining the identification information of the first target Agent; acquiring the current working state of the first target Agent, and stopping the first target Agent if the first target Agent is currently in operation; directly operating the configuration file of the first target Agent, and deleting the working directory of the first target Agent; and/or
An upgrade task subunit to: after the management tool obtains the task data of the upgrading task, checking version information, system platform types and CPU (Central processing Unit) architectures of a current installation package carried in an upgrading command corresponding to the task data, determining whether the current installation package can be installed in the current first target Agent, and if the current installation package is determined to be installed in the current first target Agent, directly modifying the configuration file of the first target Agent and executing a restarting command of the first target Agent so as to execute the upgrading command.
According to a sixth aspect of the present disclosure, there is provided an Agent-based intelligent management device for a server, including:
the information splicing unit is used for receiving the address information of the node equipment to be configured and the task data of at least one first target Agent and executing address information splicing operation;
the task notification unit is used for storing the spliced address information and the task data into a cache database and inserting the spliced address information and the spliced task data into a relational database, so that the message middleware sends a task notification to the node equipment corresponding to the address information;
the task sending unit is used for receiving a task data reading request of the node equipment, reading the task data in the cache database and sending the task data to the node equipment; and
and the state updating unit is used for receiving the execution state information of the node equipment and updating the state of at least one target Agent in the relational database based on the execution state information.
According to a seventh aspect of the present disclosure, there is provided an Agent-based intelligent management apparatus for a client, including:
the data receiving unit is used for receiving address information of the node equipment to be configured and task data of at least one first target Agent;
an information sending unit, configured to send the address information and task data of at least one first target Agent to the server according to the sixth aspect;
the communication between the client and the server is realized through a B/S architecture, and the client supports remote configuration operation and/or local configuration operation on the node equipment.
According to an eighth aspect of the present disclosure, there is provided an Agent-based intelligent management apparatus for an Agent-based intelligent management system, including:
the client side receiving and sending unit is used for receiving the address information of the node equipment to be configured and the task data of at least one first target Agent by the client side and sending the address information and the task data of the at least one first target Agent to the server side;
the server side receiving and sending unit is used for receiving the address information of the node equipment to be configured and the task data of at least one first target Agent and executing address information splicing operation by the server side; the server stores the spliced address information and the task data into a cache database, and inserts the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information;
a node data request unit, configured to receive, by the node device, a task notification from the server and send a task data read request to the server based on the task notification;
a server data reading unit, configured to receive a task data reading request of the node device by the server, read the task data in the cache database, and send the task data to the node device;
the node data acquisition unit is used for acquiring task data of at least one first target Agent by the node equipment, executing a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquiring an execution state of the configuration operation; and
and the state information sending and updating unit is used for sending the execution state information to the server side, and the server side updates the state of at least one target Agent in the relational database on the basis of the execution state information.
According to a ninth aspect of the present disclosure, there is provided a computer-readable storage medium having stored therein instructions which, when run on a terminal device, cause the terminal device to implement the method described above.
According to a tenth aspect of the present disclosure, there is provided an Agent-based intelligent management apparatus, including: the system comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the method.
The scheme of the above embodiment of the present disclosure at least includes the following beneficial effects:
the intelligent Agent-based management method is provided aiming at the situation that a large amount of agents are commonly deployed at a server side in the IT industry in unified management, a management tool on each node device and the agents with the node operation functions are installed and deployed together, unified deployment, monitoring, operation and maintenance operation and the like are autonomously performed on all the installed agents through the autonomy of the intelligent Agent-based management tool, the agents are dynamically adjusted through a tool to guarantee the normal operation of the agents, and finally the operation and maintenance management level and the operation and maintenance management efficiency are improved.
The present disclosure is further described with reference to the following drawings.
Drawings
Fig. 1A is a schematic diagram of a system architecture applicable to an Agent-based intelligent management method according to an embodiment of the present disclosure;
fig. 1B is a schematic flow diagram of an Agent-based intelligent management method according to an embodiment of the present disclosure:
fig. 2 is an installation flowchart of the Agent-based intelligent management tool according to the present disclosure:
FIG. 3 is a flow chart of Agent management of an Agent-based intelligent management tool according to the present disclosure;
FIG. 4 is a flow chart of the intelligent management tool management of an Agent-based intelligent management tool according to the present disclosure;
FIG. 5 is a resource consumption detail monitoring page of an Agent-based intelligent management tool according to the present disclosure;
FIG. 6 is a diagram showing a fusing protection setup page of an Agent-based intelligent management tool according to the present disclosure;
FIG. 7 is a schematic diagram of Agent management of an Agent-based intelligent management tool according to the present disclosure;
fig. 8 is a schematic structural diagram of another Agent-based intelligent management device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an Agent-based intelligent management device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
According to the intelligent management tool based on the agents, unified and standardized scheduling and management of the management tool agents deployed at the server side are achieved by providing a standardized tool, unified deployment, monitoring, operation and maintenance operation and the like are automatically performed on all installed agents by utilizing the autonomy of the management tool agents, the agents are dynamically adjusted through the tool to guarantee normal operation of the agents, and finally the operation and maintenance management level and the operation and maintenance management efficiency are improved.
FIG. 1A schematically illustrates an exemplary system architecture 100 that may be applied to an Agent-based intelligent management approach according to an embodiment of the disclosure. It should be noted that fig. 1A is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1A, the system architecture 100 according to this embodiment may include node devices 101, 102, 103, a network 104, a server 105, and clients 106, 107, 108. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105, and between the server 105 and the clients 106, 107, 108. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The node devices 101, 102, and 103 may be installed with a management tool Agent and a function running Agent configured as needed, where the management tool Agent is connected to each function running Agent and autonomously manages each function running Agent.
Specifically, in the embodiment, the node device selects the Agent plug-in components to be used, and is installed and deployed together with the management tool, and the intelligent management tool AgentDaemon of the embodiment is used as a management brain and a central hub, can uniformly collect the states of the agents installed and deployed depending on the management tool, and uniformly feeds the states back to the control platform of the management tool, so that operation and maintenance operations such as uniform starting, stopping, upgrading, unloading and the like are performed on all the agents.
The implementation of the installation, uninstallation and upgrade Agent of the intelligent management tool AgentDaemon of this embodiment is specifically: after the AgentDaemon obtains an Agent installation command, firstly checking whether a current package can run in a current system, then allocating a fixed working directory for the Agent, taking the name of the working directory as a unique identifier of the Agent, finally decompressing the installation package into the current working directory, and executing a starting command; the AgentDaemon can analyze the unique identifier of the Agent after obtaining the Agent unloading command, then obtain the working state of the current Agent, stop the Agent if the Agent is in operation, and then delete the Agent working directory; after the AgentDaemon obtains an Agent upgrading command, the upgrading command carries version information, system type, CPU architecture and the like of the current package for the Daemon to verify whether the current package can be installed in the current Agent.
The configuration file of the intelligent management tool AgentDaemon control Agent in this embodiment is specifically: AgentDaemon can directly operate the configuration file of each Agent; in the current situation, after the configuration file is modified, AgentDaemon can directly realize the validation of the configuration file through a restart command of Agent; the AgentDaemon control Agent is mainly realized through a script command of the Agent.
The intelligent management tool AgentDaemon of this embodiment communicates with the Agent through the HTTP protocol: the result created by the task can be returned in real time; an Agent may occupy a certain port of 127.0.0.1.
A user may interact with the server 105 over the network 104 using clients 106, 107, 108 to receive or send messages, etc. Clients 106, 107, 108 may be a variety of electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server that provides various services, such as a back-office management server (for example only) that provides support for websites browsed by users using the clients 106, 107, 108. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be understood that the number of terminal devices, networks, and servers in FIG. 1A are merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
As shown in fig. 1B, an Agent-based intelligent management method according to an embodiment of the present disclosure includes:
the method comprises the steps that a client receives address information of node equipment to be configured and task data of at least one first target Agent, and sends the address information and the task data of the at least one first target Agent to a server;
the server receives the address information of the node equipment to be configured and task data of at least one first target Agent, and executes address information splicing operation; the server stores the spliced address information and the spliced task data into a cache database (in this embodiment, a Redis cache database may be used), and inserts the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information;
the node equipment receives a task notification from the server and sends a task data reading request to the server based on the task notification;
the server receives a task data reading request of the node equipment, reads the task data in the cache database, and sends the task data to the node equipment;
the node equipment acquires task data of at least one first target Agent, executes a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquires an execution state of the configuration operation; and
and sending the execution state information to the server, and updating the state of at least one target Agent in the relational database by the server based on the execution state information.
Taking the node devices where AgentDaemon and Agent are located as the execution main bodies, the Agent-based intelligent management method of the embodiment includes the following steps: the node equipment side acquires preset information (the preset information can be an IP address, system information of an application platform and the like) of at least one node to be installed, executes installation of a management tool and at least one Agent corresponding to the node based on the preset information, and acquires node installation information after the installation is finished (in a better embodiment, the preset information can be an application platform acquiring at least one Agent to be installed, and determines a corresponding tool installation instruction based on the application platform; sending the node installation information to a server side so that the server side completes the registration of the node; receiving a task notification from the server, and sending a task data reading request to the server based on the task notification; task data of at least one first target Agent is obtained, a corresponding task script command is executed based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and the execution state of the configuration operation is obtained; and sending the execution state information to the server, so that the server updates the state of the at least one target Agent based on the execution state information. It should be noted that, in this embodiment, when the task is an installation task, the first target Agent is not included in the at least one Agent (installed Agent), and when the task is an uninstallation or upgrade, the first target Agent is included in the at least one Agent.
The method includes the steps of obtaining preset information of at least one node to be installed, and executing installation of a management tool and at least one Agent corresponding to the node based on the preset information, wherein the installation comprises the following steps: acquiring a tool installation instruction determined based on system platform information of at least one node to be installed and configuration information of the at least one node to be installed; executing installation of a management tool corresponding to the node based on the tool installation instruction; and after the management tool is confirmed to be installed, the management tool completes installation of at least one Agent corresponding to the node based on the configuration information.
The management tool is a management Agent, and the management Agent communicates with the at least one Agent based on an HTTP protocol, and the method further comprises the following steps: and the management tool acquires the state information of at least one Agent corresponding to the node, and dynamically adjusts the state of the at least one Agent on the basis of the state information. In this embodiment, because the management Agent has autonomy, the Agent installed on the node device can be autonomously managed, and resource allocation can be dynamically adjusted.
Further, the dynamically adjusting the state of the at least one Agent based on the state information includes: comparing the resource consumption state information of each Agent with a corresponding preset threshold to obtain a first comparison result, determining at least one second target Agent based on the first comparison result, and suspending the second target Agent, wherein the at least one Agent comprises the second target Agent (the second target Agent is an Agent of which the resource consumption state on the node equipment exceeds the preset threshold); and/or comparing the total resource consumption information of the at least one Agent corresponding to the node with a preset range to obtain a second comparison result, and determining at least one third target Agent and dynamically adjusting the third resource consumption state of the target agents according to the second comparison result and the priority sequence of the at least one Agent, wherein the at least one Agent comprises the third target Agent. In an embodiment of the present disclosure, when the total resource consumption exceeds a preset range, the management agents may perform dynamic adjustment within an allowable adjustment range corresponding to each third target Agent.
The obtaining of task data of at least one first target Agent (for example, in the embodiment shown in fig. 7, the task data includes 1.task _ id, 2.Agent _ instance _ id, 3.type, and 4. operation) includes: acquiring task identification information, identification information of at least one first target Agent (in an embodiment of the present disclosure, the identification information of an Agent is not issued when the Agent is installed, but the identification information of the Agent is automatically generated after the Agent is installed), and type information, where the type information includes at least one of the following: installing tasks, unloading tasks and upgrading tasks; the executing the corresponding task script based on the task data to enable the at least one first target Agent to execute the configuration operation corresponding to the task data includes: after the management tool obtains the task data of the installation task, checking whether an installation package corresponding to the current task data can run in the current system platform; allocating a predetermined work catalog to each Agent of the at least one Agent as identification information of the Agent (in an embodiment of the present disclosure, the identification information of the Agent is generated during installation); decompressing the installation package into the working directory and executing an Agent starting command; and/or after the management tool obtains the task data of the unloading task, analyzing and obtaining the identification information of the first target Agent; acquiring the current working state of the first target Agent, and stopping the first target Agent if the first target Agent is currently in operation; directly operating the configuration file of the first target Agent, and deleting the working directory of the first target Agent; and/or after the management tool obtains the task data of the upgrade task, checking the version information, the system platform type and the CPU architecture of the current installation package carried in the upgrade command corresponding to the task data, determining whether the current installation package can be installed in the current first target Agent, and if determining that the current installation package can be installed in the current first target Agent, directly modifying the configuration file of the first target Agent and executing the restart command of the first target Agent to execute the upgrade command.
According to the embodiment of the disclosure, the method of the Agent-based intelligent management method at the service end comprises the following steps: receiving address information of node equipment to be configured and task data of at least one first target Agent, and executing address information splicing operation; storing the spliced address information and the task data into a cache database (the cache database may be Redis in this embodiment), and inserting the spliced address information and the task data into a relational database, so that a message middleware sends a task notification to a node device corresponding to the address information; receiving a task data reading request of the node equipment, reading the task data in the cache database, and sending the task data to the node equipment; and receiving execution state information of the node device, and updating the state of at least one target Agent in the relational database (in this embodiment, the relational database may be a database in a hard disk) based on the execution state information.
Further, at the client: receiving address information of node equipment to be configured and task data of at least one first target Agent; sending the address information and task data of at least one first target Agent to a server; the communication between the client and the server is realized through a B/S architecture, and the client supports remote configuration operation and/or local configuration operation on the node equipment. The intelligent management method comprises the following steps: the method comprises the steps that a client receives address information of node equipment to be configured and task data of at least one first target Agent, and sends the address information and the task data of the at least one first target Agent to a server; the server receives the address information of the node equipment to be configured and task data of at least one first target Agent, and executes address information splicing operation; the server stores the spliced address information and the spliced task data into a cache database, and inserts the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information; the node equipment receives a task notification from the server and sends a task data reading request to the server based on the task notification; the server receives a task data reading request of the node equipment, reads the task data in the cache database and sends the task data to the node equipment; the node equipment acquires task data of at least one first target Agent, executes a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquires an execution state of the configuration operation; and sending the execution state information to the server, wherein the server updates the state of at least one target Agent in the relational database based on the execution state information.
With reference to fig. 2 and fig. 3, fig. 2 is an installation flowchart of an Agent-based intelligent management method, apparatus, device and management tool in a storage medium according to the present disclosure: FIG. 3 is a flow chart of Agent management of an Agent based intelligent management method, apparatus, device and storage medium according to the present disclosure; (ii) a The specific process of fig. 2 is: clicking to install Daemon after starting, installing the Agent, checking whether the installation is successful or not, continuing to execute the installation Agent if the installation is not successful, starting the Agent if the installation is successful, then modifying the parameters, restarting the Agent until the end, stopping the Agent until the end if the parameters are not required to be modified, and directly executing the Agent stopping until the end after the Agent is restarted; if the Agent is required to be unloaded and stopped till the end, the Agent can be directly clicked to be unloaded till the end after the successful installation; after the installation is successful, the upgrading and downgrading are required to select upgrading or downgrading, the Agent is started, and the operation of the previous start Agent is repeated. The specific process of fig. 3 is: after the Agent manager draws the heartbeat information, traversing all Agent working directories, and after traversing is finished, reporting the heartbeat information to the acquisition and control platform and then finishing the operation; if not, judging the working state of the Agent under the current directory, if the Agent under the current directory is in a starting state, acquiring the current IP address and port number according to the configuration file, judging whether to acquire the Agent information, judging whether the Agent exists according to the unique identifier, if not, establishing the corresponding Agent information according to the unique identifier, if so, updating the heartbeat time, returning to the previous operation of traversing all the Agent working directories again, and repeating the previous operation; and if the Agent under the current directory is not started, returning to traverse all the Agent working directories, and repeating the previous operation.
In an internal IT system of a certain group of clients, an internal shared server is close to tens of thousands of servers, and because the servers belong to each service group, development, operation and maintenance personnel respectively deploy Agent user auxiliary acquisition information belonging to own service departments at the server ends according to the needs of own services, but due to lack of effective supervision, the situation that the agents occupy resources often occurs, abnormal situations such as downtime of the servers are caused, and the normal operation of the services is influenced. By using the technology of the embodiment of the disclosure, an operator only needs to deploy a management tool in a one-key manner, and each node device can autonomously manage the function operation Agent through the management tool Agent, thereby realizing dynamic resource configuration. Referring to fig. 4-6, fig. 4 is a management flow chart of an Agent-based intelligent management method, apparatus, device and storage medium intelligent management tool according to the present disclosure;
FIG. 5 is a resource consumption detail monitoring page of an Agent-based intelligent management method, apparatus, device and storage medium according to the present disclosure; FIG. 6 is a fusing protection setting page of the Agent-based intelligent management method, apparatus, device and storage medium according to the present disclosure; the whole Agent runs under the supervision of a management tool, so that unified monitoring of service personnel is facilitated; the unified installation and deployment of operation and maintenance engineers are facilitated, the working efficiency is improved, and the service safety is ensured.
The parameters in fig. 6 are specifically set as: setting the CPU utilization rate, the memory utilization rate and the disk utilization rate of the host partition to be more than or equal to 80%, and selecting the corresponding fusing rule name, the operating system and the adaptive Agent, thereby completing the fusing protection setting of the intelligent management tool based on the Agent
Fig. 7 is an Agent management schematic diagram of an Agent-based intelligent management method, apparatus, device and storage medium according to the present disclosure, in which an Agent task issuing module is located at a client, a task data splicing module is located at a Server (Server), and a data inserting module is located at the Server; the node end comprises a management tool Daemon module and at least one Agent module, wherein the data management module is arranged on the Daemon module, a user issues an Agent task to a Server end at a client end, the Server end is spliced with task data and then stores the task data into Redis and inserts the data into a database, the Daemon module pulls the task to the Server end, the Server end reads the Redis task data and returns the task data to the Daemon module, the Agent executes the Agent task, a return execution state is transmitted to the Daemon module after the execution is finished, the Daemon module updates the return state to the database, the client end trains the Server to obtain an execution result to the Server end, and the Server end returns the execution state to the client end; the Daemon module can acquire the state of each Agent through a script command of each Agent; the intelligent management tool Daemon module of this embodiment loads the url of the corresponding HTTP service through the configuration file of the Agent.
This embodiment an intelligent management instrument based on Agent, through installing the deployment with management instrument together, effectively do the unified operation and maintenance management to the Agent of deployment at server end, through the unified installation to Agent, deploy, upgrade, uninstallation and start-stop control, at least whole efficiency that improves installation deployment more than 50%, and through the collection to Agent resource consumption, in time carry out fusing protection, 100% guarantees can not lead to the condition such as the server is shut down because of Agent resource consumption's anomaly, the effectual business and server of guaranteeing have been carried out.
Fig. 8 is a schematic structural diagram of an Agent-based intelligent management device according to an embodiment of the present disclosure, where the intelligent management device includes:
the installation unit is used for acquiring preset information of at least one node to be installed, executing installation of a management tool and at least one Agent corresponding to the node based on the preset information, and acquiring node installation information after the installation is finished;
the registration unit is used for sending the node installation information to a server so that the server completes the registration of the node;
the data request unit is used for receiving a task notification from the server and sending a task data reading request to the server based on the task notification;
the data acquisition unit is used for acquiring task data of at least one first target Agent, executing a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquiring an execution state of the configuration operation; and
and the data sending unit is used for sending the execution state information to the server, so that the server updates the state of the at least one target Agent based on the execution state information.
Further, the mounting unit includes:
the acquisition subunit is used for acquiring a tool installation instruction determined based on system platform information of at least one node to be installed and configuration information of the at least one node to be installed;
the execution subunit is used for executing the installation of the management tool corresponding to the node based on the tool installation instruction; and
and the confirming subunit is used for confirming that the management tool completes the installation of at least one Agent corresponding to the node based on the configuration information after the management tool completes the installation.
Further, the apparatus further comprises:
and the dynamic adjustment unit is used for acquiring the state information of at least one Agent corresponding to the node by the management tool and automatically dynamically adjusting the state of the at least one Agent based on the state information.
Further, the dynamic adjustment unit includes:
the first comparison subunit is configured to compare resource consumption state information of each Agent with a corresponding preset threshold to obtain a first comparison result, determine at least one second target Agent based on the first comparison result, and perform a suspend operation on the second target Agent, where the at least one Agent includes the second target Agent; and/or
And the second comparison subunit is configured to compare the total resource consumption information of the at least one Agent corresponding to the node with a preset range to obtain a second comparison result, determine at least one third target Agent based on the second comparison result and the priority order of the at least one Agent, and dynamically adjust the resource consumption state of the third target Agent, where the at least one Agent includes the third target Agent.
Further, the data acquisition unit includes:
and the information acquisition subunit is used for acquiring the task identification information, the identification information of the at least one first target Agent and the type information.
Further, the information obtaining subunit includes:
the installation task subunit is used for verifying whether an installation package corresponding to the current task data can run in the current system platform or not after the management tool obtains the task data of the installation task; distributing a preset working catalog for each Agent in the at least one Agent to serve as identification information of the Agent; decompressing the installation package into the working directory and executing an Agent starting command; and/or
The unloading task subunit is used for analyzing and acquiring the identification information of the first target Agent after the management tool acquires the task data of the unloading task; acquiring the current working state of the first target Agent, and stopping the first target Agent if the first target Agent is currently in operation; directly operating the configuration file of the first target Agent, and deleting the working directory of the first target Agent; and/or
And the upgrade task subunit is used for verifying the version information, the system platform type and the CPU architecture of the current installation package carried in the upgrade command corresponding to the task data after the management tool obtains the task data of the upgrade task, determining whether the current installation package can be installed in the current first target Agent, and if the current installation package can be installed in the current first target Agent, directly modifying the configuration file of the first target Agent and executing the restart command of the first target Agent so as to execute the upgrade command.
In another embodiment of the present disclosure, an Agent-based intelligent management apparatus is provided, which is used for a server and includes:
the information splicing unit is used for receiving the address information of the node equipment to be configured and the task data of at least one first target Agent and executing address information splicing operation;
the task notification unit is used for storing the spliced address information and the task data into a cache database and inserting the spliced address information and the spliced task data into a relational database, so that the message middleware sends a task notification to the node equipment corresponding to the address information;
the task sending unit is used for receiving a task data reading request of the node equipment, reading the task data in the cache database and sending the task data to the node equipment; and
and the state updating unit is used for receiving the execution state information of the node equipment and updating the state of at least one target Agent in the relational database based on the execution state information.
In another embodiment of the present disclosure, an Agent-based intelligent management apparatus is provided, which is used for a client, and includes:
the data receiving unit is used for receiving address information of the node equipment to be configured and task data of at least one first target Agent;
an information sending unit, configured to send the address information and task data of at least one first target Agent to the server according to the sixth aspect;
the communication between the client and the server is realized through a B/S architecture, and the client supports remote configuration operation and/or local configuration operation on the node equipment.
In still another embodiment of the present disclosure, an Agent-based intelligent management apparatus is provided for an Agent-based intelligent management system, including:
the client side receiving and sending unit is used for receiving the address information of the node equipment to be configured and the task data of at least one first target Agent by the client side and sending the address information and the task data of the at least one first target Agent to the server side;
the server side receiving and sending unit is used for receiving the address information of the node equipment to be configured and the task data of at least one first target Agent and executing address information splicing operation by the server side; the server stores the spliced address information and the task data into a cache database, and inserts the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information;
a node data request unit, configured to receive, by the node device, a task notification from the server and send a task data read request to the server based on the task notification;
a server data reading unit, configured to receive a task data reading request of the node device by the server, read the task data in the cache database, and send the task data to the node device;
the node data acquisition unit is used for acquiring task data of at least one first target Agent by the node equipment, executing a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquiring an execution state of the configuration operation; and
and the state information sending and updating unit is used for sending the execution state information to the server side, and the server side updates the state of at least one target Agent in the relational database on the basis of the execution state information. The intelligent management device provided by the embodiment of the disclosure is used for uniformly managing the situation that a large amount of agents are commonly deployed at a server end in the IT industry, uniformly deploying, monitoring, operating and maintaining all installed agents and the like by providing an intelligent tool, ensuring the normal operation of the agents by using the standardized operation and method provided by the tool, and finally improving the operation and maintenance management level and the operation and maintenance management efficiency.
Fig. 9 is a schematic structural diagram of an Agent-based intelligent management method, device and intelligent management equipment of the equipment according to the present disclosure. Referring now specifically to fig. 9, a schematic diagram of an electronic device 900 suitable for use in implementing embodiments of the present disclosure is shown. The Agent-based intelligent management 900 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, Agent-based intelligent management 900 may include a processing device (e.g., central processing unit, graphics processor, etc.) 901 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage device 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are also stored. The processing apparatus 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
Generally, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. The communication means 909 may allow the electronic apparatus 900 to communicate with other apparatuses wirelessly or by wire to exchange data. While fig. 9 illustrates an electronic device 900 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In yet another embodiment of the present disclosure, a computer-readable storage medium is provided, which stores instructions that, when executed on a terminal device, cause the terminal device to implement the method described above.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. The computer program performs the above-described functions defined in the task scheduling method of the embodiment of the present disclosure when executed by the processing apparatus 901.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a task pulling request of a client, and sending a plurality of task data to the client, wherein the task data are sequentially sequenced and stored in the server and the client, and each task data has a unique index identifier; and executing task loss prevention operation by adjusting the pointing positions of pointers of the client and the server, wherein the pointers comprise execution pointers and task pointers, the execution pointers point to index identifications of data loss, and the task pointers point to index identifications of last task data in a plurality of task data which are continuously sequenced.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, including conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The intelligent management method, the intelligent management device, the intelligent management equipment and the intelligent management storage medium based on the Agent aim at uniformly managing the ubiquitous situation that a large number of agents are deployed at a server side in the IT industry, a management tool and the agents with node operation functions are installed and deployed together on each node equipment, all the installed agents are autonomously and uniformly deployed, monitored, operated and maintained and the like through the autonomy of the intelligent management tool based on the Agent, the normal operation of the agents is guaranteed through dynamic adjustment of the tool, and the operation and maintenance management level and the operation and maintenance management efficiency are finally improved.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. An Agent-based intelligent management method is characterized in that the Agent-based intelligent management method comprises the following steps on a node device side:
acquiring preset information of at least one node to be installed, executing installation of a management tool and at least one Agent corresponding to the node based on the preset information, and acquiring node installation information after the installation is finished;
sending the node installation information to a server side so that the server side completes the registration of the node;
receiving a task notification from the server, and sending a task data reading request to the server based on the task notification;
the method comprises the steps of obtaining task data of at least one first target Agent, executing a corresponding task script command based on the task data, enabling the at least one first target Agent to execute configuration operation corresponding to the task data, and obtaining an execution state of the configuration operation; and
and sending the execution state information to the server, so that the server updates the state of the at least one target Agent based on the execution state information.
2. The Agent-based intelligent management method according to claim 1, wherein the obtaining of preset information of at least one node to be installed, and the execution of the installation of a management tool and at least one Agent corresponding to the node based on the preset information comprises:
acquiring a tool installation instruction determined based on system platform information of at least one node to be installed and configuration information of the at least one node to be installed;
executing installation of a management tool corresponding to the node based on the tool installation instruction; and
and after the management tool is confirmed to be installed, the management tool completes installation of at least one Agent corresponding to the node based on the configuration information.
3. The Agent-based intelligent management method according to claim 1, wherein the management tool is a management Agent, the management Agent communicates with the at least one Agent based on an HTTP protocol, and the method further comprises:
and the management tool acquires the state information of at least one Agent corresponding to the node, and dynamically adjusts the state of the at least one Agent on the basis of the state information.
4. The Agent-based intelligent management method according to claim 3, wherein the dynamically adjusting the state of the at least one Agent based on the state information comprises:
comparing the resource consumption state information of each Agent with a corresponding preset threshold to obtain a first comparison result, determining at least one second target Agent based on the first comparison result, and suspending the second target Agent, wherein the at least one Agent comprises the second target Agent; and/or
And comparing the total resource consumption information of the at least one Agent corresponding to the node with a preset range to obtain a second comparison result, and determining at least one third target Agent and dynamically adjusting the resource consumption state of the third target Agent based on the second comparison result and the priority sequence of the at least one Agent, wherein the at least one Agent comprises the third target Agent.
5. The Agent-based intelligent management method according to claim 1, wherein the acquiring task data of at least one first target Agent comprises:
and acquiring task identification information, identification information of at least one first target Agent and type information.
6. The Agent-based intelligent management method according to claim 5, wherein the type information comprises at least one of: installing tasks, unloading tasks and upgrading tasks;
the executing the corresponding task script based on the task data to enable the at least one first target Agent to execute the configuration operation corresponding to the task data includes:
after the management tool obtains the task data of the installation task, checking whether an installation package corresponding to the current task data can run in the current system platform; distributing a preset working catalog for each Agent in the at least one Agent to serve as identification information of the Agent; decompressing the installation package into the working directory and executing an Agent starting command; and/or
After the management tool obtains the task data of the unloading task, analyzing and obtaining the identification information of the first target Agent; acquiring the current working state of the first target Agent, and stopping the first target Agent if the first target Agent is currently in operation; directly operating the configuration file of the first target Agent, and deleting the working directory of the first target Agent; and/or
After the management tool obtains the task data of the upgrading task, checking version information, system platform types and CPU (Central processing Unit) architectures of a current installation package carried in an upgrading command corresponding to the task data, determining whether the current installation package can be installed in the current first target Agent, and if the current installation package is determined to be installed in the current first target Agent, directly modifying the configuration file of the first target Agent and executing a restarting command of the first target Agent so as to execute the upgrading command.
7. An Agent-based intelligent management method is characterized in that at a server side:
receiving address information of node equipment to be configured and task data of at least one first target Agent, and executing address information splicing operation;
storing the spliced address information and the task data into a cache database, and inserting the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information;
receiving a task data reading request of the node equipment, reading the task data in the cache database, and sending the task data to the node equipment; and
and receiving execution state information of the node equipment, and updating the state of at least one target Agent in the relational database based on the execution state information.
8. An Agent-based intelligent management method is characterized in that at a client:
receiving address information of node equipment to be configured and task data of at least one first target Agent;
sending the address information and task data of at least one first target Agent to the server according to claim 7;
the communication between the client and the server is realized through a B/S architecture, and the client supports remote configuration operation and/or local configuration operation on the node equipment.
9. An Agent-based intelligent management method is characterized by comprising the following steps:
the method comprises the steps that a client receives address information of node equipment to be configured and task data of at least one first target Agent, and sends the address information and the task data of the at least one first target Agent to a server;
the server receives the address information of the node equipment to be configured and task data of at least one first target Agent, and executes address information splicing operation; the server stores the spliced address information and the task data into a cache database, and inserts the spliced address information and the spliced task data into a relational database, so that a message middleware sends a task notification to node equipment corresponding to the address information;
the node equipment receives a task notification from the server and sends a task data reading request to the server based on the task notification;
the server receives a task data reading request of the node equipment, reads the task data in the cache database, and sends the task data to the node equipment;
the node equipment acquires task data of at least one first target Agent, executes a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquires an execution state of the configuration operation; and
and sending the execution state information to the server, and updating the state of at least one target Agent in the relational database by the server based on the execution state information.
10. An Agent-based intelligent management device, the device comprising:
the installation unit is used for acquiring preset information of at least one node to be installed, executing installation of a management tool and at least one Agent corresponding to the node based on the preset information, and acquiring node installation information after the installation is finished;
the registration unit is used for sending the node installation information to a server so that the server completes the registration of the node;
the data request unit is used for receiving a task notification from the server and sending a task data reading request to the server based on the task notification;
the data acquisition unit is used for acquiring task data of at least one first target Agent, executing a corresponding task script command based on the task data, so that the at least one first target Agent executes configuration operation corresponding to the task data, and acquiring an execution state of the configuration operation; and
and the data sending unit is used for sending the execution state information to the server, so that the server updates the state of the at least one target Agent based on the execution state information.
11. A computer-readable storage medium having stored therein instructions which, when run on a terminal device, cause the terminal device to carry out the method of any one of claims 1-9.
12. An Agent-based intelligent management device, characterized in that the intelligent management device comprises: memory, a processor, and a computer program stored on the memory and executable on the processor, when executing the computer program, implementing the method of any of claims 1-9.
CN202210296281.4A 2022-03-24 2022-03-24 Agent-based intelligent management method, device, equipment and storage medium Pending CN114745261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210296281.4A CN114745261A (en) 2022-03-24 2022-03-24 Agent-based intelligent management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210296281.4A CN114745261A (en) 2022-03-24 2022-03-24 Agent-based intelligent management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114745261A true CN114745261A (en) 2022-07-12

Family

ID=82277560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210296281.4A Pending CN114745261A (en) 2022-03-24 2022-03-24 Agent-based intelligent management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114745261A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710281A (en) * 2009-12-11 2010-05-19 西安电子科技大学 Dynamic integrated system and method of development platform based on Agent
CN104765644A (en) * 2015-04-02 2015-07-08 西安电子科技大学 Resource collaboration evolution system and method based on intelligent agent
CN110519088A (en) * 2019-08-15 2019-11-29 上海易点时空网络有限公司 Configure service disaster and system
CN112083951A (en) * 2020-09-24 2020-12-15 中国人民解放军国防科技大学 Software package unified management method and system supporting multiple operating system platforms
CN114095498A (en) * 2021-10-22 2022-02-25 广西中科曙光云计算有限公司 Cluster environment deployment method, system, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710281A (en) * 2009-12-11 2010-05-19 西安电子科技大学 Dynamic integrated system and method of development platform based on Agent
CN104765644A (en) * 2015-04-02 2015-07-08 西安电子科技大学 Resource collaboration evolution system and method based on intelligent agent
CN110519088A (en) * 2019-08-15 2019-11-29 上海易点时空网络有限公司 Configure service disaster and system
CN112083951A (en) * 2020-09-24 2020-12-15 中国人民解放军国防科技大学 Software package unified management method and system supporting multiple operating system platforms
CN114095498A (en) * 2021-10-22 2022-02-25 广西中科曙光云计算有限公司 Cluster environment deployment method, system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108737270B (en) Resource management method and device for server cluster
CN109408205B (en) Task scheduling method and device based on hadoop cluster
CN103516690A (en) Service processing state information query method and apparatus thereof
CN110381042B (en) Graceful restart service method, device, medium and electronic equipment
CN107644075B (en) Method and device for collecting page information
CN109428926B (en) Method and device for scheduling task nodes
CN109828830B (en) Method and apparatus for managing containers
CN112398669A (en) Hadoop deployment method and device
CN110119279B (en) Application and upgrading method and device thereof
CN114185734A (en) Cluster monitoring method and device and electronic equipment
CN113296828A (en) Method, server and system for issuing application
CN111767126A (en) System and method for distributed batch processing
CN111488268A (en) Dispatching method and dispatching device for automatic test
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN114745261A (en) Agent-based intelligent management method, device, equipment and storage medium
CN113360348B (en) Abnormal request processing method and device, electronic equipment and storage medium
CN105338058A (en) Application updating method and device
CN111284352A (en) Transport vehicle charging method and system
CN115543793A (en) System deployment method and device of target server and operation and maintenance center station
CN114926045A (en) Operation management method and device
CN112559001B (en) Method and device for updating application
CN114968776A (en) Application program detection method and device
CN114528140A (en) Method and device for service degradation
CN110445628B (en) NGINX-based server and deployment and monitoring methods and devices thereof
CN112463616A (en) Chaos testing method and device for Kubernetes container platform

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

Application publication date: 20220712