CN112688804A - Service platform deployment method, device, equipment and storage medium - Google Patents

Service platform deployment method, device, equipment and storage medium Download PDF

Info

Publication number
CN112688804A
CN112688804A CN202011500599.7A CN202011500599A CN112688804A CN 112688804 A CN112688804 A CN 112688804A CN 202011500599 A CN202011500599 A CN 202011500599A CN 112688804 A CN112688804 A CN 112688804A
Authority
CN
China
Prior art keywords
service platform
information
resource
file
deployment
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.)
Granted
Application number
CN202011500599.7A
Other languages
Chinese (zh)
Other versions
CN112688804B (en
Inventor
刁伟栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202011500599.7A priority Critical patent/CN112688804B/en
Publication of CN112688804A publication Critical patent/CN112688804A/en
Application granted granted Critical
Publication of CN112688804B publication Critical patent/CN112688804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of computers, and provides a service platform deployment method, a service platform deployment device, service platform deployment equipment and a storage medium, which are used for improving the efficiency of deploying a multi-service platform. The service platform deployment method comprises the following steps: acquiring a resource package, and copying the resource package to a preset directory, wherein the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package; acquiring link information based on each service platform, and extracting routing information of each service platform from the link information; acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file; and deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file.

Description

Service platform deployment method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for deploying a service platform.
Background
In the process of service project implementation, in order to improve the richness and adaptability of service products, a multi-service platform needs to be deployed according to different service scene requirements. At present, for the deployment of multiple service platforms, generally, a domain name corresponding to each service platform is applied to a server, and each service platform is deployed according to the domain name corresponding to each service platform.
However, due to the deployment mode of the multi-service platform, the following defects exist: the service platform access of only an administrator with authority causes higher access frequency, the service platform access of a user in need causes waste of domain names and server resources, the period of applying for the domain names is longer, and various configurations and deployments are needed to be configured according to the domain names, so that the efficiency of deploying the multi-service platform is lower.
Disclosure of Invention
The invention provides a service platform deployment method, a service platform deployment device, service platform deployment equipment and a storage medium, which are used for improving the efficiency of deploying a multi-service platform.
The first aspect of the present invention provides a method for deploying a service platform, including:
acquiring a resource package, and copying the resource package to a preset directory, wherein the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package;
acquiring link information based on each service platform, and extracting routing information of each service platform from the link information;
acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file;
and deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file.
Optionally, in a first implementation manner of the first aspect of the present invention, the obtaining a resource package and copying the resource package to a preset directory includes:
acquiring a resource packet, creating a copy task queue and a copy thread, and adding the resource packet to the copy task queue;
and extracting the resource packet from the copy task queue through the copy thread, and writing the resource packet into a preset directory.
Optionally, in a second implementation manner of the first aspect of the present invention, the obtaining link information based on each service platform, and extracting routing information of each service platform from the link information includes:
receiving initial link requests based on each service platform and sent by a webpage, and carrying out validity verification and security verification on the initial link requests to obtain target link requests passing verification;
and analyzing the target link request to obtain analysis information, and identifying the analysis information through a preset routing identifier to obtain routing information of each service platform.
Optionally, in a third implementation manner of the first aspect of the present invention, the deploying, according to the target configuration information and the routing information of each service platform, the project information of each service platform to a target server, and generating a deployed resource file includes:
acquiring domain name information of each service platform and server resources of a target server, creating a first mapping relation between routing information of each service platform and the domain name information and a second mapping relation between the routing information of each service platform and the server resources, and triggering a configuration code packing command;
and performing file configuration of a target server on the project information of each service platform based on the target configuration information, the first mapping relation and the second mapping relation through the configuration code packaging command, and generating a deployment resource file.
Optionally, in a fourth implementation manner of the first aspect of the present invention, after the deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployed resource file, the method further includes:
when a rendering request sent by a preset page is received, rendering the deployment resource file to the preset page based on the rendering request;
and calling a monitoring tool which is deployed in advance, and carrying out performance monitoring and early warning processing on the preset page.
Optionally, in a fifth implementation manner of the first aspect of the present invention, when a rendering request sent by a preset page is received, rendering the deployment resource file to the preset page based on the rendering request includes:
when a rendering request sent by a preset page is received, file path information corresponding to the rendering request is obtained;
and extracting the deployment resource file through the file path information, and loading the deployment resource file to a preset page for rendering.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the invoking a pre-deployed monitoring tool to perform performance monitoring and early warning processing on the preset page includes:
calling a monitoring tool and a monitoring pool which are deployed in advance, monitoring the performance and the operation of the preset page for a preset time period, and generating monitoring data;
analyzing and grading the monitoring data according to a preset evaluation index to obtain a performance quality score, and judging whether the performance quality score is smaller than a preset threshold value;
and if the performance quality score is smaller than a preset threshold value, generating a visual chart according to the performance quality score and the monitoring data corresponding to the performance quality score, and sending the visual chart to an early warning end.
A second aspect of the present invention provides a service platform deployment apparatus, including:
the system comprises a copying module, a judging module and a judging module, wherein the copying module is used for acquiring a resource package and copying the resource package to a preset directory, and the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package;
the extraction module is used for acquiring link information based on each service platform and extracting the routing information of each service platform from the link information;
the decompression module is used for acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file;
and the deployment module is used for deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file.
Optionally, in a first implementation manner of the second aspect of the present invention, the copy module is specifically configured to:
acquiring a resource packet, creating a copy task queue and a copy thread, and adding the resource packet to the copy task queue;
and extracting the resource packet from the copy task queue through the copy thread, and writing the resource packet into a preset directory.
Optionally, in a second implementation manner of the second aspect of the present invention, the extraction module is specifically configured to:
receiving initial link requests based on each service platform and sent by a webpage, and carrying out validity verification and security verification on the initial link requests to obtain target link requests passing verification;
and analyzing the target link request to obtain analysis information, and identifying the analysis information through a preset routing identifier to obtain routing information of each service platform.
Optionally, in a third implementation manner of the second aspect of the present invention, the deployment module is specifically configured to:
acquiring domain name information of each service platform and server resources of a target server, creating a first mapping relation between routing information of each service platform and the domain name information and a second mapping relation between the routing information of each service platform and the server resources, and triggering a configuration code packing command;
and performing file configuration of a target server on the project information of each service platform based on the target configuration information, the first mapping relation and the second mapping relation through the configuration code packaging command, and generating a deployment resource file.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the deployment apparatus of the service platform further includes:
the rendering module is used for rendering the deployment resource file to a preset page based on a rendering request when the rendering request sent by the preset page is received;
and the monitoring and early warning module is used for calling a pre-deployed monitoring tool and carrying out performance monitoring and early warning processing on the preset page.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the rendering module is specifically configured to:
when a rendering request sent by a preset page is received, file path information corresponding to the rendering request is obtained;
and extracting the deployment resource file through the file path information, and loading the deployment resource file to a preset page for rendering.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the monitoring and early-warning module is specifically configured to:
calling a monitoring tool and a monitoring pool which are deployed in advance, monitoring the performance and the operation of the preset page for a preset time period, and generating monitoring data;
analyzing and grading the monitoring data according to a preset evaluation index to obtain a performance quality score, and judging whether the performance quality score is smaller than a preset threshold value;
and if the performance quality score is smaller than a preset threshold value, generating a visual chart according to the performance quality score and the monitoring data corresponding to the performance quality score, and sending the visual chart to an early warning end.
A third aspect of the present invention provides a service platform deployment device, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor calls the instructions in the memory to cause the deployment device of the service platform to execute the service platform deployment method.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the deployment method of the service platform described above.
According to the technical scheme provided by the invention, a resource package is obtained and copied to a preset directory, wherein the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package; acquiring link information based on each service platform, and extracting routing information of each service platform from the link information; acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file; and deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file. In the embodiment of the invention, the resource packet is copied to the preset directory, the routing information of each service platform is extracted from the link information, the project information of each service platform is deployed to the target server according to the target configuration information and the routing information of each service platform, and the deployed resource file is generated, so that the problems of high access frequency, domain name and server resource waste and long period for applying for the domain name are solved, and the efficiency for deploying the multi-service platform is improved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a deployment method of a service platform in an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a deployment method of a service platform in an embodiment of the present invention;
FIG. 3 is a diagram of an embodiment of a device for deploying a service platform according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a deployment apparatus of a service platform in an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a deployment device of a service platform in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a service platform deployment method, a service platform deployment device, service platform deployment equipment and a storage medium, and improves the efficiency of deploying a multi-service platform.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, 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.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a method for deploying a service platform in the embodiment of the present invention includes:
101. and obtaining a resource package, and copying the resource package to a preset directory, wherein the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package.
It can be understood that the execution subject of the present invention may be a deployment device of a service platform, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a terminal as an execution subject.
The terminal obtains the resource package by uploading the resource package, and the terminal can retrieve the pre-created resource library according to the resource configuration type input by the preset interface to obtain the corresponding resource package, wherein the resource package can include the resource package of each service platform and/or the resource package of the target server, and the resource package includes a deployflow files, JS object notation (JSON) files, zip packages in a test environment data compression file format, and production environment zip packages. After the terminal obtains the resource package, the resource package can be generated into a staticized resource package to increase the access speed, reduce the load of the server, call a pre-edited deployment script, write the staticized resource package into a preset directory rel/directory, judge whether a corresponding zip compressed package exists, if so, judge that the copying is successful, if not, judge that the copying is failed, and copy again until the corresponding zip compressed package exists.
102. And acquiring link information based on each service platform, and extracting the routing information of each service platform from the link information.
A user inputs link information on a browser or a preset interface corresponding to each service platform, the browser or the preset interface corresponding to each service platform sends the link information to a terminal, the terminal analyzes the link information through a preset routing link library after receiving the link information to obtain analyzed routing information, the analyzed routing information is verified through a predefined routing regular expression to obtain routing information meeting the verification requirement, and a corresponding relation between the routing information meeting the verification requirement of each service platform and a corresponding target folder in a preset directory is created, so that the routing information of each service platform is obtained; or the terminal analyzes the link information to obtain analyzed link information, detects the analyzed link information through a preset route splicing rule to obtain the route information spliced on the link information, and establishes a corresponding relation between the route information spliced on the link information of each service platform and a corresponding target folder in a preset directory to obtain the route information of each service platform; or the terminal analyzes the link information to obtain analyzed link information, extracts spliced initial routing information from the link information, retrieves a preset routing information tree according to the initial routing information to check the initial routing information and supplement information to obtain target routing information, and creates a corresponding relation between each target routing information and a corresponding target folder in a preset directory, thereby obtaining the routing information of each service platform.
103. And acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file.
When the terminal obtains the routing information of each service platform, a decompression command is triggered, the terminal decompresses the resource packet according to the decompression command and decompresses the resource packet into a directory corresponding to the target server to obtain a decompressed file, for example: and the terminal decompresses the resource packet under the rel/directory to a specified target server nginx directory through a decompression command, and decompresses the resource packet of qedist. Acquiring an initial configuration file from a decompressed file, analyzing the initial configuration file to obtain initial configuration information, judging whether the initial configuration information is empty, if so, acquiring a backup configuration file, analyzing the backup configuration file to obtain target configuration information, and if not, determining the initial configuration information as the target configuration information.
104. And deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file.
The target server may be a high-performance HTTP and a reverse proxy web server Nginx, after obtaining target configuration information and routing information, the terminal obtains path information of a target folder corresponding to the routing information of each service platform in a preset directory, configures project information of each service platform into a file name and a file format that the target server Nginx conforms to, and puts the project information value of each service platform into a corresponding target position in the target server Nginx according to the path information, and generates a deployment resource file, where the deployment resource file includes at least one of an extensible markup language (XML) file, a high-level scripting language (JavaScript) file, a Cascading Style Sheet (CSS) file, and a class file of the target server Nginx.
It should be noted that, the target folders corresponding to each route in the preset directory are independent, and the target folders corresponding to each route in the preset directory are uniquely associated, and even if there are multiple target folders, resources corresponding to each route are independent and isolated, and will not affect or interfere with resources loaded on the current page, so that the deployment method and the execution process of the service platform can be used for configuration even if a new service platform needs to be added later.
In the embodiment of the invention, the resource packet is copied to the preset directory, the routing information of each service platform is extracted from the link information, the project information of each service platform is deployed to the target server according to the target configuration information and the routing information of each service platform, and the deployed resource file is generated, so that the problems of high access frequency, domain name and server resource waste and long period for applying for the domain name are solved, and the efficiency for deploying the multi-service platform is improved.
Referring to fig. 2, another embodiment of the deployment method of the service platform according to the embodiment of the present invention includes:
201. and obtaining a resource package, and copying the resource package to a preset directory, wherein the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package.
Specifically, the terminal acquires a resource packet, creates a copy task queue and a copy thread, and adds the resource packet to the copy task queue; and extracting the resource packet from the copy task queue through the copy thread, and writing the resource packet into a preset directory.
The terminal acquires a resource packet and a copy item, the copy item can be input by a user in a preset interface, the copy item can comprise the type, content and mode of copy, after the terminal acquires the resource packet, a copy task queue and a copy thread are created according to the resource packet and the copy item, wherein, the number of the resource packet comprises one or more than one, the copy task queue and the copy thread can comprise the copy priority of each resource packet and/or the sorting sequence in a preset directory, the resource packet is added to a buffer area of the task queue, the task queue can also comprise the buffer area and the copy area, when the terminal receives a triggered copy instruction, the resource packet in the buffer area is stored in the copy area of the copy task queue according to the copy priority of each resource packet in the copy task queue and/or the sorting sequence in the preset directory, and calling a copy thread, extracting the resource packet from the copy area of the task queue, and writing the extracted resource packet into a preset directory according to the copy priority and/or the sequencing order.
202. And acquiring link information based on each service platform, and extracting the routing information of each service platform from the link information.
Specifically, a terminal receives an initial link request based on each service platform sent by a webpage, and carries out validity verification and security verification on the initial link request to obtain a target link request passing verification; and analyzing the target link request to obtain analysis information, and identifying the analysis information through a preset routing identifier to obtain routing information of each service platform.
The method comprises the following steps that a user of each service platform inputs a link corresponding to each service platform in a browser, the link comprises an address link in a test environment and an address link in a production environment, the browser sends an initial link request based on each service platform to a terminal, the initial link request comprises address link information and routing information, and different service platforms correspond to different routing formats, for example: the routing format corresponding to the management service platform is/, the routing format corresponding to the employee welfare service platform is/suppler, the routing format corresponding to the employee service platform is/qe, and the routing format corresponding to the function page embedded in the personnel administration service platform through the iframe is/cz.
After receiving the initial connection request, the terminal carries out validity verification on the initial link request through a preset validity authentication protocol or a preset validity authentication command, if the validity verification of the initial link request passes, the terminal verifies the encryption condition and the encryption degree of the initial link request to realize security verification and obtain a target link request passing the verification, if the validity verification of the initial link request does not pass, the terminal returns a verification result failing the validity verification, and iterates to obtain, verify and verify the initial link request with the security to obtain a target link request passing the verification. The terminal analyzes the target link request to obtain analysis information, identifies the analysis information through a preset route identifier to obtain a target position corresponding to the route identifier in the analysis information, and extracts information behind the target position in the analysis information so as to obtain the route information of each service platform.
203. And acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file.
When the terminal obtains the routing information of each service platform, a decompression command is triggered, the terminal decompresses the resource packet according to the decompression command and decompresses the resource packet into a directory corresponding to the target server to obtain a decompressed file, for example: the target server can be a high-performance HTTP and a reverse proxy web server Nginx, the terminal decompresses the resource packet under rel/directory to a specified target server Nginx directory through a decompression command, and decompresses the resource packet of qedist. Acquiring an initial configuration file from a decompressed file, analyzing the initial configuration file to obtain initial configuration information, judging whether the initial configuration information is empty, if so, acquiring a backup configuration file, analyzing the backup configuration file to obtain target configuration information, and if not, determining the initial configuration information as the target configuration information.
204. And deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file.
Specifically, the terminal acquires domain name information of each service platform and server resources of a target server, creates a first mapping relation between routing information and the domain name information of each service platform and a second mapping relation between the routing information and the server resources of each service platform, and triggers a configuration code packing command; and carrying out file configuration of the target server on the project information of each service platform based on the target configuration information, the first mapping relation and the second mapping relation through a configuration code packaging command, and generating a deployment resource file.
Wherein, the target server can be a high-performance HTTP and a reverse proxy web server Nginx, the terminal can define the domain name information of each service platform through a domain name control panel, or generate the domain name information of each service platform through the target server Nginx, thereby obtaining the domain name information of each service platform, the terminal extracts the server resources in a resource library of the target server Nginx, and performs mutual mapping and resource relation binding with the domain name information by adding corresponding routing information to address links in a test environment and a production environment, namely respectively creating a first mapping relation between the routing information and the domain name information of each service platform and a second mapping relation between the routing information and the server resources of each service platform, the second mapping relation comprises an association relation and a connection relation, and triggering a configuration code packaging command, the configuration code packaging command comprises a server naming server _ name instruction, the server _ name instruction includes at least one of a regular expression form, a wildcard (—) form and an accurate domain name form, and names the server _ name instruction through the server, and names the file of the target server Nginx for the project information of each service platform based on the target configuration information, the first mapping relationship and the second mapping relationship, for example: taking a service platform as an insurance servlet management background as an example, the project information of the insurance servlet management background is named as dist-stg.zip and dist-prd.zip, at the same time, json files with the same name as the server resource are added under deploy _ desc, stg and prd names in the file are respectively set as the two zip file names, the destfilename name is set as apps/dist.zip, and when the project information of each service platform is subjected to the file configuration of the target server Nginx, a deployment resource file is generated.
205. When a rendering request sent by a preset page is received, rendering the deployment resource file to the preset page based on the rendering request.
Specifically, when a terminal receives a rendering request sent by a preset page, file path information corresponding to the rendering request is obtained; and extracting the deployment resource file through the file path information, and loading the deployment resource file to a preset page for rendering.
When a user requests a page to render a needed resource on a preset page, the preset page generates a rendering request and sends the rendering request to a terminal, the terminal receives the rendering request sent by the preset page and analyzes the rendering request to obtain a resource keyword, a path for deploying the resource file is searched according to the resource keyword and a preset search engine to obtain file path information, a js file and a css file are sequentially taken out through the file path information and loaded on the preset page, and the function from input link to page display is achieved.
206. And calling a monitoring tool which is deployed in advance, and carrying out performance monitoring and early warning processing on the preset page.
In order to better monitor the page performance of a preset page and measure the key quality index of the preset page, a WiseAPM cloud viewing tool of an intelligent end-to-end application performance monitoring system is deployed in advance, monitoring data provided by the cloud viewing tool include but are not limited to visit volume data PV, independent visitor data UV, page rendering time data, white screen time data, first screen time data, JS error rate data and the like, wherein the deployment of the WiseAPM cloud viewing tool is as follows: the method includes the steps that a corresponding project module is newly built on a cloud viewing tool, an agent.min.js file is automatically generated after the creation is successful, the file is copied into a code and placed under a dist folder, and the file is packaged and deployed on a target server along with other files, when a preset page is accessed by a user, the cloud viewing tool is called to display related monitoring data, the data of nearly half a year can be displayed, although a plurality of projects use the same domain name and the target server Nginx, the performances of the projects are not interfered with each other, the Apdex value is always kept above 99%, the first screen loading time is within 100ms, the page white screen time is below 1s, and the performance is good. The terminal carries out performance monitoring and early warning processing on the preset page by calling the cloud viewing tool which is deployed in advance, so that the use performance and efficiency of the multi-service platform after deployment are improved.
Specifically, the terminal calls a monitoring tool and a monitoring pool which are deployed in advance, monitors the performance and operation of a preset page for a preset time period, and generates monitoring data; analyzing and grading the monitoring data according to a preset evaluation index to obtain a performance quality score, and judging whether the performance quality score is smaller than a preset threshold value; and if the performance quality score is smaller than a preset threshold value, generating a visual chart according to the performance quality score and the monitoring data corresponding to the performance quality score, and sending the visual chart to the early warning end.
For example, the monitoring pool is used for indicating that performance data and operation data are abnormally monitored at preset time intervals, the terminal calls a monitoring tool and the monitoring pool which are deployed in advance, monitors the performance and the operation of a preset page at the preset time intervals to obtain monitoring data, the monitoring data comprise visit data (PV), independent visitor data (UV), page rendering time data, white screen time data, first screen time data, JS error rate data and the like, the monitoring data are analyzed and graded through preset evaluation indexes to obtain performance quality scores, the evaluation indexes are used for indicating quality indexes of the preset page and judging whether the performance quality scores are smaller than a preset threshold value, if yes, monitoring data corresponding to the performance quality scores and the performance quality scores are generated into a visual chart, and the visual chart is sent to an early warning end, and adjusting the deployment strategy and the execution process of the preset page and each service platform through the early warning end, and if not, continuously monitoring the performance and the operation of the preset page for a preset time period.
In the embodiment of the invention, the resource package is copied to the preset directory, the routing information of each service platform is extracted from the link information, the project information of each service platform is deployed to the target server according to the target configuration information and the routing information of each service platform, and the deployed resource file is generated, so that the problems of high access frequency, waste of domain names and server resources and long period for applying the domain names are solved, the efficiency of deploying the multi-service platform is improved, and the performance monitoring and early warning processing is performed on the preset page by calling the monitoring tool which is deployed in advance, so that the use performance and the efficiency of the multi-service platform after being deployed are improved.
In the above description of the deployment method of the service platform in the embodiment of the present invention, referring to fig. 3, a deployment apparatus of the service platform in the embodiment of the present invention is described below, where an embodiment of the deployment apparatus of the service platform in the embodiment of the present invention includes:
the copying module 301 is configured to obtain a resource package, and copy the resource package to a preset directory, where the resource package includes a JS object numbered musical notation file, a test environment package, and a production environment package;
an extracting module 302, configured to obtain link information based on each service platform, and extract routing information of each service platform from the link information;
the decompression module 303 is configured to obtain a decompression command, decompress the resource packet through the decompression command, obtain a decompressed file, and extract target configuration information from the decompressed file;
and the deployment module 304 is configured to deploy the project information of each service platform to the target server according to the target configuration information and the routing information of each service platform, and generate a deployment resource file.
The function implementation of each module in the deployment apparatus of the service platform corresponds to each step in the deployment method embodiment of the service platform, and the function and implementation process thereof are not described in detail herein.
In the embodiment of the invention, the resource packet is copied to the preset directory, the routing information of each service platform is extracted from the link information, the project information of each service platform is deployed to the target server according to the target configuration information and the routing information of each service platform, and the deployed resource file is generated, so that the problems of high access frequency, domain name and server resource waste and long period for applying for the domain name are solved, and the efficiency for deploying the multi-service platform is improved.
Referring to fig. 4, another embodiment of a deployment apparatus of a service platform according to an embodiment of the present invention includes:
the copying module 301 is configured to obtain a resource package, and copy the resource package to a preset directory, where the resource package includes a JS object numbered musical notation file, a test environment package, and a production environment package;
an extracting module 302, configured to obtain link information based on each service platform, and extract routing information of each service platform from the link information;
the decompression module 303 is configured to obtain a decompression command, decompress the resource packet through the decompression command, obtain a decompressed file, and extract target configuration information from the decompressed file;
the deployment module 304 is configured to deploy the project information of each service platform to the target server according to the target configuration information and the routing information of each service platform, and generate a deployment resource file;
the rendering module 305 is configured to, when a rendering request sent by a preset page is received, render the deployment resource file to the preset page based on the rendering request;
and the monitoring and early warning module 306 is used for calling a pre-deployed monitoring tool and carrying out performance monitoring and early warning processing on the preset page.
Optionally, the copy module 301 may be further specifically configured to:
acquiring a resource packet, creating a copy task queue and a copy thread, and adding the resource packet to the copy task queue;
and extracting the resource packet from the copy task queue through the copy thread, and writing the resource packet into a preset directory.
Optionally, the extracting module 302 may be further specifically configured to:
receiving initial link requests based on each service platform and sent by a webpage, and performing validity verification and security verification on the initial link requests to obtain target link requests passing the verification;
and analyzing the target link request to obtain analysis information, and identifying the analysis information through a preset routing identifier to obtain routing information of each service platform.
Optionally, the deployment module 304 may be further specifically configured to:
acquiring domain name information of each service platform and server resources of a target server, creating a first mapping relation between routing information and the domain name information of each service platform and a second mapping relation between the routing information and the server resources of each service platform, and triggering a configuration code packing command;
and carrying out file configuration of the target server on the project information of each service platform based on the target configuration information, the first mapping relation and the second mapping relation through a configuration code packaging command, and generating a deployment resource file.
Optionally, the rendering module 305 may be further specifically configured to:
when a rendering request sent by a preset page is received, file path information corresponding to the rendering request is obtained;
and extracting the deployment resource file through the file path information, and loading the deployment resource file to a preset page for rendering.
Optionally, the monitoring and early warning module 306 may be further specifically configured to:
calling a monitoring tool and a monitoring pool which are deployed in advance, monitoring the performance and the operation of a preset page for a preset time period, and generating monitoring data;
analyzing and grading the monitoring data according to a preset evaluation index to obtain a performance quality score, and judging whether the performance quality score is smaller than a preset threshold value;
and if the performance quality score is smaller than a preset threshold value, generating a visual chart according to the performance quality score and the monitoring data corresponding to the performance quality score, and sending the visual chart to the early warning end.
The implementation of the functions of each module and each unit in the deployment apparatus of the service platform corresponds to each step in the deployment method embodiment of the service platform, and the functions and implementation processes thereof are not described in detail herein.
In the embodiment of the invention, the resource package is copied to the preset directory, the routing information of each service platform is extracted from the link information, the project information of each service platform is deployed to the target server according to the target configuration information and the routing information of each service platform, and the deployed resource file is generated, so that the problems of high access frequency, waste of domain names and server resources and long period for applying the domain names are solved, the efficiency of deploying the multi-service platform is improved, and the performance monitoring and early warning processing is performed on the preset page by calling the monitoring tool which is deployed in advance, so that the use performance and the efficiency of the multi-service platform after being deployed are improved.
Fig. 3 and fig. 4 describe in detail the deployment apparatus of the service platform in the embodiment of the present invention from the perspective of the modular functional entity, and in the following, describe in detail the deployment device of the service platform in the embodiment of the present invention from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a deployment apparatus of a service platform according to an embodiment of the present invention, where the deployment apparatus 500 of the service platform may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the deployment device 500 of the service platform. Further, processor 510 may be configured to communicate with storage medium 530 to execute a series of instruction operations in storage medium 530 on deployment device 500 of the service platform.
The service platform deployment device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the deployment device architecture of the service platform shown in fig. 5 does not constitute a limitation on the deployment devices of the service platform, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the deployment method of a service platform.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A service platform deployment method is characterized in that the service platform deployment method comprises the following steps:
acquiring a resource package, and copying the resource package to a preset directory, wherein the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package;
acquiring link information based on each service platform, and extracting routing information of each service platform from the link information;
acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file;
and deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file.
2. The service platform deployment method according to claim 1, wherein the obtaining the resource package and copying the resource package to a preset directory comprises:
acquiring a resource packet, creating a copy task queue and a copy thread, and adding the resource packet to the copy task queue;
and extracting the resource packet from the copy task queue through the copy thread, and writing the resource packet into a preset directory.
3. The service platform deployment method according to claim 1, wherein the obtaining of the link information based on each service platform and the extracting of the routing information of each service platform from the link information includes:
receiving initial link requests based on each service platform and sent by a webpage, and carrying out validity verification and security verification on the initial link requests to obtain target link requests passing verification;
and analyzing the target link request to obtain analysis information, and identifying the analysis information through a preset routing identifier to obtain routing information of each service platform.
4. The service platform deployment method according to claim 1, wherein the deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployed resource file comprises:
acquiring domain name information of each service platform and server resources of a target server, creating a first mapping relation between routing information of each service platform and the domain name information and a second mapping relation between the routing information of each service platform and the server resources, and triggering a configuration code packing command;
and performing file configuration of a target server on the project information of each service platform based on the target configuration information, the first mapping relation and the second mapping relation through the configuration code packaging command, and generating a deployment resource file.
5. The service platform deployment method according to any one of claims 1 to 4, wherein after the deploying the project information of each service platform to the target server according to the target configuration information and the routing information of each service platform and generating the deployment resource file, further comprises:
when a rendering request sent by a preset page is received, rendering the deployment resource file to the preset page based on the rendering request;
and calling a monitoring tool which is deployed in advance, and carrying out performance monitoring and early warning processing on the preset page.
6. The service platform deployment method according to claim 5, wherein when a rendering request sent by a preset page is received, rendering the deployment resource file to the preset page based on the rendering request includes:
when a rendering request sent by a preset page is received, file path information corresponding to the rendering request is obtained;
and extracting the deployment resource file through the file path information, and loading the deployment resource file to a preset page for rendering.
7. The service platform deployment method according to claim 5, wherein the invoking of the pre-deployed monitoring tool to perform performance monitoring and early warning processing on the preset page comprises:
calling a monitoring tool and a monitoring pool which are deployed in advance, monitoring the performance and the operation of the preset page for a preset time period, and generating monitoring data;
analyzing and grading the monitoring data according to a preset evaluation index to obtain a performance quality score, and judging whether the performance quality score is smaller than a preset threshold value;
and if the performance quality score is smaller than a preset threshold value, generating a visual chart according to the performance quality score and the monitoring data corresponding to the performance quality score, and sending the visual chart to an early warning end.
8. A deployment device of a service platform is characterized in that the deployment device of the service platform comprises:
the system comprises a copying module, a judging module and a judging module, wherein the copying module is used for acquiring a resource package and copying the resource package to a preset directory, and the resource package comprises a JS object numbered musical notation file, a test environment package and a production environment package;
the extraction module is used for acquiring link information based on each service platform and extracting the routing information of each service platform from the link information;
the decompression module is used for acquiring a decompression command, decompressing the resource packet through the decompression command to obtain a decompressed file, and extracting target configuration information from the decompressed file;
and the deployment module is used for deploying the project information of each service platform to a target server according to the target configuration information and the routing information of each service platform, and generating a deployment resource file.
9. A service platform deployment device, the service platform deployment device comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invokes the instructions in the memory to cause a deployment device of the service platform to perform the service platform deployment method of any one of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement a method for deploying a service platform according to any of claims 1 to 7.
CN202011500599.7A 2020-12-18 2020-12-18 Service platform deployment method, device, equipment and storage medium Active CN112688804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011500599.7A CN112688804B (en) 2020-12-18 2020-12-18 Service platform deployment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011500599.7A CN112688804B (en) 2020-12-18 2020-12-18 Service platform deployment method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112688804A true CN112688804A (en) 2021-04-20
CN112688804B CN112688804B (en) 2023-09-19

Family

ID=75449061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011500599.7A Active CN112688804B (en) 2020-12-18 2020-12-18 Service platform deployment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112688804B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127373A (en) * 2021-05-18 2021-07-16 爱驰汽车有限公司 Visual point burying method, system, device, equipment and storage medium
CN113590169A (en) * 2021-09-30 2021-11-02 武汉四通信息服务有限公司 Application deployment method, application deployment system, and computer-readable storage medium
CN115297096A (en) * 2022-06-28 2022-11-04 青岛海尔科技有限公司 Resource package deployment method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725909A (en) * 2018-05-07 2019-05-07 中国平安人寿保险股份有限公司 Code file is packaged dispositions method, continuous integrating server and system
CN110109680A (en) * 2019-05-14 2019-08-09 重庆商勤科技有限公司 Using dispositions method, device and apply dissemination method, server, storage medium
WO2019232828A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Script deployment method and apparatus, and computer device and storage medium
CN110708368A (en) * 2019-09-25 2020-01-17 北京计算机技术及应用研究所 Micro front-end system and method based on routing distribution
CN111443921A (en) * 2020-03-27 2020-07-24 中国平安财产保险股份有限公司 Method, system and computer equipment for subpackage deployment of web front-end projects
CN111949899A (en) * 2019-05-16 2020-11-17 新奥数能科技有限公司 Service integration method and service platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725909A (en) * 2018-05-07 2019-05-07 中国平安人寿保险股份有限公司 Code file is packaged dispositions method, continuous integrating server and system
WO2019232828A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Script deployment method and apparatus, and computer device and storage medium
CN110109680A (en) * 2019-05-14 2019-08-09 重庆商勤科技有限公司 Using dispositions method, device and apply dissemination method, server, storage medium
CN111949899A (en) * 2019-05-16 2020-11-17 新奥数能科技有限公司 Service integration method and service platform
CN110708368A (en) * 2019-09-25 2020-01-17 北京计算机技术及应用研究所 Micro front-end system and method based on routing distribution
CN111443921A (en) * 2020-03-27 2020-07-24 中国平安财产保险股份有限公司 Method, system and computer equipment for subpackage deployment of web front-end projects

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127373A (en) * 2021-05-18 2021-07-16 爱驰汽车有限公司 Visual point burying method, system, device, equipment and storage medium
CN113590169A (en) * 2021-09-30 2021-11-02 武汉四通信息服务有限公司 Application deployment method, application deployment system, and computer-readable storage medium
CN115297096A (en) * 2022-06-28 2022-11-04 青岛海尔科技有限公司 Resource package deployment method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN112688804B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN112688804A (en) Service platform deployment method, device, equipment and storage medium
US10618137B2 (en) Automated constructing method of cloud manufacturing service and cloud manufacturing system
US10621211B2 (en) Language tag management on international data storage
US9898269B2 (en) Build deployment automation for information technology mangement
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
CN109918079B (en) Rule updating method and device of rule engine system and computer equipment
KR102044046B1 (en) Telemetry file hash and conflict detection
CN111221570B (en) Migration method, device and equipment of microservice framework and storage medium
US10922213B2 (en) Embedded quality indication data for version control systems
CN112613041A (en) Container mirror image detection method and device, electronic equipment and storage medium
US20130111018A1 (en) Passive monitoring of virtual systems using agent-less, offline indexing
CN111680253A (en) Page application data packet generation method and device, computer equipment and storage medium
CN110286917A (en) File packing method, device, equipment and storage medium
CN107147645B (en) Method and device for acquiring network security data
US20130283140A1 (en) Snapshot generation for search results page preview
JP2008046776A (en) Web content transfer method, computer, and program
CN112860645A (en) Processing method and device for offline compressed file, computer equipment and medium
CN106202083A (en) Resource packaging system, method and device for web page
CN111651347A (en) Jump verification method, device, equipment and storage medium of test system
CN111078553B (en) Data development task testing method and device, computer equipment and storage medium
CN117693734A (en) Front-end item processing method, device, equipment, management system and storage medium
CN113268245A (en) Code analysis method, device and storage medium
CN112256577A (en) Configuration file difference checking method, device, equipment and storage medium
CN111597422A (en) Buried point mapping method and device, computer equipment and storage medium
CN111695075A (en) Website CMS (content management system) identification method and security vulnerability detection 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
GR01 Patent grant
GR01 Patent grant