CN111381832B - Automatic deployment control method and device, computer equipment and storage medium - Google Patents

Automatic deployment control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111381832B
CN111381832B CN201811644119.7A CN201811644119A CN111381832B CN 111381832 B CN111381832 B CN 111381832B CN 201811644119 A CN201811644119 A CN 201811644119A CN 111381832 B CN111381832 B CN 111381832B
Authority
CN
China
Prior art keywords
deployment
address information
service process
information
deployment service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811644119.7A
Other languages
Chinese (zh)
Other versions
CN111381832A (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.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201811644119.7A priority Critical patent/CN111381832B/en
Publication of CN111381832A publication Critical patent/CN111381832A/en
Application granted granted Critical
Publication of CN111381832B publication Critical patent/CN111381832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an automatic deployment control method, an automatic deployment control device, computer equipment and a storage medium, which comprise the following steps: acquiring a deployment request sent by a user terminal, wherein the deployment request comprises area address information of an area where the user terminal is located; comparing the regional address information with preset local address information; and when the distance between the regional address information and the local address information is greater than a preset distance threshold, broadcasting the regional address information on a chain so that a target deployment service process matched with the regional address information responds to the deployment request. According to the embodiment of the invention, when the distance between the regional address information and the local address information of the user side is greater than the preset distance threshold, the regional address information is broadcasted, so that the target deployment service process is matched to respond to the deployment request, and the global release is converted into regional release due to the fact that the target deployment service process and the user side are in the same region, so that the release delay can be effectively reduced.

Description

Automatic deployment control method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of program development, in particular to an automatic deployment control method, an automatic deployment control device, computer equipment and a storage medium.
Background
With the development of internet technology and business, globalization development relates to aspects of life and work, such as application programs developed by companies, the application programs need to be deployed globally along with globalization strategy of the companies, but with more and more system development distributed processes, the number of processes of the application programs is increased, often, background processes of an application program are hundreds or thousands, so that in the globalization deployment process, requirements on hardware and software are high, for example, the requirements are influenced by global network quality, the network quality of each region of the world is different, and all deployment schemes are different.
At present, for the global deployment scheme, two schemes mainly exist, one scheme is to establish an optical fiber private line between IDC machine rooms in each place, the implementation mode of the scheme is simple, but the special establishment of the optical fiber private line causes the problem of high cost, and the second scheme is to store tasks into a message queue, execute service consumption by the tasks in each place and execute release tasks, but the scheme needs to maintain a message middleware to ensure network communication between the task execution service and the message middleware, relies on the functional reliability of the message middleware, has higher requirement on network quality and has high failure rate.
Disclosure of Invention
The embodiment of the invention provides an automatic deployment control method, an automatic deployment control device, computer equipment and a storage medium for realizing global efficient release by carrying out file deployment according to regions.
In order to solve the technical problems, the embodiment of the invention adopts the following technical scheme: an automatic deployment control method is provided, which comprises the following steps:
acquiring a deployment request sent by a user side, wherein the deployment request comprises area address information of an area where the user side is located;
comparing the regional address information with preset local address information;
and when the distance between the regional address information and the local address information is greater than a preset distance threshold, broadcasting the regional address information on a chain so that a target deployment service process matched with the regional address information responds to the deployment request.
Optionally, before the step of obtaining the deployment request sent by the user side, the method further includes the following steps:
dividing the global scope into a plurality of large areas according to a preset dividing rule to generate large area region distribution information;
and sequentially deploying at least one deployment service process in the plurality of large areas according to the large area distribution information.
Optionally, after the step of sequentially deploying at least one deployment service process in the plurality of large areas according to the large area distribution information, the method further includes the following steps:
acquiring process IP address information of the deployment service process;
registering service information of the deployment service process in a distributed system according to the process IP address information, wherein the service information comprises process IP address information, monitoring port information and area information of the deployment service process.
Optionally, after the step of registering the service information of the deployment service process in the distributed system according to the process IP address information, the method further includes the following steps:
synchronizing a preset deployment data packet to tasks to be executed in the file caching agents of the multiple large areas through thread establishment;
detecting whether an operation task with higher priority than the task to be executed exists in a task queue after the task to be executed;
when the task queue has an operation task with higher priority than the task to be executed, the operation task is executed preferentially until the operation task is executed, and the task to be executed is executed in a callback mode.
Optionally, when the distance between the area address information and the local address information is greater than a preset distance threshold, the step of broadcasting the area address information on a chain so that the deployment service process matched with the area address information responds to the deployment request includes the following steps:
initiating remote procedure call to each deployment service process according to the region address information;
acquiring address information returned by each deployment service process in response to the remote procedure call;
and selecting a deployment service process of the same area with the user side from the deployment service processes according to the address information as the target deployment service process.
Optionally, after the step of broadcasting the area address information on a chain when the distance between the area address information and the local address information is greater than a preset distance threshold, the method further includes the following steps:
acquiring an identifier sent by the user side, wherein the identifier is a working identifier returned to the user side by the target deployment service process accepting the remote procedure call;
And sending the identifier to the target deployment service process so that the target deployment service process can timely send the deployment data packet in the file caching agent to the release real-time state of the user terminal and return the release real-time state to the user terminal.
Optionally, after the step of sending the identifier to the target deployment service process to enable the target deployment service process to send the deployment data packet in the file caching agent to the user side in a timing manner and return the release real-time state of the user side to the user side, the method further includes the following steps:
acquiring equipment checking information generated by equipment checking after the user side runs the deployment data packet;
analyzing the equipment detection information according to a preset analysis rule to obtain the running condition information of the user side.
In order to solve the above technical problem, an embodiment of the present invention further provides an automatic deployment control device, including:
the first acquisition module is used for acquiring a deployment request sent by a user terminal, wherein the deployment request comprises area address information of an area where the user terminal is located;
the first processing module is used for comparing the regional address information with preset local address information;
And the first execution module is used for broadcasting the regional address information on a chain when the distance between the regional address information and the local address information is larger than a preset distance threshold value, so that a target deployment service process matched with the regional address information responds to the deployment request.
In order to solve the above technical problem, an embodiment of the present invention further provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the processor is caused to execute the steps of the automatic deployment control method.
To solve the above technical problem, an embodiment of the present invention further provides a storage medium storing computer readable instructions, where the computer readable instructions when executed by one or more processors cause the one or more processors to execute the steps of the automatic deployment control method described above.
The embodiment of the invention has the beneficial effects that: the deployment request sent by the user terminal is acquired and comprises the regional address information of the region where the user terminal is located, then the regional address information is compared with the local address information according to the regional address information, when the distance between the regional address information and the local address information is larger than a preset distance threshold value, the regional address information is broadcasted, so that the target deployment service process of the regional address information is matched with the target deployment service process to respond to the deployment request, and because the target deployment service process and the user terminal are in the same region, global release is converted into regional release, the requirement on network quality between the target deployment service process and the user terminal can be effectively reduced, release delay is reduced, and the functional reliability of message middleware is not required to be relied on, so that the method is high in practicability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a basic flow of an automated deployment control method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating the area division according to the embodiment of the present application;
FIG. 3 is a flowchart illustrating a process for registering a deployment service according to an embodiment of the present application;
FIG. 4 is a flow chart of an embodiment of the application for asynchronously transmitting data packets;
FIG. 5 is a flowchart illustrating a process for determining a target deployment service according to an embodiment of the present application;
FIG. 6 is a flow chart of responding to a deployment request according to an embodiment of the present application;
fig. 7 is a flow chart illustrating a method for detecting an operation status of a user terminal according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a basic structure of an automatic deployment control device according to an embodiment of the present application;
fig. 9 is a basic structural block diagram of a computer device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, a "terminal" as used herein includes both devices of a wireless signal receiver that have only wireless signal receivers without transmitting capabilities and devices of receiving and transmitting hardware that have devices capable of performing two-way communications over a two-way communications link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; a PCS (Personal Communications Service, personal communication system) that may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant ) that can include a radio frequency receiver, pager, internet/intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System ) receiver; a conventional laptop and/or palmtop computer or other appliance that has and/or includes a radio frequency receiver. As used herein, a "terminal" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, to operate at any other location(s) on earth and/or in space. The "terminal" used herein may also be a communication terminal, a network access terminal, a music/video playing terminal, for example, a PDA, a MID (Mobile Internet Device ) and/or a mobile phone with music/video playing function, and may also be a smart tv, a set-top box, etc.
Example 1
Referring specifically to fig. 1, fig. 1 is a schematic flow chart of an automatic deployment control method according to the present embodiment.
As shown in fig. 1, an automated deployment control method includes the following steps:
s1100, acquiring a deployment request sent by a user terminal, wherein the deployment request comprises area address information of an area where the user terminal is located;
in the development process of software, the upgrading or patching of an application program is often involved, the global strategy of an enterprise enables the application program to be deployed globally, when a deployment request sent by a user side is received, a system returns a resource package of the application program to the user side according to the deployment request, the deployment request is a network request of the preset application program resource package such as upgrading or patching in the user side, because a service point (a position where a server is located) is far away from the position where the user side is located, for example, the service point is located in asia, the user side is located in europe, the system sends the resource package to the user side, and the situation that high delay or even failure occurs depends on network quality can occur, at this moment, the area address information of the area where the user side is located can be obtained according to the deployment request sent by the user side, so that the position information of the user side is determined, and when the deployment request is implemented, the area address information of the area where the user side is located is carried by the IP address determination, and after the system receives the deployment request sent by the user side, the IP address of the user side is obtained, so that the area address information of the user side is determined.
In another embodiment, the area address information of the area where the user end is located may also be obtained through the TCP connection of the deployment request, where TCP (Transmission Control Protocol ) is a connection-oriented, reliable, byte stream based transport layer communication protocol. Taking the application of the invention in a distributed system as an example, the distributed system is respectively provided with corresponding deployment service processes (service points) in different areas, when one of the service points receives a deployment request sent by a user terminal, the area address information of the area where the user terminal is located can be known through TCP connection of HTTP, wherein HTTP (HyperText Transfer Protocol ) is an Internet network protocol.
S1200, comparing the regional address information with preset local address information;
after the regional address information of the region where the user terminal is located is acquired, the system compares the regional address with the local address information newly so as to determine the distance between the user terminal and the service point, and when the regional address information is implemented, the local address information refers to the position information of a server in the distributed system, and when the server is located in France for example, and receives a deployment request sent by the user terminal, the server compares the regional address information representing the Shenzhen region in Asia with the local address information representing France through the deployment request or the region where the user terminal is located is Shenzhen region in Asia.
And S1300, when the distance between the regional address information and the local address information is greater than a preset distance threshold, broadcasting the regional address information on a chain so that a target deployment service process matched with the regional address information responds to the deployment request.
When the distance between the area represented by the area address information and the area represented by the local address information is greater than a preset distance threshold, wherein the distance threshold is a comparison value preset in the system, which indicates that the server receiving the deployment request and the user terminal are not in the same area, in implementation, the area is divided by the system, for example, by dividing the world into asia areas, european areas, africa areas, south america areas, north america areas and the like according to continental plates, the different areas are correspondingly provided with deployment service processes and the deployment service processes belong to the same distributed system, when the distance between the server receiving the deployment request sent by the user terminal and the user terminal is greater than the preset distance threshold, the area address information is broadcasted in a chain, which means that the server receiving the deployment request is broadcasted in the distributed system, so that all the deployment service processes in the distributed system can accept the area address information of the area where the user terminal is located, and the target deployment service processes corresponding to the area address information in the distributed system respond to the deployment request even if the server responds to the deployment request of the user terminal in the same area.
In one embodiment, taking the example of a system that divides the world into sub-European, pacific, american, african, indian and Antarctic blocks, the distributed system is provided with deployment service processes at each block, such as: the deployment service process registers service information to the condu, including an IP address, a monitoring port and the area information, the condu is an open source tool pushed by HashiCorp company, and is used for realizing service discovery and configuration of a distributed system, when a user terminal of the sub-European plate initiates a deployment request, the deployment service process receiving the deployment request is located in an Indian ocean plate, the user terminal and the deployment service process are located in two different areas, at this time, the deployment service process broadcasts the area address information of the user terminal, acquires the IP address, the monitoring port and the area information of the area of the deployment service process from the condu, acquires the area address information of the area of the user terminal from a CMDB (Configuration Management Database) and configures a management database, then uses the deployment service process located in the sub-European plate as a target deployment service process, and the target deployment service process responds to the deployment request of the user terminal, and when implementing, the deployment service process is provided with a file caching agent, namely the file caching agent is arranged in a server of each area, and the resource package of an application program is synchronized to the file caching agent of each area, and the resource package of the application program is distributed to the same area as the global caching area through the CMDB (Configuration Management Database).
According to the method, the device and the system, the deployment request sent by the user side is acquired and comprises the regional address information of the region where the user side is located, then the regional address information is compared with the local address information according to the regional address information, when the distance between the regional address information and the local address information is larger than the preset distance threshold value, the regional address information is broadcasted, and accordingly the target deployment service process of the regional address information is matched to respond to the deployment request.
In an alternative embodiment, referring to fig. 2, fig. 2 is a schematic flow chart of the area division according to an embodiment of the present invention.
As shown in fig. 2, before step S1100, the following steps are further included:
s1010, dividing the global scope into a plurality of large areas according to a preset dividing rule to generate large area distribution information;
before the deployment service process is allocated to the user side, different areas can be further divided, so that the global scope is divided into a plurality of large areas, the system divides the global scope according to preset division rules to obtain a plurality of (e.g. 5, 7 or 10) large areas and large area distribution information corresponding to the large areas, the division rules are preset tools for dividing the global scope into a plurality of large areas, when the division rules are implemented, a continental plate division mode, cultural area division or time zone large area division (e.g. uniformly dividing the global scope into 8 time zone large areas) and the like can be adopted, and it is pointed out that the division rules are not limited to the division mode, other division modes can be designed according to different application scenarios, for example, in the national scope, the division rules can be divided into different areas according to different provinces or state counties.
S1020, sequentially deploying at least one deployment service process in the plurality of large areas according to the large area distribution information.
After dividing the global scope into a plurality of large areas, a plurality of (for example, 2, 3 or 5) deployment service processes are deployed in the large areas according to the area distribution information of the large areas, of course, each large area can be provided with only one deployment service process, when the deployment service process and the user terminal are in the same large area, for example, the user terminal is in Asian area, a server receiving a deployment request sent by the user terminal is also in Asian area, the distance between the server and the user terminal is smaller than a preset distance threshold, the server can respond to the deployment request of the user terminal without broadcasting the area address information of the user terminal in a chain, and when a plurality of deployment service processes are in one large area, the address where the deployment service processes are located is compared with the address where the user terminal is located, and one deployment service process closest to the user terminal is selected to respond to the deployment request of the user terminal. In one embodiment, the other deployment service processes in the distributed system will also broadcast on-chain when the distance between the other deployment service processes and the user side is greater than the distance threshold, and when the target deployment service process responds to the deployment request, the target deployment service process broadcasts to inform the other deployment service processes to stop broadcasting.
In another alternative embodiment, referring to fig. 3, fig. 3 is a schematic diagram of the basic flow of a registration deployment service process according to one embodiment of the present invention.
As shown in fig. 3, after step S1020, the following steps are further included:
s1030, acquiring process IP address information of the deployment service process;
after deployment of a deployment service process (deployment service) to each of the communities, service information of the deployment service process needs to be registered, and process IP address information of the deployment service process is obtained, where the process IP address information refers to an IP address of the deployment service process.
S1040, registering service information of the deployment service process in a distributed system according to the process IP address information, wherein the service information comprises process IP address information, monitoring port information and area information of the deployment service process.
After the process IP address information of the deployment service process is acquired, the service information of the deployment service process is registered in the distributed system according to the process IP address information, for example, the deployment service process registers the service information to the condul, namely, the deployment service processes of different areas register own service information to the condul, wherein the service information comprises the IP address, the monitoring port and the area where the deployment service process is located, so that the position information of the area where the deployment service process is located is convenient to acquire.
In an alternative embodiment, referring to fig. 4, fig. 4 is a schematic diagram illustrating a basic flow of an asynchronous transmission packet according to an embodiment of the present invention.
As shown in fig. 4, after step 1040, the following steps are further included:
s1050, synchronizing a preset deployment data packet to tasks to be executed in the file cache agents of the plurality of large areas through thread establishment;
a thread is a single sequential control flow in an application. A relatively independent and schedulable execution unit is arranged in the process, and is a scheduling unit for scheduling and dispatching the program when the basic unit instruction of the CPU runs independently by the system. Running multiple threads simultaneously in a single application accomplishes different tasks, known as multithreading. And synchronizing the preset deployment data package to the task to be executed in the file caching agents of the plurality of large areas by establishing the operation of synchronizing the deployment data package to the file caching agents and the other operation of the application program are carried out asynchronously. The file caching agent may provide temporary storage for some packets. Each deployment service process is provided with a file caching agent, and when a resource package (deployment data package) of an application program needs global deployment, the resource package can be sent to the file caching agent of each large area.
S1060, detecting whether an operation task with higher priority than the task to be executed exists in a task queue after the task to be executed;
the task queue is a set including a certain number of operation tasks, and the priority is a parameter for determining the priority level of each operation program to accept system resources when the computer time-sharing operation system processes a plurality of operation programs, wherein the priority is first done with high priority and then done with low priority. And checking whether an operation task with higher priority than the task to be executed exists in the task queue, and if so, executing the operation task.
S1070, when the task queue has an operation task with a higher priority than the task to be executed, preferentially executing the operation task until the operation task is executed, and calling back to execute the task to be executed.
The method comprises the steps that other operation tasks with priority higher than that of the task to be executed are executed preferentially, through asynchronous call, a data packet to be deployed is not required to be sent to a file cache agent of a deployment service process completely, when the priority of a drawing interface of a server (deployment service process) is higher than that of the task to be executed, and when operation tasks of the task to be executed and a plurality of drawing interfaces exist in a task queue at the same time, the operation tasks of the drawing interface in the task queue are executed first, so that a server management staff can know the running state of the server rapidly and smoothly, when the priority of the other operation tasks with priority higher than that of the task to be executed in the task queue is finished, the task to be executed is called back to execute the task to be executed, and the task to be executed and the other operation tasks are executed separately by using an asynchronous operation mode, so that blocking is avoided.
In an alternative embodiment, referring to fig. 5, fig. 5 is a schematic flow diagram illustrating a basic process for determining a target deployment service process according to an embodiment of the present invention.
As shown in fig. 5, step S1300 includes the following steps:
s1310, initiating remote procedure call to each deployment service process according to the region address information;
when the method is implemented, after the regional address information of the user side is acquired, gRPC call is initiated to different deployment service processes, wherein gRPC is a high-performance and general open-source RPC (Remote Procedure Call Protocol ) framework, namely, remote procedure call is initiated to different deployment service processes in the distributed system.
S1320, obtaining address information returned by each deployment service process in response to the remote procedure call;
each deployment service process receives the remote procedure call and returns address information of the deployment service process.
S1330, selecting a deployment service process of the same area with the user side from the deployment service processes according to the address information as the target deployment service process.
The address information of each deployment service process and the regional address information of the user side are calculated, so that the deployment service process which is in the same area with the user side is selected from the deployment service processes as a target deployment service process, and when the method is implemented, the calculation can be performed according to the longitude and latitude of the user side and the longitude and latitude of each deployment service process, so that the distance between the user side and the deployment service process is calculated, or whether the user side and the deployment service process are in the same area is judged.
In an alternative embodiment, referring to fig. 6, fig. 6 is a schematic diagram of a basic flow of an embodiment of the present invention in response to a deployment request.
As shown in fig. 6, step S1300 further includes the following steps:
s1400, acquiring an identifier sent by the user terminal, wherein the identifier is a working identifier returned to the user terminal by the target deployment service process accepting the remote procedure call;
after receiving the remote procedure call, the deployment service process establishes a protocol, returns a work identifier to the user side to confirm the receipt, the user side obtains a deployment data packet from the file caching agent at regular time through the identifier, and displays the progress, and the system can obtain the identifier sent by the user, wherein the identifier is a task id (task identification, work identifier) in some small and medium computer systems, and under the management of a communication control program, the identifier is an identification character associated with the work.
S1500, the identifier is sent to the target deployment service process, so that the target deployment service process returns the release real-time state of the deployment data packet sent to the user side in the file caching agent to the release real-time state of the user side to the user side at regular time.
After the identifier is sent to the target deployment service process, the target deployment service process sends the deployment data packet in the file caching agent to the release real-time state of the user side to be returned to the user side at regular time, so that the user side can display the release progress of the application program according to the release real-time state, and a user can know the release progress conveniently. In the implementation, taking a user side as an intelligent mobile phone as an example, the intelligent mobile phone can regularly retrieve and release the real-time state from a database of the target deployment service process through the identifier, and display the real-time state through a display screen of the intelligent mobile phone.
In an alternative embodiment, referring to fig. 7, fig. 7 is a schematic flow chart of a basic process for detecting an operation condition of a user terminal according to an embodiment of the present invention.
As shown in fig. 7, after step S1500, the following steps are further included:
s1600, acquiring equipment inspection information generated by equipment inspection after the user side runs the deployment data packet;
the device inspection information is running state information of the user side after the user side runs the deployment data packet, for example, a smart phone is used for carrying out system upgrading or patching, and the running state information of the user side needs to be obtained, so that whether the deployment data packet has an unreasonable running state is judged, for example, a situation that a system bug appears in a using process even causes that the user side cannot work normally is judged, and taking the user side as a tablet personal computer as an example, the tablet personal computer carries out system self-inspection after running the deployment data packet, so that device inspection is carried out to generate device inspection information.
S1700, analyzing the equipment detection information according to a preset analysis rule to obtain the running condition information of the user side.
After the equipment checking information is obtained, the equipment checking information is analyzed according to a preset analysis rule to obtain the running condition information of the user side, so that whether the deployment data packet has a system vulnerability or a deficiency is judged. And the maintenance and the upgrading of the application programs are convenient to be carried out on the system holes in the later period, so that the continuous perfection function of the application programs is realized.
In order to solve the technical problems, the embodiment of the invention also provides an automatic deployment control device.
Referring specifically to fig. 8, fig. 8 is a schematic diagram illustrating a basic structure of an automatic deployment control apparatus according to the present embodiment.
As shown in fig. 8, an automated deployment control device includes: the device comprises a first acquisition module 2100, a first processing module 2200 and a first execution module 2300, wherein the first acquisition module 2100 is configured to acquire a deployment request sent by a user terminal, and the deployment request includes area address information of an area where the user terminal is located; the first processing module 2200 is configured to compare the area address information with preset local address information; the first execution module 2300 is configured to perform on-chain broadcast on the area address information when a distance between the area address information and the local address information is greater than a preset distance threshold, so that a target deployment service process matched with the area address information responds to the deployment request.
According to the method, the device and the system, the deployment request sent by the user side is acquired and comprises the regional address information of the region where the user side is located, then the regional address information is compared with the local address information according to the regional address information, when the distance between the regional address information and the local address information is larger than the preset distance threshold value, the regional address information is broadcasted, and accordingly the target deployment service process of the regional address information is matched to respond to the deployment request.
In some embodiments, the automated deployment control device further comprises: the system comprises a first processing module and a first execution module, wherein the first processing module is used for dividing each global large area into a plurality of large areas according to a preset dividing rule to generate large area region distribution information; the second execution module is used for sequentially deploying at least one deployment service process in the plurality of large areas according to the large area distribution information.
In some embodiments, the automated deployment control device further comprises: the second acquisition module is used for acquiring the process IP address information of the deployment service process; the third execution module is used for registering service information of the deployment service process in the distributed system according to the process IP address information, wherein the service information comprises process IP address information, monitoring port information and area information of the deployment service process.
In some embodiments, the automated deployment control device further comprises: the system comprises a thread module, a checking module and a fourth executing module, wherein the thread module is used for synchronizing a preset deployment data packet to tasks to be executed in the file cache agents of the plurality of large areas through thread establishment; the detection module is used for detecting whether an operation task with higher priority than the task to be executed exists in a task queue after the task to be executed; and the fourth execution module is used for preferentially executing the operation task until the operation task is executed, and then calling back to execute the task to be executed when the operation task with the priority higher than that of the task to be executed exists in the task queue.
In some embodiments, the automated deployment control device further comprises: the first execution submodule is used for initiating remote procedure call to each deployment service process according to the region address information; the first acquisition sub-module is used for acquiring address information returned by each deployment service process in response to the remote procedure call; and the second execution submodule is used for selecting a deployment service process in the same area with the user side from the deployment service processes according to the address information as the target deployment service process.
In some embodiments, the automated deployment control device further comprises: the third acquisition module is used for acquiring an identifier sent by the user side, wherein the identifier is a working identifier returned to the user side by the target deployment service process receiving the remote procedure call; and the fifth execution module is used for sending the identifier to the target deployment service process so that the target deployment service process can timely send the deployment data packet in the file caching agent to the release real-time state of the user terminal and return the release real-time state to the user terminal.
In some embodiments, the automated deployment control device further comprises: the system comprises a fourth acquisition module and a sixth execution module, wherein the fourth acquisition module is used for acquiring equipment inspection information generated by equipment inspection after the user side runs the deployment data packet; the sixth execution module is configured to parse the device detection information according to a preset parsing rule to obtain operation status information of the user side
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 9, fig. 9 is a basic structural block diagram of a computer device according to the present embodiment.
As shown in fig. 9, the internal structure of the computer device is schematically shown. As shown in fig. 9, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The nonvolatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store a control information sequence, and when the computer readable instructions are executed by a processor, the processor can realize an automatic deployment control method. The processor of the computer device is used to provide computing and control capabilities, supporting the operation of the entire computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, cause the processor to perform an automated deployment control method. The network interface of the computer device is for communicating with a terminal connection. It will be appreciated by persons skilled in the art that the structures shown in the drawings are block diagrams of only some of the structures associated with the inventive arrangements and are not limiting of the computer device to which the inventive arrangements may be implemented, and that a particular computer device may include more or less elements than those shown, or may be combined with some elements or have a different arrangement of elements.
The processor in this embodiment is configured to execute the first acquisition module 2100, the first processing module 2200, and the first execution module 2300 in fig. 8, and the memory stores program codes and various types of data required for executing the above modules. The network interface is used for data transmission between the user terminal or the server. The memory in this embodiment stores program codes and data required for executing all the sub-modules in the automated deployment control apparatus, and the server can call the program codes and data of the server to execute the functions of all the sub-modules.
The computer acquires a deployment request sent by the user terminal and comprises regional address information of a region where the user terminal is located, compares the regional address information with local address information according to the regional address information, and broadcasts the regional address information when the distance between the regional address information and the local address information is larger than a preset distance threshold value, so that a target deployment service process of the regional address information is matched to respond to the deployment request.
The present invention also provides a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the automated deployment control method of any of the embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (9)

1. An automated deployment control method, comprising the steps of:
acquiring a deployment request sent by a user side, wherein the deployment request comprises area address information of an area where the user side is located;
comparing the regional address information with preset local address information;
when the distance between the regional address information and the local address information is larger than a preset distance threshold, broadcasting the regional address information on a chain so that a target deployment service process matched with the regional address information responds to the deployment request;
acquiring an identifier sent by the user side, wherein the identifier is a working identifier returned to the user side when the target deployment service process receives a remote procedure call; the remote procedure call is a call initiated to each deployment service process according to the region address information;
And sending the identifier to the target deployment service process so that the target deployment service process can timely send the deployment data packet in the file caching agent to the release real-time state of the user terminal and return the release real-time state to the user terminal.
2. The method for controlling automatic deployment according to claim 1, wherein before the step of obtaining the deployment request sent by the user side, the method further comprises the steps of:
dividing the global scope into a plurality of large areas according to a preset dividing rule to generate large area region distribution information;
and sequentially deploying at least one deployment service process in the plurality of large areas according to the large area distribution information.
3. The automated deployment control method of claim 2, wherein after the step of deploying at least one deployment service process in the plurality of communities in turn according to the community region distribution information, further comprising the steps of:
acquiring process IP address information of the deployment service process;
registering service information of the deployment service process in a distributed system according to the process IP address information, wherein the service information comprises process IP address information, monitoring port information and area information of the deployment service process.
4. The automated deployment control method of claim 3, wherein after the step of registering service information of the deployment service process in the distributed system according to the process IP address information, further comprising the steps of:
synchronizing a preset deployment data packet to tasks to be executed in the file caching agents of the multiple large areas through thread establishment;
detecting whether an operation task with higher priority than the task to be executed exists in a task queue after the task to be executed;
when the task queue has an operation task with higher priority than the task to be executed, the operation task is executed preferentially until the operation task is executed, and the task to be executed is executed in a callback mode.
5. The automated deployment control method of claim 2, wherein the step of broadcasting the area address information in a chain to enable a target deployment service process matched with the area address information to respond to the deployment request when the distance between the area address information and the local address information is greater than a preset distance threshold comprises the steps of:
initiating remote procedure call to each deployment service process according to the region address information;
Acquiring address information returned by each deployment service process in response to the remote procedure call;
and selecting a deployment service process of the same area with the user side from the deployment service processes according to the address information as the target deployment service process.
6. The automated deployment control method of claim 1, wherein after the step of sending the identifier to the target deployment service process to cause the target deployment service process to send the deployment data packet in the file caching agent to the client in a timely manner, the step of returning the published real-time status of the client to the client further comprises the steps of:
acquiring equipment checking information generated by equipment checking after the user side runs the deployment data packet;
analyzing the equipment checking information according to a preset analysis rule to obtain the running condition information of the user side.
7. An automated deployment control device, comprising:
the first acquisition module is used for acquiring a deployment request sent by a user terminal, wherein the deployment request comprises area address information of an area where the user terminal is located;
The first processing module is used for comparing the regional address information with preset local address information;
the first execution module is used for broadcasting the regional address information on a chain when the distance between the regional address information and the local address information is larger than a preset distance threshold value, so that a target deployment service process matched with the regional address information responds to the deployment request;
the third acquisition module is used for acquiring an identifier sent by the user side, wherein the identifier is a working identifier returned to the user side when the target deployment service process receives remote procedure call; the remote procedure call is a call initiated to each deployment service process according to the region address information;
and the fifth execution module is used for sending the identifier to the target deployment service process so that the target deployment service process can timely send the deployment data packet in the file caching agent to the release real-time state of the user terminal and return the release real-time state to the user terminal.
8. An automated deployment control device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the automated deployment control method of any of claims 1 to 6.
9. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the automated deployment control method of any of claims 1 to 6.
CN201811644119.7A 2018-12-29 2018-12-29 Automatic deployment control method and device, computer equipment and storage medium Active CN111381832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811644119.7A CN111381832B (en) 2018-12-29 2018-12-29 Automatic deployment control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811644119.7A CN111381832B (en) 2018-12-29 2018-12-29 Automatic deployment control method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111381832A CN111381832A (en) 2020-07-07
CN111381832B true CN111381832B (en) 2023-08-18

Family

ID=71221141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811644119.7A Active CN111381832B (en) 2018-12-29 2018-12-29 Automatic deployment control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111381832B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448594B (en) * 2021-06-29 2024-06-18 京东科技控股股份有限公司 Service processing method, device, computer equipment and storage medium
CN114844951B (en) * 2022-04-22 2024-03-19 百果园技术(新加坡)有限公司 Request processing method, system, device, storage medium and product
CN117407049B (en) * 2023-12-15 2024-03-26 广州嘉为科技有限公司 Application release arrangement method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011995A (en) * 2017-12-19 2018-05-08 北京星河星云信息技术有限公司 Strange land implementation method more living, strange land service platform more living and storage medium
CN108111527A (en) * 2017-12-29 2018-06-01 深圳市艾特智能科技有限公司 Smart home client access request processing method, system, storage medium and computer equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7747780B2 (en) * 2007-08-27 2010-06-29 DNSStuff, INC. Method, system and apparatus for discovering user agent DNS settings

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011995A (en) * 2017-12-19 2018-05-08 北京星河星云信息技术有限公司 Strange land implementation method more living, strange land service platform more living and storage medium
CN108111527A (en) * 2017-12-29 2018-06-01 深圳市艾特智能科技有限公司 Smart home client access request processing method, system, storage medium and computer equipment

Also Published As

Publication number Publication date
CN111381832A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN111381832B (en) Automatic deployment control method and device, computer equipment and storage medium
CN108055264B (en) Scheduling apparatus and method for push streaming server, and computer-readable storage medium
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
EP2787742B1 (en) Method and system for transmitting network video
CN111937364A (en) Method and system for processing data path creation in wireless network system
CN107734350B (en) Live broadcasting system and live broadcasting method
US9596313B2 (en) Method, terminal, cache server and system for updating webpage data
US11044184B2 (en) Data packet loss detection
WO2021023042A1 (en) Method for searching edge computing server and related device
WO2018064939A1 (en) Method for disaster recovery of audio and video communication connection, apparatus and system
CN110381042B (en) Graceful restart service method, device, medium and electronic equipment
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN110442506B (en) Log acquisition method, device, service server, system and storage medium
US11418618B2 (en) Eco: edge-cloud optimization of 5G applications
CN114385956A (en) Method for communicating among multiple tabs of browser and updating state
US10861306B2 (en) Method and apparatus for video surveillance
CN115426320B (en) Secure resource scheduling method and device, electronic equipment and storage medium
CN117194562A (en) Data synchronization method and device, electronic equipment and computer readable medium
CN113783963B (en) Data transmission method, server node, gateway equipment and network system
US20140280447A1 (en) Method and apparatus for providing cloud service
CN114550417A (en) Disaster early warning method, terminal device and storage medium
CN111404761B (en) Content looping detection processing method and device and computer readable storage medium
US20170099333A1 (en) Requesting and receiving a media stream within a networked system
US20240205284A1 (en) Multimedia content transmission method and apparatus, device, and storage medium
US11928501B2 (en) LiFi-powered content-aware large-scale data processing factory

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