CN116360819A - Financial service deployment method and device, processor and electronic equipment - Google Patents

Financial service deployment method and device, processor and electronic equipment Download PDF

Info

Publication number
CN116360819A
CN116360819A CN202310262140.5A CN202310262140A CN116360819A CN 116360819 A CN116360819 A CN 116360819A CN 202310262140 A CN202310262140 A CN 202310262140A CN 116360819 A CN116360819 A CN 116360819A
Authority
CN
China
Prior art keywords
service node
service
target
node
version package
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
CN202310262140.5A
Other languages
Chinese (zh)
Inventor
文国军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310262140.5A priority Critical patent/CN116360819A/en
Publication of CN116360819A publication Critical patent/CN116360819A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Economics (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a financial service deployment method and device, a processor and electronic equipment, and relates to the technical field of financial science and technology, wherein the method comprises the following steps: acquiring script parameters corresponding to a target financial service to be issued and a deployment flow of the target financial service to be issued; determining a service node group according to a target financial service to be issued; executing offline operation on the front-end first service node and the back-end first service node, and processing script parameters and deployment flows to obtain a first target version package corresponding to a target financial service to be issued; the first target version package is deployed to the front-end first service node and the back-end first service node. According to the method and the device, the problem that the efficiency of the financial service deployment is low due to the fact that the financial service is deployed manually in the related technology is solved.

Description

Financial service deployment method and device, processor and electronic equipment
Technical Field
The present application relates to the technical field of financial science and technology, and in particular, to a method and apparatus for deploying financial services, a processor, and an electronic device.
Background
At present, in order to improve research and development efficiency and reduce research and development cost, a series of tool chains including developer portals are constructed, however, the developer portals belong to tool chain research and development platforms, a used continuous integrated deployment pipeline is not suitable for the use of the developer portals, a portal source code is compiled, constructed and issued to update a portal function by manually using command scripts, a great deal of manpower and time are required in the process of manually using script commands to deploy services, operation and maintenance cost is increased, uncontrollable factors in the manual operation process are many, certain threat is caused to the stability of the portal function, and particularly when the function is in urgent need of production update iteration, the error probability is increased, and a certain instability risk is brought to the use of users.
Aiming at the problem that the efficiency of the financial service deployment is lower due to the fact that the financial service is deployed manually in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The main purpose of the application is to provide a method and a device for deploying financial services, a processor and electronic equipment, so as to solve the problem that the efficiency of deploying the financial services is lower due to the fact that the financial services are deployed manually in the related technology.
In order to achieve the above object, according to one aspect of the present application, there is provided a method of deploying a financial service. The method comprises the following steps: acquiring script parameters corresponding to a target financial service to be issued and a deployment flow of the target financial service to be issued; determining a service node group according to the target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node; executing offline operation on the front-end first service node and the back-end first service node, and processing the script parameters and the deployment flow to obtain a first target version package corresponding to the target financial service to be distributed, wherein the front-end second service node and the back-end second service node are in an online state, and provide initial financial service to the outside through the front-end second service node and the back-end second service node; and deploying the first target version package to the front-end first service node and the back-end first service node.
Further, according to the script parameter and the deployment flow, the step of obtaining the first target version package corresponding to the target financial service to be distributed includes: compiling the script parameters to obtain compiled script parameters; and carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain the first target version package.
Further, after performing service construction and packaging according to the deployment flow and the compiled script parameters to obtain the first target version package, the method further includes: determining a storage catalog corresponding to the target financial service to be published and a plurality of version packages stored under the storage catalog; acquiring the time stamp information of a plurality of version packages stored in the storage directory, and judging whether the storage time of the version packages exceeds the preset time according to the time stamp information; and if the storage time of the second target version package exceeds the preset time, deleting the second target version package from the storage catalog.
Further, deploying the first target version package to the front-end first service node and the back-end first service node includes: determining a service type of the target financial service to be distributed, wherein the service type is one of the following: front-end service and back-end service; if the service type of the target financial service to be distributed is the front-end service, deploying the first target version package to the front-end first service node; and if the service type of the target financial service to be distributed is the back-end service, deploying the first target version package to the back-end first service node.
Further, if the service type of the target financial service to be distributed is the backend service, deploying the first target version package to the backend first service node includes: a task query instruction is sent to the back-end first service node, and task mark information returned by the back-end first service node is received, wherein the task query instruction is used for querying whether the back-end first service node has a task in process or not; if the task mark information is a first preset value, representing that the first service node at the back end has the task in the process; and if the task mark information is a second preset value, the fact that the back-end first service node does not have the task in the process is represented.
Further, if the task flag information is the first preset value, the method further includes: sending the task query instruction to the first service node at the back end according to a preset time period until the task mark information is the second preset value; and when the task mark information is the second preset value, deploying the first target version package to the back-end first service node.
Further, after deploying the first target version package to the front-end first service node and the back-end first service node, the method further comprises: performing backup processing on the original version package on the front-end first service node and the back-end first service node to obtain the original version package; loading the first target version package through the front-end first service node and the back-end first service node; after the first target version package is loaded, the front-end first service node and the back-end first service node are subjected to online operation, and the target financial service is provided to the outside through the front-end first service node and the back-end first service node.
Further, after the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the method further includes: and executing offline operation on the front-end second service node and the back-end second service node, and deploying the first target version package to the front-end second service node and the back-end second service node.
Further, after the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the method further includes: detecting whether the front-end first service node and the back-end first service node operate abnormally or not; and if the abnormal phenomenon exists, restoring the version packets corresponding to the front-end first service node and the back-end first service node to the original version packets.
In order to achieve the above object, according to another aspect of the present application, there is provided a financial service deployment apparatus. The device comprises: the first acquisition unit is used for acquiring script parameters corresponding to the target financial service to be issued and the deployment flow of the target financial service to be issued; the first determining unit is used for determining a service node group according to the target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node; the execution unit is used for executing offline operation on the front-end first service node and the rear-end first service node, processing the script parameters and the deployment flow to obtain a first target version package corresponding to the target financial service to be distributed, wherein the front-end second service node and the rear-end second service node are in an online state, and providing initial financial service to the outside through the front-end second service node and the rear-end second service node; and the first deployment unit is used for deploying the first target version package to the front-end first service node and the back-end first service node.
Further, the execution unit includes: the compiling module is used for compiling the script parameters to obtain compiled script parameters; and the construction module is used for carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain the first target version package.
Further, the apparatus further comprises: the second determining unit is used for determining a storage catalog corresponding to the target financial service to be distributed and a plurality of version packages stored under the storage catalog after service construction and packaging are carried out according to the deployment flow and the compiled script parameters to obtain the first target version package; the second acquisition unit is used for acquiring the time stamp information of the stored version packages under the storage directory and judging whether the storage time of the version packages exceeds the preset time according to the time stamp information; and the deleting unit is used for deleting the second target version package from the storage catalog if the storage time of the second target version package exceeds the preset time.
Further, the first deployment unit includes: the first determining module is used for determining the service type of the target financial service to be distributed, wherein the service type is one of the following: front-end service and back-end service; the second determining module is configured to deploy the first target version package to the front-end first service node if the service type of the target financial service to be deployed is the front-end service; and the third determining module is used for deploying the first target version package to the back-end first service node if the service type of the target financial service to be deployed is the back-end service.
Further, the third determining module includes: the sending sub-module is used for sending a task query instruction to the first rear-end service node and receiving task mark information returned by the first rear-end service node, wherein the task query instruction is used for querying whether the first rear-end service node has a task in process or not; the first determining submodule is used for representing that the back-end first service node has the task in the process if the task mark information is a first preset value; and the second determining submodule is used for representing that the back-end first service node does not have the task in the process if the task mark information is a second preset value.
Further, the apparatus further comprises: the sending unit is used for sending the task query instruction to the first service node at the rear end according to a preset time period if the task mark information is the first preset value until the task mark information is the second preset value; and the second deployment unit is used for deploying the first target version package to the back-end first service node when the task mark information is the second preset value.
Further, the apparatus further comprises: the backup unit is used for carrying out backup processing on the original version package on the front-end first service node and the back-end first service node after the first target version package is deployed on the front-end first service node and the back-end first service node, so as to obtain the original version package; the loading unit is used for loading the first target version package through the front-end first service node and the back-end first service node; and the first operation unit is used for executing online operation on the front-end first service node and the rear-end first service node after loading the first target version package, and providing the target financial service to the outside through the front-end first service node and the rear-end first service node.
Further, the apparatus further comprises: and the second operation unit is used for executing offline operation on the front-end second service node and the rear-end second service node after the target financial service is externally provided by the front-end first service node and the rear-end first service node, and deploying the first target version package to the front-end second service node and the rear-end second service node.
Further, the apparatus further comprises: the detection unit is used for detecting whether the front-end first service node and the rear-end first service node operate abnormally or not after the front-end first service node and the rear-end first service node provide the target financial service outwards; and the restoring unit is used for restoring the version package corresponding to the front-end first service node and the back-end first service node to the original version package if the abnormal phenomenon exists.
To achieve the above object, according to one aspect of the present application, there is provided a processor for running a program, wherein the program runs to perform the method for deploying a financial service as set forth in any one of the above.
To achieve the above object, according to one aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing a deployment method of the one or more processors for implementing any one of the above financial services.
Through the application, the following steps are adopted: acquiring script parameters corresponding to a target financial service to be issued and a deployment flow of the target financial service to be issued; determining a service node group according to a target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node; executing offline operation on the front-end first service node and the rear-end first service node, and processing script parameters and deployment flows to obtain a first target version package corresponding to a target financial service to be issued, wherein the front-end second service node and the rear-end second service node are in an online state, and initial financial service is externally provided through the front-end second service node and the rear-end second service node; the first target version package is deployed to the front-end first service node and the back-end first service node, so that the problem that the efficiency of the financial service deployment is lower due to the fact that the financial service is deployed manually in the related technology is solved. In the scheme, script parameters and deployment flow of target financial services to be deployed are acquired, then a front-end first service node and a rear-end first service node corresponding to the target financial services are determined, a front-end second service node and a rear-end second service node execute offline and deploy a first target version package on the front-end first service node and the rear-end first service node, and deployment of the first target financial services is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a method of deploying a financial service provided in accordance with an embodiment of the present application;
FIG. 2 is a schematic diagram of a deployment system for financial services provided in accordance with an embodiment of the present application;
FIG. 3 is a flow chart of an alternative method of deploying financial services provided in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of a deployment device for financial services provided in accordance with an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device provided according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
The present invention will be described with reference to preferred implementation steps, and fig. 1 is a flowchart of a method for deploying a financial service provided according to an embodiment of the present application, as shown in fig. 1, and the method includes the following steps:
Step S101, script parameters corresponding to the target financial service to be issued and a deployment flow of the target financial service to be issued are obtained.
Specifically, the method for deploying the financial service provided by the application can be applied to a system for deploying the financial service, as shown in fig. 2, the system for deploying comprises four functional modules, the first functional module is a Jenkins system page, and the Jenkins system page is used for receiving script parameters corresponding to a target financial service to be issued and a deployment flow of the target financial service to be issued. The Jenkins system is an open-source Continuous Integration (CI) tool that provides friendly operation interfaces, and is mainly used for continuously and automatically constructing/testing software projects and monitoring the operation of external tasks.
In an alternative embodiment, when a user needs to update and deploy a certain financial service, the user can directly log in the Jenkins system, configure a stage and parameterized deployment pipeline by adopting a Groovy script, select front-end engineering and back-end engineering and corresponding branches of a project to be deployed, and perform construction and deployment tasks.
Step S102, a service node group is determined according to a target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node.
Specifically, as shown in fig. 2, the second module of the deployment system is a condul tool, where condul is an open source tool for implementing service discovery and configuration of the distributed system, and it mainly comprises a plurality of components: service discovery, monitoring and checking, key value pair storage and multiple data centers. Consul simplifies the registration and discovery flow of services in a distributed environment, discovers through HTTP or DNS interfaces, supports external SaaS providers, and the like.
In an alternative embodiment, the front-end service node and the back-end service node corresponding to each financial service may be configured through a Consul tool, where the Consul tool determines a corresponding service node group according to the target financial service to be published, and the service node group includes: front-end service node a and back-end service node a (i.e., the front-end first service node and back-end first service node described above) front-end service node B and back-end service node B (i.e., the front-end second service node and back-end second service node described above). Before initiating the deployment target financial service, the service nodes in the service node group are all in an online state, and the financial service is provided externally through the service nodes.
Step S103, performing offline operation on the front-end first service node and the back-end first service node, and processing script parameters and deployment flow to obtain a first target version package corresponding to a target financial service to be issued, wherein the front-end second service node and the back-end second service node are in an online state, and provide initial financial service to the outside through the front-end second service node and the back-end second service node.
Specifically, when a deployment instruction for a target financial service is received, a downlink operation can be performed on the front-end first service node and the rear-end first service node through a Consul tool, and it is to be noted that the front-end second service node and the rear-end second service node are in an online state, an initial financial service is provided to the outside through the front-end second service node and the rear-end second service node, and the Consul tool performs traffic switching of node service, so that normal operation of the financial service is ensured, and further experience of a user is effectively improved.
As shown in fig. 2, the third module of the deployment system is a construction server module, and the script parameters and the deployment flow are processed by the construction server module to obtain a first target version package corresponding to the target financial service to be released. It should be noted that, the construction server module adopts different construction and packaging modes for different financial services, names the processed version package according to the time stamp, and sets the validity period so as to process the redundant version package subsequently.
Step S104, the first target version package is deployed to the front-end first service node and the back-end first service node.
Specifically, as shown in fig. 2, the fourth module of the deployment system is a deployment server module, and the first target version package can be deployed to the front-end first service node and the back-end first service node through the deployment server module.
In summary, in the scheme, script parameters and deployment flow of the target financial service to be deployed are acquired, then front-end first service nodes and rear-end first service nodes corresponding to the target financial service are determined, front-end second service nodes and rear-end second service nodes execute offline and deploy first target version packages on the front-end first service nodes and the rear-end first service nodes, and deployment of the first target financial service is achieved.
How to obtain the first target version package is crucial, so in the method for deploying financial services provided in the embodiments of the present application, according to processing script parameters and deployment procedures, obtaining the first target version package corresponding to the target financial service to be published includes: compiling the script parameters to obtain compiled script parameters; and carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain a first target version package.
Specifically, after script parameters corresponding to a target financial service to be distributed and a deployment flow of the target financial service to be distributed are obtained, compiling the script parameters to obtain compiled script parameters, and then carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain a first target version package.
In an alternative embodiment, the server module is constructed to download, compile, construct and package script parameters corresponding to the target financial service to be released and the deployment process of the target financial service to be released, and store an iteration version package of the product service within 30 days, so as to provide backup guarantee and support for quickly recovering the version of each stage.
Optionally, in the method for deploying financial services provided in the embodiment of the present application, after performing service construction and packaging according to a deployment flow and compiled script parameters to obtain a first target version package, the method further includes: determining a storage catalog corresponding to a target financial service to be published and a plurality of version packages stored under the storage catalog; acquiring time stamp information of a plurality of version packages stored under a storage directory, and judging whether the storage time of the version packages exceeds preset time or not according to the time stamp information; and if the storage time of the second target version package exceeds the preset time, deleting the second target version package from the storage directory.
Specifically, after the first target version package is obtained, scanning and identifying whether a version package exists in a storage directory corresponding to the target financial service to be released for more than 30 days (namely, the preset time), if the storage time of the second target version package exceeds the preset time, deleting and cleaning the second target version package, and storing the new version package (namely, the first target version package) in the storage directory for storage. Through regular cleaning of version packages, excessive redundant data are prevented from being stored, and the utilization rate of storage space is improved.
How to deploy the first target version package to the front-end first service node and the back-end first service node is crucial, so in the method for deploying the financial service provided in the embodiments of the present application, deploying the first target version package to the front-end first service node and the back-end first service node includes: determining a service type of a target financial service to be published, wherein the service type is one of the following: front-end service and back-end service; if the service type of the target financial service to be issued is front-end service, deploying the first target version package to a front-end first service node; and if the service type of the target financial service to be issued is the back-end service, deploying the first target version package to the back-end first service node.
If the service type of the target financial service to be issued is back-end service, sending a task query instruction to a back-end first service node, and receiving task mark information returned by the back-end first service node, wherein the task query instruction is used for querying whether the back-end first service node has a task in process or not; if the task mark information is a first preset value, representing a task in the existing processing of the first service node at the back end; and if the task mark information is the second preset value, representing that the task in the processing of the first service node at the back end does not exist.
If the task mark information is a first preset value, a task query instruction is sent to a first service node at the rear end according to a preset time period until the task mark information is a second preset value; and when the task mark information is a second preset value, deploying the first target version package to the first service node at the back end.
Specifically, when the first target version package is deployed, it is required to determine whether the service type of the target financial service to be published is a front-end service or a back-end service. If the service type of the target financial service to be issued is front-end service, deploying the first target version package to a front-end first service node; and if the service type of the target financial service to be issued is the back-end service, deploying the first target version package to the back-end first service node.
It should be noted that, for the front-end service, the front-end service may be deployed directly to the front-end first service node, but if the front-end service is the back-end service, it is required to query whether there is an in-process task on the back-end first service node through the task execution API. And sending a task query instruction to the first service node at the back end, and then receiving task mark information returned by the first service node at the back end. If the task mark information is a first preset value (for example, 1), characterizing the task in the existing processing of the first service node at the back end; if the task flag information is a second preset value (e.g., 0), the fact that the back-end first service node does not exist in the processing is characterized.
If the current back-end first service node has the task in process, the back-end first service node needs to wait for the back-end first service node to process the task. And under the condition that the task mark information is a first preset value, sending a task query instruction to the first rear-end service node according to a preset time period (for example, 5 s) until the task mark information returned by the first rear-end service node is a second preset value.
And when the task mark information is a second preset value, directly deploying the first target version package to the back-end first service node.
In summary, when the back-end service is deployed, it is detected whether the task being processed exists in the back-end first service node, so that the task on the node which does not provide the service is not interrupted, and data is not lost.
After the first target version package is deployed to the front-end first service node and the back-end first service node, the method for deploying the financial service provided in the embodiment of the application further includes the following steps: performing backup processing on the original version packages on the front-end first service node and the back-end first service node to obtain the original version package; loading a first target version package through a front-end first service node and a back-end first service node; after the first target version package is loaded, the front-end first service node and the back-end first service node are subjected to online operation, and target financial services are provided to the outside through the front-end first service node and the back-end first service node.
Specifically, in order to restore the front-end first service node and the back-end first service node to the initial financial service when the newly deployed target financial service has a problem, after the first target version package is deployed to the front-end first service node and the back-end first service node, the backup processing can be performed on the original version package on the front-end first service node and the back-end first service node through the Jenkins system to obtain the original version package, and then the first target version package is loaded through the front-end first service node and the back-end first service node, so that the deployment of the target financial service is realized. After successful deployment, the Consul tool is promoted to execute online operation on the front-end first service node and the rear-end first service node through the Jenkins system so as to provide target financial service to the outside through the front-end first service node and the rear-end first service node.
After the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the method for deploying the financial service provided in the embodiment of the application further includes: and executing offline operation on the front-end second service node and the back-end second service node, and deploying the first target version package to the front-end second service node and the back-end second service node.
Specifically, after the front-end first service node and the back-end first service node are subjected to the online operation, the front-end second service node and the back-end second service node are subjected to the offline operation through a Consul tool, so that the first target version package is deployed on the front-end second service node and the back-end second service node. And after the front-end second service node and the rear-end second service node are deployed, performing online operation on the front-end second service node and the rear-end second service node through a Consul tool so as to provide services for the outside through the front-end first service node and the rear-end first service node and the front-end second service node and the rear-end second service node.
In order to avoid service unavailability caused by a functional problem after the target financial service is deployed, in the method for deploying the financial service provided in the embodiment of the present application, after the target financial service is externally provided by the front-end first service node and the back-end first service node, the method further includes: detecting whether the front-end first service node and the back-end first service node operate abnormally or not; if the abnormal phenomenon exists, the version packets corresponding to the front-end first service node and the back-end first service node are restored to the original version packets.
Specifically, after the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the operation of the front-end first service node and the back-end first service node is detected, and whether the target financial service can be completely realized is judged. If the abnormal phenomenon exists, the version packages corresponding to the front-end first service node and the back-end first service node can be directly restored to the original version package.
And detecting the running states of the front-end second service node and the rear-end second service node after the front-end second service node and the rear-end second service node are on line, and restoring the version packages corresponding to the front-end second service node and the rear-end second service node to the original version package when the abnormality exists.
In summary, through the steps, the problem that the service is unavailable due to the function problem after the target financial service is deployed can be effectively avoided, and the accuracy of providing the service to the outside is improved.
In an alternative embodiment, FIG. 2 is a deployment system for a financial service, which may be divided into four functional modules.
The first module Jenkins system page provides front-end engineering, back-end engineering, branch service related information corresponding to a plurality of projects (namely financial services) of a deployment developer portal, a user can select project engineering and branches to be deployed according to actual needs to perform deployment, submit and prompt, complete pipeline configuration and execution scripts are required to be provided before deployment, and the system also provides a function of checking real-time logs.
And a second module Consul tool platform, which can provide service switching service, and perform the online and offline of related service according to the actual project parameters, so that the online service node is provided with service, and the offline service node performs version deployment update (i.e. new financial service is deployed in the offline service node).
And the third module builds a server module, the build server module provides the dedicated downloading, compiling, building and packing functions of front and back end engineering source codes, stores an iteration version package of product service within 30 days, and provides backup guarantee and support for quickly recovering versions of each stage.
And the fourth module deploys a server module, wherein the deployment server module deploys the corresponding version package to the corresponding service node, and simultaneously the deployment server module also provides a developer portal running service and a running log recording function, and can monitor the phase log and error information of a user accessing a portal at the server and can rapidly locate and repair the problem according to the back-end service log.
In an alternative embodiment, fig. 3 is a flowchart of an alternative method for deploying financial services, specifically including the following steps:
And 1, logging in a Jenkins system, configuring a stage and parameterized deployment pipeline by using a Groovy script, selecting front-end engineering and back-end engineering and corresponding branches of an item to be deployed, clicking a start construction button, and carrying out construction tasks.
Step 2, the Consul tool configures corresponding front and back end service nodes in advance: the front end service node A and the back end service node A are a complete set of service nodes for portals, the front end service node B and the back end service node B are another set of service nodes, and two sets of service mechanisms are configured. After the deployment pipeline is triggered, the front end service node A and the back end service node A are disconnected, the front end service node B and the back end service node B are left to continue to provide services to the outside, at the moment, the front end service node B and the back end service node B are used by a user access portal, and the operation log is recorded on the hub node.
And 3, after the service node is switched, the front-end engineering, the back-end engineering, the branch types and the corresponding branches are identified on the construction server module, downloading, compiling, constructing and packaging of the front-end source codes and the back-end source codes are carried out, after packaging, scanning and identifying whether version packages exist for more than 30 days under the project storage version package catalog corresponding to the pipeline, deleting and cleaning if the version packages exist, then storing the new version package under the file for storage, and the whole packaging process can check specific detail logs on Jenkins.
And 4, if the constructed project is a back-end project, the new version package is required to be inquired whether a processed task exists on the back-end server through a task execution API before being released to the deployment machine, if so, the API interface is required to return a no-task mark, and if not, the constructed version package is released to the deployment server as in the front-end project.
And 5, starting a current version package backup mechanism by a service node, then starting a new service, waiting for the availability of the new service, informing a Consul tool system to suspend the front-end service node A and the rear-end service node A for providing services for users by the aid of the Jenkins system, enabling the externally provided services to be after new function iteration, then downloading the front-end service node B and the rear-end service node B, performing compiling, constructing and deploying operations corresponding to the matched nodes, completing service deployment of the set of nodes, and after the deployment, putting the set of nodes on line, wherein all service nodes are deployed, and ending the deployment flow.
In the step 1, logging in the Jenkins system, firstly completing script configuration of a deployment pipeline, wherein the script relates to front and rear ends corresponding to each project, and the front and rear end services are separated and uncoupled by phase parameters, related commands of suspension and disconnection of Consul system node services are related in script parameters, front and rear end source code downloading, construction and packaging commands, version package backup and existing time monitoring commands, calling whether the rear end service is processing API interface commands, issuing commands such as version packages and the like, after the related scripts are configured, selecting front end engineering and rear end engineering which are actually required to be deployed, selecting branches which are required to be deployed for promotion, and the deployment pipeline supports deployment of independent engineering and deployment uncoupling among the engineering and the branches.
In the step 2, after the deployment pipeline executes the promotion, the Jenkins system promotes the Consul tool to switch the flow of the node service. Firstly, the Consul tool can make the externally provided node pair A not provide service to the outside in a downlink mode, and the node pair B provides service to the outside, so that service switching is realized, and the downlink service is constructed and deployed.
In the step 3, different construction and packaging modes are respectively adopted for different projects on the construction and deployment machine, parameters transmitted during triggering are identified, construction and packaging of corresponding front-end and back-end projects are carried out, the packages printed at the back end are named according to time stamps and are stored locally, and the validity period of 30 days is set.
In the step 4, the front-end project can be directly issued to the deployment machine after the front-end project is constructed and packaged, before the back-end project is issued, whether the back-end machine related to deployment has a task in process or not needs to be determined, and the task is realized through customizing a task execution result state interface, if the API returns success, no task in process or the task in process is finished, and at the moment, the back-end deployment package can be issued to the deployment machine, so that the task on the node which does not provide service to the outside still cannot be interrupted.
In the step 5, the Jenkins system firstly executes the backup version package script by using the SSH plug-in, backs up the version package of the original service, then transmits the new version package to the appointed directory of the deployment machine, executes the deployment script, starts the new version package, completes the deployment of the new service, and after success, the Jenkins system promotes the condul tool to suspend the service node from the service node to the outside, provides the service to the outside, and then switches the deployment node to the outside, completes the deployment of all the nodes, and ensures that the portal does not interrupt the external service.
For example, a developer only modifies the back end of the item a, the corresponding branch is M, then the deployer only needs to select the back end of the branch M corresponding to the item a, and then execute the pipeline, one set of front and back ends are offline, the other set of front and back ends are online, the login developer portal can find that the portal function is still available, the system can automatically and sequentially deploy node pairs A, B according to the Jenkins building log, after the pipeline is finished, the deployer service log can be checked, and the whole deployment operation is completed.
According to the financial service deployment method, script parameters corresponding to the target financial service to be released and the target financial service deployment flow to be released are obtained; determining a service node group according to a target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node; executing offline operation on the front-end first service node and the rear-end first service node, and processing script parameters and deployment flows to obtain a first target version package corresponding to a target financial service to be issued, wherein the front-end second service node and the rear-end second service node are in an online state, and initial financial service is externally provided through the front-end second service node and the rear-end second service node; the first target version package is deployed to the front-end first service node and the back-end first service node, so that the problem that the efficiency of the financial service deployment is lower due to the fact that the financial service is deployed manually in the related technology is solved. In the scheme, script parameters and deployment flow of target financial services to be deployed are acquired, then a front-end first service node and a rear-end first service node corresponding to the target financial services are determined, a front-end second service node and a rear-end second service node execute offline and deploy a first target version package on the front-end first service node and the rear-end first service node, and deployment of the first target financial services is realized.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a device for deploying the financial service, and it is to be noted that the device for deploying the financial service in the embodiment of the application can be used for executing the method for deploying the financial service provided in the embodiment of the application. The following describes a device for deploying financial services provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a deployment apparatus of a financial service according to an embodiment of the present application. As shown in fig. 4, the apparatus includes: a first acquisition unit 401, a first determination unit 402, an execution unit 403, and a first deployment unit 404.
A first obtaining unit 401, configured to obtain script parameters corresponding to a target financial service to be published and a deployment procedure of the target financial service to be published;
a first determining unit 402, configured to determine a service node group according to a target financial service to be issued, where the service node group includes a front-end first service node and a back-end first service node, and a front-end second service node and a back-end second service node;
The execution unit 403 is configured to execute an offline operation on the front-end first service node and the back-end first service node, and process script parameters and a deployment procedure to obtain a first target version package corresponding to a target financial service to be published, where the front-end second service node and the back-end second service node are in an online state, and provide an initial financial service to the outside through the front-end second service node and the back-end second service node;
a first deployment unit 404 is configured to deploy the first target version package to the front-end first service node and the back-end first service node.
According to the financial service deployment device provided by the embodiment of the application, script parameters corresponding to the target financial service to be released and the deployment flow of the target financial service to be released are acquired through the first acquisition unit 401; the first determining unit 402 determines a service node group according to a target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node; the execution unit 403 executes offline operations on the front-end first service node and the back-end first service node, and processes script parameters and deployment flows to obtain a first target version package corresponding to a target financial service to be issued, wherein the front-end second service node and the back-end second service node are in an online state, and initial financial service is externally provided through the front-end second service node and the back-end second service node; the first deployment unit 404 deploys the first target version package to the front-end first service node and the back-end first service node, which solves the problem that the efficiency of deploying the financial service is low due to the fact that the financial service is deployed manually in the related art. In the scheme, script parameters and deployment flow of target financial services to be deployed are acquired, then a front-end first service node and a rear-end first service node corresponding to the target financial services are determined, a front-end second service node and a rear-end second service node execute offline and deploy a first target version package on the front-end first service node and the rear-end first service node, and deployment of the first target financial services is realized.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the execution unit includes: the compiling module is used for compiling the script parameters to obtain compiled script parameters; the construction module is used for carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain a first target version package.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the apparatus further includes: the second determining unit is used for determining a storage catalog corresponding to the target financial service to be issued and a plurality of version packages stored under the storage catalog after service construction and packaging are carried out according to the deployment flow and the compiled script parameters to obtain a first target version package; the second acquisition unit is used for acquiring the time stamp information of the stored version packages under the storage directory and judging whether the storage time of the version packages exceeds the preset time according to the time stamp information; and the deleting unit is used for deleting the second target version package from the storage catalog if the storage time of the second target version package exceeds the preset time.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the first deployment unit includes: the first determining module is used for determining the service type of the target financial service to be issued, wherein the service type is one of the following: front-end service and back-end service; the second determining module is used for deploying the first target version package to the front-end first service node if the service type of the target financial service to be issued is the front-end service; and the third determining module is used for deploying the first target version package to the back-end first service node if the service type of the target financial service to be released is back-end service.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the third determining module includes: the sending sub-module is used for sending a task query instruction to the first service node at the back end and receiving task mark information returned by the first service node at the back end, wherein the task query instruction is used for querying whether the first service node at the back end has a task in process or not; the first determining submodule is used for representing a task in the processing of the first service node at the back end if the task mark information is a first preset value; and the second determining submodule is used for representing that the back-end first service node does not have the task in the process if the task mark information is a second preset value.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the apparatus further includes: the sending unit is used for sending a task query instruction to the first service node at the rear end according to a preset time period if the task mark information is a first preset value until the task mark information is a second preset value; the second deployment unit is used for deploying the first target version package to the back-end first service node when the task mark information is a second preset value.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the apparatus further includes: the backup unit is used for carrying out backup processing on the original version packages on the front-end first service node and the rear-end first service node after the first target version package is deployed on the front-end first service node and the rear-end first service node, so as to obtain the original version package; the loading unit is used for loading the first target version package through the front-end first service node and the back-end first service node; and the first operation unit is used for executing online operation on the front-end first service node and the rear-end first service node after loading the first target version package, and providing target financial service to the outside through the front-end first service node and the rear-end first service node.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the apparatus further includes: and the second operation unit is used for executing offline operation on the front-end second service node and the rear-end second service node after the front-end first service node and the rear-end first service node provide the target financial service outwards, and deploying the first target version package to the front-end second service node and the rear-end second service node.
Optionally, in the financial service deployment apparatus provided in the embodiment of the present application, the apparatus further includes: the detection unit is used for detecting whether the front-end first service node and the rear-end first service node operate abnormally or not after the front-end first service node and the rear-end first service node provide the target financial service outwards; and the restoring unit is used for restoring the version packets corresponding to the front-end first service node and the back-end first service node to the original version packets if the abnormal phenomenon exists.
The deployment apparatus for financial services includes a processor and a memory, where the first acquisition unit 401, the first determination unit 402, the execution unit 403, the first deployment unit 404, and the like are stored as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the deployment of the target financial service is realized by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, on which a program is stored, which when executed by a processor, implements a method for deploying a financial service.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute a financial service deployment method.
As shown in fig. 5, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, the following steps are implemented: acquiring script parameters corresponding to a target financial service to be issued and a deployment flow of the target financial service to be issued; determining a service node group according to a target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node; executing offline operation on the front-end first service node and the rear-end first service node, and processing script parameters and deployment flows to obtain a first target version package corresponding to a target financial service to be issued, wherein the front-end second service node and the rear-end second service node are in an online state, and initial financial service is externally provided through the front-end second service node and the rear-end second service node; the first target version package is deployed to the front-end first service node and the back-end first service node.
Optionally, processing the script parameter and the deployment flow to obtain a first target version package corresponding to the target financial service to be published includes: compiling the script parameters to obtain compiled script parameters; and carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain a first target version package.
Optionally, after performing service construction and packaging according to the deployment flow and the compiled script parameters to obtain the first target version package, the method further includes: determining a storage catalog corresponding to a target financial service to be published and a plurality of version packages stored under the storage catalog; acquiring time stamp information of a plurality of version packages stored under a storage directory, and judging whether the storage time of the version packages exceeds preset time or not according to the time stamp information; and if the storage time of the second target version package exceeds the preset time, deleting the second target version package from the storage directory.
Optionally, deploying the first target version package to the front-end first service node and the back-end first service node includes: determining a service type of a target financial service to be published, wherein the service type is one of the following: front-end service and back-end service; if the service type of the target financial service to be issued is front-end service, deploying the first target version package to a front-end first service node; and if the service type of the target financial service to be issued is the back-end service, deploying the first target version package to the back-end first service node.
Optionally, if the service type of the target financial service to be published is a back-end service, deploying the first target version package to the back-end first service node includes: a task query instruction is sent to the first service node at the back end, task mark information returned by the first service node at the back end is received, and the task query instruction is used for querying whether the first service node at the back end has a task in process or not; if the task mark information is a first preset value, representing a task in the existing processing of the first service node at the back end; and if the task mark information is the second preset value, representing that the task in the processing of the first service node at the back end does not exist.
Optionally, if the task flag information is a first preset value, the method further includes: transmitting a task query instruction to the first service node at the rear end according to a preset time period until the task mark information is a second preset value; and when the task mark information is a second preset value, deploying the first target version package to the first service node at the back end.
Optionally, after deploying the first target version package to the front-end first service node and the back-end first service node, the method further comprises: performing backup processing on the original version packages on the front-end first service node and the back-end first service node to obtain the original version package; loading a first target version package through a front-end first service node and a back-end first service node; after the first target version package is loaded, the front-end first service node and the back-end first service node are subjected to online operation, and target financial services are provided to the outside through the front-end first service node and the back-end first service node.
Optionally, after the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the method further includes: and executing offline operation on the front-end second service node and the back-end second service node, and deploying the first target version package to the front-end second service node and the back-end second service node.
Optionally, after the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the method further includes: detecting whether the front-end first service node and the back-end first service node operate abnormally or not; if the abnormal phenomenon exists, the version packets corresponding to the front-end first service node and the back-end first service node are restored to the original version packets.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: acquiring script parameters corresponding to a target financial service to be issued and a deployment flow of the target financial service to be issued; determining a service node group according to a target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node; executing offline operation on the front-end first service node and the rear-end first service node, and processing script parameters and deployment flows to obtain a first target version package corresponding to a target financial service to be issued, wherein the front-end second service node and the rear-end second service node are in an online state, and initial financial service is externally provided through the front-end second service node and the rear-end second service node; the first target version package is deployed to the front-end first service node and the back-end first service node.
Optionally, processing the script parameter and the deployment flow to obtain a first target version package corresponding to the target financial service to be published includes: compiling the script parameters to obtain compiled script parameters; and carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain a first target version package.
Optionally, after performing service construction and packaging according to the deployment flow and the compiled script parameters to obtain the first target version package, the method further includes: determining a storage catalog corresponding to a target financial service to be published and a plurality of version packages stored under the storage catalog; acquiring time stamp information of a plurality of version packages stored under a storage directory, and judging whether the storage time of the version packages exceeds preset time or not according to the time stamp information; and if the storage time of the second target version package exceeds the preset time, deleting the second target version package from the storage directory.
Optionally, deploying the first target version package to the front-end first service node and the back-end first service node includes: determining a service type of a target financial service to be published, wherein the service type is one of the following: front-end service and back-end service; if the service type of the target financial service to be issued is front-end service, deploying the first target version package to a front-end first service node; and if the service type of the target financial service to be issued is the back-end service, deploying the first target version package to the back-end first service node.
Optionally, if the service type of the target financial service to be published is a back-end service, deploying the first target version package to the back-end first service node includes: a task query instruction is sent to the first service node at the back end, task mark information returned by the first service node at the back end is received, and the task query instruction is used for querying whether the first service node at the back end has a task in process or not; if the task mark information is a first preset value, representing a task in the existing processing of the first service node at the back end; and if the task mark information is the second preset value, representing that the task in the processing of the first service node at the back end does not exist.
Optionally, if the task flag information is a first preset value, the method further includes: transmitting a task query instruction to the first service node at the rear end according to a preset time period until the task mark information is a second preset value; and when the task mark information is a second preset value, deploying the first target version package to the first service node at the back end.
Optionally, after deploying the first target version package to the front-end first service node and the back-end first service node, the method further comprises: performing backup processing on the original version packages on the front-end first service node and the back-end first service node to obtain the original version package; loading a first target version package through a front-end first service node and a back-end first service node; after the first target version package is loaded, the front-end first service node and the back-end first service node are subjected to online operation, and target financial services are provided to the outside through the front-end first service node and the back-end first service node.
Optionally, after the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the method further includes: and executing offline operation on the front-end second service node and the back-end second service node, and deploying the first target version package to the front-end second service node and the back-end second service node.
Optionally, after the target financial service is provided to the outside through the front-end first service node and the back-end first service node, the method further includes: detecting whether the front-end first service node and the back-end first service node operate abnormally or not; if the abnormal phenomenon exists, the version packets corresponding to the front-end first service node and the back-end first service node are restored to the original version packets.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that 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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (12)

1. A method for deploying a financial service, comprising:
acquiring script parameters corresponding to a target financial service to be issued and a deployment flow of the target financial service to be issued;
determining a service node group according to the target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node;
executing offline operation on the front-end first service node and the back-end first service node, and processing the script parameters and the deployment flow to obtain a first target version package corresponding to the target financial service to be distributed, wherein the front-end second service node and the back-end second service node are in an online state, and provide initial financial service to the outside through the front-end second service node and the back-end second service node;
and deploying the first target version package to the front-end first service node and the back-end first service node.
2. The method of claim 1, wherein obtaining the first target version package corresponding to the target financial service to be distributed according to processing the script parameters and the deployment procedure comprises:
Compiling the script parameters to obtain compiled script parameters;
and carrying out service construction and packaging according to the deployment flow and the compiled script parameters to obtain the first target version package.
3. The method of claim 2, wherein after service construction and packaging according to the deployment procedure and the compiled script parameters, the method further comprises:
determining a storage catalog corresponding to the target financial service to be published and a plurality of version packages stored under the storage catalog;
acquiring the time stamp information of a plurality of version packages stored in the storage directory, and judging whether the storage time of the version packages exceeds the preset time according to the time stamp information;
and if the storage time of the second target version package exceeds the preset time, deleting the second target version package from the storage catalog.
4. The method of claim 1, wherein deploying the first target version package to the front-end first service node and the back-end first service node comprises:
determining a service type of the target financial service to be distributed, wherein the service type is one of the following: front-end service and back-end service;
If the service type of the target financial service to be distributed is the front-end service, deploying the first target version package to the front-end first service node;
and if the service type of the target financial service to be distributed is the back-end service, deploying the first target version package to the back-end first service node.
5. The method of claim 4, wherein deploying the first target version package to the back-end first service node if the service type of the target financial service to be published is the back-end service comprises:
a task query instruction is sent to the back-end first service node, and task mark information returned by the back-end first service node is received, wherein the task query instruction is used for querying whether the back-end first service node has a task in process or not;
if the task mark information is a first preset value, representing that the first service node at the back end has the task in the process;
and if the task mark information is a second preset value, the fact that the back-end first service node does not have the task in the process is represented.
6. The method of claim 5, wherein if the task flag information is the first preset value, the method further comprises:
Sending the task query instruction to the first service node at the back end according to a preset time period until the task mark information is the second preset value;
and when the task mark information is the second preset value, deploying the first target version package to the back-end first service node.
7. The method of claim 1, wherein after deploying the first target version package to the front-end first service node and the back-end first service node, the method further comprises:
performing backup processing on the original version package on the front-end first service node and the back-end first service node to obtain the original version package;
loading the first target version package through the front-end first service node and the back-end first service node;
after the first target version package is loaded, the front-end first service node and the back-end first service node are subjected to online operation, and the target financial service is provided to the outside through the front-end first service node and the back-end first service node.
8. The method of claim 7, wherein after providing the target financial service externally through the front-end first service node and the back-end first service node, the method further comprises:
And executing offline operation on the front-end second service node and the back-end second service node, and deploying the first target version package to the front-end second service node and the back-end second service node.
9. The method of claim 7, wherein after providing the target financial service externally through the front-end first service node and the back-end first service node, the method further comprises:
detecting whether the front-end first service node and the back-end first service node operate abnormally or not;
and if the abnormal phenomenon exists, restoring the version packets corresponding to the front-end first service node and the back-end first service node to the original version packets.
10. A financial service deployment apparatus, comprising:
the first acquisition unit is used for acquiring script parameters corresponding to the target financial service to be issued and the deployment flow of the target financial service to be issued;
the first determining unit is used for determining a service node group according to the target financial service to be issued, wherein the service node group comprises a front-end first service node and a rear-end first service node, and a front-end second service node and a rear-end second service node;
The execution unit is used for executing offline operation on the front-end first service node and the rear-end first service node, processing the script parameters and the deployment flow to obtain a first target version package corresponding to the target financial service to be distributed, wherein the front-end second service node and the rear-end second service node are in an online state, and providing initial financial service to the outside through the front-end second service node and the rear-end second service node;
and the first deployment unit is used for deploying the first target version package to the front-end first service node and the back-end first service node.
11. A processor for running a program, wherein the program when run performs the method of deploying a financial service according to any one of claims 1 to 9.
12. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of deploying financial services of any of claims 1-9.
CN202310262140.5A 2023-03-16 2023-03-16 Financial service deployment method and device, processor and electronic equipment Pending CN116360819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310262140.5A CN116360819A (en) 2023-03-16 2023-03-16 Financial service deployment method and device, processor and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310262140.5A CN116360819A (en) 2023-03-16 2023-03-16 Financial service deployment method and device, processor and electronic equipment

Publications (1)

Publication Number Publication Date
CN116360819A true CN116360819A (en) 2023-06-30

Family

ID=86934956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310262140.5A Pending CN116360819A (en) 2023-03-16 2023-03-16 Financial service deployment method and device, processor and electronic equipment

Country Status (1)

Country Link
CN (1) CN116360819A (en)

Similar Documents

Publication Publication Date Title
US11256539B2 (en) Task processing method, apparatus, and system based on distributed system
CN108399132B (en) Scheduling test method, device and storage medium
US10402302B1 (en) Reproduction of testing scenarios in a continuous integration environment
EP2893443B1 (en) Re-configuration in cloud computing environments
US9535754B1 (en) Dynamic provisioning of computing resources
CN111324522A (en) Automatic test system and method
US20160011864A1 (en) Development of Platform Independent Applications
CN112579099A (en) Code deployment method and device, storage medium and electronic equipment
CN111651352B (en) Warehouse code merging method and device
CN110865840B (en) Application management method, device, server and storage medium
CN116069341A (en) Automatic deployment method, equipment and storage medium for application program
CN113687858A (en) Configuration file checking method and device, electronic equipment and storage medium
CN109951326B (en) Data processing method, device, storage medium and processor
CN115168031A (en) Fog calculation system, method, electronic equipment and storage medium
CN113518002A (en) Monitoring method, device, equipment and storage medium based on server-free platform
CN114691445A (en) Cluster fault processing method and device, electronic equipment and readable storage medium
CN116360819A (en) Financial service deployment method and device, processor and electronic equipment
CN114895916A (en) Code deployment method, device, storage medium and electronic equipment
CN112328267A (en) Multi-server installation method and device, terminal and storage medium
CN112579145A (en) Application deployment method and device
CN111913720A (en) Program deployment method and device
CN111897565A (en) Data processing method, device and equipment based on Internet of things
CN111651189A (en) Product delivery method and device of continuous integration system and electronic equipment
CN115473799B (en) System and method for automatically deploying micro-service application of virtual machine
CN113269893B (en) VR rendering method and device

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