CN109800013B - Method and system for hot expansion of server application function and readable storage medium - Google Patents

Method and system for hot expansion of server application function and readable storage medium Download PDF

Info

Publication number
CN109800013B
CN109800013B CN201910074302.6A CN201910074302A CN109800013B CN 109800013 B CN109800013 B CN 109800013B CN 201910074302 A CN201910074302 A CN 201910074302A CN 109800013 B CN109800013 B CN 109800013B
Authority
CN
China
Prior art keywords
application
module
loading
dependency relationship
interface
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.)
Active
Application number
CN201910074302.6A
Other languages
Chinese (zh)
Other versions
CN109800013A (en
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.)
Shanghai Chuangjing Information Technology Co ltd
Original Assignee
Vision Microsystems Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vision Microsystems Shanghai Co ltd filed Critical Vision Microsystems Shanghai Co ltd
Priority to CN201910074302.6A priority Critical patent/CN109800013B/en
Publication of CN109800013A publication Critical patent/CN109800013A/en
Application granted granted Critical
Publication of CN109800013B publication Critical patent/CN109800013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method and a system for thermal expansion of application functions of a server, which define basic application information, application dependency relationship and external service interfaces of application; and managing application operation, wherein the application operation is mainly to load, operate and unload the application according to the basic application information and the application dependency relationship after the application is started. Scanning basic application information, confirming newly-added applications, loading the newly-added applications according to the application dependency relationship, if abnormal conditions occur in the loading process, terminating the loading process, and recording the abnormal conditions; otherwise, continuing the loading process until the loading is successful, receiving the unloading request, setting the application state as to-be-unloaded, and performing reverse unloading operation according to the module dependency relationship; monitoring application operation, identifying abnormal conditions in the application operation, and processing the abnormal conditions. The function expansion and unloading of the server application are realized under the condition of no shutdown; and the operation monitoring of the function level is realized, and early warning pretreatment is carried out.

Description

Method and system for hot expansion of server application function and readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for thermal expansion of a server application function, and particularly relates to a method for dynamic thermal expansion of the server application function.
Background
The hot loading is to upgrade the software and reload class when the application runs, and does not need to restart the application service. The existing hot loading scheme is mainly used for remote loading of mobile applications and application restarting is needed, but network resources are consumed for calling remote loading, loading efficiency is low, and large system overhead is caused by restarting, particularly when expanding loading of server-side applications and functions is encountered, and the existing application monitoring technology mainly monitors the level of a servitization interface and cannot monitor the level of the functions. Therefore, it is urgently needed to develop a method based on the thermal expansion of the application function of the server.
Disclosure of Invention
In view of the defects in the prior art, the present invention aims to provide a method and a system for hot expanding the application function of a server and a readable storage medium.
The system for the thermal expansion of the application function of the server comprises a definition module, an operation module and a monitoring module; a definition module: defining application information of an application, wherein the application information mainly comprises application basic information, application dependency relationship and an external service interface; an operation module: managing application operation, wherein the application operation is mainly to load, operate and unload an application according to basic application information and an application dependency relationship after the application is started; a monitoring module: monitoring application operation, identifying abnormal conditions in the application operation, and processing the abnormal conditions.
Preferably, the operation module mainly comprises a start management module, a hot loading control module, an operation control module and an unloading control module; starting a management module: starting an application running framework, wherein the application running framework is an environment basis for application running; a hot loading control module: scanning basic application information, confirming newly-added applications, loading the newly-added applications according to the application dependency relationship, if abnormal conditions occur in the loading process, terminating the loading process, and recording the abnormal conditions; otherwise, continuing the loading process until the loading is successful; the operation control module: sending a call according to the external service interface, and recording the interface running state of the external service interface; the unloading control module: and receiving an unloading request, setting the application state as to-be-unloaded, and performing reverse unloading operation according to the module dependency relationship.
The method for the hot expansion of the application function of the server comprises a defining step, an operating step and a monitoring step; a defining step: defining application information of an application, wherein the application information mainly comprises application basic information, application dependency relationship and an external service interface; the operation steps are as follows: managing application operation, wherein the application operation is mainly to load, operate and unload an application according to basic application information and an application dependency relationship after the application is started; a monitoring step: monitoring application operation, identifying abnormal conditions in the application operation, and processing the abnormal conditions.
Preferably, the operation step mainly comprises a starting management step, a hot loading control step, an operation control step and an unloading control step; starting management: starting an application running framework, wherein the application running framework is an environment basis for application running; and (3) hot loading control: scanning basic application information, confirming newly-added applications, loading the newly-added applications according to the application dependency relationship, if abnormal conditions occur in the loading process, terminating the loading process, and recording the abnormal conditions; otherwise, continuing the loading process until the loading is successful; and (3) operation control step: sending a call according to the external service interface, and recording the interface running state of the external service interface; unloading control step: and receiving an unloading request, setting the application state as to-be-unloaded, and performing reverse unloading operation according to the application dependency relationship.
Preferably, the application basic information mainly comprises any one or more of an application number, an application type, an application use and an application description; the application type mainly comprises a framework type and a function type, wherein the framework type is used for building an application environment, and the function type is used for application extension; the application dependency relationship is used for determining the loading sequence of application loading; the external service interface defines interface operation parameters, is used for providing external calling, and calls according to the interface operation parameters.
Preferably, the interface operation state mainly comprises any one or more of an interface response code, an abnormal identification code and response time.
Preferably, the abnormal condition mainly includes:
-setting the application unavailable and issuing an early warning if the running time of the application running exceeds the set running time within the set time interval;
-the return code of the application running in the set time interval is an abnormal return code, and an early warning is given;
-sending out an early warning if the concurrent requests of the application running in the set time interval exceed the set upper limit.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method.
Compared with the prior art, the invention has the following beneficial effects:
1. the function expansion and unloading of the server application are realized under the condition of no shutdown;
2. and the operation monitoring of the function level is realized, and early warning pretreatment is carried out.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a block diagram of a system according to the present invention;
FIG. 2 is a block loading flow diagram of the present invention;
fig. 3 is a flow chart of the operation monitoring of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
The method for the hot expansion of the application function of the server comprises a defining step, an operating step and a monitoring step; a defining step: defining application information of an application, wherein the application information mainly comprises application basic information, application dependency relationship and an external service interface; the operation steps are as follows: managing application operation, wherein the application operation is mainly to load, operate and unload an application according to basic application information and an application dependency relationship after the application is started; a monitoring step: monitoring application operation, identifying abnormal conditions in the application operation, and processing the abnormal conditions.
Specifically, the operation step mainly comprises a starting management step, a hot loading control step, an operation control step and an unloading control step; starting management: starting an application running framework, wherein the application running framework is an environment basis for running the application, and after the application running framework is started, the whole application can normally run; and (3) hot loading control: scanning basic application information according to the application definition, confirming the newly added application, loading the newly added application according to the application dependency relationship after the newly added application is found, and if an abnormal condition occurs in the loading process, terminating the loading process and recording the abnormal condition; otherwise, continuing the loading process until the loading is successful; and (3) operation control step: sending a call according to the external service interface, and recording the interface running state of the external service interface; unloading control step: receiving an unloading request, setting the application state to be unloaded, wherein the application state to be unloaded represents that the application can not be called any more, and performing reverse unloading operation according to the application dependency relationship.
Specifically, the application basic information mainly includes any one or any more of an application number, an application type, an application use, and an application description; the application type mainly comprises a framework type and a function type, wherein the framework type is used for building an application environment, and the function type is used for application extension; the application dependency relationship is used for determining the loading sequence of application loading; the external service interface defines interface operation parameters, the external service interface is used for providing external calling, and the external calling is called according to the interface operation parameters; the external service interface also comprises definition of service interface operation parameters, and the server interface operation parameters mainly comprise any one or more of interface response time maximum value, normal return information and maximum borne concurrency.
Specifically, the interface operation state mainly comprises any one or any multiple of an interface response code, an abnormal identification code and response time.
Specifically, the abnormal condition mainly includes:
-setting the application unavailable and issuing an early warning if the running time of the application running exceeds the set running time within the set time interval;
-the return code of the application running in the set time interval is an abnormal return code, and an early warning is given;
-sending out an early warning if the concurrent requests of the application running in the set time interval exceed the set upper limit.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method.
The system for the thermal expansion of the application function of the server comprises a definition module, an operation module and a monitoring module; a definition module: defining module information of an application, wherein the module information mainly comprises module basic information, module dependency relationship and external service interface; an operation module: managing application operation, wherein the application operation is mainly to load, operate and unload an application according to basic application information and an application dependency relationship after the application is started; a monitoring module: monitoring application operation, identifying abnormal conditions in the application operation, and processing the abnormal conditions.
Specifically, the operation module mainly comprises a starting management module, a hot loading control module, an operation control module and an unloading control module; starting a management module: starting an application running framework, wherein the application running framework is an environment basis for application running; a hot loading control module: scanning basic application information, confirming newly-added applications, loading the newly-added applications according to the application dependency relationship, if abnormal conditions occur in the loading process, terminating the loading process, and recording the abnormal conditions; otherwise, continuing the loading process until the loading is successful; the operation control module: sending a call according to the external service interface, and recording the interface running state of the external service interface; the unloading control module: and receiving an unloading request, setting the application state as to-be-unloaded, and performing reverse unloading operation according to the module dependency relationship.
The system for the thermal expansion of the application function of the server can be realized by the step flow of the method for the thermal expansion of the application function of the server. The method for the server application function hot extension can be understood as a preferred example of the system for the server application function hot extension by those skilled in the art.
The present invention will be described in more detail below by way of preferred examples.
As shown in fig. 1, the system includes a definition module, a life cycle management module, and an operation monitoring module. The definition module is mainly used for defining application module information, and firstly, the definition comprises basic information such as module numbers, module types, purposes and descriptions, wherein the numbers are the fundamental stones for module operation, the module types are divided into a framework module and a function module, the framework module is an application basic layer, the function module is used for expanding services, secondly, the definition module dependency relationship is used for controlling the module loading sequence, thirdly, the definition module provides a function service interface for external calling, and simultaneously, the definition module comprises definition function service interface operation parameters such as interface response time maximum value, normal return information, maximum bearing concurrency and the like.
The life cycle management module is mainly used for managing the operation of the module and comprises a starting management module, a module hot loading control module, an operation control module and an unloading control module, wherein the starting management module controls the loading of the framework module when the application is started, and the whole application can normally operate after the loading of the framework module is finished; after the application framework normally runs, the module hot-loading control module scans the newly added function module according to the convention of the definition module, as shown in fig. 2, when the new module is found, the module dependency relationship is checked, the module is loaded according to the module dependency relationship until the loading is successful, and after any abnormity is found, the loading of the function module is stopped and the loading abnormity is recorded; the operation control module is used for controlling the operation of the system application module, the modules define and call the function module according to the service function interface defined in the definition module, after the call is sent out, the operation control module calls the module according to the definition and records the operation state of the function service interface, and the operation state comprises interface response codes, abnormal conditions, response time and the like; the unloading control module is used for unloading the function module, after a user sends a request for unloading the function module, the unloading module sets the module state as to-be-unloaded, so that an external user can not call the module any more, and the unloading control module runs and calls the module after the execution is finished, and carries out reverse unloading operation according to the dependency relationship.
The operation monitoring module mainly controls normal operation of the application, and as shown in fig. 3, firstly calls the function module, records the call information, analyzes and counts the call data, judges the call condition, and finally performs corresponding processing according to the call condition. The module service calling information is recorded through the operation control module in the life cycle management module, and according to the function service operation parameters defined by the definition module, the function module can be considered to be abnormal under the following conditions, and early warning and service setting can be carried out, wherein the condition that the interface exceeds the agreed upper limit continuously in a short time is that the service is set to be unavailable and early warning is carried out, the condition that the interface continuously returns an abnormal return code in a short time to carry out early warning is carried out, and the condition that the service concurrent request exceeds the set upper limit in a short time is carried out and early warning is carried out.
The invention is used for the hot expansion of the application function of the server based on the function level, and realizes the function expansion and unloading of the application of the server in a non-stop state.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (5)

1. The system for the thermal expansion of the application function of the server is characterized by comprising a definition module, an operation module and a monitoring module;
a definition module: defining application information of an application, wherein the application information mainly comprises application basic information, application dependency relationship and an external service interface;
an operation module: managing application operation, wherein the application operation is mainly to load, operate and unload an application according to basic application information and an application dependency relationship after the application is started;
a monitoring module: monitoring application operation, identifying abnormal conditions in the application operation, and processing the abnormal conditions;
the operation module mainly comprises a starting management module, a hot loading control module, an operation control module and an unloading control module;
starting a management module: starting an application running framework, wherein the application running framework is an environment basis for application running;
a hot loading control module: scanning basic application information, confirming newly-added applications, loading the newly-added applications according to the application dependency relationship, if abnormal conditions occur in the loading process, terminating the loading process, and recording the abnormal conditions; otherwise, continuing the loading process until the loading is successful;
the operation control module: sending a call according to the external service interface, and recording the interface running state of the external service interface;
the unloading control module: receiving an unloading request, setting an application state as to-be-unloaded, and performing reverse unloading operation according to the module dependency relationship;
the interface operation state mainly comprises any one or more of interface response codes, abnormal identification codes and response time.
2. A method for the thermal expansion of the application function of a server is characterized by comprising a defining step, an operating step and a monitoring step;
a defining step: defining application information of an application, wherein the application information mainly comprises application basic information, application dependency relationship and an external service interface;
the operation steps are as follows: managing application operation, wherein the application operation is mainly to load, operate and unload an application according to basic application information and an application dependency relationship after the application is started;
a monitoring step: monitoring application operation, identifying abnormal conditions in the application operation, and processing the abnormal conditions;
the operation steps mainly comprise a starting management step, a hot loading control step, an operation control step and an unloading control step;
starting management: starting an application running framework, wherein the application running framework is an environment basis for application running;
and (3) hot loading control: scanning basic application information, confirming newly-added applications, loading the newly-added applications according to the application dependency relationship, if abnormal conditions occur in the loading process, terminating the loading process, and recording the abnormal conditions; otherwise, continuing the loading process until the loading is successful;
and (3) operation control step: sending a call according to the external service interface, and recording the interface running state of the external service interface;
unloading control step: receiving an unloading request, setting an application state as to-be-unloaded, and performing reverse unloading operation according to an application dependency relationship;
the interface operation state mainly comprises any one or more of interface response codes, abnormal identification codes and response time.
3. The system for server application function hot-expanding according to claim 1 or the method for server application function hot-expanding according to claim 2, wherein the application basic information mainly includes any one or more of an application number, an application category, an application use, an application description; the application type mainly comprises a framework type and a function type, wherein the framework type is used for building an application environment, and the function type is used for application extension;
the application dependency relationship is used for determining the loading sequence of application loading;
the external service interface defines interface operation parameters, is used for providing external calling, and calls according to the interface operation parameters.
4. The system for server application function thermal expansion according to claim 1 or the method for server application function thermal expansion according to claim 2, wherein the abnormal condition mainly comprises:
-setting the application unavailable and issuing an early warning if the running time of the application running exceeds the set running time within the set time interval;
-the return code of the application running in the set time interval is an abnormal return code, and an early warning is given;
-sending out an early warning if the concurrent requests of the application running in the set time interval exceed the set upper limit.
5. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 2 to 4.
CN201910074302.6A 2019-01-25 2019-01-25 Method and system for hot expansion of server application function and readable storage medium Active CN109800013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910074302.6A CN109800013B (en) 2019-01-25 2019-01-25 Method and system for hot expansion of server application function and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910074302.6A CN109800013B (en) 2019-01-25 2019-01-25 Method and system for hot expansion of server application function and readable storage medium

Publications (2)

Publication Number Publication Date
CN109800013A CN109800013A (en) 2019-05-24
CN109800013B true CN109800013B (en) 2022-04-19

Family

ID=66560464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910074302.6A Active CN109800013B (en) 2019-01-25 2019-01-25 Method and system for hot expansion of server application function and readable storage medium

Country Status (1)

Country Link
CN (1) CN109800013B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192937A (en) * 2006-11-24 2008-06-04 华为技术有限公司 A hot deployable method and its system
CN105323282A (en) * 2014-07-28 2016-02-10 神州数码信息系统有限公司 Enterprise application deployment and management system for multiple tenants
CN105677424A (en) * 2016-01-08 2016-06-15 广东亿迅科技有限公司 Method for hot loading of component-based development integration based on microkernel
CN106815056A (en) * 2017-02-17 2017-06-09 银联国际有限公司 Application heat deploying method and device based on JCL frameworks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253831B (en) * 2013-06-26 2018-05-11 国际商业机器公司 A kind of method and system for being used for the application deployment in cloud computing environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192937A (en) * 2006-11-24 2008-06-04 华为技术有限公司 A hot deployable method and its system
CN105323282A (en) * 2014-07-28 2016-02-10 神州数码信息系统有限公司 Enterprise application deployment and management system for multiple tenants
CN105677424A (en) * 2016-01-08 2016-06-15 广东亿迅科技有限公司 Method for hot loading of component-based development integration based on microkernel
CN106815056A (en) * 2017-02-17 2017-06-09 银联国际有限公司 Application heat deploying method and device based on JCL frameworks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Web应用服务器可扩展热部署机制;胡建华等;《计算机科学》;20040515;第31卷(第5期);第21-23、55页 *

Also Published As

Publication number Publication date
CN109800013A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN107678907B (en) Database service logic monitoring method, system and storage medium
US9336054B2 (en) Method and apparatus for configuring resource
CN105468717B (en) Database operation method and device
US6694345B1 (en) External job scheduling within a distributed processing system having a local job control system
US20050283673A1 (en) Information processing apparatus, information processing method, and program
CN111324423B (en) Method and device for monitoring processes in container, storage medium and computer equipment
CN107453932B (en) Distributed storage system management method and device
CN109766172B (en) Asynchronous task scheduling method and device
CN112866314A (en) Method for switching slave nodes in distributed master-slave system, master node device and storage medium
CN103019706A (en) Method and device for processing startup item
CN109766131B (en) System and method for realizing intelligent automatic software upgrading based on multithreading technology
CN101510156B (en) Information system resource recovery method and device
CN110532105B (en) Method, system and device for controlling message queue consumer process
CN109800013B (en) Method and system for hot expansion of server application function and readable storage medium
CN110555009B (en) Processing method and device for Network File System (NFS) service
CN112948065B (en) Kubernetes-based scheduling automation system management device
CN115499493A (en) Asynchronous transaction processing method and device, storage medium and computer equipment
CN115617515A (en) Memory allocation method and device for intelligent Internet of things operating system and storage medium
CN111324668B (en) Database data synchronous processing method, device and storage medium
CN108228192A (en) A kind of implementation method of the dynamic management of service-oriented Airborne Software
CN111176959A (en) Early warning method, system and storage medium for cross-domain application server
CN112115020B (en) Database connection pool abnormity monitoring method and device and computer equipment
CN111124594B (en) Container operation method and device, heterogeneous GPU (graphics processing Unit) server and container cluster system
CN111078658B (en) Method and device for mounting cluster file system
CN116880993A (en) Method and device for processing large number of small files in Iceberg

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Block 22301-985, Building 14, No. 498 Guo Shoujing Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, March 2012

Patentee after: Shanghai Chuangjing Information Technology Co.,Ltd.

Country or region after: China

Address before: 200135 block 22301-985, building 14, No. 498, GuoShouJing Road, pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee before: VISION MICROSYSTEMS (SHANGHAI) Co.,Ltd.

Country or region before: China