CN111078263A - Hot deployment method, system, server and storage medium based on Drools rule engine - Google Patents

Hot deployment method, system, server and storage medium based on Drools rule engine Download PDF

Info

Publication number
CN111078263A
CN111078263A CN201911285852.9A CN201911285852A CN111078263A CN 111078263 A CN111078263 A CN 111078263A CN 201911285852 A CN201911285852 A CN 201911285852A CN 111078263 A CN111078263 A CN 111078263A
Authority
CN
China
Prior art keywords
rule
generating
package
user
execution container
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
CN201911285852.9A
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.)
Shenzhen kaniu Technology Co.,Ltd.
Original Assignee
Shenzhen Readily Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Readily Technology Co ltd filed Critical Shenzhen Readily Technology Co ltd
Priority to CN201911285852.9A priority Critical patent/CN111078263A/en
Publication of CN111078263A publication Critical patent/CN111078263A/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
    • G06F8/656Updates while running

Abstract

The embodiment of the invention discloses a method, a system, a server and a storage medium for heat deployment based on a Drools rule engine. The thermal deployment method based on the Drools rule engine comprises the following steps: generating a first execution container according to the first rule file and the first rule class package; generating a second rule file according to addition or modification of the first rule file by a first user, and/or acquiring a second rule package issued by the first user; and generating a second execution container according to the second rule file and/or the second rule class packet. The embodiment of the invention realizes simple and convenient hot deployment of the system.

Description

Hot deployment method, system, server and storage medium based on Drools rule engine
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a system, a server and a storage medium for heat deployment based on a Drools rule engine.
Background
Hot deployment is the upgrading of software while an application is running, without requiring the application to be restarted. Drools has an open source business rules engine that is easy to access enterprise policies, easy to adjust, and easy to manage, and meets the standards in the industry with high speed and efficiency. The business analyst or auditor can use it to easily view the business rules to verify whether the encoded rules implement the desired business rules.
In the existing system, for example, a recommendation system in online shopping, the system administrator configures recommendation scenario information including scenario-required-to-call policy class information, and the input parameter information of the policy class includes recommendation number and configuration information of the user. However, when the policy module is adjusted, the recommendation service of the whole system can be restarted, the use of the user is influenced, along with the continuous updating and adjustment of the policy, the codes of the policy module are more and more, the policy package is larger and larger, the release of the policy package is slower and slower, and the management is more and more difficult.
Disclosure of Invention
The embodiment of the invention provides a method, a system, a server and a storage medium for thermal deployment based on a Drools rule engine, so as to realize simple and convenient thermal deployment of a system.
To achieve the above object, an embodiment of the present invention provides a thermal deployment method based on a Drools rule engine, including:
generating a first execution container according to the first rule file and the first rule class package;
generating a second rule file according to addition or modification of the first rule file by a first user, and/or acquiring a second rule package issued by the first user;
and generating a second execution container according to the second rule file and/or the second rule class packet.
Further, before generating the first execution container according to the first rule file and the first rule class package, the method includes:
and determining a hot deployment mode of the rule package, wherein the hot deployment mode comprises a centralized hot deployment mode and a stand-alone hot deployment mode.
Further, the generating a second execution container according to the second rule class package includes:
updating the second rule class packet issued by the first user to all nodes of the system;
and generating a second execution container according to the second rule class packet.
Further, the generating a second execution container according to the second rule class package includes:
updating the second rule class packet issued by the first user into at least one node of the system;
a second execution container is generated according to a second rule class package of at least one node in the system.
Further, after the generating the second execution container according to the second rule class packet, the method includes:
receiving a first request instruction sent by a first user according to the effect of the second execution container;
updating the first rule class packet to all nodes of the system according to the first request instruction;
and generating a third execution container according to the second rule file and/or the first rule class package.
Further, the first execution container and the second execution container are KieContainers based on Drools, the first rule file and the second rule file are DRL files based on Drools, and the first rule package and the second rule package are jar packages based on a Maven private warehouse.
Further, after the generating a second execution container according to the second rule file and/or the second rule package, the method includes:
receiving a request instruction sent by a second user and judging an application scene of the request instruction;
selecting a fourth execution container suitable for the application scene from the second execution containers;
and executing calculation according to the fourth execution container to obtain a calculation result of the request instruction and returning the calculation result to the second user.
In one aspect, an embodiment of the present invention further provides a thermal deployment system based on a Drools rule engine, where the thermal deployment system based on a Drools rule engine includes:
the container generation module is used for generating a first execution container according to the first rule file and the first rule class package;
the hot deployment module is used for generating a second rule file according to addition or modification of the first rule file by a first user and/or acquiring a second rule class package issued by the first user;
and the container updating module is used for generating a second execution container according to the second rule file and/or the second rule class package.
On the other hand, an embodiment of the present invention further provides a server, where the server includes: one or more processors; a storage device for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement a thermal deployment method as provided by any embodiment of the invention.
In yet another aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the thermal deployment method provided in any of the embodiments of the present invention.
The embodiment of the invention generates a first execution container according to a first rule file and a first rule package; generating a second rule file according to addition or modification of the first rule file by a first user, and/or acquiring a second rule package issued by the first user; and generating a second execution container according to the second rule file and/or the second rule class package, solving the problems that the release of the policy package is slower and harder to manage as the policy is continuously updated and adjusted, and realizing the effect of simply and conveniently performing hot deployment on the system.
Drawings
Fig. 1 is a schematic flowchart of a thermal deployment method based on a Drools rule engine according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a thermal deployment method based on a Drools rule engine according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a thermal deployment system based on a Drools rule engine according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first module may be termed a second module, and, similarly, a second module may be termed a first module, without departing from the scope of the present application. The first module and the second module are both modules, but they are not the same module. The terms "first", "second", etc. are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
As shown in fig. 1, a thermal deployment method based on a Drools rule engine according to an embodiment of the present invention includes:
s110, generating a first execution container according to the first rule file and the first rule class package.
In this embodiment, the first rule file is a DRL file based on Drools, the first rule class package is a jar package based on a Maven private repository, Maven is a project object model, and a software project management tool for managing construction, report, and document of a project through a small piece of description information, the first rule class package includes a plurality of rule functions, and the first execution container is a kiecondainer based on Drools, where the kiecondainer is a KieBase container, the KieBase is a knowledge repository, which includes a plurality of rules, processes, methods, and the like, the KieBase itself does not include data in runtime, if a rule in the KieBase needs to be executed, kieesesion needs to be created according to the KieBase, a specific kieesesion can be obtained according to KieBase information described in a kmode. The method provided by the embodiment of the invention can be executed in any system, and when the system is started, the first rule file of each service in the configuration module and the first rule class package read from the Maven environment are respectively used for generating the first execution container, wherein the first execution container can be a plurality of execution containers, and each execution container corresponds to one application scene. The generated first execution container may be stored in a system variable Map object, specifically, a Map key value, a kiecondainer object of the scene, that is, the first execution container object of the scene.
S120, generating a second rule file according to addition or modification of the first rule file by the first user, and/or acquiring a second rule package issued by the first user.
In this embodiment, when the system performs hot deployment, since the rule function does not change frequently in most cases and the rule file changes frequently with the change of the service, the rule file and the rule package are updated separately, so that the complexity of the entire service deployment of the system is further reduced, the service rule is deployed in a dynamic real-time manner, and a complex deployment manner is removed. The first user comprises a developer and a system administrator, the rule file is changed frequently and is not complex, the first rule file can be newly increased or modified through the system administrator with low technical level requirements to generate a second rule file, and the developer with high technical level requirements issues a new second rule package, so that the system administrator and the developer do not interfere with each other and are unaware of each other in updating.
S130, generating a second execution container according to the second rule file and/or the second rule class packet.
In this embodiment, the second execution container is also a kiecondainer based on Drools, the second rule file is also a DRL file based on Drools, and the second rule class package is also a jar package based on Maven private warehouse. If the system administrator adds or modifies the first rule file, a new second execution container is generated according to the second rule file, if a developer issues a new second rule package, a second execution container is generated according to the second rule package, and if the system administrator adds or modifies the first rule file and the developer issues a new second rule package, a second execution container is generated according to the second rule file and the second rule package.
S140, receiving a request instruction sent by a second user and judging the application scene of the request instruction.
S150, selecting a fourth execution container suitable for the application scene from the second execution containers.
And S160, executing calculation according to the fourth execution container to obtain a calculation result of the request instruction and returning the calculation result to the second user.
In this embodiment, the system may be, for example, a recommendation system for online shopping, the second user is a consumer, and after the consumer completes one shopping, it is considered that the second user sends a request instruction, wherein the request instruction includes all information of the consumer, information of the product that the consumer has just purchased, etc., the recommendation system receives a request instruction of a consumer through the interface layer and then sends the request instruction to a scene module of the recommendation system, the scene module can judge the corresponding application scene according to the product information just purchased by the consumer, for example, the consumer has just purchased a computer monitor, the application scenario is a computer monitor, the policy module in the recommendation system may select a fourth execution container suitable for the computer display from the updated second execution containers, where the policy included in the fourth execution container may be: a computer display recommending the top ten sales; recommending other accessories of the computer according to the preference of the consumer; excluding items that the consumer has purchased, etc. The calculation engine in the recommendation system can perform calculation according to the fourth execution container to obtain the information of the commodities needing to be recommended, and the recommendation system can continue to recommend other commodities which may be interested by the consumer after the consumer completes one shopping.
The embodiment of the invention generates a first execution container according to a first rule file and a first rule package; generating a second rule file according to addition or modification of the first rule file by a first user, and/or acquiring a second rule package issued by the first user; and generating a second execution container according to the second rule file and/or the second rule class package, solving the problems that the release of the policy package is slower and harder to manage as the policy is continuously updated and adjusted, and realizing the effect of simply and conveniently performing hot deployment on the system.
Example two
As shown in fig. 2, a second embodiment of the present invention provides a thermal deployment method based on a Drools rule engine, and the second embodiment of the present invention is further optimized based on the first embodiment of the present invention, where the thermal deployment method based on the Drools rule engine includes:
s210, determining a hot deployment mode of the rule package, wherein the hot deployment mode comprises a centralized hot deployment mode and a single hot deployment mode.
S220, generating a first execution container according to the first rule file and the first rule class package.
S230, generating a second rule file according to addition or modification of the first rule file by the first user, and/or acquiring a second rule package issued by the first user.
In this embodiment, the hot deployment method of the rule package may be determined in advance when the system is built, and steps S240 to S250 are executed if the hot deployment method of the rule package is a centralized hot deployment method, and steps S260 to S300 are executed if the hot deployment method of the rule package is a stand-alone hot deployment method. The specific implementation manner of step S220 and step S230 in the embodiment of the present invention is the same as that in the embodiment of the present invention.
S240, updating the second rule class packet issued by the first user to all nodes of the system.
And S250, generating a second execution container according to the second rule class packet.
In this embodiment, if the thermal deployment mode of the rule package is a centralized thermal deployment mode, after a developer issues a new second rule package, the Maven private warehouse is periodically scanned by a rule engine of the system to obtain the second rule package, and the second rule package is updated to all nodes of the system, so that the system generates a second execution container according to the second rule package, thereby facilitating simultaneous multi-service update and simultaneous monitoring of the Maven private warehouse, and facilitating unified management.
For example, a developer may configure a Maven settings file in a service environment, and set a mirror project as a self-built Maven private repository, specifically, add $ { Maven _ HOME }/conf/settings file in a Maven component, where an address of the Maven private repository may be:http://10.201.7.232: 8081/repository/maven-public/. In the specific configuration information, the configuration information is,<mirrorOf>central</mirrorOf>and the central library accessed by default to the Maven private warehouse is a cental library, and after the information is configured, the cental library maps to the previously created address http://10.201.7.232: 8081/relocation/Maven-public/, of the Maven private warehouse. Thus, the mirror project no longer accesses the original central library address, but rather accesses the address of the Maven private warehouse we configure. And then the developer uploads the new second rule package in the Maven private warehouse.
S260, updating the second rule class packet issued by the first user to at least one node of the system.
S270, generating a second execution container according to the second rule class packet of at least one node in the system.
S280, receiving a first request instruction sent by the first user according to the effect of the second execution container.
And S290, updating the first rule class packet to all nodes of the system according to the first request instruction.
S300, generating a third execution container according to the second rule file and/or the first rule class package.
In this embodiment, if the hot deployment mode of the rule package is a single-machine hot deployment mode, after a developer issues a new second rule package, the Maven private warehouse is periodically scanned by a rule engine of the system to obtain the second rule package, and the second rule package is updated to at least one node of the system, so that the system generates a second execution container according to the second rule package of the at least one node, thereby implementing the isolated management of the new and old rule packages.
Specifically, the difference between the standalone hot deployment mode and the centralized hot deployment mode is that developers do not need to configure Maven settings.xml files in a service environment, but directly update the use commands of the rule package, and upload a new second rule package in the Maven private warehouse.
Thus, a developer or a system administrator can test the new second execution container to determine whether the new second rule package achieves the expected effect, and if so, no additional operation is performed or the second rule package is updated to all nodes of the system according to a second request instruction of the developer or the system administrator. And if the new second rule package does not achieve the expected effect or has worse effect, updating the first rule package to all nodes of the system according to a first request instruction of a developer or a system administrator, namely executing rollback operation, and newly generating a third execution container according to the second rule file and/or the first rule package.
EXAMPLE III
As shown in fig. 3, a thermal deployment system 100 based on a Drools rule engine is provided in the third embodiment of the present invention, and the thermal deployment system 100 based on the Drools rule engine provided in the third embodiment of the present invention can execute the thermal deployment method based on the Drools rule engine provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The Drools rules engine based thermal deployment system 100 includes a container generation module 200, a thermal deployment module 300, and a container update module 400.
Specifically, the container generating module 200 is configured to generate a first execution container according to a first rule file and a first rule package; the hot deployment module 300 is configured to generate a second rule file according to addition or modification of the first rule file by a first user, and/or obtain a second rule package issued by the first user; the container update module 400 is configured to generate a second execution container according to the second rule file and/or the second rule class package.
In this embodiment, the thermal deployment system based on the Drools rule engine further includes a manner determining module 500, a node updating module 600, and a container selecting module 700.
Specifically, the method determining module 500 is configured to determine a hot deployment method of the rule package, where the hot deployment method includes a centralized hot deployment method and a stand-alone hot deployment method. The container update module 400 is specifically configured to update the second rule package issued by the first user to all nodes of the system; and generating a second execution container according to the second rule class packet. The container update module 400 is further configured to update the second rule package issued by the first user to at least one node of the system; a second execution container is generated according to a second rule class package of at least one node in the system. The node update module 600 is configured to receive a first request instruction sent by a first user according to the effect of the second execution container; updating the first rule class packet to all nodes of the system according to the first request instruction; and generating a third execution container according to the second rule file and/or the first rule class package. The container selection module 700 is configured to receive a request instruction sent by a second user and determine an application scenario of the request instruction. Selecting a fourth execution container suitable for the application scene from the second execution containers; and executing calculation according to the fourth execution container to obtain a calculation result of the request instruction and returning the calculation result to the second user.
Further, the first execution container and the second execution container are KieContainers based on Drools, the first rule file and the second rule file are DRL files based on Drools, and the first rule package and the second rule package are jar packages based on a Maven private warehouse.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a thermal deployment method provided by an embodiment of the present invention:
generating a first execution container according to the first rule file and the first rule class package;
generating a second rule file according to addition or modification of the first rule file by a first user, and/or acquiring a second rule package issued by the first user;
and generating a second execution container according to the second rule file and/or the second rule class packet.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the thermal deployment method according to the embodiments of the present invention:
generating a first execution container according to the first rule file and the first rule class package;
generating a second rule file according to addition or modification of the first rule file by a first user, and/or acquiring a second rule package issued by the first user;
and generating a second execution container according to the second rule file and/or the second rule class packet.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A thermal deployment method based on a Drools rule engine is characterized by comprising the following steps:
generating a first execution container according to the first rule file and the first rule class package;
generating a second rule file according to addition or modification of the first rule file by a first user, and/or acquiring a second rule package issued by the first user;
and generating a second execution container according to the second rule file and/or the second rule class packet.
2. The method of thermal deployment according to claim 1, wherein prior to generating a first execution container from a first rule file and a first rule class package, comprises:
and determining a hot deployment mode of the rule package, wherein the hot deployment mode comprises a centralized hot deployment mode and a stand-alone hot deployment mode.
3. The method of thermal deployment according to claim 2, wherein said generating a second execution container according to the second rule class package comprises:
updating the second rule class packet issued by the first user to all nodes of the system;
and generating a second execution container according to the second rule class packet.
4. The method of thermal deployment according to claim 2, wherein said generating a second execution container according to the second rule class package comprises:
updating the second rule class packet issued by the first user into at least one node of the system;
a second execution container is generated according to a second rule class package of at least one node in the system.
5. The method of thermal deployment according to claim 4, wherein said generating a second execution bin according to the second rule class package comprises:
receiving a first request instruction sent by a first user according to the effect of the second execution container;
updating the first rule class packet to all nodes of the system according to the first request instruction;
and generating a third execution container according to the second rule file and/or the first rule class package.
6. The method of thermal deployment of claim 1, wherein the first and second execution containers are Drools-based kiecondainers, the first and second rule files are Drools-based DRL files, and the first and second rule class packages are jar packages based on a Maven private warehouse.
7. The method of thermal deployment according to claims 1-6, wherein said generating a second execution container from said second rule file and/or second rule class package comprises:
receiving a request instruction sent by a second user and judging an application scene of the request instruction;
selecting a fourth execution container suitable for the application scene from the second execution containers;
and executing calculation according to the fourth execution container to obtain a calculation result of the request instruction and returning the calculation result to the second user.
8. A thermal deployment system based on a Drools rules engine, comprising:
the container generation module is used for generating a first execution container according to the first rule file and the first rule class package;
the hot deployment module is used for generating a second rule file according to addition or modification of the first rule file by a first user and/or acquiring a second rule class package issued by the first user;
and the container updating module is used for generating a second execution container according to the second rule file and/or the second rule class package.
9. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the thermal deployment method of any one of claims 1-7.
10. A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the thermal deployment method of any of claims 1-7.
CN201911285852.9A 2019-12-13 2019-12-13 Hot deployment method, system, server and storage medium based on Drools rule engine Pending CN111078263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911285852.9A CN111078263A (en) 2019-12-13 2019-12-13 Hot deployment method, system, server and storage medium based on Drools rule engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911285852.9A CN111078263A (en) 2019-12-13 2019-12-13 Hot deployment method, system, server and storage medium based on Drools rule engine

Publications (1)

Publication Number Publication Date
CN111078263A true CN111078263A (en) 2020-04-28

Family

ID=70314486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911285852.9A Pending CN111078263A (en) 2019-12-13 2019-12-13 Hot deployment method, system, server and storage medium based on Drools rule engine

Country Status (1)

Country Link
CN (1) CN111078263A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736960A (en) * 2020-08-10 2020-10-02 北京信安世纪科技股份有限公司 Service providing method, device and storage medium based on software isolation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170365A (en) * 2010-02-26 2011-08-31 阿里巴巴集团控股有限公司 Method and system for realizing hot deployment of software system
CN105389186A (en) * 2015-11-20 2016-03-09 福建亿榕信息技术有限公司 Hot deployment method and system for Java application
CN107632842A (en) * 2017-09-26 2018-01-26 携程旅游信息技术(上海)有限公司 Rule configuration and dissemination method, system, equipment and storage medium
CN108874403A (en) * 2018-05-30 2018-11-23 深圳市分期乐网络科技有限公司 Dissemination method, device, equipment and the storage medium of rule file
CN109783071A (en) * 2019-01-21 2019-05-21 浪潮软件集团有限公司 Government affairs rule design method and system based on Drools regulation engine
CN110213370A (en) * 2019-06-03 2019-09-06 北京奇艺世纪科技有限公司 A kind of regulation engine apparatus and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170365A (en) * 2010-02-26 2011-08-31 阿里巴巴集团控股有限公司 Method and system for realizing hot deployment of software system
CN105389186A (en) * 2015-11-20 2016-03-09 福建亿榕信息技术有限公司 Hot deployment method and system for Java application
CN107632842A (en) * 2017-09-26 2018-01-26 携程旅游信息技术(上海)有限公司 Rule configuration and dissemination method, system, equipment and storage medium
CN108874403A (en) * 2018-05-30 2018-11-23 深圳市分期乐网络科技有限公司 Dissemination method, device, equipment and the storage medium of rule file
CN109783071A (en) * 2019-01-21 2019-05-21 浪潮软件集团有限公司 Government affairs rule design method and system based on Drools regulation engine
CN110213370A (en) * 2019-06-03 2019-09-06 北京奇艺世纪科技有限公司 A kind of regulation engine apparatus and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736960A (en) * 2020-08-10 2020-10-02 北京信安世纪科技股份有限公司 Service providing method, device and storage medium based on software isolation
CN111736960B (en) * 2020-08-10 2020-12-22 北京信安世纪科技股份有限公司 Service providing method, device and storage medium based on software isolation

Similar Documents

Publication Publication Date Title
US10990644B2 (en) Systems and methods for contextual vocabularies and customer segmentation
US9363195B2 (en) Configuring cloud resources
US8494996B2 (en) Creation and revision of network object graph topology for a network performance management system
US11200043B2 (en) Analyzing software change impact based on machine learning
US11171845B2 (en) QoS-optimized selection of a cloud microservices provider
US20150178062A1 (en) Automated computer application update analysis
US8285576B2 (en) Automated derivation, design and execution of industry-specific information environment
US20200159652A1 (en) Intelligent generation of log messages by a saas offering in a continuous pipeline
US10007682B2 (en) Dynamically maintaining data structures driven by heterogeneous clients in a distributed data collection system
US20190310887A1 (en) Optimizing timeouts and polling intervals
US20140081901A1 (en) Sharing modeling data between plug-in applications
US11568242B2 (en) Optimization framework for real-time rendering of media using machine learning techniques
WO2022242595A1 (en) Detecting resource redundancy and conflicts in heterogeneous computing environment
US11089000B1 (en) Automated source code log generation
CN116438549A (en) Quantum computer capable of reducing stretching factor error
US11061739B2 (en) Dynamic infrastructure management and processing
US20220191226A1 (en) Aggregating results from multiple anomaly detection engines
CN111078263A (en) Hot deployment method, system, server and storage medium based on Drools rule engine
US11030015B2 (en) Hardware and software resource optimization
US20200350032A1 (en) Data and memory reorganization
US20230068816A1 (en) Providing a machine learning model based on desired metric values
US11556507B2 (en) Processing metrics data with graph data context analysis
US20190356725A1 (en) Generating client applications from service model descriptions
US11500870B1 (en) Flexible query execution
WO2023193609A1 (en) Selective privileged container augmentation

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200619

Address after: 518000 room 602, building B, Kingdee Software Park, Keji South 12th Road, high tech Zone, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen kaniu Technology Co.,Ltd.

Address before: 518000 8th floors Nan Zuo801 chambers, science and technology Nan Shi bis-B, JinDie Software garden, road, Southern Hi-Tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN READILY TECHNOLOGY Co.,Ltd.