CN110806878B - Service management method, system and storage medium - Google Patents

Service management method, system and storage medium Download PDF

Info

Publication number
CN110806878B
CN110806878B CN201911046425.5A CN201911046425A CN110806878B CN 110806878 B CN110806878 B CN 110806878B CN 201911046425 A CN201911046425 A CN 201911046425A CN 110806878 B CN110806878 B CN 110806878B
Authority
CN
China
Prior art keywords
service
operated
servicebox
package
services
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
CN201911046425.5A
Other languages
Chinese (zh)
Other versions
CN110806878A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911046425.5A priority Critical patent/CN110806878B/en
Publication of CN110806878A publication Critical patent/CN110806878A/en
Application granted granted Critical
Publication of CN110806878B publication Critical patent/CN110806878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Abstract

The invention provides a service management method, a system and a storage medium, wherein the method is applied to a service management system, the service management system comprises a deployment container containing a plurality of services and a service package ServiceBox, the service package ServiceBox is deployed in the deployment container, the deployment container is used for providing an operation environment for the services in the service package ServiceBox, and the method comprises the following steps: receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in the deployment container; when the deployment container is monitored to be started, corresponding operation processing is carried out on the service to be operated according to the operation instruction. The service management method, the system and the storage medium provided by the invention not only can realize the independent management of the service, but also can reduce the server resources and improve the service resource utilization rate.

Description

Service management method, system and storage medium
Technical Field
The invention relates to the technical field of java development, in particular to a method, a device and a storage medium for service management.
Background
With the increase of business complexity, in terms of service management, the volume of a product is inevitably increased, the internal dependency relationship is also increased and complicated, and the product starts to introduce distributed services or front-back separation and other technologies so as to improve the release efficiency of the product.
In the prior art, a distributed service architecture is generally used for service management, for example, a distributed service based on an ali distributed service framework, a High-speed service framework (High-Speed Service Framework, HSF), all services are integrally deployed in a War package form in a deployment container, and the services in the War package are capable of being externally provided through a registry. In addition, each service can be deployed separately, for example, a micro-service based on an open source product, namely, the SpreButt Spring Boot, and each service can be independently provided with capability and independently managed by deploying each service in an independent deployment container.
However, the distributed service of the HSF in the prior art cannot realize the independent management of the service, and the micro service of the Spring Boot can realize the independent management of the service, but needs more deployment resources, so that the utilization rate of the server resources is low.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a service management method, a system and a storage medium, which not only can realize the independent management of services, but also can reduce server resources and improve the utilization rate of the service resources.
In a first aspect, an embodiment of the present invention provides a service management method, where the method applies a service management system, where the service management system includes a deployment container including a plurality of services and a service package ServiceBox, where the service package ServiceBox is deployed in the deployment container, and the deployment container is configured to provide an operating environment for services in the service package ServiceBox, and the method includes:
receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in the deployment container;
when the deployment container is monitored to be started, corresponding operation processing is carried out on the service to be operated according to the operation instruction.
Optionally, after the monitoring that the deployment container is started and performing corresponding operation processing on the service to be operated according to the operation instruction, the method further includes:
and updating the running state of the service to be operated processed in the service package ServiceBox.
Optionally, the performing, according to the operation instruction, corresponding operation processing on the service to be operated includes:
adding the service to be operated into the service package ServiceBox; or alternatively, the process may be performed,
starting and running the service to be operated in the service package ServiceBox; or alternatively, the process may be performed,
stopping running the service to be operated in the service package ServiceBox; or alternatively, the process may be performed,
and deleting the service to be operated from the service package ServiceBox.
Optionally, the starting and running the service to be operated in the service package ServiceBox includes:
adding a class loader corresponding to the service to be operated into the service package ServiceBox;
a uniform resource locator (Uniform Resource Locator, URL) of the service to be operated is added to the class loader Classloader to load the service to be operated and initiate operation.
Optionally, the stopping running the service to be operated in the service package ServiceBox includes:
acquiring class loader corresponding to the service to be operated;
and closing the class loader corresponding to the service to be operated so as to stop running the service to be operated.
Optionally, after the monitoring that the deployment container is started and performing corresponding operation processing on the service to be operated according to the operation instruction, the method further includes:
and outputting the processing result of the service to be operated.
Optionally, before the receiving the operation instruction of the user to the service to be operated, the method further includes:
adding packet paths corresponding to the plurality of services into JAVA class paths of the deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
Optionally, after the plurality of services are loaded into the deployment container through the packet path by using class loaders corresponding to the plurality of services, the method further includes:
and recording class loaders corresponding to the plurality of services, so as to load the service to be operated through the class loaders.
In a second aspect, an embodiment of the present invention provides a service management system, the service management system including a deployment container including a plurality of services and a service package ServiceBox, the service package ServiceBox being deployed in the deployment container, the deployment container being configured to provide an operating environment for services in the service package ServiceBox, wherein,
the service package ServiceBox is configured to receive an operation instruction of a user for a service to be operated, where the service to be operated is at least one of a plurality of services included in the deployment container;
the service package ServiceBox is further configured to perform corresponding operation processing on the service to be operated according to the operation instruction when the deployment container is monitored to be started.
Optionally, the deployment container is configured to update the running state of the service to be operated after processing in the service package ServiceBox.
Optionally, the service package ServiceBox is specifically configured to:
adding the service to be operated into the service package ServiceBox; or alternatively, the process may be performed,
starting and running the service to be operated in the service package ServiceBox; or alternatively, the process may be performed,
stopping running the service to be operated in the service package ServiceBox; or alternatively, the process may be performed,
and deleting the service to be operated from the service package ServiceBox.
Optionally, the service package ServiceBox is specifically configured to:
adding a class loader corresponding to the service to be operated into the service package ServiceBox;
and adding the uniform resource locator URL of the service to be operated into the class loader Classloader to load the service to be operated and start operation.
Optionally, the service package ServiceBox is specifically configured to:
acquiring class loader corresponding to the service to be operated;
and closing the class loader corresponding to the service to be operated so as to stop running the service to be operated.
Optionally, the service package ServiceBox is further configured to output a processing result of the service to be operated.
Optionally, the service package ServiceBox is specifically configured to:
adding packet paths corresponding to the plurality of services into JAVA class paths of the deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
Optionally, the service package ServiceBox records class loaders corresponding to the plurality of services, so as to load the service to be operated through the class loader classloaders.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program, where the computer program causes a service management system to execute the method for service management according to the first aspect.
The invention provides a service management method, a system and a storage medium, wherein the method is applied to a service management system, the service management system comprises a deployment container containing a plurality of services and a service package ServiceBox, the service package ServiceBox is deployed in the deployment container, the deployment container is used for providing an operation environment for the services in the service package ServiceBox, and the method comprises the following steps: receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in the deployment container; when the deployment container is monitored to be started, corresponding operation processing is carried out on the service to be operated according to the operation instruction. Because the service package ServiceBox is used, operations such as adding, starting, stopping and deleting can be performed on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, as a plurality of services are deployed in one deployment container, server resources can be reduced, and the service resource utilization rate is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a service management system according to the present invention;
FIG. 2 is a flow chart of a method of service management provided in accordance with an exemplary embodiment of the present invention;
FIG. 3 is a flow chart of a method of service management provided in accordance with another exemplary embodiment of the present invention;
fig. 4 is a schematic flow chart of a service management method according to an embodiment of the present invention;
FIG. 5 is a flowchart of another service management method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service management system according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The service management method provided by the invention can be applied to the management scene of distributed service products, the distributed service of the HSF in the prior art cannot realize the independent management of the service, and the micro service of the Spring Boot can realize the independent management of the service, but requires more deployment resources, so that the utilization rate of the server resources is low.
In view of the above technical problems, the present invention proposes a service management method, which is applied to a service management system, the service management system including a deployment container including a plurality of services and a service package ServiceBox deployed in the deployment container, the deployment container being used to provide an operating environment for the services in the service package ServiceBox, the method comprising: receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in a deployment container; when the deployment container is monitored to be started, corresponding operation processing is carried out on the service to be operated according to the operation instruction. Because the service package ServiceBox is used, operations such as adding, starting, stopping and deleting can be performed on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, as a plurality of services are deployed in one deployment container, server resources can be reduced, and the service resource utilization rate is improved.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Before introducing the service management method, a description is given of a service management system to which the method is applied, and as shown in fig. 1, the service management system includes a deployment container 11 including a plurality of services, a service package ServiceBox12, and at least one service (service 1, service 2, service 3, and the like) other than the service package ServiceBox 12. The service package ServiceBox12 and at least one service outside the service package ServiceBox12 are both deployed in a deployment container, where the deployment container is used to provide an operating environment for the service, and of course, the operating environment may also be provided for the service in the service package ServiceBox. The service package ServiceBox12 may include one or more services, at least one service other than the service package ServiceBox12 may be included in other service package serviceboxes, or may be independently run in an operating environment provided by the deployment container, the service package ServiceBox12 may manage the services therein, for example, perform operations such as starting, stopping, or deleting the service 4 or the service 5, and in addition, the service package ServiceBox12 may add at least one service (service 1, service 2, service 3, etc.) other than the service package ServiceBox12 to the service package ServiceBox12, so that independent management of the services may be implemented through the service package ServiceBox 12.
Fig. 2 is a flow chart illustrating a service management method according to an exemplary embodiment of the present invention. As shown in fig. 2, the service management method provided by the embodiment of the invention includes the following steps:
step 201: and receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in the deployment container.
In this step, before receiving an operation instruction of a user to operate a service, first, a service package ServiceBox needs to be established, and the service package ServiceBox includes at least one service, that is, at least one service is packaged.
Optionally, before receiving an operation instruction of a user for operating a service, packet paths corresponding to a plurality of services are added to JAVA class paths of a deployment container; and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services. Specifically, packet paths corresponding to a plurality of services may be added to JAVA class paths of the deployment container, and each service of the plurality of services may be loaded into the deployment container according to a class loader corresponding to each service. The deployment container is used for providing an operation environment for the services in the service package ServiceBox so that the services in the service package ServiceBox can normally operate.
For example, when the service package ServiceBox monitors the deployment container start, the service package ServiceBox loads each service of the plurality of services through a class loader corresponding to each service according to the JAVA class path added to the deployment container, and when loading of all the services is completed, the deployment container start is completed.
Optionally, after the service is loaded into the deployment container according to the class loader Classloader, the class loader classloaders corresponding to the multiple services need to be recorded, so that the service to be operated is loaded through the class loader classloaders. Furthermore, the record class loader also provides basis for the follow-up management process of the service.
And firstly establishing a service package ServiceBox containing at least one service, and loading a plurality of services into a deployment container by the service package ServiceBox through a class loader Classloader. And the starting of the deployment container is completed, namely, the running environment can be normally provided for a plurality of services. At this time, an operation instruction of the user to the service to be operated may be received, and of course, the service to be operated may be at least one of a plurality of services in the deployment container.
The operation instruction of the service to be operated may be: the service to be operated is controlled to start or stop, or the service to be operated is deleted from the service package ServiceBox, or the service to be operated is added to the service package ServiceBox from the deployment container, specifically, the service to be operated can be selectively executed according to the requirement of a user. Specifically, the user may select the service to be operated through the user operation interface of the service package ServiceBox, and select an operation instruction for the service to be operated, and of course, the user may select input through voice input or touch control, which is not limited in particular. According to the selection input of the user, the service package ServiceBox receives an operation instruction of the service to be operated, so that the service package ServiceBox can correspondingly process the service to be operated according to the operation instruction.
Further, in an optional manner, after the service to be operated is subjected to the corresponding operation processing, the service package ServiceBox may further output a service processing result to be operated, and display the service processing result on the user operation interface, so that the user can obtain the operation processing result of the service to be operated.
Step 202: when the deployment container is monitored to be started, corresponding operation processing is carried out on the service to be operated according to the operation instruction.
In this step, when the deployment container is monitored to be started, the service package ServiceBox performs corresponding processing on the service to be operated according to the operation instruction, where the processing may be to control the service to be operated to start or stop, or delete the service to be operated from the service package ServiceBox, or add the service to be operated from the deployment container to the service package ServiceBox. The detailed description of the process will be described in detail in the next embodiment.
In an optional manner, after the service package ServiceBox performs corresponding processing on the service to be operated, the deployment container may further update the running state of the service to be operated after the service package ServiceBox is processed. Wherein, the running state includes: during operation and not started.
It should be noted that when the service to be operated is operated, that is, when the service to be operated is managed separately, normal operation of other services in the service package ServiceBox is not affected, that is, other services can be normally accessed or provided with capability.
The invention provides a service management method, which is applied to a service management system, wherein the service management system comprises a deployment container containing a plurality of services and a service package ServiceBox, the service package ServiceBox is deployed in the deployment container, the deployment container is used for providing an operation environment for the services in the service package ServiceBox, and the method comprises the following steps: receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in a deployment container; when the deployment container is monitored to be started, corresponding operation processing is carried out on the service to be operated according to the operation instruction. Because the service package ServiceBox is used, operations such as adding, starting, stopping and deleting can be performed on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, as a plurality of services are deployed in one deployment container, server resources can be reduced, and the service resource utilization rate is improved.
Fig. 3 is a flow chart illustrating a service management method according to an exemplary embodiment of the present invention. On the basis of fig. 1, a detailed description is made of a process of performing corresponding operation processing on a service to be operated according to an operation instruction, and as shown in fig. 3, the service management method provided by the embodiment of the invention includes the following steps:
step 301: and receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in the deployment container.
Step 301 is similar to step 201 and will not be described again here.
In this embodiment, a process of performing a start operation process on a service to be operated is taken as an example, and detailed description will be made. Therefore, in step 301, the service package ServiceBox receives an operation instruction for starting a service to be operated by a user, where the service to be operated is one of the services in the service package ServiceBox.
Step 302: and adding the class loader Classloader corresponding to the service to be operated into the service package ServiceBox.
In this step, the service package ServiceBox includes a lifecycle management module, and after receiving the start operation instruction, the lifecycle management module in the service package ServiceBox creates a class loader corresponding to the service to be operated, and adds the class loader Classloader to the service package ServiceBox.
Step 303: and adding the uniform resource locator URL of the service to be operated into a class loader Classloader to load the service to be operated and start operation.
In step 302, after adding the class loader corresponding to the service to be operated to the service package ServiceBox, the URL of the service to be operated is further required to be added to the class loader corresponding to the service to be operated, and the lifecycle management module loads the service to be operated according to the class loader corresponding to the service to be operated, so as to start the service to be operated, and at this time, the deployment container outputs the running state of the service to be operated as running.
In an optional manner, if the lifecycle management module in the service package ServiceBox obtains the operation stopping instruction for the service to be operated in step 301, the lifecycle management module obtains a class loader corresponding to the service to be operated in the service package ServiceBox. And closing a class loader corresponding to the service to be operated according to the operation instruction to stop operating the service to be operated, wherein the operation state of the deployment container for outputting the service to be operated is not started.
In another alternative manner, the service to be operated may be deleted from the service package ServiceBox, specifically, a deletion operation instruction of the service to be operated by the user is received, and then according to the deletion operation instruction, the life cycle management module deletes the service to be operated from the service package ServiceBox, so as to complete the deletion operation of the service to be operated.
In another alternative manner, if the service to be operated does not belong to the service package ServiceBox terminal service, the service to be operated may be added to the service package ServiceBox, specifically, an add operation instruction of the service to be operated by the user is received, and further, according to the add operation instruction, the lifecycle management module adds the service to be operated to the service package ServiceBox, so as to complete the add operation of the service to be operated, where the running state of the service to be operated output in the deployment container is not started.
The following description is given by way of specific examples:
fig. 4 and fig. 5 are schematic flow diagrams of a service management method provided by the present invention, and as shown in fig. 4, a service package ServiceBox is divided into two parts, namely a lifecycle manager module and a user operation module. Specifically, it is assumed that in the operating environment provided by the deployment container, the service 4 is in an operating state, when the service 2 needs to be operated, a user selects an operation instruction of adding the service 2 through the user operation module, and uploads the service 2, and after receiving the request, the lifecycle management module adds the service 2 into the service package ServiceBox, at this time, the operating state of the service 2 in the operating environment provided by the deployment container is not started, and the service 2 addition is completed. Further, the user selects an operation instruction of "starting service 2", after receiving the request, the lifecycle management module will newly add the class loader, and add the URL of service 2 to the class path, and meanwhile, the running state of service 2 is running, and the starting of service 2 is completed.
As shown in fig. 5, when both the service 2 and the service 4 are running, if the service 2 needs to be stopped, the user selects an operation instruction to stop the service 2, and after receiving the request, the lifecycle module obtains the loader corresponding to the service 2 and closes the loader corresponding to the service 2, and at this time, the running state of the service 2 is changed from running to non-starting. For another example, the user selects the "delete service 2" operation instruction, and the lifecycle management module deletes the service 2 from the service package ServiceBox after receiving the request to complete the deletion of the service 2.
In this embodiment, at least one service in the service package ServiceBox is managed separately, so that not only can the multiple services be isolated from each other, but also other services can be run without interruption in the maintenance process. In addition, the service package ServiceBox can also realize the management of the service to realize the full life cycle.
Fig. 6 is a schematic structural diagram of a service management system provided by the present invention, as shown in fig. 6, the service management system includes a deployment container 11 including a plurality of services and a service package ServiceBox12, the service package ServiceBox12 being deployed in the deployment container 11, the deployment container 11 being for providing an operating environment for the services in the service package ServiceBox12, wherein,
the service package ServiceBox12 is configured to receive an operation instruction of a user for a service to be operated, where the service to be operated is at least one of a plurality of services included in a deployment container;
the service package ServiceBox12 is further configured to perform corresponding operation processing on the service to be operated according to the operation instruction when the deployment container is monitored to be started.
The service management system comprises a deployment container 11 containing a plurality of services and a service package ServiceBox12, wherein the service package ServiceBox12 is deployed in the deployment container, the deployment container 11 is used for providing an operation environment for the services in the service package ServiceBox12, and the service to be operated is at least one of the plurality of services included in the deployment container by receiving an operation instruction of a user to the service to be operated through the service package ServiceBox 12; when the service package ServiceBox12 monitors the starting of the deployment container, corresponding operation processing is carried out on the service to be operated according to the operation instruction. Because the service package ServiceBox is used, operations such as adding, starting, stopping and deleting can be performed on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, as a plurality of services are deployed in one deployment container, server resources can be reduced, and the service resource utilization rate is improved.
Optionally, the deployment container 11 is configured to update an operation state of the service to be operated after being processed in the service package ServiceBox.
Optionally, the service package ServiceBox12 is specifically configured to:
adding the service to be operated into a service package ServiceBox; or alternatively, the process may be performed,
starting a service to be operated in a service package ServiceBox; or alternatively, the process may be performed,
stopping running the service to be operated in the service package ServiceBox; or alternatively, the process may be performed,
and deleting the service to be operated from the service package ServiceBox.
Optionally, the service package ServiceBox12 is specifically configured to:
adding a class loader class corresponding to the service to be operated into a service package ServiceBox;
and adding the uniform resource locator URL of the service to be operated into a class loader Classloader to load the service to be operated and start operation.
Optionally, the service package ServiceBox12 is specifically configured to:
acquiring class loader class corresponding to the service to be operated;
and closing the class loader corresponding to the service to be operated so as to stop running the service to be operated.
Optionally, the service package ServiceBox12 is further configured to output a processing result of the service to be operated.
Optionally, the service package ServiceBox12 is specifically configured to:
adding packet paths corresponding to a plurality of services into JAVA class paths of a deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
Optionally, the service package ServiceBox12 records class loaders corresponding to the plurality of services, so as to load the service to be operated through the class loader classloaders.
The above device may be used to execute the method provided by the corresponding method embodiment, and the specific implementation manner and technical effects are similar, and are not repeated here.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a service management method provided by any of the foregoing method embodiments.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (8)

1. A service management method, applied to a service management system, the service management system including a deployment container including a plurality of services and a service package ServiceBox, the service package ServiceBox being deployed in the deployment container, the deployment container being configured to provide an operating environment for services in the service package ServiceBox, the service package ServiceBox including one or more services therein, the method comprising:
receiving an operation instruction of a user for a service to be operated, wherein the service to be operated is at least one of a plurality of services included in the deployment container;
when the deployment container is monitored to be started, corresponding operation processing is carried out on the service to be operated according to the operation instruction;
the corresponding operation processing for the service to be operated according to the operation instruction comprises the following steps:
adding the service to be operated into the service package ServiceBox; or alternatively, the process may be performed,
starting and running the service to be operated in the service package ServiceBox; or alternatively, the process may be performed,
stopping running the service to be operated in the service package ServiceBox; or alternatively, the process may be performed,
deleting the service to be operated from the service package ServiceBox;
the starting operation of the service to be operated in the service package ServiceBox comprises the following steps:
adding a class loader corresponding to the service to be operated into the service package ServiceBox;
and adding the uniform resource locator URL of the service to be operated into the class loader Classloader to load the service to be operated and start operation.
2. The method according to claim 1, wherein, when the deployment container is monitored to be started, after the service to be operated is subjected to corresponding operation processing according to the operation instruction, the method further comprises:
and updating the running state of the service to be operated processed in the service package ServiceBox.
3. The method of claim 1, wherein said ceasing to run the service to be operated in the service package ServiceBox comprises:
acquiring class loader corresponding to the service to be operated;
and closing the class loader corresponding to the service to be operated so as to stop running the service to be operated.
4. The method according to any one of claims 1-2, wherein, when the deployment container is monitored to be started, after performing corresponding operation processing on the service to be operated according to the operation instruction, the method further comprises:
and outputting the processing result of the service to be operated.
5. The method according to any one of claims 1-2, wherein prior to receiving an operation instruction of a user to operate a service, the method further comprises:
adding packet paths corresponding to the plurality of services into JAVA class paths of the deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
6. The method of claim 5, wherein after loading the plurality of services into the deployment container through the packet path using class loader corresponding to the plurality of services, the method further comprises:
and recording class loaders corresponding to the plurality of services, so as to load the service to be operated through the class loaders.
7. A service management system comprising a deployment container comprising a plurality of services and a service package ServiceBox, the service package ServiceBox being deployed in the deployment container, the deployment container being for providing an operating environment for services in the service package ServiceBox, the service package ServiceBox comprising one or more services therein,
the service package ServiceBox is configured to receive an operation instruction of a user for a service to be operated, where the service to be operated is at least one of a plurality of services included in the deployment container;
the service package ServiceBox is further used for performing corresponding operation processing on the service to be operated according to the operation instruction when the deployment container is monitored to be started;
the service package ServiceBox is specifically configured to add the service to be operated to the service package ServiceBox; or starting and running the service to be operated in the service package ServiceBox; or stopping running the service to be operated in the service package ServiceBox; or deleting the service to be operated from the service package ServiceBox;
the service package ServiceBox is specifically configured to add a class loader corresponding to the service to be operated into the service package ServiceBox; and adding the uniform resource locator URL of the service to be operated into the class loader Classloader to load the service to be operated and start operation.
8. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements the service management method of any of claims 1 to 6.
CN201911046425.5A 2019-10-30 2019-10-30 Service management method, system and storage medium Active CN110806878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911046425.5A CN110806878B (en) 2019-10-30 2019-10-30 Service management method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911046425.5A CN110806878B (en) 2019-10-30 2019-10-30 Service management method, system and storage medium

Publications (2)

Publication Number Publication Date
CN110806878A CN110806878A (en) 2020-02-18
CN110806878B true CN110806878B (en) 2023-07-04

Family

ID=69489600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911046425.5A Active CN110806878B (en) 2019-10-30 2019-10-30 Service management method, system and storage medium

Country Status (1)

Country Link
CN (1) CN110806878B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220418B (en) * 2021-05-07 2022-11-08 烽火通信科技股份有限公司 Container-based resource management method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822826B1 (en) * 2003-12-30 2010-10-26 Sap Ag Deployment of a web service
CN102323884A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Web service container and method for issuing multiple Web services
CN109547570A (en) * 2018-12-29 2019-03-29 深圳云天励飞技术有限公司 Service registration method, apparatus, registration center's management equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316163B (en) * 2011-09-07 2014-01-15 山东中创软件工程股份有限公司 Method for realizing Web container expansion and Web container
US20170085419A1 (en) * 2015-09-18 2017-03-23 Le Holdings (Beijing) Co., Ltd. System and method for deploying an application
CN106789250B (en) * 2016-12-22 2018-09-18 焦点科技股份有限公司 Implementation method coexists in a kind of service multi version based on container
US20180285165A1 (en) * 2017-03-31 2018-10-04 Ca, Inc. Container-based system analytics appliance
CN109408197A (en) * 2018-09-29 2019-03-01 上海理想信息产业(集团)有限公司 A kind of implementation method and device of edge calculations engine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822826B1 (en) * 2003-12-30 2010-10-26 Sap Ag Deployment of a web service
CN102323884A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Web service container and method for issuing multiple Web services
CN109547570A (en) * 2018-12-29 2019-03-29 深圳云天励飞技术有限公司 Service registration method, apparatus, registration center's management equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Production Deployment Tools for IaaSes: An Overall Model and Survey;Hélène Coullon;2017 IEEE 5th International Conference on Future Internet of Things and Cloud (FiCloud);第183-190页 *

Also Published As

Publication number Publication date
CN110806878A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN102105861B (en) The state that application program changes separates
CN107832100B (en) APK plug-in loading method and terminal thereof
US8910138B2 (en) Hot pluggable extensions for access management system
CN106445951B (en) File transmission method and device
CN105404524A (en) Class loading and isolating method and apparatus in Java application
CN102378963A (en) Method and apparatus to vet an executable program using a model
US9654343B2 (en) System and method for managing service characteristics
CN111258565B (en) Method, system, server and storage medium for generating applet
CN109347652A (en) The service management and device of server cluster
CN111427557A (en) Application microservice method and device, electronic equipment and readable storage medium
CN111176818A (en) Distributed prediction method, device, system, electronic equipment and storage medium
CN110806878B (en) Service management method, system and storage medium
WO2024078465A1 (en) Scheduled job processing method, device, and storage medium
CN111124618B (en) Resource deployment method, device, storage medium and equipment
WO2020135129A1 (en) Method and device for loading plug-in of application, and terminal
CN111651498A (en) Efficient retrieval method and device for block chain data
CN105912349A (en) Drive loading method and device
CN108228192A (en) A kind of implementation method of the dynamic management of service-oriented Airborne Software
CN111381867B (en) Packaging deployment method and device supporting service reconfiguration
CN112685102A (en) Gateway plug-in hot loading method, device, equipment and medium
CN112153148A (en) Message accumulation processing method and device based on message receiving end
US9955368B2 (en) Telecommunicaton network architecture compatibility validation system
US10320715B1 (en) Automated scaling of computing message architecture
US20230229402A1 (en) Intelligent and efficient pipeline management
CN117076004B (en) Micro-service packaging and merging method and device and electronic equipment

Legal Events

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