CN114926288A - Intelligent strategy monitoring cloud platform and intelligent strategy monitoring method and device - Google Patents
Intelligent strategy monitoring cloud platform and intelligent strategy monitoring method and device Download PDFInfo
- Publication number
- CN114926288A CN114926288A CN202210632590.4A CN202210632590A CN114926288A CN 114926288 A CN114926288 A CN 114926288A CN 202210632590 A CN202210632590 A CN 202210632590A CN 114926288 A CN114926288 A CN 114926288A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- container
- strategy
- monitored
- risk
- 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
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 508
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000004891 communication Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 11
- 239000003999 initiator Substances 0.000 claims description 11
- 230000000977 initiatory effect Effects 0.000 claims 1
- 238000012806 monitoring device Methods 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/06—Asset management; Financial planning or analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Operations Research (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention provides an intelligent strategy monitoring cloud platform, an intelligent strategy monitoring method and an intelligent strategy monitoring device, and is applied to the technical field of financial monitoring. The method comprises the following steps: the information storage terminal is used for updating the stored monitoring logic information based on the received information updating operation; the container starting end is used for acquiring updated monitoring logic information from the information storage end, generating an image file based on the acquired monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each risk investment strategy to be monitored based on the generated image file; the monitoring control end is used for periodically sending a container starting instruction to the container starting end; and the container starting end is also used for starting the target monitoring container after receiving a container starting instruction sent by the monitoring control end every time so that the target monitoring container monitors the operation of each risk investment strategy to be monitored. Through the scheme, the efficiency of monitoring each risk investment strategy can be improved.
Description
Technical Field
The invention relates to the field of financial monitoring, in particular to an intelligent strategy monitoring cloud platform and an intelligent strategy monitoring method and device.
Background
The intelligent risk investment refers to the realization of automatic buying or selling of investment products based on technologies such as big data, artificial intelligence and the like. Implementation of intelligent inauguration investment relies on a predesignated inauguration investment strategy, an exemplary inauguration investment strategy being buying when a stock meets preset buying conditions, such as 5% increase.
The stable operation of the inauguration investment strategy is the basis of the wide application of intelligent inauguration investment, wherein, the stable operation of the inauguration investment strategy means that investment products can be automatically bought or sold according to the buying or selling conditions corresponding to the inauguration investment strategy, otherwise, when the inauguration investment strategy cannot be stably operated, the investment products cannot be automatically bought or sold, or when the corresponding buying or selling conditions are not satisfied, the buying or selling action is executed, so that the assets of investors are damaged.
In order to ensure that the inauguration investment strategy can stably operate, the operation of the inauguration investment strategy needs to be monitored, that is, whether investment products can be automatically bought or sold according to the buying or selling conditions corresponding to the inauguration investment strategy is monitored. In the related art, monitoring of the investment risk strategy is mainly achieved manually or through a single monitoring software, and in a simple manner, when the operation of the investment risk strategy a needs to be monitored, the investment risk strategy a is monitored through the manual or the single monitoring software so as to determine whether the investment risk strategy a operates stably.
Because the operation of a single investment risk strategy can be monitored only by manual work or a single monitoring software mode at a time, when a plurality of investment risk strategies exist, the monitoring of each investment risk strategy is particularly difficult, and the monitoring efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide an intelligent strategy monitoring cloud platform, an intelligent strategy monitoring method and an intelligent strategy monitoring device, so as to improve the efficiency of monitoring each risk investment strategy. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an intelligent policy monitoring cloud platform, including:
the information storage terminal is used for storing the monitoring logic information and updating the stored monitoring logic information based on the received information updating operation; the monitoring logic information stored in the information storage terminal comprises: monitoring logic aiming at each risk investment strategy to be monitored;
the system comprises a container starting end, a container monitoring end and a monitoring server, wherein the container starting end is used for acquiring updated monitoring logic information from an information storage end after the information storage end updates the stored monitoring logic information each time, generating a mirror image file based on the acquired monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each risk investment strategy to be monitored based on the generated mirror image file;
the monitoring control end is used for periodically sending a container starting instruction to the container starting end;
the container starting end is further configured to start a target monitoring container after receiving a container starting instruction sent by the monitoring control end each time, so that the target monitoring container monitors the operation of each to-be-monitored inauguration investment strategy based on the contained monitoring logic for each to-be-monitored inauguration investment strategy; and the target monitoring container is the monitoring container with the latest deployment time.
Optionally, the monitoring control terminal is further configured to obtain a monitoring result of the target monitoring container after the target monitoring container finishes operating, and display the obtained monitoring result.
Optionally, the monitoring control terminal is further configured to perform a risk alarm according to a preset alarm manner when the acquired monitoring result indicates that the risk investment strategy with the operation error exists.
Optionally, the monitoring control terminal is specifically configured to, when entering each cycle, send a container start instruction to the container start terminal if it is detected that the monitoring container started in the previous cycle operates normally.
Optionally, the monitoring control terminal is further configured to send a rollback deployment instruction to the container starting terminal if it is detected that the running of the started monitoring container in the previous period is faulty;
the container starting end is further used for starting a historical monitoring container after the rollback deployment instruction is received, so that the historical monitoring container monitors the operation of each investment risk strategy based on the contained monitoring logic for each investment risk strategy to be monitored; wherein, the history monitoring container is: a deployed monitoring container prior to deploying the target monitoring container.
Optionally, the container starting end is further configured to, after receiving the rollback deployment instruction, log out the target monitoring container and delete the image file for deploying the target monitoring container.
In a second aspect, an embodiment of the present invention provides an intelligent policy monitoring method, including:
updating the pre-stored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information comprises: monitoring logic aiming at each risk investment strategy to be monitored;
after monitoring logic information is updated every time, generating an image file based on the updated monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each to-be-monitored risk investment strategy based on the generated image file;
periodically starting a target monitoring container to enable the target monitoring container to monitor the operation of each investment risk strategy to be monitored based on the contained monitoring logic for each investment risk strategy to be monitored; and the target monitoring container is the monitoring container with the latest deployment time.
Optionally, after the target monitoring container is started, the method further includes:
and after the operation of the target monitoring container is finished, acquiring a monitoring result of the target monitoring container, and displaying the acquired monitoring result.
In a third aspect, an embodiment of the present invention provides an intelligent policy monitoring apparatus, including:
the information updating module is used for updating the prestored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information comprises: monitoring logic aiming at each risk investment strategy to be monitored;
the file generation module is used for generating an image file based on the updated monitoring logic information after the monitoring logic information is updated every time, and deploying a monitoring container containing monitoring logic aiming at each risk investment strategy to be monitored based on the generated image file;
the strategy monitoring module is used for periodically starting a target monitoring container so that the target monitoring container monitors the operation of each investment risk strategy to be monitored based on the contained monitoring logic aiming at each investment risk strategy to be monitored; and the target monitoring container is the monitoring container with the latest deployment time.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the first aspect when executing the program stored in the memory.
In a fifth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the first aspect.
The embodiment of the invention has the following beneficial effects:
the intelligent policy monitoring cloud platform, the intelligent policy monitoring method and the intelligent policy monitoring device provided by the embodiments of the present invention can update the stored monitoring logic information based on the received information each time, generate a mirror image file based on the updated monitoring logic information, deploy a monitoring container including monitoring logic for each policy to be monitored, and periodically start a target monitoring container based on the generated mirror image file, so that the target monitoring container monitors the operation of each policy to be monitored based on the included monitoring logic for each policy to be monitored. The target monitoring container can be periodically started and comprises monitoring logic aiming at each risk investment strategy to be monitored, so that the monitoring container can monitor the operation of each risk investment strategy after being started, and the automatic monitoring of each risk investment strategy is realized. Meanwhile, after the monitoring logic information is updated based on the information updating operation each time, an image file can be automatically generated based on the updated monitoring logic information, a monitoring container containing the monitoring logic of each risk investment strategy to be monitored is deployed based on the generated image file, and then the newly deployed monitoring container is started in the next period, so that the newly deployed monitoring container monitors the operation of each risk investment strategy according to the updated monitoring logic, and the monitoring logic of each risk investment strategy can be updated only by executing the information updating operation once. Therefore, the scheme can automatically monitor each risk investment strategy at the same time, and can realize the updating of the monitoring logic of each risk investment strategy by only one-time information updating operation, thereby improving the efficiency of monitoring each risk investment strategy.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other embodiments can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic structural diagram of an intelligent policy monitoring cloud platform according to an embodiment of the present invention;
fig. 2 is another schematic structural diagram of an intelligent policy monitoring cloud platform according to an embodiment of the present invention;
FIG. 3 is a flowchart of an intelligent policy monitoring method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an intelligent policy monitoring apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention are within the scope of the present invention.
In order to improve the efficiency of monitoring each risk investment strategy, the embodiment of the invention provides an intelligent strategy monitoring cloud platform, and an intelligent strategy monitoring method and device.
Firstly, introducing an intelligent strategy monitoring cloud platform provided by the embodiment of the invention;
as shown in fig. 1, a schematic structural diagram of an intelligent policy monitoring cloud platform provided in an embodiment of the present invention includes an information storage end 101, a container starting end 102, and a monitoring control end 103;
the information storage terminal 101 is configured to store monitoring logic information, and update the stored monitoring logic information based on a received information update operation; the monitoring logic information stored in the information storage terminal 101 includes: monitoring logic aiming at each risk investment strategy to be monitored;
the container starting end 102 is configured to, after the information storage end 101 updates the stored monitoring logic information each time, acquire the updated monitoring logic information from the information storage end 101, generate an image file based on the acquired monitoring logic information, and deploy a monitoring container containing monitoring logic for each to-be-monitored risk investment policy based on the generated image file;
the monitoring control terminal 103 is used for periodically sending a container starting instruction to the container starting terminal 102;
the container starting end 102 is further configured to start the target monitoring container after receiving a container starting instruction sent by the monitoring control end 103 each time, so that the target monitoring container monitors the operation of each to-be-monitored inauguration investment strategy based on the contained monitoring logic for each to-be-monitored inauguration investment strategy; and the target monitoring container is the monitoring container with the latest deployment time.
The information storage terminal 101 may be a database, a storage medium, or the like for storing data, and the electronic device to which the database or the storage medium belongs may communicate with the container starting terminal 102 directly or indirectly. Therefore, after the information storage end 101 updates the stored monitoring logic information each time based on the received information updating operation, the container starting end 102 may acquire the updated monitoring logic information from the information storage end 101 in a direct access or indirect access manner.
The monitoring logic information may be a configuration file carrying the monitoring logic, and the configuration file records the monitoring logic for each inauguration investment strategy to be monitored, and it can be understood that, since different inauguration investment strategies have different investment strategies, in order to accurately monitor the inauguration investment strategies, the monitoring logic corresponding to the investment strategy needs to be set for each inauguration investment strategy. Exemplary, the inauguration investment strategy a is: if an increase of 5% is made to purchase 100 investment products 1, the corresponding monitoring logic may be: and judging whether 100 shares of the investment product 1 are purchased when the stock price rises by 5%, and/or judging whether the investment product 1 rises by 5% when the investment risk strategy A executes the purchasing action each time, and the like.
In one implementation, the configuration file may be a code file, such as a Python (a computer programming language) script, and the monitoring logic for each risk investment policy is a corresponding monitoring logic code, and at this time, the information storage 101 may be a code repository of Gitlab, where Gitlab is an open source item for a repository management system, and Git (an open source distributed version control system) is used as a code management tool, and a Web (network) service is built on the basis. Thus, the code file stored in the information storage terminal 101 may correspond to an access address, by which the stored code file may be conveniently obtained.
The information change operation may be various, for example, the information change operation may be a monitoring logic editing operation, so that the monitoring logic information originally stored in the information storage 101 may be edited, and the recorded monitoring logic may be modified, deleted, and added. Alternatively, the information change operation may be an operation of storing the monitoring logic information, so that the originally stored monitoring logic information is overwritten by the newly stored monitoring logic information, and at this time, modification, deletion, and addition to the monitoring logic may be completed in advance, and then stored in the information storage 101.
In one implementation, the container initiator 102 may include an application container engine, such as an application container engine of Docker, Podman, or the like. For convenience of explanation. Alternatively, in another implementation, in order to implement automatic packaging of the image file, the container initiator 102 may include a manager, which may be a DevOps platform, and an application container engine.
In the case that the container initiator 102 includes an application container engine, the information storage 101 and the container initiator 102 may be connected to each other in a direct or indirect manner, where the direct connection between the information storage 101 and the container initiator 102 means that the container initiator 102 may directly access the information storage 101, so that after the information storage 101 updates its stored monitoring logic information each time, the container initiator 102 may directly read the updated monitoring logic information from the information storage 101. The indirect connection between the information storage terminal 101 and the container starting terminal 102 means that the container starting terminal 102 cannot directly read updated monitoring logic information from the information storage terminal 101, but needs an intermediate communication unit to acquire the monitoring logic information from the information storage terminal 101, and then the intermediate communication unit sends the acquired monitoring logic information to the container starting terminal 102.
Under the condition that the container starting end 102 comprises a management end and an application container engine, the management end can communicate with the information storage end 101 instead of the information storage end, and can monitor whether an information updating event occurs in the information storage end 101 in real time or periodically, if the information updating event occurs, monitoring logic information is pulled from the information storage end 101, a mirror image file is generated based on the acquired monitoring logic information, and then a monitoring container containing monitoring logic for each risk investment strategy to be monitored is deployed in the application container engine based on the generated mirror image file. The image file may be a special file system, which contains some configuration parameters prepared for runtime in addition to the files of programs, libraries, resources, configuration, etc. required by the container runtime. The image does not contain any dynamic data, its contents are not changed after the build, and the image can be used to deploy the container.
For example, when the information storage terminal 101 is a gillab, and the container starting terminal 102 includes a DevOps platform and a Docker, after a code file stored in the gillab is updated each time, the DevOps platform pulls the updated code file from the gillab by accessing a Web address, and then performs Docker image packaging on the code file to generate an image file, and deploys a monitoring container including monitoring logic for each to-be-monitored risk investment policy in the Docker based on the generated image file.
In one implementation, the management side of the container initiator 102 may store the image file in an image repository after generating the image file. Since the image files are generated each time the monitoring logic information is updated, the image warehouse includes the image files generated at different periods, and the management terminal may allocate corresponding identification information, such as version numbers, to each image file in order to manage the image files.
In order to realize automatic monitoring of each to-be-monitored risk investment strategy, the monitoring control terminal 103 may periodically send a container start instruction to the container start terminal 102, and the container start terminal 102 may start the target monitoring container after receiving the container start instruction sent by the monitoring control terminal 103 each time, so that the target monitoring container monitors the operation of each to-be-monitored risk investment strategy based on the contained monitoring logic for each to-be-monitored risk investment strategy;
the target monitoring container is the monitoring container with the latest deployment time. For example, if the current container start-up end includes the deployed monitoring containers 1, 2 and 3, and the deployment time is 3/1/2022/3/11/2022/3/21/2022/3, respectively, the target monitoring container may be the monitoring container 3. When the monitoring container 4 is newly deployed at the container starting end, for example, the deployment time is 2022, 4, month and 1 day, the target monitoring container is the monitoring container 4.
In an implementation manner, the monitoring control terminal 103 may be an XXL-JOB, where the XXL-JOB is a distributed task scheduling platform, and may periodically execute a preset instruction to implement minute-level periodic instruction sending. Therefore, by using XXL-JOB, a container start instruction can be periodically sent to the container start end 102, so that the container start end 102 can periodically start the monitoring container, thereby realizing the periodic monitoring of the operation of each inauguration investment strategy to be monitored.
In the above-mentioned scheme of the embodiment of the present invention, since the target monitoring container can be periodically started and the target monitoring container includes the monitoring logic for each inauguration investment strategy to be monitored, the monitoring container can monitor the operation of each inauguration investment strategy after being started, thereby implementing automatic monitoring of each inauguration investment strategy at the same time. Meanwhile, after the monitoring logic information is updated based on the information updating operation each time, an image file can be automatically generated based on the updated monitoring logic information, a monitoring container containing the monitoring logic of each risk investment strategy to be monitored is deployed based on the generated image file, and then the newly deployed monitoring container is started in the next period, so that the newly deployed monitoring container monitors the operation of each risk investment strategy according to the updated monitoring logic, and the monitoring logic of each risk investment strategy can be updated only by executing the information updating operation once. Therefore, the scheme can automatically monitor each risk investment strategy at the same time, and can realize the updating of the monitoring logic of each risk investment strategy by only one-time information updating operation, thereby improving the efficiency of monitoring each risk investment strategy.
In an embodiment, the monitoring control terminal 103 is further configured to, after the operation of the target monitoring container is finished, obtain a monitoring result of the target monitoring container, and display the obtained monitoring result.
The monitoring result of the target monitoring container may be a result of monitoring each inauguration investment strategy by the monitoring container, for example, whether the monitored inauguration investment strategy is operating normally. And then the obtained monitoring results are displayed, so that monitoring personnel can know the operation condition of each risk investment strategy in time. When the risk investment strategy is abnormal, the monitoring personnel can know and take corresponding emergency measures.
Optionally, when the acquired monitoring result indicates that the risk investment strategy with the operation error exists, in order to more timely and effectively enable the monitoring personnel to know and take corresponding emergency measures, the monitoring control terminal 103 may further perform risk warning according to a preset warning manner. The preset alarm mode may be various, for example, by sending an alarm message, making an alarm call, sending an alarm mail, and the like, which alarm mode is specifically adopted may be set in combination with an actual application scenario and a requirement.
In one embodiment, in order to ensure stable operation of monitoring itself for the investment risk strategy, the monitoring control terminal 103 may send a container start instruction to the container start terminal 102 when detecting that the monitoring container started in the previous cycle is operating normally when entering each cycle.
In brief, before sending a container start instruction to the container start end 102 each time, the monitoring control end 103 needs to determine whether there is an abnormality in the operation of the monitoring container started in the previous period, and if there is an abnormality, it indicates that the started monitoring container cannot effectively monitor the operation of the inauguration investment strategies to be monitored, so that measures should be taken to effectively monitor the inauguration investment strategies. If there is no abnormality in the operation based on the started monitoring container, it indicates that the monitoring logic executed by the started monitoring container can effectively monitor the operation of each inauguration investment strategy to be monitored, so that a container start instruction can be sent to the container start end 102 to continue to monitor the operation of each inauguration investment strategy to be monitored by using the monitoring container started in the previous period.
In an implementation manner, when the monitoring control terminal 103 enters each period, if it is detected that an operation error based on the started monitoring container occurs in the previous period, a rollback deployment instruction is sent to the container starting terminal 102. As before, if there is an abnormality in the operation based on the started monitoring container, it indicates that the started monitoring container cannot effectively monitor the operation of each inauguration investment strategy to be monitored, and therefore measures should be taken to effectively monitor the inauguration investment strategy. Therefore, the monitoring control terminal 103 may send a rollback deployment instruction to the container starting terminal 102 after detecting the abnormality. After receiving the rollback deployment instruction, the container start-up end 102 may historically monitor the container, so that the historical monitoring container monitors the operation of each inauguration investment strategy based on the contained monitoring logic for each inauguration investment strategy to be monitored. Wherein, history monitoring container is: the deployed monitoring container is prior to deploying the target monitoring container.
For example, if the container initiator 102 has deployed the monitoring container 1, the monitoring container 2 and the monitoring container 3 at the deployment time of 3/1/2022/3/11/2022/3/21/2022, respectively, the target monitoring container may be the monitoring container 3, and the historical monitoring container may be the monitoring container 2. When the monitoring container 3 is abnormal in operation, the monitoring control terminal 103 may send a rollback deployment instruction to the container start terminal 102, and after the container start terminal 102 receives the rollback deployment instruction, the monitoring container 2 may be started, so that the monitoring container 2 monitors the operation of each inauguration investment strategy according to a monitoring logic, included in the monitoring container 2, for each inauguration investment strategy to be monitored.
Further, after receiving the rollback deployment instruction, the container starting end 102 may also log out the target monitoring container and delete the image file for deploying the target monitoring container. And after the target monitoring container is logged out and the image file for deploying the target monitoring container is deleted, the current historical monitoring container component is used as a new target monitoring container. The container initiator 102 may still be able to initiate the target monitoring container after subsequent receipt of the container deployment instruction.
In an embodiment, as shown in fig. 2, an embodiment of the present invention provides a schematic structural diagram of an intelligent policy monitoring cloud platform that combines an actual scene. In fig. 2, the gitlab warehouse is an information storage end, the devops is an intermediate end, xxl-jobis a monitoring management end, the docker is a container starting end, and the server in the production strategy deployment cluster is a server where the to-be-monitored risk investment strategies operate. The monitoring personnel can configure the monitoring logic of each inauguration investment strategy to be monitored in the python configuration (also called python script) or the python configuration script according to the requirement, namely generating multi-strategy monitoring python configuration. The monitoring logic of different inauguration investment strategies to be monitored can be flexibly written, for example, the monitoring logic of the inauguration investment strategies to be monitored can be added or deleted according to the needs, for example, the monitoring logic can be used for judging whether the inauguration investment strategies normally generate data on a trading day, and the like. And uploading the configured python configuration to a gitlab warehouse after the monitoring personnel configure the python configuration, further pulling the python configuration from the gitlab warehouse by devops through codes, packaging the python configuration into a docker mirror image in the docker, and deploying a monitoring container in the docker based on the docker mirror image. xxl-jobs can schedule on a regular basis, such as a minute level instructing docker to start a deployed monitoring container to monitor the inauguration investment policies running within the generation policy deployment cluster. And if the operation of the risk investment strategy is wrong, alarming is needed, namely enterprise WeChat alarming and mailbox alarming are carried out.
According to the scheme of the embodiment of the invention, based on technologies such as docker, devops + gitlab, xxl-joband the like, the monitoring capability of the risk investment strategy is improved, the problems that the monitoring real-time performance of the risk investment strategy in the current industry is poor, a plurality of risk investment strategies cannot be uniformly monitored and the like are solved, the maintenance cost of the risk investment strategy is greatly reduced, the minute-level monitoring is realized, thousands of risk investment strategies can be configured and uniformly monitored, if the risk investment strategies are abnormal, monitoring personnel can be automatically notified through messages, the timeliness is strong, the monitoring personnel can check specific abnormal information through mailbox alarm mails, and the sequence can be solved at the first time, so that the influence on the experience of investors is avoided.
The intelligent strategy monitoring method provided by the embodiment of the invention is introduced below;
it should be noted that, in a specific application, the intelligent policy monitoring method provided by the embodiment of the present invention may be applied to various electronic devices, for example, a personal computer, a server, a mobile phone, and other devices with data processing capabilities. In addition, the intelligent policy monitoring method provided by the embodiment of the invention can be realized in a software, hardware or combination of software and hardware. In an implementation manner, the intelligent policy monitoring method provided by the embodiment of the invention can be applied to a cloud platform.
The intelligent policy monitoring method provided by the embodiment of the invention can comprise the following steps:
updating the pre-stored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information comprises: monitoring logic aiming at each risk investment strategy to be monitored;
after monitoring logic information is updated every time, generating an image file based on the updated monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each to-be-monitored risk investment strategy based on the generated image file;
periodically starting a target monitoring container to enable the target monitoring container to monitor the operation of each investment risk strategy to be monitored based on the contained monitoring logic for each investment risk strategy to be monitored; the target monitoring container is the monitoring container with the latest deployment time.
In the above-mentioned scheme of the embodiment of the present invention, since the target monitoring container can be periodically started and the target monitoring container includes the monitoring logic for each inauguration investment strategy to be monitored, the monitoring container can monitor the operation of each inauguration investment strategy after being started, thereby implementing automatic monitoring of each inauguration investment strategy at the same time. Meanwhile, after the monitoring logic information is updated based on the information updating operation each time, an image file can be automatically generated based on the updated monitoring logic information, a monitoring container containing the monitoring logic of each investment risk strategy to be monitored is deployed based on the generated image file, and then the newly deployed monitoring container is started in the next period, so that the newly deployed monitoring container monitors the operation of each investment risk strategy according to the updated monitoring logic, and the monitoring logic of each investment risk strategy can be updated only by executing one information updating operation. Therefore, the scheme can automatically monitor each risk investment strategy at the same time, and can realize the updating of the monitoring logic of each risk investment strategy by only one-time information updating operation, thereby improving the efficiency of monitoring each risk investment strategy.
The intelligent policy monitoring method provided by the embodiment of the invention will be elaborated in detail below with reference to the drawings in the specification.
As shown in fig. 3, an embodiment of the present invention provides an intelligent policy monitoring method, including steps S301 to S303, where:
s301, updating the pre-stored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information comprises: monitoring logic aiming at each risk investment strategy to be monitored;
s302, after updating the monitoring logic information each time, generating a mirror image file based on the updated monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each to-be-monitored risk investment strategy based on the generated mirror image file;
s303, periodically starting the target monitoring container to enable the target monitoring container to monitor the operation of each to-be-monitored inauguration investment strategy based on the contained monitoring logic aiming at each to-be-monitored inauguration investment strategy; and the target monitoring container is the monitoring container with the latest deployment time.
In one implementation, the periodically starting the target monitoring container may include:
when entering each period, if detecting that the monitoring container started in the previous period runs normally, starting the target monitoring container;
in one implementation mode, if the monitoring container started in the previous period is detected to have an error in operation, the historical monitoring container is started, so that the historical monitoring container monitors the operation of each inauguration investment strategy based on the contained monitoring logic for each inauguration investment strategy to be monitored; wherein, history monitoring container is: the deployed monitoring container is prior to deploying the target monitoring container.
In one implementation, when an error in the operation of the monitoring container started in the previous period is detected, the target monitoring container may be logged out, and the image file for deploying the target monitoring container may be deleted.
In the above solution of the embodiment of the present invention, because the target monitoring container can be periodically started, and the target monitoring container includes the monitoring logic for each risk investment strategy to be monitored, the monitoring container can monitor the operation of each risk investment strategy after being started, thereby implementing automatic monitoring of each risk investment strategy at the same time. Meanwhile, after the monitoring logic information is updated based on the information updating operation each time, an image file can be automatically generated based on the updated monitoring logic information, a monitoring container containing the monitoring logic of each risk investment strategy to be monitored is deployed based on the generated image file, and then the newly deployed monitoring container is started in the next period, so that the newly deployed monitoring container monitors the operation of each risk investment strategy according to the updated monitoring logic, and the monitoring logic of each risk investment strategy can be updated only by executing the information updating operation once. Therefore, the scheme can automatically monitor each risk investment strategy at the same time, and can realize the updating of the monitoring logic of each risk investment strategy by only one-time information updating operation, thereby improving the efficiency of monitoring each risk investment strategy.
In an embodiment, the intelligent policy monitoring method provided in the embodiment of the present invention, after the target monitoring container is started, may further include: and after the operation of the target monitoring container is finished, acquiring a monitoring result of the target monitoring container, and displaying the acquired monitoring result. Optionally, in an implementation manner, when the obtained monitoring result indicates that the risk investment strategy with the operation error exists, the risk alarm is performed according to a preset alarm manner.
According to the scheme of the embodiment of the invention, the efficiency of monitoring each risk investment strategy can be improved. Meanwhile, by displaying the obtained monitoring results, monitoring personnel can know the operation conditions of the risk investment strategies in time. When the risk investment strategy is abnormal, the monitoring personnel can know and take corresponding emergency measures.
Compared with the embodiment of the intelligent policy monitoring cloud platform provided by the embodiment, the intelligent policy monitoring method provided by the embodiment of the invention is simpler in description, and related points can be referred to the description of the embodiment of the intelligent policy monitoring cloud platform provided by the embodiment.
Corresponding to the intelligent policy monitoring method provided by the above embodiment of the present invention, as shown in fig. 4, an embodiment of the present invention further provides an intelligent policy monitoring apparatus, including:
an information updating module 401, configured to update pre-stored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information comprises: monitoring logic aiming at each risk investment strategy to be monitored;
the file generation module 402 is configured to generate an image file based on the updated monitoring logic information after updating the monitoring logic information each time, and deploy a monitoring container including monitoring logic for each to-be-monitored inauguration investment strategy based on the generated image file;
a policy monitoring module 403, configured to periodically start the target monitoring container, so that the target monitoring container monitors the operation of each inauguration investment policy to be monitored based on the contained monitoring logic for each inauguration investment policy to be monitored; the target monitoring container is the monitoring container with the latest deployment time.
Optionally, the apparatus further comprises:
and the result acquisition module is used for acquiring the monitoring result of the target monitoring container after the target monitoring container is started and the target monitoring container is finished running, and displaying the acquired monitoring result.
Optionally, the result obtaining module is configured to perform a risk alarm according to a preset alarm manner when the obtained monitoring result indicates that the risk investment strategy with the operation error exists.
Optionally, the policy monitoring module is specifically configured to, when entering each period, start the target monitoring container if it is detected that the monitoring container started in the previous period operates normally;
optionally, the policy monitoring module is further configured to, if it is detected that the monitoring container started in the previous period has an operation error, start the historical monitoring container, so that the historical monitoring container monitors the operation of each inauguration investment policy based on a monitoring logic included in the historical monitoring container for each inauguration investment policy to be monitored; wherein, history monitoring container is: the deployed monitoring container is prior to deploying the target monitoring container.
Optionally, the policy monitoring module is further configured to, when it is detected that an error occurs in running of the monitoring container started based on the target image file in the previous period, logout the target monitoring container and delete the image file for deploying the target monitoring container.
In the solution provided in this embodiment, the target monitoring container may be periodically started, and the target monitoring container includes a monitoring logic for each inauguration investment strategy to be monitored, so that after the monitoring container is started, the operation of each inauguration investment strategy may be monitored, thereby implementing automatic monitoring of each inauguration investment strategy at the same time. Meanwhile, after the monitoring logic information is updated based on the information updating operation each time, an image file can be automatically generated based on the updated monitoring logic information, a monitoring container containing the monitoring logic of each investment risk strategy to be monitored is deployed based on the generated image file, and then the newly deployed monitoring container is started in the next period, so that the newly deployed monitoring container monitors the operation of each investment risk strategy according to the updated monitoring logic, and the monitoring logic of each investment risk strategy can be updated only by executing one information updating operation. Therefore, the scheme can automatically monitor each risk investment strategy at the same time, and can realize the updating of the monitoring logic of each risk investment strategy by only one-time information updating operation, thereby improving the efficiency of monitoring each risk investment strategy.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, which includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to implement the following steps when executing the program stored in the memory 503:
updating pre-stored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information includes: monitoring logic aiming at each risk investment strategy to be monitored;
after monitoring logic information is updated every time, generating an image file based on the updated monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each to-be-monitored risk investment strategy based on the generated image file;
periodically starting a target monitoring container to enable the target monitoring container to monitor the operation of each investment risk strategy to be monitored based on the contained monitoring logic for each investment risk strategy to be monitored; and the target monitoring container is the monitoring container with the latest deployment time.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the above-mentioned intelligent policy monitoring methods.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform any of the intelligent policy monitoring methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method, apparatus, electronic device, computer-readable storage medium, and computer program product embodiments, the description is relatively simple because they are substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. An intelligent policy monitoring cloud platform, comprising:
the information storage terminal is used for storing the monitoring logic information and updating the stored monitoring logic information based on the received information updating operation; the monitoring logic information stored in the information storage terminal comprises: monitoring logic aiming at each risk investment strategy to be monitored;
the system comprises a container starting end, a container monitoring end and a monitoring server, wherein the container starting end is used for acquiring updated monitoring logic information from an information storage end after the information storage end updates the stored monitoring logic information each time, generating a mirror image file based on the acquired monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each risk investment strategy to be monitored based on the generated mirror image file;
the monitoring control end is used for periodically sending a container starting instruction to the container starting end;
the container starting end is further configured to start a target monitoring container after receiving a container starting instruction sent by the monitoring control end each time, so that the target monitoring container monitors the operation of each to-be-monitored inauguration investment strategy based on the contained monitoring logic for each to-be-monitored inauguration investment strategy; and the target monitoring container is the monitoring container with the latest deployment time.
2. The intelligent policy monitoring cloud platform according to claim 1, wherein the monitoring control terminal is further configured to obtain a monitoring result of the target monitoring container after the target monitoring container is finished running, and display the obtained monitoring result.
3. The intelligent policy monitoring cloud platform according to claim 1, wherein the monitoring control terminal is further configured to perform a risk alarm according to a preset alarm manner when the obtained monitoring result indicates that the operation-error risk investment policy exists.
4. The intelligent policy monitoring cloud platform according to any one of claims 1 to 3, wherein the monitoring control terminal is specifically configured to, when entering each cycle, send a container start instruction to the container start terminal if it is detected that the monitoring container started in the previous cycle is operating normally.
5. The intelligent policy monitoring cloud platform according to claim 4, wherein the monitoring control terminal is further configured to send a rollback deployment instruction to the container starting terminal if it is detected that the monitoring container started in the previous period is running erroneously;
the container starting end is further used for starting a historical monitoring container after the rollback deployment instruction is received, so that the historical monitoring container monitors the operation of each investment risk strategy based on the contained monitoring logic for each investment risk strategy to be monitored; wherein, the history monitoring container is: the deployed monitoring container prior to deploying the target monitoring container.
6. The intelligent policy monitoring cloud platform of claim 5, wherein the container initiator is further configured to log out the target monitoring container and delete an image file for deploying the target monitoring container after receiving the rollback deployment instruction.
7. An intelligent policy monitoring method, comprising:
updating pre-stored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information comprises: monitoring logic aiming at each risk investment strategy to be monitored;
after monitoring logic information is updated every time, generating an image file based on the updated monitoring logic information, and deploying a monitoring container containing monitoring logic aiming at each to-be-monitored risk investment strategy based on the generated image file;
periodically starting a target monitoring container to enable the target monitoring container to monitor the operation of each investment risk strategy to be monitored based on the contained monitoring logic for each investment risk strategy to be monitored; and the target monitoring container is the monitoring container with the latest deployment time.
8. The method of claim 7, wherein after the initiating the target monitoring container, the method further comprises:
and after the operation of the target monitoring container is finished, acquiring a monitoring result of the target monitoring container, and displaying the acquired monitoring result.
9. An intelligent policy monitoring apparatus, comprising:
the information updating module is used for updating the prestored monitoring logic information based on the received information updating operation; wherein the updated monitoring logic information comprises: monitoring logic aiming at each risk investment strategy to be monitored;
the file generation module is used for generating a mirror image file based on the updated monitoring logic information after the monitoring logic information is updated every time, and deploying a monitoring container containing monitoring logic aiming at each to-be-monitored risk investment strategy based on the generated mirror image file;
the system comprises a strategy monitoring module, a monitoring module and a monitoring module, wherein the strategy monitoring module is used for periodically starting a target monitoring container so that the target monitoring container monitors the operation of each investment risk strategy to be monitored based on the contained monitoring logic aiming at each investment risk strategy to be monitored; and the target monitoring container is the monitoring container with the latest deployment time.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of claim 7 or 8 when executing a program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210632590.4A CN114926288A (en) | 2022-06-06 | 2022-06-06 | Intelligent strategy monitoring cloud platform and intelligent strategy monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210632590.4A CN114926288A (en) | 2022-06-06 | 2022-06-06 | Intelligent strategy monitoring cloud platform and intelligent strategy monitoring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114926288A true CN114926288A (en) | 2022-08-19 |
Family
ID=82811919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210632590.4A Pending CN114926288A (en) | 2022-06-06 | 2022-06-06 | Intelligent strategy monitoring cloud platform and intelligent strategy monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114926288A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045901A (en) * | 2019-12-11 | 2020-04-21 | 东软集团股份有限公司 | Container monitoring method and device, storage medium and electronic equipment |
CN112511339A (en) * | 2020-11-09 | 2021-03-16 | 宝付网络科技(上海)有限公司 | Container monitoring alarm method, system, equipment and storage medium based on multiple clusters |
-
2022
- 2022-06-06 CN CN202210632590.4A patent/CN114926288A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045901A (en) * | 2019-12-11 | 2020-04-21 | 东软集团股份有限公司 | Container monitoring method and device, storage medium and electronic equipment |
CN112511339A (en) * | 2020-11-09 | 2021-03-16 | 宝付网络科技(上海)有限公司 | Container monitoring alarm method, system, equipment and storage medium based on multiple clusters |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112801579B (en) | Distribution task abnormity monitoring method, distribution task abnormity monitoring device, computer equipment and storage medium | |
US8775591B2 (en) | Real-time information technology environments | |
EP4124956A1 (en) | Automated system and method for detection and remediation of anomalies in robotic process automation environment | |
US9049105B1 (en) | Systems and methods for tracking and managing event records associated with network incidents | |
US7124119B2 (en) | Communication between intelligent agents and humans in a distributed system environment | |
US10585656B1 (en) | Event manager for software deployment | |
US20210304216A1 (en) | Decentralized governance regulatory compliance (d-grc) controller | |
CN107784404B (en) | Method and device for alarming in service processing process | |
CN109995612B (en) | Service inspection method and device and electronic equipment | |
CN114490272A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
US10817611B1 (en) | Findings remediation management framework system and method | |
WO2020075061A1 (en) | Asset management | |
CN114926288A (en) | Intelligent strategy monitoring cloud platform and intelligent strategy monitoring method and device | |
CN116957764A (en) | Account data processing method and device, electronic equipment and storage medium | |
CN109683860B (en) | Computer software project management platform, equipment and readable storage medium | |
CN116701123A (en) | Task early warning method, device, equipment, medium and program product | |
CN111610992A (en) | Deployment component update processing method and device and storage medium | |
JP2003233515A (en) | Software maintenance system and software maintenance program | |
CN111381932B (en) | Method, device, electronic equipment and storage medium for triggering application program change | |
CN113504969A (en) | Container event alarm method and device and electronic equipment | |
CN111176959B (en) | Early warning method, system and storage medium of cross-domain application server | |
CN113554328A (en) | Point inspection task supervision system, method and device based on strong association with device startup | |
CN112988266A (en) | Resource management method and device, electronic equipment and storage medium | |
CN114510433A (en) | Memory management method, device and storage medium for optical transmission device | |
CN115577912B (en) | Test change control method, device, equipment and medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220819 |