CN114816477A - Server upgrading method, device, equipment, medium and program product - Google Patents

Server upgrading method, device, equipment, medium and program product Download PDF

Info

Publication number
CN114816477A
CN114816477A CN202210440992.4A CN202210440992A CN114816477A CN 114816477 A CN114816477 A CN 114816477A CN 202210440992 A CN202210440992 A CN 202210440992A CN 114816477 A CN114816477 A CN 114816477A
Authority
CN
China
Prior art keywords
server
data
agent
script
upgrading
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
CN202210440992.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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210440992.4A priority Critical patent/CN114816477A/en
Publication of CN114816477A publication Critical patent/CN114816477A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The present disclosure provides a server upgrading method, which can be applied to the technical field of big data and the technical field of artificial intelligence. The server upgrading method comprises the following steps: identifying the received service task message as an update task message; acquiring server upgrading data of a corresponding server according to the updating task message; and executing the upgrading of the server according to the cross-version relation corresponding to the server upgrading data. The present disclosure also provides a server upgrade apparatus, device, storage medium, and program product.

Description

Server upgrading method, device, equipment, medium and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a server upgrade method, apparatus, device, medium, and program product.
Background
For data operation and maintenance of an open platform of a data center, in order to achieve effective fine management of the data center, operation and maintenance personnel and development and maintenance personnel need to manage and operate various data information of various professional objects of the data center. The data center open platform is provided with a plurality of system-level professional objects such as an operating system, a database, middleware and storage, wherein each professional object has a plurality of types, and each type is divided into a plurality of versions. Moreover, for the professional objects of corresponding types and versions, one or more different specific types of application agents exist, different application agent data information has different data types, and in addition, the types and versions of the professional objects are various and complicated, which further causes greater processing difficulty for processing and analyzing the operation and maintenance management information (such as upgrading operation), and is very easy to cause production events.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a server upgrade method, apparatus, device, medium, and program product that are suitable for the operation and maintenance volume of a large-scale data center and can maximally reduce the operation and maintenance cost on the first-line system side.
According to a first aspect of the present disclosure, there is provided a server upgrade method, including: identifying the received service task message as an update task message; acquiring server upgrading data of a corresponding server according to the updating task message; and executing the upgrading of the server according to the cross-version relation corresponding to the server upgrading data.
According to an embodiment of the present disclosure, before the identifying that the received service task message is an update task message, the method further includes: establishing a message monitoring thread of the server; and acquiring the service task message according to the monitoring message thread.
According to an embodiment of the present disclosure, the acquiring the service task message according to the monitoring message thread includes: executing a message monitoring task at regular time according to the message monitoring thread; and acquiring the service task message according to the execution of the message monitoring task.
According to an embodiment of the present disclosure, in identifying that the received service task message is an update task message, the method includes: analyzing the service task message to obtain corresponding task attribute parameters; and identifying the service task message as the updating task message according to the task attribute parameters.
According to an embodiment of the present disclosure, the acquiring server upgrade data of a corresponding server according to the update task message includes: responding to the update task message, and issuing agent upgrade data through a downlink data link; acquiring the agent upgrading data to the server through a message monitoring thread of the server; wherein the server upgrade data comprises the agent upgrade data.
According to an embodiment of the present disclosure, after the obtaining, by the monitoring message thread of the server, the agent upgrade data to the server, the method further includes: matching agent upgrading data corresponding to the updating task message with version number information of agent configuration data in the server to determine the cross-version relationship; acquiring proxy basic upgrading data of a corresponding server according to the cross-version relationship; the server upgrading data further comprises the agent basic upgrading data, and the cross-version relationship is a version corresponding relationship between the agent upgrading data and agent configuration data in the server.
According to an embodiment of the present disclosure, in the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data, the method includes: and invoking a restart execution process to execute the upgrading of the server in response to the agent upgrading data of the server upgrading data and the agent basic upgrading data.
According to an embodiment of the present disclosure, in the invoking a reboot execution process to execute the upgrade of the server in response to the agent upgrade data of the server upgrade data and the agent base upgrade data, the method includes: in response to the calling of the restarting execution process, decompressing the agent basic upgrading data and establishing a basic upgrading environment; decompressing the agent upgrade data according to the basic upgrade environment; and responding to the decompression of the agent upgrading data, updating the agent configuration data of the server and executing the restarting execution process to finish the upgrading of the server.
According to an embodiment of the present disclosure, in the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data, the method further includes: and calling a restart execution process to execute the upgrading of the server according to the cross-version relationship.
According to an embodiment of the present disclosure, in the invoking a restart execution process to execute the upgrade of the server according to the cross-version relationship, the method includes: decompressing the agent upgrade data in response to the invocation of the restart execution process; and responding to the decompression of the agent upgrading data, updating the agent configuration data of the server and executing the restarting execution process to finish the upgrading of the server.
According to an embodiment of the present disclosure, the acquiring server upgrade data of a corresponding server according to the update task message includes: responding to the updating task message, and issuing script updating data through a downlink data link; acquiring the script upgrading data to a script partition queue through a message monitoring thread of the server; wherein the server upgrade data comprises the script upgrade data.
According to an embodiment of the present disclosure, after the obtaining, by the monitoring message thread of the server, the script upgrade data to the script partition queue, the method further includes: matching script number information between script upgrading data corresponding to the updating task message and script configuration data received by the server to determine the cross-version relationship; acquiring script basic upgrading data of a corresponding server according to the cross-version relationship; the server upgrading data also comprises script basic upgrading data, and the cross-version relationship is a script corresponding relationship between the script upgrading data and script configuration data received by the server.
According to an embodiment of the present disclosure, in the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data, the method includes: decompressing the script basic upgrading data and the script upgrading data according to the cross-version relationship; and updating the script configuration data of the server in response to the decompression of the script basic upgrading data and the script upgrading data.
According to an embodiment of the present disclosure, in the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data, the method further includes: decompressing the script upgrading data according to the cross-version relationship; updating the script configuration data of the server in response to the decompression of the script upgrade data.
According to an embodiment of the present disclosure, before the obtaining, according to the update task message, server upgrade data of a corresponding server, the method further includes: sequentially inquiring the process state information of the restarting execution process, the proxy execution process and the plan execution process of the server; and determining the real-time occupation state of the agent execution process of the server at the current moment according to the process state information, and finishing monitoring the agent execution process.
According to the embodiment of the present disclosure, the sequentially querying the process state information of the restart execution process, the proxy execution process, and the scheduled execution process of the server includes: when the current process state of the queried restarting execution process is null, querying the agent execution process; when the current process state of the agent execution process is non-empty, inquiring the plan execution process; when the current process state of the plan execution process is non-empty, acquiring the real-time occupation state of the agent execution process at the current moment by calling the plan execution process; the process state information comprises the current process states of a restart execution process, an agent execution process and a plan execution process.
According to an embodiment of the present disclosure, the obtaining the real-time occupation state of the proxy execution process at the current time by invoking the planned execution process includes: calling the planned execution process, and determining the performance limit state of the agent execution process at the current moment; and when the performance limit state is on, acquiring the real-time occupation state of the agent execution process at the current moment.
According to the embodiment of the present disclosure, after the analyzing the service task message and acquiring the corresponding task attribute parameter, the method further includes: identifying the service task message as a task execution message according to the task attribute parameters; and executing a plurality of service execution tasks corresponding to the execution task message concurrently.
According to an embodiment of the disclosure, the method further comprises: uploading agent registration information corresponding to the updated server by executing an agent information acquisition script; and uploading the object registration information corresponding to the updated server by executing the object information acquisition script.
A second aspect of the present disclosure provides a server upgrading apparatus, which includes a message identification module, a data acquisition module, and an upgrade execution module. The message identification module is used for identifying the received service task message as an update task message; the data acquisition module is used for acquiring server upgrading data of a corresponding server according to the updating task message; and the upgrade execution module is used for executing the upgrade of the server according to the cross-version relationship corresponding to the upgrade data of the server.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the server upgrade method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described server upgrade method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described server upgrade method.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the server upgrade method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described server upgrade method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described server upgrade method.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the server upgrade method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described server upgrade method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described server upgrade method.
The present disclosure provides a server upgrade method, apparatus, device, medium, and program product. The server upgrading method comprises the following steps: identifying the received service task message as an update task message; acquiring server upgrading data of a corresponding server according to the updating task message; and executing the upgrading of the server according to the cross-version relation corresponding to the server upgrading data. Therefore, the server upgrading method disclosed by the invention can be suitable for a large-scale data center, can be adapted to various professional objects and agent applications of various versions, supports the pushing and automatic execution of corresponding server objects and agent upgrading operation tasks, can maximally reduce the operation and maintenance cost of a first-line system side, and can further improve the execution efficiency of server information upgrading under the condition of ensuring the task execution precision, thereby realizing the unified upgrading management of the professional objects and the agents, improving the operation and maintenance management efficiency of the data center, and reducing the generation probability of production events.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a server upgrade method, apparatus, device, medium, and program product according to embodiments of the disclosure;
FIG. 2 schematically illustrates a flow chart of a server upgrade method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates another application scenario diagram of a server upgrade method according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a task message processing flow diagram of a server upgrade method according to an embodiment of the present disclosure;
FIG. 5 schematically shows an Agent upgrade processing sequence diagram of a server upgrade method according to an embodiment of the present disclosure;
FIG. 6 schematically shows a script upgrade processing sequence diagram of a server upgrade method according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a daemon message processing flow diagram of a server upgrade method according to an embodiment of the disclosure;
fig. 8 schematically shows a block diagram of the architecture of a server upgrade apparatus according to an embodiment of the present disclosure; and
fig. 9 schematically shows a block diagram of an electronic device adapted to implement a server upgrade method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that these descriptions are illustrative only and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Information Technology (IT) is a generic term for various technologies that are mainly used to manage and process Information. It mainly applies computer science and communication technology to design, develop, install and implement information system and application software. It is also commonly referred to as Information and Communications Technology (ICT). Research on information technology includes science, technology, engineering, and management. The application of the information technology comprises computer hardware and software, network and communication technology, application software development tools and the like. In financial organizations such as banks, the information technology architecture is a comprehensive structure for adopting and developing information technology to achieve strategic goals, including management and technical components, wherein the management components include mission, function and information requirements, system configuration and information flow, and the technical components include information technology standards, rules, etc. for implementing the management architecture.
The IT operation and maintenance monitoring (namely an IT integrated management system) is a general name of a series of IT management products based on a data center platform, and the products contained in the IT operation and maintenance monitoring system have the advantages of strong functions, easy use and complete solutions, and can meet various IT management requirements of users in a one-stop manner. The IT operation and maintenance monitoring has the characteristics of stable performance, friendly user interface, cross-platform, easy implementation, easy integration and the like, can greatly simplify the monitoring management of IT facilities and business systems, improve the IT management efficiency of users, ensure the normal operation of network equipment and business systems of the users through fault early warning and quick positioning, and is particularly suitable for numerous industrial clients such as telecommunication, electric power, education, service institutions, finance/banks, medical treatment, traffic, governments and the like. More and more customers are considering or adopting a business-intensive approach. However, after the business system is centralized, not only the working intensity of operation and maintenance is increased, but also the centralized system becomes more complicated. An effective system and an application monitoring system become keys for knowing service resource use conditions, timely discovering hidden dangers which may cause system faults and realizing system operation guarantee. On the other hand, by means of the centralized monitoring solution, a user can correctly and timely know the running state of the system, find bottlenecks affecting the running of the whole system, help system personnel to carry out necessary system optimization and configuration change, and even provide basis for upgrading and expanding the system. The powerful monitoring and diagnostic tool can also help operation and maintenance personnel to quickly analyze the cause of the application fault and release the cause from complicated and repeated labor. Maintenance personnel quickly analyze the reasons of application faults and release the reasons from complicated and repeated labor. Therefore, IT departments of many application enterprises put forward a need to build a centralized IT management system, and monitored contents include networks, servers, databases, middleware, and applications. Faults in the system are discovered in time through the centralized monitoring system, and the fault processing time is shortened. Currently, centralized IT management systems may be implemented based on large data equipment systems such as data centers. The data development and data operation and maintenance platform from the data center can be suitable for units and departments with a certain IT scale foundation, such as banks, securities, telecommunication, governments, medical treatment, education, insurance, radio and television, railways, civil aviation, tobacco, military industry, large and medium-sized enterprise users and the like.
The rapid growth of the financial industry has led to a rapid expansion in the size of their respective data information systems. At present, taking a data center of a typical financial IT system as an example, the data center can be developed into a large-scale multi-source heterogeneous information system, wherein the network coverage area is millions of square meters, the scale of servers is up to more than 300, the scale of terminals and network equipment reaches 5000, the system covers a plurality of core business systems such as business handling, service development, information security, data management, commercial application and the like, and service users exceed tens of thousands or even hundreds of thousands of people.
With the continuous expansion of the scale of data centers, the business applications are increasing continuously, the number of service user objects is increasing, and the operation and maintenance managers of the data centers are bound to face the complicated situations of various business types, corresponding equipment types, business service professional object types in the equipment, agent service types of professional objects and the like, so that various data information is dispersed, the versions are difficult to unify, the operation and maintenance managers of the first line cannot accurately realize information operation and maintenance management in time at the first time, the operation situations of the network and the system are effectively and integrally controlled, and the managers of the second line cannot know the operation trends of the network and the system in the future.
The application of information technologies such as internet, artificial intelligence and internet of things is rapidly changing the life and working modes of people, even some working posts are replaced by artificial intelligence, a large amount of data information is generated while the technology is applied, and a server bearing the data forms a large-scale data center in a cluster form. Large-scale is a way to generally define large-scale data centers, where the ability to meet super-demand at high-speed expansion is used to meet the ever-increasing demand for data storage, capacity can be increased rapidly, space with optimal performance increases, and functionality, computing, memory, network infrastructure, and storage resources. Data centers may support hundreds or even tens of thousands of physical servers and millions of virtual machines.
For a data center, there are various operation and maintenance objects, such as various IT devices, management tools, systems and data, and operation and maintenance personnel, which are applied in the process of providing IT services. The IT equipment mainly comprises hardware resources such as storage, a server, network equipment, safety equipment and the like. The equipment provides functions of calculation, storage, communication and the like in the process of providing IT service for users, and is the most direct physical carrier of the IT service; the management tools comprise infrastructure monitoring software, IT monitoring software, a workflow management platform, a report platform, a short message platform and the like, the management objects are software and hardware facilities which help a management main body to manage various management objects in the data center more efficiently and take part of management functions in management activities, and through the management tools, the management tools can intuitively feel and testify how the data center manages the resources directly related to IT, so that the availability and reliability of the IT are indirectly improved; the system and the data comprise software resources such as an operating system, a database, middleware, an application program and the like, and various data such as business data, configuration files, logs and the like, and the management objects are not visible and fumble like the first two management objects but are logical carriers of IT services; the operation and maintenance personnel comprise technical personnel of the data center, IT operation and maintenance personnel, management personnel and manufacturer personnel for providing services, the personnel are used as a management main body to manage operation and maintenance objects of the data center on one hand, and are also used as management objects to support the operation of the IT on the other hand, the objects are different from other operation and maintenance objects and have strong subjective initiative, and the quality of the management of the objects directly affects the whole operation and maintenance management system, rather than the operation and maintenance objects.
In the prior art, because system professional objects (such as an operating system, a database, middleware, storage and the like) may have differences according to application versions provided by different manufacturers, upgrade versions at different times and the like, in the batch scheduling execution process of script tasks for the system professional objects at a server end, a server end still needs to write separate CRontab reading instructions or script tasks for each professional object to perform respective execution, the execution script needs to be manually maintained and updated each time, and batch script tasks of a plurality of professional objects cannot be centrally and uniformly scheduled according to operation and maintenance requirements, so that the batch task processing execution process is very complex in operation, has high dependence on manual interference, is low in accuracy and is low in execution efficiency.
Further, for each professional object, different types and versions of application agents (such as agent applications) further increase the difficulty of agent service information management on the basis of the complex and diversified professional objects. In the information upgrading process of each server applied by the application agent, professional objects applied by different types of servers are different, and the versions and types of agent agents corresponding to different professional objects are also different, so that when the information of the agent agents applied by the servers and the corresponding professional objects is upgraded, corresponding upgrading parameters are generally required to be modified or imported one by one through manpower to complete a data upgrading task, and even basic upgrading task messages are required to be distinguished and imported through manpower. Therefore, as mentioned above, the complicated versions and types will cause the task of upgrading the program to be too complicated, the operation and maintenance efficiency to be low, and the large-scale production accident to be easily caused, which is not favorable for the unified operation and maintenance management of a plurality of professional objects in the data center.
In order to solve the technical problem that the operation and maintenance management execution efficiency of professional objects is low due to the fact that the professional objects and corresponding agent application versions and types are complicated and lack of unification, and the server information upgrading operation corresponding to operation and maintenance management of a plurality of professional objects is effectively achieved, the server upgrading method, the server upgrading device, the server upgrading equipment, the server upgrading media and the program product are suitable for a large-scale data center, can be adapted to various professional objects of various versions, support pushing and automatic execution of corresponding server objects and agent upgrading operation tasks, and can reduce operation and maintenance cost of a system side to the maximum.
It should be noted that the server upgrading method and apparatus in the embodiments of the present disclosure may be used in the field of big data technology and artificial intelligence technology, and may also be used in any field other than the financial field and the financial field.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and applying the data including the personal information of the user are all in accordance with the regulations of related laws and regulations, necessary confidentiality measures are taken, and the public order and good custom are not violated. Wherein, before the personal information of the user is obtained or collected, the authorization or the consent of the user is obtained.
An embodiment of the present disclosure provides a server upgrade method, including: identifying the received service task message as an update task message; acquiring server upgrading data of a corresponding server according to the updating task message; and executing the upgrading of the server according to the cross-version relation corresponding to the server upgrading data.
Fig. 1 schematically shows an application scenario diagram of a server upgrade method according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is the medium used to provide communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. 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 noted that the server upgrade method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the server upgrade apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The server upgrade method provided by the embodiment of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the server upgrading apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The server cluster based on the data center can be used for handling various business matters, wherein each server in the server cluster is provided with a plurality of corresponding professional objects, and Agent modules (such as agents and the like) corresponding to the professional objects further increase the difficulty of managing the professional objects of the cluster due to diversification. Therefore, in order to realize the unified management of professional objects of all servers in the cluster, improve the efficiency and the accuracy of server data upgrading management and reduce the production accident rate in an upgrading program, the server upgrading method is provided for the professional object management.
The server upgrade method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 9 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a server upgrade method according to an embodiment of the present disclosure.
As shown in fig. 2, the server upgrade method of this embodiment includes operations S201 to S203.
In operation S201, identifying the received service task message as an update task message;
in operation S202, server upgrade data of a corresponding server is acquired according to the update task message; and
in operation S203, the server is upgraded according to the cross-version relationship corresponding to the server upgrade data.
The business task message is a task message or an execution instruction, data and the like which is input by a user through an input device and applied to professional object management. The service task message can be used for designating a corresponding server to realize an upgrade updating program of the professional object and the related agent module thereof, and can also be used for designating the corresponding server to realize a corresponding service processing program to realize the unified management operation of the professional object. Therefore, the service task message needs to be identified, and the service task message can be judged to be applied to data upgrading and updating of a professional object and the like through the message identifier or similar marking parameter of the service task message, so that the service task message can be confirmed to belong to the updating task message; otherwise, if the business task message is judged to be applied to task execution operation of a professional object and the like, the task message can be confirmed to belong to the task execution message. The user in the embodiment of the present disclosure may generally refer to a technician such as an operation and maintenance manager or a system maintenance person of a corresponding data center.
The server upgrading data is upgrading data for upgrading data of the corresponding server aiming at the professional object and the relevant agent module thereof. When the business task message is judged and confirmed to be the updating task message, the updating task message can be correspondingly matched with corresponding server upgrading data to be used for upgrading and updating the professional object of the corresponding server and upgrading and updating other module contents such as the agent module matched with the professional object.
The cross-version relationship is a version or type corresponding relationship between the version information or type information of the server upgrading data and the version information or type information of the original professional object and the matched agent module, and can reflect the version difference degree between the version or type of the server upgrading data and the version or type between the current professional object and the agent module, wherein the larger the version type difference is, the larger the cross-version degree is, and the smaller the cross-version degree is on the contrary. The cross-version degree can be used for determining the upgrading and updating process and the upgrading and updating content of the server upgrading data, so that the servers with multiple professional objects and multiple agent modules can be upgraded accurately, automatically and intelligently, the professional objects can be managed uniformly, and the management efficiency and precision are improved.
Based on the server upgrading method disclosed by the embodiment of the disclosure, the updating task message and the executing task message can be distinguished through identification, and the executing server upgrading operation corresponding to the cross-version relationship of the server upgrading data can be performed according to the updating task message and the executing task message, so that the server upgrading method can be applied to a large-scale data center, cover numerous platforms and professional objects, facilitate analysis and statistics of one-line production operation and maintenance personnel, grasp and process the production condition in time, greatly reduce the production operation and maintenance cost, and simplify and improve the operation and maintenance convenience.
Therefore, compared with the process that data upgrading can only be carried out in a manual operation mode in the prior art, the server upgrading method disclosed by the invention can be suitable for a large-scale data center, can be adapted to various professional objects and agent applications of various versions, supports the pushing and automatic execution of upgrading operation tasks aiming at corresponding server objects and agents, can maximally reduce the operation and maintenance cost of a front-line system side, and can further improve the execution efficiency of server information upgrading under the condition of ensuring the execution precision of tasks, so that the unified upgrading management of the professional objects and the agents is realized, the automation and intelligence levels are higher, the operation and maintenance management efficiency of the data center is improved, and the generation probability of production events is reduced.
FIG. 3 schematically illustrates another application scenario diagram of a server upgrade method according to an embodiment of the present disclosure; fig. 4 schematically shows a task message processing flow chart of a server upgrade method according to an embodiment of the present disclosure.
As shown in FIG. 3, a large-scale data center cluster of the present invention may include a first-level organization storm server 301, an MQ server cluster 302, a media server 303, and a professional object server cluster 304. The professional objects corresponding to the servers of the professional object server cluster 304 are deployed in all open platform servers 304a-304d, and the like, each professional object server cluster is deployed with a corresponding Agent module, and the servers 304a-304d of the professional objects are connected with a first-level organization MQ server cluster 302 (such as an Active MQ server cluster) and a media server 303. The servers can be connected through 21591 port as data channel or message channel, and through 21592 port, the media data is used for transmitting media data passing through the servers 302a-302c or the media server 303 of the MQ server cluster 302, wherein the media data can be corresponding upgrade information content updated in real time. Forwarding of messages within the cluster may be accomplished by the Broker within the MQ server cluster 302. The professional object server cluster 304 with the universal agent can be connected with the storm server 301 through the Active MQ server cluster 302, so as to receive and upload the service message. The media server 303 can be used to store DCAP AGENT upgrade packages, script libraries, script dependent media, etc. updated in real time, which can be used for file or data transmission mainly through 21592 port.
For example, the server 304a is provided with a SUSE Linux operating system as the professional object of the server 304a, and simultaneously, the server 304a is matched with a corresponding Agent module as a corresponding general Agent, and accordingly, the professional object may select an operating system such as AIX, Windows, RedHat, HP-UX, Solaris, Ubuntu, BCLinux, GentOS, Neokylin, and the like, and each corresponding operating system is matched with a corresponding general Agent module (e.g., Agent).
Therefore, the server upgrading method implemented based on the server cluster in the embodiment of the disclosure can better follow the principles of high cohesion and low coupling in the execution process of corresponding server upgrading operation, and has the advantages of good modular design, wide coverage, universal and simple installation, and popularization value.
As shown in fig. 2 to 4, according to an embodiment of the present disclosure, before the identifying that the received service task message is an update task message in operation S201, the method further includes:
establishing a message monitoring thread of the server;
and acquiring the service task message according to the monitoring message thread.
As shown in FIG. 3, each server (i.e., one of the servers 304a-304d) of the professional object server cluster 304 can create a connection with the corresponding server of the first-level organization MQ server cluster 302 through the generic Agent process of its own professional object matching the generic Agent module (i.e., Agent), and create a thread that can be used to listen to the business messages of the MQ servers (e.g., 302a-302c) as the snoop message thread, so that the business task messages from the first-level organization storm server 301 can be actively retrieved from the first-level organization MQ server cluster by means of the snoop message thread, as shown in operations S402-S403 shown in FIG. 4.
Before this, it is necessary to create an MQ consumer, so that the MQ server cluster can initiate a task message acquisition process to the first-level organization storm server 301 according to the creation of the MQ consumer, as shown in operation S401 in fig. 4. The task message sent by the storm server 301 of the first-level organization is distributed to the corresponding server in the MQ server cluster 302 to form a message queue, so that the professional object server cluster 304 can instantly retrieve the task message by monitoring a message thread.
Therefore, the matched service task message can be accurately acquired by monitoring the message thread to form a stable data message transmission channel among all the server clusters, and efficient and uniform server cluster management is facilitated.
As shown in fig. 2 to fig. 4, according to an embodiment of the present disclosure, in the acquiring the service task message according to the monitoring message thread, the method includes:
executing a message monitoring task at regular time according to the message monitoring thread;
and acquiring the service task message according to the execution of the message monitoring task.
By listening to the message thread, the general-purpose proxy process can periodically perform the timed listening to the queue messages in the MQ server cluster and send the service task messages in the listened queue messages to the general-purpose proxy server (such as 304a-304d), i.e. the execution of the message listening task is completed. Wherein, the message listening task is a message listening acquiring task for the generic agent process to queue messages in the MQ server cluster 302, as shown in operation S402 in fig. 4.
When the message monitoring task is executed, the generic proxy process can further create a task execution thread, execute task message obtaining operation through the task execution thread, obtain the corresponding service task message from the MQ queue, and call the corresponding task message to the generic proxy process for standby, as shown in operation S403 in fig. 4.
Therefore, the automatic execution of the message monitoring task based on the message monitoring thread can be realized, the automatic calling of the business task message in the message queue is realized, the automation level of the whole message processing process is improved, and the manual operation cost is reduced.
For the acquired business task message, before further message processing, the business task message needs to be judged and confirmed so as to identify the task type of the business task message, thereby reducing the operation of manually distinguishing tasks.
As shown in fig. 2 to 4, according to an embodiment of the present disclosure, in the identifying that the received service task message is an update task message in operation S201, the identifying includes:
analyzing the service task message to obtain corresponding task attribute parameters;
and identifying the service task message as the updating task message according to the task attribute parameters.
As shown in operation S404 in fig. 4, an analysis operation is performed on the service task message acquired by the general agent process, and a type identifier parameter of the service task message is acquired as a task attribute parameter corresponding to the type identifier parameter, where the task attribute parameter is used to identify an execution type of the service task message. If the task attribute parameter is an execution type parameter, determining that the task type of the service task message is an execution task type, and the service task message is an execution task message, as shown in fig. 4, in operations S404-S407; however, if the task attribute parameter is the update class parameter, it is determined that the task type of the service task message is the update task type, and the service task message is the update task message, as shown in operations S404-S405 in fig. 4.
And if the service task message is of different task types, the processing operation of the service task message is also different, so that the accuracy of processing the data message in the upgrading operation process of the server is further enhanced. As mentioned above, if the task information is judged to be the update task information, the update management of the general-purpose agent information is mainly involved, and the task execution thread concurrently executes the type of task to update the software version information of the general-purpose agent and the script information of the professional object, such as receiving a delivered file, updating a script library, updating a general-purpose agent version, and the like.
Therefore, through the analysis of the task attribute parameters of the business task messages, the type judgment of the received task messages can be realized, and the identification and the automatic process processing of the task updating messages and the task executing messages can be realized. In this case, for the execution process of the update task message, a version upgrade (i.e., an Agent upgrade) of a general Agent module of a corresponding server of the professional object server cluster and a script upgrade (i.e., a script upgrade) of the professional object are mainly involved, as shown in fig. 4, operation S406 b.
Fig. 5 schematically shows an Agent upgrade processing sequence diagram of a server upgrade method according to an embodiment of the present disclosure.
As shown in fig. 2 to 5, according to an embodiment of the present disclosure, in the acquiring server upgrade data of a corresponding server according to the update task message in operation S202, the acquiring server upgrade data includes:
responding to the update task message, and issuing agent upgrade data through a downlink data link;
acquiring the agent upgrading data to the server through a message monitoring thread of the server;
wherein the server upgrade data comprises the agent upgrade data.
As shown in fig. 5, for the version upgrade operation of the general agent matched to the professional object, in operation S501, the self-service platform 510 may initiate a general agent version update task in response to the update task message, and issue a general agent version packet from the self-service platform 510 as agent upgrade data, and issue the agent upgrade data to the first-level organization MQ 520 through a downlink data link. The downlink data link is a link channel for transmitting data or messages from the service platform to the first-level mechanism MQ, and is used for forming a transmission channel for agent upgrading data corresponding to the update task message. The universal Agent version package is a data upgrading file media package which is used for upgrading the universal Agent version and corresponds to the updating task message, and the universal Agent version package is a base updating media package.
In operation S502, the generic Agent process monitors the update task message corresponding to the Agent upgrade data through the connection relationship of the message listening thread established between the Agent module 530a and the first-level mechanism MQ 520 by using the 21591 port, and receives the Agent upgrade data corresponding to the update task message to at least one of the local professional object servers 304a to 304d by using the 21592 port.
In operations S503a-S503b, if the Agent module 530a of the generic proxy process successfully receives the update task message and the proxy upgrade data of the version upgrade in operation S502, a result message of successful reception of the message and upgrade data is returned to the primary authority MQ 520, and the primary authority MQ 520 continuously returns the task result to the upper layer from the server platform 510, thereby completing the feedback process of task acquisition.
Therefore, automatic matching and obtaining of the agent upgrading data corresponding to the updating task message can be achieved, compared with the traditional manual operation matching process, the operation process of the agent upgrading data is quicker and more effective, and the situation that the agent upgrading data and the updating task message are called and blocked can be well prevented.
As shown in fig. 2 to fig. 5, according to an embodiment of the present disclosure, after the obtaining, by the listening message thread of the server, the agent upgrade data to the server, the method further includes:
matching agent upgrading data corresponding to the updating task message with version number information of agent configuration data in the server to determine the cross-version relationship;
acquiring proxy basic upgrading data of a corresponding server according to the cross-version relationship;
the server upgrading data further comprises the agent basic upgrading data, and the cross-version relationship is a version corresponding relationship between the agent upgrading data and agent configuration data in the server.
As shown in fig. 5, in operation S504, the primary mechanism MQ 520 sends the Agent upgrade data and the update task message received in operation S502 to the general Agent host process, and the corresponding Agent module 530a matches the version number information of the Agent upgrade data corresponding to the received update task message with the version number information of the Agent configuration data in the Agent configuration file in the general Agent module 530a, and determines whether the Agent upgrade data corresponding to the current update task message spans a large version number.
For the Agent module 530a, the basic software service data of each Agent as the Agent configuration data has a unique identifier and conforms to an identifier version number of a preset Agent development identifier rule, and the identifier version number as the content of the version number information of the Agent configuration data can define the current version of the Agent configuration data. Correspondingly, the agent upgrade data also has a corresponding identification version number, the identification version number serving as the content of the version number information of the agent upgrade data may define the version of the agent update configuration data corresponding to the agent upgrade data, and the agent update configuration data is the configuration data generated after the agent upgrade data performs the corresponding upgrade operation.
For the cross-version relationship, when the version correspondence between the agent upgrade data and the agent configuration data in the server satisfies the cross-large version number, the cross-version relationship is established. For example, version number information of Agent configuration data of a base software service for an Agent module and Agent upgrade data of an update task message satisfies a version number setting rule of "Agent _ a.b.c.d.zip". Wherein, for "agent _1.0.0.0. zip", it is a large version number, and the corresponding "agent _1.0.0.1. zip", "agent _1.0.0.2. zip", and "agent _1.0.0.3. zip", etc. are all the corresponding small version numbers under the "agent _1.0.0.0. zip", i.e. D is different from A, B and C, and the version other than 0 is an incremental version or understood as a sub-version of "agent _ a.b.c.0.zip", and the other large version number of the corresponding "agent _1.0.1.0. zip" and the corresponding "agent _1.0.1.1. zip" and the small version number under the large version number are both across the large version number of the "agent _1.0.0.0. zip" and the corresponding small version number thereof. In other words, if the version number information of the agent upgrade data satisfies agent _1.0.0.0.zip, and the version number information of the agent configuration data satisfies agent _1.0.0.1.zip, the cross-version relationship between the two is not established; if the version number information of the agent upgrade data meets agent _1.0.0.0.zip and the version number information of the agent configuration data meets agent _1.0.1.1.zip, the two meet the cross-large version relationship, and the cross-version relationship is established.
When the cross-version relationship is established, it may be stated that the upgrade update of the agent upgrade data with respect to the agent configuration data is a cross-large version update, and further perform a corresponding cross-large version update upgrade task. When the update and upgrade task across the large version is executed, the media server 303 shown in fig. 3 may acquire the large version basic media package to be updated as proxy basic upgrade data to the local professional object server, so that the acquisition of the proxy basic upgrade data may be completed. The Agent basic upgrade data is used as the whole upgrade data of the Agent upgrade data, and is used for establishing an upgrade update environment of the Agent upgrade data after the upgrade operation is executed, so that the upgrade operation of the Agent upgrade data is faster and more efficient, meanwhile, the Agent upgrade data can be more complete, and the subsequent Agent module 530a can realize better general Agent service.
As shown in fig. 2 to 5, according to an embodiment of the present disclosure, in the step of performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data in operation S203, the method includes:
and invoking a restart execution process to execute the upgrading of the server in response to the agent upgrading data of the server upgrading data and the agent basic upgrading data.
After the Agent module 530a confirms that all version update packages (i.e., the large version Agent basic upgrade data and the Agent upgrade data) are received, the Agent module 530a invokes the restart execution process of the restart module 530b to update the version of the general Agent module, as shown in operation S505 in fig. 5. The restart execution process is a thread for executing a restart program on a server where the general agent module is located, and is used for restarting the operating parameters of the server and upgrading the data of the server.
The automatic upgrading of the server according to the agent upgrading data and the agent basic upgrading data which accord with the cross-version relationship can be realized through the restarting execution process, and the corresponding relationship between the upgrading data calling and the data upgrading updating is established, so that the current situation that the data calling and upgrading operation can only be carried out through manual selection judgment in the prior art can be broken through, the automation and intelligence level of the whole upgrading operation is further improved, and the accuracy of the data upgrading is ensured.
As shown in fig. 2 to 5, according to an embodiment of the present disclosure, in invoking a reboot execution process to execute the upgrade of the server in response to the agent upgrade data of the server upgrade data and the agent base upgrade data, the method includes:
in response to the calling of the restarting execution process, decompressing the agent basic upgrading data and establishing a basic upgrading environment;
decompressing the agent upgrading data according to the basic upgrading environment;
and responding to the decompression of the agent upgrading data, updating the agent configuration data of the server and executing the restarting execution process to finish the upgrading of the server.
After the restart of the execution process is started by the restart module 530b, the generic proxy process of the agent module 530a is stopped, as shown in operation S506 in fig. 5.
After stopping the general agent process of the agent module 530a, if it is determined that the agent upgrade data satisfies the cross-version relationship across large versions, that is, the cross-version relationship is established, the restart module 530b decompresses the large version media package of the agent basic upgrade data to the specified directory of the local server, and establishes a basic upgrade environment for performing upgrade update operation on the agent upgrade data, as shown in operation S507 in fig. 5.
After completing the above-mentioned large-version media package decompression upgrade operation, the restart module 530b may further decompress the obtained delta media package of the proxy upgrade data that needs to be updated and overlay the delta media package to the local designated path based on the basic upgrade environment, as shown in operation S508 in fig. 5.
After the update of the incremental media package is completed, the restart module 530b modifies the Agent version number in the Agent configuration data file in the local generic Agent module 530a, updates the version information of the Agent module 530a, and completes the version upgrade operation on the Agent module of the server, as shown in operation S509 in fig. 5.
Therefore, by means of the calling of the restarting execution process, the establishing requirements of the upgrading environment can be intelligently distinguished according to the cross-version relationship, the server agent configuration data can be efficiently updated and upgraded, the method has the characteristics of high cohesion and low coupling, the method can be suitable for the precise and automatic upgrading management operation of a general agent server cluster of a large-scale data center, the occupied time of the upgrading operation is reduced, the matching upgrading of corresponding professional objects is realized, the upgrading management accident rate is reduced, the manual operation cost is saved, and the unified management efficiency is improved.
As shown in fig. 2 to 5, according to an embodiment of the present disclosure, in the step of performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data in operation S203, the method further includes:
and calling a restart execution process to execute the upgrading of the server according to the cross-version relationship.
As mentioned above, when the cross-version relationship is not satisfied, it can be stated that the upgrade update of the agent upgrade data relative to the agent configuration data is not a cross-large version update, and further, the corresponding agent upgrade task can be directly executed. When the update upgrade task of the agent upgrade data is executed, the update upgrade data can be directly used as the increment upgrade data of the agent upgrade operation, and the Restart execution process is invoked by the Restart module 530b to execute the upgrade operation of the server.
Therefore, compared with the updating process of the large-scale version, the method can intelligently distinguish the establishment requirements of the upgrading environment, can directly realize the agent version upgrading of the server, does not need to worry about the influence of the upgrading environment on upgrading data, further accelerates the operation speed of data upgrading, can efficiently update and upgrade the server agent configuration data, has the characteristics of high cohesion and low coupling, can be suitable for the precise and automatic upgrading management operation of a general agent server cluster of a large-scale data center, reduces the occupied time of the upgrading operation, realizes the matching and upgrading of corresponding professional objects, reduces the accident rate of upgrading management, saves the labor operation cost, and improves the unified management efficiency.
As shown in fig. 2 to fig. 5, according to an embodiment of the present disclosure, in the invoking an execution restart process to perform upgrading of the server according to the cross-version relationship, the invoking an execution restart process to perform upgrading of the server includes:
decompressing the agent upgrade data in response to the invocation of the restart execution process;
and responding to the decompression of the agent upgrading data, updating the agent configuration data of the server and executing the restarting execution process to finish the upgrading of the server.
In operation S506 shown in fig. 5, after the restart execution process is started by the restart module 530b, the generic agent process of the agent module 530a is stopped.
In operation S508, after stopping the generic agent process of the agent module 530a, if it is determined that the agent upgrade data cannot satisfy the cross-version relationship across large versions, that is, the cross-version relationship is not established, the increment media package of the agent upgrade data is decompressed to the specified directory of the local server by the restart module 530b, and operation S507 shown in fig. 5 is directly skipped.
After the update of the incremental media package is completed, the restart module 530b modifies the Agent version number in the Agent configuration data file in the local generic Agent module 530a, updates the version information of the Agent module 530a, and completes the version upgrade operation on the Agent module of the server, as shown in operation S509 in fig. 5.
Therefore, based on the version upgrading of the cross-version relationship, the judgment of the upgrading data of the total quantity and the increment can be respectively carried out on the proxy version data, and compared with the prior art that the resource occupation problem caused by the unnecessary execution process of the total quantity upgrading is avoided when the total quantity upgrading operation is directly carried out, the total quantity upgrading operation and the increment upgrading operation can be freely matched. Therefore, compared with the updating process of the large-scale versions, the method can intelligently distinguish the establishment requirements of the upgrading environment, can directly realize the agent version upgrading of the server, does not need to worry about the influence of the upgrading environment on version upgrading data, further accelerates the operation speed of data upgrading, can efficiently update and upgrade the server agent configuration data, has the characteristics of high cohesion and low coupling, can be suitable for the precise and automatic upgrading management operation of a general agent server cluster of a large-scale data center, reduces the occupied time of the upgrading operation, realizes the matching upgrading of corresponding professional objects, reduces the accident rate of upgrading management, saves the manual operation cost, and improves the unified management efficiency.
In addition, as shown in fig. 5, in operations S510-S512, after the restart module 530b completes the update of the file version information of the proxy configuration data, it triggers the restart of the generic proxy process of the agent module 530 a. after the generic agent process of agent module 530a is started, updated upgrade version registration information acquired by agent module 530a is sent to the first-level organization MQ 520 in a heartbeat form. Further, the first-level mechanism MQ 520 returns the upgraded version registration information sent by the heartbeat to the self-service platform through the uplink data link and writes the registration information log.
Therefore, in the embodiment of the disclosure, the version upgrade of the Agent general Agent can be flexibly initiated through two functions of batch update and one-key update of the self-service page. The self-service platform 510 may send the media package of Agent upgrade data of Agent to the first-level mechanism MQ 520 through a downlink in the form of a BlobMessage message, listen to the message through an MQ message consumer, receive the media package of the Agent upgrade data, and return the received result. After the Agent upgrading data is successfully received, according to whether the upgrading updating of the Agent upgrading data is cross-large version updating or not, if the cross-large version updating is met, the Agent obtains a latest large version media pack from a media server to serve as Agent basic upgrading data, then other main processes such as the Agent, Schedule and Daemon are stopped by starting a Restart process, medium pack decompression coverage is carried out, configuration files are updated, and finally the stopped main process is restarted to complete an upgrading task.
Therefore, the upgrading operation of the agent upgrading data can be further refined according to the cross-version relationship, so that upgrading of an agent basic environment and upgrading of an agent upgrading data packet can be guaranteed to be achieved under the condition that the cross-version relationship is met, the upgrading operation of the agent upgrading data is more stable and reliable, a more accurate upgrading process is achieved, the upgrading operation speed is higher and simpler, artificial interference is prevented, and upgrading operation matching operation is avoided; in addition, the method can also ensure that the update operation of the agent update data is directly realized under the condition that the cross-version relationship is not satisfied, ensure the direct update of the agent update data, is more rapid, efficient, convenient and accurate, and effectively reduce the production accident rate of update management.
Fig. 6 schematically shows a script upgrade processing sequence diagram of a server upgrade method according to an embodiment of the present disclosure.
As shown in fig. 2 to 6, according to an embodiment of the present disclosure, in the acquiring server upgrade data of a corresponding server according to the update task message in operation S202, the acquiring server upgrade data includes:
responding to the updating task message, and issuing script updating data through a downlink data link;
acquiring the script upgrading data to a script partition queue through a message monitoring thread of the server;
wherein the server upgrade data comprises the script upgrade data.
As shown in fig. 6, for the script upgrade operation of the professional object, the WIDE module 610 may respond to the update task message, initiate the script update task of the professional object while initiating the general agent version update task, acquire the script media package as the script upgrade data from the media server 303 shown in fig. 3, and issue the script upgrade data to the designated first-level organization storm 620 by using a downlink data link issued by the task, as shown in fig. 6, in operation S601. Further, the script upgrading data, the update task message and the like are sent to the message queue of the primary institution MQ 630 together by using the data transmission relationship between the primary institution MQ 630 and the primary institution storm 620. The corresponding first-level mechanism MQ 630 may have a plurality of script partition queues of different types, and may queue or store the stored message data to be processed, where the script partition queue is a message processing queue related to the script corresponding to different MQ partitions, such as a topic queue and a media queue.
At this time, the Agent module of the matched general Agent of the server where the professional object is located and the listening message thread establishing connection between the primary institution MQ 630 utilize the 21591 port to listen and acquire the update task message of the primary institution MQ 630 and the matched script upgrade data, as shown in operation S604 in fig. 6. The WIDE module 610 may be a service transceiving module or a component like the self-service platform 510. As shown in operation S602 in fig. 6, after the first-level organization storm 620 acquires the script media package of the script upgrade data, the first-level organization storm 620 issues the script media package to a topic queue of the first-level organization Active MQ 630, which is used for queuing to be processed by partitioning, as shown in operation S602 in fig. 6.
Meanwhile, the module of the first-level organization storm 620 also issues the script media package of the script upgrade data to the media queue of the first-level organization MQ 630, so that after receiving the script media package, the media queue of the first-level organization MQ 630 stores the media package in the specified directory of the media server 650 (i.e., the media server 303 shown in fig. 3) as storage data for standby, as shown in fig. 6, in operations S603 and S605.
Therefore, automatic matching and obtaining of the script upgrading data corresponding to the updating task message can be achieved, compared with the traditional manual operation matching process, the operation process of the script upgrading data is quicker and more effective, and the situation that calling of the script upgrading data and the updating task message is blocked can be well prevented.
As shown in fig. 2 to fig. 6, according to an embodiment of the present disclosure, after the obtaining, by the listening message thread of the server, the script upgrade data to a script partition queue, the method further includes:
matching script number information between script upgrading data corresponding to the updating task message and script configuration data received by the server to determine the cross-version relationship;
acquiring script basic upgrading data of a corresponding server according to the cross-version relationship;
the server upgrading data also comprises script basic upgrading data, and the cross-version relationship is a script corresponding relationship between the script upgrading data and script configuration data received by the server.
As shown in fig. 6, in operation S606, the first-level mechanism MQ 630 sends the script upgrade data and the update task message received in operation S602 to the general Agent host process, and the corresponding Agent module 640 matches the script number information of the script upgrade data corresponding to the received update task message with the script number information of the script configuration data in the script configuration file of the professional object of the local server, which is acquired by the Agent module 640, and determines whether the script upgrade data corresponding to the current update task message spans a large version number.
For the professional objects, the basic software service data of each professional object as script configuration data has a unique identifier and an identifier script number which accords with a preset script development identifier rule, and the current script of the script configuration data can be defined by taking the identifier script number as the content of the script number information of the script configuration data. Correspondingly, the script upgrading data also has a corresponding identification script number, the content of the identification script number as the script number information of the open script upgrading data can define the script of the script updating configuration data corresponding to the script upgrading data, and the script updating configuration data is the configuration data generated after the corresponding upgrading operation is executed by the script upgrading data and is matched with the corresponding professional object.
For the cross-version relationship, when the script corresponding relationship between the script upgrading data and the script configuration data of the professional object in the server meets the cross-large script number, the cross-version relationship is established. For example, the script number information of the script configuration data of the basic software service for the professional object and the script upgrade data of the update task message satisfies the script number setting rule of "script _ a.0.0.d.zip". Wherein, for "script _1.0.0.0. zip", it is a big script number, and the corresponding "script _1.0.0.1. zip", "script _1.0.0.2. zip", and "script _1.0.0.3. zip", etc. are all the corresponding small script numbers under the "script _1.0.0. zip", i.e. the script with D being 0 is a full script packet script, the scripts with a same and D being not 0 are the incremental scripts or understood as sub-scripts under the full script of the "script _ a.0.0.0. d.zip", and the corresponding other big script numbers of "script _2.0.0.0. zip" and the corresponding "script _2.0.0.1. zip" and the corresponding small script numbers under the "script numbers are all the big script numbers and the corresponding small script numbers thereof are all the big script numbers of the" script _1.0.0. zip ", and the corresponding small script numbers of the" script numbers are all the big script numbers and the corresponding small script numbers thereof. In other words, if the script number information of the script upgrade data satisfies "script _2.0.0.0. zip" and the script number information of the agent configuration data satisfies "script _2.0.0.1. zip", the cross-version relationship between the two is not established; if the script number information of the agent upgrading data meets script _1.0.0.0.zip and the script number information of the agent configuration data meets script _2.0.0.1.zip, the two meet the cross-large script relationship, and the cross-version relationship is established. Wherein the cross-version relationship can be understood as a cross-big script relationship.
When the cross-version relationship is established, it can be stated that the upgrade of the script upgrade data relative to the script configuration data is a cross-large script upgrade, and further execute a corresponding cross-large script upgrade task. When the update and upgrade task across the large script is executed, the large script basic media package to be updated may be acquired by the media server 650 as script basic upgrade data to be sent to the local professional object server, so that the acquisition of the script basic upgrade data may be completed, as shown in operation S607 in fig. 6. The script basic upgrading data is used as the full upgrading data of the script upgrading data and is used for establishing an upgrading updating environment of the script upgrading data after the upgrading operation is executed, so that the upgrading operation of the script upgrading data is faster and more efficient, meanwhile, the script upgrading data can be more completely upgraded, and the subsequent professional objects can be ensured to realize better professional object service.
As shown in fig. 2 to 6, according to an embodiment of the present disclosure, in the step of performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data in operation S203, the method includes:
decompressing the script basic upgrading data and the script upgrading data according to the cross-version relationship;
and updating the script configuration data of the server in response to the decompression of the script basic upgrading data and the script upgrading data.
When the cross-version relationship is determined to be established, the Agent module 640 directly decompresses the script version update package for determining that all the received script upgrade data and the script basic upgrade data, and decompresses the corresponding upgrade content to the path directory specified by the professional object, so as to complete the latest script update of the professional object in the local server, as shown in operation S608 in fig. 6.
After the script upgrading and updating are completed, the Agent module 640 may modify the script number in the script configuration data file in the local professional object, update the script information of the professional object, and complete the script upgrading operation on the professional object of the server.
Therefore, by means of the cross-version relationship, the script upgrading requirements are intelligently distinguished, the script configuration data of the professional object is efficiently updated and upgraded, the method has the characteristics of high cohesion and low coupling, can be suitable for the precise and automatic operation of the server cluster script upgrading management of a large-scale data center, reduces the occupied time of upgrading operation, realizes the matching upgrading of corresponding general agents, reduces the upgrading management accident rate, saves the manual operation cost, and improves the unified management efficiency.
As shown in fig. 2 to fig. 6, according to an embodiment of the present disclosure, in the step of performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data in operation S203, the method further includes:
decompressing the script upgrading data according to the cross-version relationship;
updating the script configuration data of the server in response to the decompression of the script upgrade data.
When it is confirmed that the cross-version relationship cannot be established, the Agent module 640 directly decompresses the script version update package confirming that the received script upgrade data is received, and decompresses the corresponding upgrade content to the path directory specified by the professional object, so as to complete the latest script update of the professional object in the local server, as shown in operation S608 in fig. 6.
After the script upgrading and updating are completed, the Agent module 640 may modify the script number in the script configuration data file in the local professional object, update the script information of the professional object, and complete the script upgrading operation on the professional object of the server.
Therefore, based on the script upgrading of the cross-version relationship, the judgment of the upgrading data of the full amount and the increment can be respectively carried out on the script data of the object, and compared with the prior art that the full amount upgrading operation is directly carried out, the problem of resource occupation caused by an unnecessary full amount upgrading execution process is avoided, and the full amount upgrading operation and the increment upgrading operation can be freely matched. So, for the renewal process of aforementioned stride big script, can intellectuality distinguish the script demand, directly realize the script upgrade to professional object, the script upgrade operation is more stable high-efficient, further accelerate the operating speed of script upgrade, carry out the high-efficient update to the script configuration data of foretell server professional object, have high cohesion, the characteristics of low coupling, can be applicable to the server cluster's of extensive data center precision, automatic script upgrade management operation, reduce the length of time that occupies of script upgrade operation, realize the matching upgrade to corresponding general agent version, reduce script upgrade management accident rate, the operating cost of using manpower sparingly, improve unified management efficiency
In addition, as shown in FIG. 6, in operations S609-S611, after completing the decompression upgrade operation, the Agent module 640 of the generic Agent will upload a message of the script update results to the first-level authority MQ 630. After receiving the message of the script update result, the primary institution MQ 630 may further send the message to the primary institution storm 620 as a task execution result to perform institution message integration. Finally, the storm 620 of the first-level organization summarizes and integrates all client messages of the organization which receive the script update task, and feeds back the result and the progress of the script version update task to the upper-layer service WIDE module 610.
Therefore, the script version upgrading task is initiated by the WIDE module 610, and is issued to the first-level mechanism MQ 620 in the form of Blob Message messages through the script library, and the Agent module 640 listens to messages through MQ Message consumers, receives the update task messages and the script library media package, and uses the script library media package as script upgrading data. Comparing the received script library script with the existing script library script, and if the update is a large-span script update, the Agent module 640 obtains the latest full script library from the media server 650 for coverage update; otherwise, when the updating does not meet the requirement of cross-large script updating, the medium packet of the script updating data is directly decompressed to carry out incremental updating of the script library, and the updating result is uploaded.
So, for the renewal process of aforementioned stride big script, can intellectuality distinguish the script demand, directly realize the script upgrade to professional object, script upgrade operation is more stable high-efficient, further accelerate the operating speed of script upgrade, upgrade the script configuration data of foretell server professional object high-efficiently, have high cohesion, the characteristics of low coupling, can be applicable to the server cluster's of extensive data center precision, automatic script upgrade management operation, reduce the length of time that occupies of script upgrade operation, realize the matching upgrade to corresponding general agent version, reduce script upgrade management accident rate, the operating cost of using manpower sparingly, improve unified management efficiency.
Fig. 7 schematically shows a daemon message processing flow chart of a server upgrading method according to an embodiment of the disclosure.
As shown in fig. 2 to 7, according to an embodiment of the present disclosure, before acquiring server upgrade data of a corresponding server according to the update task message in operation S202, the method further includes:
sequentially inquiring the process state information of the restarting execution process, the proxy execution process and the plan execution process of the server;
and determining the real-time occupation state of the agent execution process of the server at the current moment according to the process state information, and finishing monitoring the agent execution process.
In the server upgrading process of the embodiment of the present disclosure, a daemon process self-monitoring cycle check is further required, the daemon process belongs to a background module, no interaction is performed to the outside, and the daemon process is mainly responsible for normal starting of a daemon general agent host process, and once the daemon process is found to be absent, the daemon process immediately responds to the starting. And sequentially monitoring the running states of a Restart execution process (such as a Restart process), a proxy execution process (such as an Agent process) and a plan execution process (such as a Schedule process), wherein the monitoring information of the running states of the processes is the process state information. If the process state information feeds back the Restart process, automatically quitting the self-monitoring process; if the process state information feeds back that the Restart process does not exist and the Agent process or the Schedule process does not exist, the lost Schedule process can be called up, the performance consumption conditions of a CPU, a Memory and the like occupied by the main process of the Agent are monitored to be used as the real-time occupation state of the Agent execution process, and the Agent execution main process of the whole Agent is immediately stopped once the performance occupation data of the real-time occupation state is found to exceed the upper limit of the performance consumption.
Therefore, by means of the monitoring management of the monitoring process, the real-time monitoring of the system resource occupation of the currently executed agent execution main process can be realized, the resource occupancy rate of the process such as the agent execution main process and the like is effectively ensured to be kept at a lower level, the situations that the server operation response is too slow, no response is caused and even downtime is caused in the professional object management process of the server due to the overlarge resource occupation of the process such as the agent execution main process and the like are prevented, further, the automatic version management can be supported, the performance of the process such as agent and the like is automatically monitored, the normal operation and reasonable resource use record of the process are ensured, the abnormal self-healing of the server is ensured, the safety and the reliability are realized, and the operation level of the unified management, the convenience and the automation is improved. In other words, the resource occupancy rate of the monitoring process can be guaranteed to be maintained at a low level under the condition that effective self-monitoring of processes such as the agent execution process and the like is guaranteed.
As shown in fig. 2 to fig. 7, according to the embodiment of the present disclosure, the sequentially querying the process state information of the restart execution process, the proxy execution process, and the scheduled execution process of the server includes:
when the current process state of the queried restarting execution process is null, querying the agent execution process;
when the current process state of the agent execution process is non-empty, inquiring the plan execution process;
when the current process state of the plan execution process is non-empty, acquiring the real-time occupation state of the agent execution process at the current moment by calling the plan execution process;
the process state information comprises the current process states of a restart execution process, an agent execution process and a plan execution process.
As shown in fig. 7, the monitoring host process may perform a self-monitoring operation at regular time, that is, for example, the process states of the current time of the generic agent and the restart execution process, the agent execution process, and the schedule plan execution process corresponding to the generic agent are sequentially obtained every 10S as the process state information, as shown in operation S701.
Further, the monitoring main process indicates that the general agent main process is restarting under the condition that the restart process fed back by the process state information of the obtained restart process exists, and the daemon process automatically exits. On the contrary, if the restart process fed back by the process state information of the restart process does not exist, it indicates that the general-purpose proxy main process is not in the restart process at present, and further performs calling judgment on the process state information of the Agent executing the process, as shown in operations S702 to S703 in fig. 7.
Further, when the Restart process does not exist, the monitoring main process indicates that the general Agent main process is in a normal operation state under the condition that the Agent execution process fed back by the obtained process state information of the Agent process is determined to exist, and then schedule process state information of the scheduled execution process is further called and judged. On the contrary, if the restart process fed back by the process state information of the Agent process does not exist, which indicates that the general Agent host process is currently in the suspended state, the Agent process of the Agent execution process is invoked, and the operation of repeatedly executing the three process states is returned, as shown in operations S703, S704, and S705 in fig. 7.
When the general agent main process is in a normal operation state, the daemon process indicates that the monitoring process of the current general agent is suspended and directly carries out the starting operation of the schedule process under the condition that the obtained schedule execution process fed back by the process state information of the schedule process does not exist. In contrast, if it is determined that the scheduled execution process of the acquired process state information of the schedule process exists, the monitoring process invokes the schedule process, as shown in operations S705-S706 in fig. 7. By calling the schedule process, the acquisition of the occupation data of the real-time occupation state of the proxy execution process at the current moment can be directly carried out.
Therefore, by means of the monitoring process for monitoring and judging the three operation processes step by step, the current running state of the current agent execution main process and the corresponding system resource occupation condition can be confirmed through the monitoring process, the real-time monitoring of the monitoring process on the system resource occupation is completed, and the resource occupation rate of the monitoring process is effectively ensured to be maintained at a lower level.
As shown in fig. 2 to fig. 7, according to an embodiment of the present disclosure, in the obtaining a real-time occupation state of the proxy execution process at a current time by invoking the scheduled execution process, the method includes:
calling the plan execution process, and determining the performance limit state of the agent execution process at the current moment;
and when the performance limit state is on, acquiring the real-time occupation state of the agent execution process at the current moment.
After the monitoring process finishes the judgment of the three module processes, the cpu, the memory limit state and the limit value of the corresponding state index stored in the specified directory are obtained according to the starting execution of the schedule process, so as to feed back the performance limit state of the agent execution process at the current moment. And determining whether the performance limited state is an open state or not by comparing the corresponding data values of the cpu and the memory limited state with the limit value of a preset state index. For the performance limiting state of the starting state, corresponding real-time resource occupation data needs to be further acquired so as to reflect the real-time occupation state of the general agent execution process at the current moment; otherwise, for the performance-limited state of the shutdown state, the process status information monitoring of the monitoring host process is directly returned and repeatedly executed, as in operations S708-S709.
After the monitoring process obtains the performance limit state, the real-time occupation condition of the current general agent execution process on the system resources (such as cpu and memory) is obtained as the feedback data of the real-time occupation state. And comparing the current actual occupation value of the feedback data of the real-time occupation state with a preset target occupation limiting threshold value, and judging whether the actually occupied resources in the execution process of the current monitoring process exceed the preset upper limit resources. If the monitoring process does not exceed the limited target threshold value, the monitoring process and the corresponding Agent process and other resources are normally used, and the daemon process returns to repeatedly execute a new self-monitoring cycle; otherwise, if the target limit threshold is exceeded, it is indicated that the resource usage is abnormal due to the fact that the resource occupancy of the current monitoring process and the Agent process corresponding to the current monitoring process is too high, the general Agent execution process, the scheduled execution process and the monitoring process need to be actively stopped, and further, after the process is stopped and delayed, a new round of self-monitoring cycle is repeatedly executed, as in operation S709-S711.
Therefore, by means of the monitoring management of the monitoring process, the resource occupancy rate of the monitoring process can be maintained at a lower level under the condition of ensuring effective self-monitoring of the processes such as the agent execution process and the like, the situations that the server operation response is too slow, no response exists and even downtime in the professional object management process of the server caused by overlarge resource occupation of the processes such as the agent execution main process and the like are prevented, automatic version management can be further supported, the performance self-monitoring of the processes such as the agent and the like is realized, the normal operation and reasonable resource use record of the processes are ensured, the abnormal self-healing of the server is ensured, the safety and the reliability are realized, and the operation level of the unification, the convenience and the automation of the management is improved.
As shown in fig. 2 to fig. 7, according to the embodiment of the present disclosure, after the analyzing the service task message and acquiring the corresponding task attribute parameter, the method further includes:
identifying the service task message as a task execution message according to the task attribute parameters;
and executing a plurality of service execution tasks corresponding to the execution task message concurrently.
As shown in operation S404 in fig. 4, an analysis operation is performed on the service task message acquired by the general agent process, and a type identifier parameter of the service task message is acquired as a task attribute parameter corresponding to the type identifier parameter, where the task attribute parameter is used to identify an execution type of the service task message. If the task attribute parameter is an execution type parameter, it is determined that the task type of the service task message is an execution task type, and the service task message is an execution task message, as shown in operations S404-S407 in fig. 4. And if the service task message is of different task types, the processing operation of the service task message is also different, so that the accuracy of processing the data message in the upgrading operation process of the server is further enhanced.
As mentioned above, if it is determined that the service task message is an execution type message, the service task message is an execution task message, and mainly relates to batch execution of a general agent task and other related service tasks, that is, starting a task execution thread. The task execution thread may concurrently execute, for example, an SRC task, an SHC task, a BPS task, a CMDB task, an UCM task, and other types of business tasks, so as to implement execution of the business tasks, as shown in operation S407 in fig. 4. Wherein, the corresponding general agent tasks and related business tasks are the business execution tasks.
In addition, after the task is executed, the general agent sends the task result to the first-level mechanism MQ. The first-level organization MQ receives the task result and further returns to the first-level organization storm according to the service module, and then integrates the organization information and returns to the service layer, as shown in fig. 4, operation S408.
Therefore, through the analysis of the task attribute parameters of the business task messages, the type judgment of the received task messages can be realized, and the identification and the automatic process processing of the task updating messages and the task executing messages can be realized. The execution process of the task execution message mainly relates to the concurrent execution process of various service tasks of the corresponding servers of the professional object server cluster.
As shown in fig. 2-7, according to an embodiment of the present disclosure, the method further comprises:
uploading agent registration information corresponding to the updated server by executing an agent information acquisition script;
and uploading the object registration information corresponding to the updated server by executing the object information acquisition script.
In the embodiment of the present disclosure, a software registration function of a general Agent also exists in the embodiment of the present disclosure, and Agent registration information of an Agent and object registration information of a professional object are sent to a centralized framework at regular time, so that a first-level organization and a head office are managed uniformly. The function mainly comprises two parts of proxy registration information and object registration information uploading, and the frequency can be set to be 1 time/hour. In each acquisition period, the Agent process can execute an Agent information acquisition script, Agent registration information of the Agent is acquired and is uploaded to the first-level mechanism MQ, the Agent registration information reaches the head office Storm through the first-level mechanism Storm and the head office MQ, the first-level mechanism Storm is written into the first-level mechanism Mysql in real time, and the head office Strom is written into a head office Redis and a head office Mysql library after being received. The agent information acquisition script is an execution script used for enabling the general agent process to realize agent registration information acquisition, and the agent registration information is basic registration information of the general agent process matched with the professional object to execute the service function, and can include corresponding agent version number information and other contents. After the upgrade operation of the server is completed, the update coverage of agent registration information such as agent version number information can be realized.
Further, after or at the same time of uploading the Agent information to the first-level organization MQ, the Agent process can execute an object information acquisition script, acquire object registration information and upload the object registration information to the first-level organization MQ, the object registration information reaches the chief bank Storm through the first-level organization Storm and the chief bank MQ, the chief bank Storm is written into the chief bank Redis, and the HttpServer reads from the Redis every hour and synchronizes to the chief bank Mysql. The object information acquisition script is an execution script used for enabling the general agent process to realize acquisition of professional object registration information, and the object registration information is basic registration information of the professional object and can include corresponding professional object script number information and other contents. After the server upgrading operation is completed, updating coverage of object registration information such as object script number information can be achieved.
Therefore, based on the server upgrading method of the embodiment of the present disclosure, compared to the situation that in the prior art, professional object management can be realized only by setting manual operations due to the fact that professional objects are of various types and corresponding different types of universal agent versions, a universal agent and professional object upgrading management scheme applicable to a large-scale data center is provided, different professional objects of different versions such as an open platform operating system, a storage, a database, a middleware and the like can be covered, and message information processing can be performed on the professional objects regarded as the same professional objects; moreover, the server-side version media distribution updating is supported, so that the unified management of the universal agent is facilitated; in addition, the agent can realize self-monitoring of performance, guarantee normal operation of the process and reasonable resource use, trigger restarting once abnormality is found, and record the resource condition in real time. Obviously, the production, operation and maintenance cost can be greatly reduced, the problems of complex management, complex steps and the like of traditional different professional object agents in a large-scale data center are solved, management means such as agent version statistics upgrading and object script medium updating are unified, one-line operation and maintenance becomes simple and visual, the method can be effectively applied to various open platform environments such as Linux, AIX, Neoxylin, windows and the like, and the method has better universality and popularization.
It should be noted that the update management scheme for the proxy version and the object script of the server can be used as a solution for processing general proxy information applicable to a large-scale data center, and the application range is wide, and most operating systems in a row are spread to an application server with an open platform. The specific use development language can include java and other development operation and maintenance languages, and the used related tools can include eclipse, JDK, ActiveMQ client, log4j, jna and other development operation and maintenance platforms.
Based on the server upgrading method, the disclosure also provides a server upgrading device. The apparatus will be described in detail below with reference to fig. 8.
Fig. 8 schematically shows a block diagram of a server upgrading apparatus according to an embodiment of the present disclosure.
As shown in fig. 8, the server upgrade apparatus 800 of this embodiment includes a message identification module 810, a data acquisition module 820, and an upgrade execution module 830.
The message identification module 810 is configured to identify the received service task message as an update task message. In an embodiment, the message identification module 810 may be configured to perform the operation S201 described above, which is not described herein again.
The data obtaining module 820 is configured to obtain server upgrade data of a corresponding server according to the update task message. In an embodiment, the data obtaining module 820 may be configured to perform the operation S202 described above, which is not described herein again.
The upgrade execution module 830 is configured to execute the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data. In an embodiment, the upgrade execution module 830 may be configured to execute the operation S203 described above, which is not described herein again.
According to an embodiment of the present disclosure, any plurality of the message identification module 810, the data acquisition module 820, and the upgrade execution module 830 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the message identification module 810, the data acquisition module 820, and the upgrade execution module 830 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one of the message identification module 810, the data acquisition module 820 and the upgrade execution module 830 may be at least partially implemented as a computer program module, which when executed, may perform corresponding functions.
Fig. 9 schematically shows a block diagram of an electronic device adapted to implement a server upgrade method according to an embodiment of the present disclosure.
As shown in fig. 9, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 900 may also include input/output (I/O) interface 905, input/output (I/O) interface 905 also connected to bus 904, according to an embodiment of the present disclosure. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), 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. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or the RAM 903 described above and/or one or more memories other than the ROM 902 and the RAM 903.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 901. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, and the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, and downloaded and installed through the communication section 909 and/or installed from the removable medium 911. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., 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 or flowchart illustration, and combinations of blocks in the block diagrams 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.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (23)

1. A server upgrading method comprises the following steps:
identifying the received service task message as an update task message;
acquiring server upgrading data of a corresponding server according to the updating task message; and
and executing the upgrading of the server according to the cross-version relationship corresponding to the server upgrading data.
2. The method of claim 1, wherein prior to said identifying the received business task message as an update task message, further comprising:
establishing a message monitoring thread of the server;
and acquiring the service task message according to the monitoring message thread.
3. The method of claim 2, wherein the obtaining the service task message according to the listening message thread comprises:
executing a message monitoring task at regular time according to the message monitoring thread;
and acquiring the service task message according to the execution of the message monitoring task.
4. The method of claim 1, wherein in identifying that the received business task message is an update task message, comprising:
analyzing the service task message to obtain corresponding task attribute parameters;
and identifying the service task message as the updating task message according to the task attribute parameters.
5. The method according to claim 1, wherein the obtaining of the server upgrade data of the corresponding server according to the update task message includes:
responding to the update task message, and issuing agent upgrade data through a downlink data link;
acquiring the agent upgrading data to the server through a message monitoring thread of the server;
wherein the server upgrade data comprises the agent upgrade data.
6. The method of claim 5, wherein after the obtaining the agent upgrade data to the server by the listening message thread of the server, further comprising:
matching agent upgrading data corresponding to the updating task message with version number information of agent configuration data in the server to determine the cross-version relationship;
acquiring proxy basic upgrading data of a corresponding server according to the cross-version relationship;
the server upgrading data further comprises the agent basic upgrading data, and the cross-version relationship is a version corresponding relationship between the agent upgrading data and agent configuration data in the server.
7. The method of claim 6, wherein the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data comprises:
and invoking a restart execution process to execute the upgrading of the server in response to the agent upgrading data of the server upgrading data and the agent basic upgrading data.
8. The method of claim 7, wherein invoking a reboot executing process to perform the upgrade of the server in response to the agent upgrade data of the server upgrade data and the agent base upgrade data comprises:
in response to the calling of the restarting execution process, decompressing the agent basic upgrading data and establishing a basic upgrading environment;
decompressing the agent upgrade data according to the basic upgrade environment;
and responding to the decompression of the agent upgrading data, updating the agent configuration data of the server and executing the restarting execution process to finish the upgrading of the server.
9. The method of claim 6, wherein, in the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data, further comprising:
and calling a restart execution process to execute the upgrading of the server according to the cross-version relationship.
10. The method of claim 9, wherein, in said invoking a restart execution process to perform an upgrade of the server according to the cross-version relationship, comprises:
decompressing the agent upgrade data in response to the invocation of the restart execution process;
and responding to the decompression of the agent upgrading data, updating the agent configuration data of the server and executing the restarting execution process to finish the upgrading of the server.
11. The method according to claim 1, wherein the obtaining of the server upgrade data of the corresponding server according to the update task message includes:
responding to the updating task message, and issuing script updating data through a downlink data link;
acquiring the script upgrading data to a script partition queue through a message monitoring thread of the server;
wherein the server upgrade data comprises the script upgrade data.
12. The method of claim 11, wherein after the obtaining of the script upgrade data to a script partition queue by the listening message thread of the server, further comprising:
matching script number information between script upgrading data corresponding to the updating task message and script configuration data received by the server to determine the cross-version relationship;
acquiring script basic upgrading data of a corresponding server according to the cross-version relationship;
the server upgrading data also comprises script basic upgrading data, and the cross-version relationship is a script corresponding relationship between the script upgrading data and script configuration data received by the server.
13. The method of claim 12, wherein the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data comprises:
decompressing the script basic upgrading data and the script upgrading data according to the cross-version relationship;
and updating the script configuration data of the server in response to the decompression of the script basic upgrading data and the script upgrading data.
14. The method of claim 12, wherein, in the performing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data, further comprising:
decompressing the script upgrading data according to the cross-version relationship;
updating the script configuration data of the server in response to the decompression of the script upgrade data.
15. The method of claim 1, wherein before the obtaining server upgrade data of a corresponding server according to the update task message, further comprising:
sequentially inquiring the process state information of the restarting execution process, the proxy execution process and the plan execution process of the server;
and determining the real-time occupation state of the agent execution process of the server at the current moment according to the process state information, and finishing monitoring the agent execution process.
16. The method of claim 15, wherein the sequentially querying the process state information of the restart execution process, the proxy execution process and the scheduled execution process of the server comprises:
when the current process state of the queried restarting execution process is null, querying the agent execution process;
when the current process state of the agent execution process is non-empty, inquiring the plan execution process;
when the current process state of the plan execution process is non-empty, acquiring the real-time occupation state of the agent execution process at the current moment by calling the plan execution process;
the process state information comprises the current process states of a restarting execution process, an agent execution process and a planned execution process.
17. The method according to claim 16, wherein, in the obtaining the real-time occupation status of the agent execution process at the current time by calling the scheduled execution process, the method comprises:
calling the planned execution process, and determining the performance limit state of the agent execution process at the current moment;
and when the performance limit state is on, acquiring the real-time occupation state of the agent execution process at the current moment.
18. The method according to claim 4, wherein after the parsing the service task message and obtaining the corresponding task attribute parameter, further comprising:
identifying the service task message as a task execution message according to the task attribute parameters;
and executing a plurality of service execution tasks corresponding to the execution task message concurrently.
19. The method of claim 1, further comprising:
uploading agent registration information corresponding to the updated server by executing an agent information acquisition script;
and uploading the object registration information corresponding to the updated server by executing the object information acquisition script.
20. A server upgrade apparatus, comprising:
the message identification module is used for identifying the received service task message as an updating task message;
the data acquisition module is used for acquiring server upgrading data of the corresponding server according to the updating task message; and
and the upgrade execution module is used for executing the upgrade of the server according to the cross-version relationship corresponding to the server upgrade data.
21. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-19.
22. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 19.
23. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 19.
CN202210440992.4A 2022-04-22 2022-04-22 Server upgrading method, device, equipment, medium and program product Pending CN114816477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210440992.4A CN114816477A (en) 2022-04-22 2022-04-22 Server upgrading method, device, equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210440992.4A CN114816477A (en) 2022-04-22 2022-04-22 Server upgrading method, device, equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN114816477A true CN114816477A (en) 2022-07-29

Family

ID=82508407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210440992.4A Pending CN114816477A (en) 2022-04-22 2022-04-22 Server upgrading method, device, equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN114816477A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116820527A (en) * 2023-08-31 2023-09-29 腾讯科技(深圳)有限公司 Program upgrading method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116820527A (en) * 2023-08-31 2023-09-29 腾讯科技(深圳)有限公司 Program upgrading method, device, computer equipment and storage medium
CN116820527B (en) * 2023-08-31 2024-01-02 腾讯科技(深圳)有限公司 Program upgrading method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11244233B2 (en) Intelligent adaptor service in unified automation platforms for robotic process automation
EP3543866B1 (en) Resource-efficient record processing in unified automation platforms for robotic process automation
CN107729139B (en) Method and device for concurrently acquiring resources
US9256412B2 (en) Scheduled and quarantined software deployment based on dependency analysis
US10698745B2 (en) Adapter extension for inbound messages from robotic automation platforms to unified automation platform
EP3128416B1 (en) Sdn application integration, management and control method, system and device
CN114721807A (en) Batch business task execution method, device, equipment, medium and program product
CN104035939A (en) Flexible monitoring frame with peculiar independent rule engine
CN112765166A (en) Data processing method, device and computer readable storage medium
CN114237853A (en) Task execution method, device, equipment, medium and program product applied to heterogeneous system
CN114816477A (en) Server upgrading method, device, equipment, medium and program product
CN116700779A (en) Code dynamic adjustment method, device, equipment, medium and program product
CN114201508A (en) Data processing method, data processing apparatus, electronic device, and storage medium
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
US11188924B2 (en) Connectivity interface optimization recommendation engine for enterprise system
CN114237765A (en) Functional component processing method and device, electronic equipment and medium
CN113407429A (en) Task processing method and device
CN113626379A (en) Research and development data management method, device, equipment and medium
CN113656812A (en) Data management system and method based on big data technology
CN112559001A (en) Method and device for updating application
CN113138772A (en) Method and device for constructing data processing platform, electronic equipment and storage medium
CN114816702A (en) Monitoring data acquisition method, device, equipment, medium and program product
US9146798B2 (en) System and method of performing a health check on a process integration component
CN113495747B (en) Gray scale release method and device
US20230418598A1 (en) Modernizing application components to reduce energy consumption

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