CN111381832A - 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
CN111381832A
CN111381832A CN201811644119.7A CN201811644119A CN111381832A CN 111381832 A CN111381832 A CN 111381832A CN 201811644119 A CN201811644119 A CN 201811644119A CN 111381832 A CN111381832 A CN 111381832A
Authority
CN
China
Prior art keywords
deployment
address information
user side
information
service process
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
CN201811644119.7A
Other languages
Chinese (zh)
Other versions
CN111381832B (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

Images

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, wherein the method 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 area address information and the local address information is greater than a preset distance threshold value, performing on-chain broadcasting on the area address information so that a target deployment service process matched with the area 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 value, the regional address information is broadcasted, so that the target deployment service process is matched to respond to the deployment request.

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, global development relates to aspects in life and work, such as application programs developed by companies, and with the global strategy of companies, the application programs need to be deployed globally, but with more and more system development distributed processes, the number of the processes of the application programs is more and more, and often, hundreds of processes of a background process of an application program are more and more, so that in the global deployment process, requirements on hardware and software are higher, for example, the global deployment process is influenced by the quality of a global network, the network quality of each region in the world is different, and all deployment schemes are different.
At present, for a global deployment scheme, two schemes mainly exist, one scheme is to establish a special optical fiber line between IDC machine rooms in various places, the implementation mode of the scheme is simple, but the problem of high cost is caused by specially establishing the special optical fiber line, and the second scheme is to execute service consumption and issue tasks by tasks in various places by storing the tasks in a message queue, but by adopting the scheme, a message middleware needs to be maintained, the network communication between the task execution service and the message middleware is ensured, the function reliability of the message middleware is relied on, the requirement on the network quality is high, and the failure rate is high.
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, wherein the automatic deployment control method and the automatic deployment control device can realize global efficient release by file deployment according to regions.
In order to solve the above technical problem, the embodiment of the present invention adopts a technical solution that: an automated deployment control method is provided, 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;
and when the distance between the regional address information and the local address information is greater than a preset distance threshold value, performing on-chain broadcasting on the regional address information 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 division rule to generate large area distribution information;
and deploying at least one deployment service process in the plurality of large areas in sequence according to the large area distribution information.
Optionally, after the step of deploying at least one service deployment process in the plurality of large areas in sequence according to the large area distribution information, the method further includes the following steps:
acquiring process IP address information of the service deployment process;
and registering the service information of the service deployment process in a distributed system according to the process IP address information, wherein the service information comprises the process IP address information, the monitoring port information and the area information of the service deployment process.
Optionally, after the step of registering the service information of the service deployment process in the distributed system according to the process IP address information, the method further includes the following steps:
establishing tasks to be executed by synchronizing preset deployment data packets to the file caching agents of the large areas through threads;
detecting whether an operation task with priority higher than that of the task to be executed exists in a task queue behind the task to be executed;
and when the task queue has an operation task with the priority higher than that of the task to be executed, the operation task is executed preferentially until the operation task is executed, and then the task to be executed is called back to be executed.
Optionally, when the distance between the regional address information and the local address information is greater than a preset distance threshold, the step of performing on-chain broadcasting on the regional address information to enable a deployment service process matched with the regional address information to respond to the deployment request includes the following steps:
initiating remote procedure call to each deployment service process according to the regional address information;
acquiring address information returned by each deployment service process responding to the remote procedure call;
and selecting a deployment service process in the same large area as the user side from the deployment service processes as the target deployment service process according to the address information.
Optionally, after the step of performing on-chain broadcast on the area address information when the distance between the area address information and the local address information is greater than a preset distance threshold, so that the target deployment service process matched with the area address information responds to the deployment request, the method further includes the following steps:
acquiring an identifier sent by the user side, wherein the identifier is a working identifier which is returned to the user side by the target deployment service process after receiving the remote procedure call;
and sending the identifier to the target deployment service process so that the target deployment service process sends the deployment data packet in the file cache agent to the user side at regular time, and the real-time issuing state is returned to the user side.
Optionally, after the step of sending the identifier to the target deployment service process so that the target deployment service process periodically sends the deployment data packet in the file caching agent to the user side, and returns the real-time release status of the file caching agent to the user side, the method further includes the following steps:
acquiring equipment inspection information generated by equipment inspection after the deployment data packet is operated by the user side;
and analyzing the equipment detection information according to a preset analysis rule to obtain the operation 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 apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a deployment request sent by a user side, and the deployment request comprises area address information of an area where the user side is located;
the first processing module is used for comparing the regional address information with preset local address information;
a first execution module, configured to perform 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.
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 the computer-readable instructions, when executed by the processor, cause the processor to execute the steps of the above automated deployment control method.
To solve the above technical problem, an embodiment of the present invention further provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to execute the steps of the above automated deployment control method.
The embodiment of the invention has the beneficial effects that: by acquiring a deployment request sent by a user side, including regional address information of a region where the user side is located, comparing the regional address information with the local address information, and broadcasting the regional address information when the distance between the regional address information and the local address information is greater than a preset distance threshold, a target deployment service process of the regional address information is matched to respond to the deployment request.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a basic flow of an automated deployment control method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating the area division according to the embodiment of the present invention;
FIG. 3 is a flowchart illustrating a process of registering and deploying a service according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating asynchronous transmission of data packets according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a process for determining a target deployment service process according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a process of responding to a deployment request according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a process of detecting an operation status of a user side according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a basic structure of an automated deployment control apparatus according to an embodiment of the present invention;
FIG. 9 is a block diagram of the basic structure of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. 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 within the art that, unless otherwise defined, 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. 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 used herein, a "terminal" includes both devices that are wireless signal receivers, devices that have only wireless signal receivers without transmit capability, and devices that have receive and transmit hardware, devices that have receive and transmit hardware capable of performing two-way communication over a two-way communication link, as will be understood by those skilled in the art. 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; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "terminal" used herein may also be a communication terminal, a web-enabled terminal, a music/video playing terminal, such as a PDA, an 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 to fig. 1, fig. 1 is a schematic diagram illustrating a basic flow of the automated deployment control method according to the embodiment.
As shown in fig. 1, an automated deployment control method includes the following steps:
s1100, 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;
the upgrading or patching of the application program is often involved in the software development process, global strategy of enterprises enables the application program to be deployed globally, when a deployment request sent by a user side is received, the 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 presetting the resource package of the application program, such as upgrading or patching and the like, in the user side, because a service point (the position of the server) is far away from the position of the user side, for example, the service point is in Asia and the user side is in Europe, the system sends the resource package to the user side depending on network quality, high delay or even failure occurs, at the moment, regional address information of the region 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, when the deployment request is implemented, the deployment request carries the area address information of the area where the user terminal is located, the area address information can be determined by the IP address, and after the system receives the deployment request sent by the user terminal, the system analyzes the deployment request to obtain the IP address of the user terminal, so that the area address information of the area where the user terminal is located is determined.
In another embodiment, the area address information of the area where the ue is located may also be obtained through a TCP connection of the deployment request, where TCP (Transmission Control Protocol) is a connection-oriented, reliable transport layer communication Protocol based on byte stream. Taking the application of the present invention to a distributed system as an example, the distributed system is respectively provided with corresponding deployment service processes (service points) in different areas, and 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 obtaining the regional address information of the region where the user end is located, the system compares the regional address information with the local address information, so as to determine the distance between the user end and the service point, in implementation, the local address information refers to the location information of a server in the distributed system, taking the server located in european france as an example, when the server receives a deployment request sent by the user end, the regional address information characterizing the asian china shenzhen region is compared with the local address information characterizing the european france by the server through the deployment request or the region where the user end is located.
S1300, when the distance between the area address information and the local address information is larger than a preset distance threshold value, performing on-chain broadcasting on the area address information so that a target deployment service process matched with the area 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, where the distance threshold is a comparison value preset in the system, and indicates that the server receiving the deployment request and the client are not in the same area, in implementation, the range of the area is divided by the system, for example, asian areas, european areas, african areas, south america areas, north america areas, and the like are divided according to continental plates throughout the world, these different areas are correspondingly provided with deployment service processes and these deployment service processes belong to the same distributed system, when the distance between the server receiving the deployment request sent by the client and the client is greater than the preset distance threshold, the area address information is chain-broadcast, which refers to broadcast in the distributed system, therefore, all the deployment service processes in the distributed system can receive the area address information of the area where the user terminal is located, so that the target deployment service process corresponding to the area address information in the distributed system responds to the deployment request, namely, a server in the same area with the user terminal responds to the deployment request of the user.
In one embodiment, taking the example of the system dividing the world into euro, 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 a consul, wherein the service information comprises an IP address, a monitoring port and area information, the consul is an open source tool proposed by HashCorp company and is used for realizing service discovery and Configuration of a distributed system, when a user side of a sub-Europe block initiates a deployment request, the deployment service process receiving the deployment request is located in an Indian ocean block, the user side and the deployment service process are located in two different large areas, at the moment, the deployment service process broadcasts the area address information of the user side, acquires the IP address, the monitoring port and the area information of the deployment service process from the consul, acquires the area address information of the area where the user side is located from a CMDB (Configuration Management Database), then takes the deployment service process located in the sub-Europe block as a target deployment service process, and responds to the deployment request of the user side by the target deployment service process, in implementation, the deployment service process is provided with a file caching agent, that is, a file caching agent is arranged in a server of each large-area block, a resource packet of an application program is synchronized into the file caching agents of each large-area block, and the resource packet is sent to the user side through the file caching agent.
In this embodiment, by obtaining a deployment request sent by a user side, including area address information of an area where the user side is located, and comparing the area address information with the local address information, when a distance between the area address information and the local address information is greater than a preset distance threshold, the area address information is broadcast, so as to match a target deployment service process with the area address information to respond to the deployment request.
In an alternative embodiment, please refer to fig. 2, where fig. 2 is a schematic flow chart illustrating a region 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 division rule to generate large area distribution information;
before allocating a service deployment process to a user terminal, different areas can be divided, so that the global scope is divided into a plurality of large areas, the system divides the global scope according to a preset division rule to obtain a plurality of (for example, 5, 7 or 10) large areas and large area distribution information corresponding to the large areas, the division rule is a preset tool for dividing the global scope into the plurality of large areas, in implementation, the division rule may adopt a land plate division manner, a culture area division manner, or a time zone and large area division manner (for example, a global scope is uniformly divided into 8 time zone and large area), and the like, and it should be noted that the division rule is not limited to the above division manner, the partitioning rule may also design other partitioning modes according to different application scenarios, for example, the partitioning modes are divided into different areas according to different provinces or state counties within a country range.
S1020, deploying at least one deployment service process in the plurality of large areas in sequence 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 regional distribution information of the large areas, of course, each large area can also be only provided with one deployment service process, and when the deployment service process and the user terminal are in the same large area, for example, the client is in asian area and the server receiving the deployment request sent by the client is also in asian area, the distance between the server and the client is less than the preset distance threshold, the server can respond to the deployment request of the client without performing the on-link broadcast of the local address information of the client, in implementation, when a large area has a plurality of deployment service processes, the addresses of the deployment service processes are compared with the address of the user side, and the deployment service process closest to the user side is selected to respond to the deployment request of the user side. In one embodiment, when the distance between the other deployment service processes in the distributed system and the user side is greater than the distance threshold, the on-chain broadcasting is also performed, and when a target deployment service process responds to a deployment request, the target deployment service process performs broadcasting and notifies the other deployment service processes to stop broadcasting.
In another alternative embodiment, please refer to fig. 3, fig. 3 is a basic flowchart illustrating a registration and deployment service process according to an 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 service deployment process;
after deployment service processes (deployment services) are deployed in each large area, service information of the deployment service processes needs to be registered, and process IP address information of the deployment service processes is acquired, wherein the process IP address information refers to IP addresses of the deployment service processes.
S1040, registering the service information of the service deployment process in the distributed system according to the process IP address information, wherein the service information comprises the process IP address information, the monitoring port information and the area information of the service deployment process.
After acquiring the process IP address information of the deployment service process, registering the service information of the deployment service process in the distributed system according to the process IP address information, for example, registering the service information from the deployment service process to the consul by the deployment service process, that is, registering the service information of the deployment service process of different areas to the consul, including the IP address, the monitoring port and the area where the deployment service process is located, so as to conveniently acquire the location information of the area where the deployment service process is located.
In an alternative embodiment, please refer to fig. 4, fig. 4 is a basic flow chart of the asynchronous transmission of the data packet according to an embodiment of the present invention.
As shown in fig. 4, after step 1040, the following steps are further included:
s1050, establishing tasks to be executed by synchronizing preset deployment data packets to the file cache agents of the large areas through threads;
a thread is a single sequential control flow in an application. The process has a relatively independent and schedulable execution unit, which is the scheduling unit of the program when the basic unit instruction of the CPU is scheduled and dispatched independently by the system. Running multiple threads simultaneously in a single application accomplishes different tasks, referred to as multithreading. And establishing tasks to be executed for synchronizing the preset deployment data packet to the file caching agents of the plurality of large areas, so that the operation of synchronizing the deployment data packet to the file caching agents and other operations of the application program are performed in a multithread asynchronous mode. 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 to be deployed globally, the resource package can be sent to the file caching agents of all the regions.
S1060, detecting whether an operation task with priority higher than that of the task to be executed exists in the task queue after the task to be executed;
the task queue is a set comprising a certain number of operation tasks, and the priority is a parameter for determining the priority level of each operation program for receiving system resources when the computer time-sharing operation system processes a plurality of operation programs, wherein the operation is performed first with high priority and then with low priority. And if so, executing the operation task first.
And S1070, when the task queue has the operation task with the priority higher than that of the task to be executed, the operation task is executed preferentially until the operation task is executed, and then the task to be executed is called back to be executed.
The method comprises the steps of preferentially executing other operation tasks with higher priority than a task to be executed, through asynchronous calling, without waiting for a deployment data packet to be completely sent to a file cache agent of a deployment service process, taking the priority of a drawing interface of a server (the deployment service process) higher than the priority of the task to be executed as an example, when the task to be executed and operation tasks of a plurality of drawing interfaces exist in a task queue at the same time, executing the operation tasks of the drawing interfaces in a task queue first, so that a server management worker can quickly and smoothly know the operation state of the server, calling back to execute the task to be executed after the execution of the other operation tasks with the priority higher than the task to be executed in the task queue is finished, and executing the task to be executed and the other operation tasks separately by using an asynchronous operation mode to avoid card pause.
In an alternative embodiment, please refer to fig. 5, where fig. 5 is a basic flowchart illustrating 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 regional address information;
in implementation, after obtaining the area address information of the user end, a gRPC Call is initiated to different deployment service processes, where the gRPC is a high-performance and general open source RPC (Remote Procedure Call Protocol) framework, that is, a Remote Procedure Call is initiated to different deployment service processes in the distributed system.
S1320, obtaining address information returned by each deployment service process responding to the remote procedure call;
and each deployment service process receives the remote procedure call and returns the address information of the deployment service process.
S1330, selecting, from the deployment service processes according to the address information, a deployment service process in the same large area as the user end as the target deployment service process.
The address information of each deployment service process and the area address information of the user side are calculated, so that the deployment service process which is in the same large area as the user side is selected from the deployment service processes to serve as a target deployment service process, and during implementation, calculation can be performed according to the longitude and latitude where the user side is located and the longitude and latitude where each deployment service process is located, 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 large area is judged.
In an alternative embodiment, please refer to fig. 6, where fig. 6 is a basic flowchart illustrating a response to a deployment request according to an embodiment of the present invention.
As shown in fig. 6, step S1300 is followed by the following steps:
s1400, obtaining 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;
after receiving the remote procedure call, the deployment service process establishes a coroutine and returns a work identifier to the user side to confirm receiving, the user side acquires a deployment data packet from the file cache agent at regular time through the identifier and displays the progress, and the system can acquire the identifier sent by the user, wherein the identifier, namely a task id (work identifier), is an identification character associated with work in some small and medium-sized computer systems under the management of a communication control program.
S1500, the identifier is sent to the target deployment service process, so that the target deployment service process sends the deployment data packet in the file cache agent to the user side at regular time, and the real-time release state of the user side is returned to the user side.
After the identifier is sent to the target deployment service process, the target deployment service process sends the deployment data packet in the file cache agent to the publishing real-time state of the user side to the user side in a timing mode, so that the user side can display the publishing progress of the application program according to the publishing real-time state, and the user can know the publishing progress conveniently. In implementation, taking the user side as a smart phone as an example, the smart phone can retrieve the published real-time status from the database of the target deployment service process at regular time through the identifier, and display the published real-time status through a display screen of the smart phone.
In an alternative embodiment, please refer to fig. 7, fig. 7 is a basic flowchart illustrating detecting an operation status 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 deployment data packet is operated by the user side;
the device inspection difference information is operation state information of the user side after the user side operates the deployment data package, when the user side operates the deployment data package, for example, a smart phone performs system upgrade or patching, operation state information of the user side needs to be acquired, so that whether an unreasonable operation state occurs in the deployment data package or not is judged, for example, a system bug occurs in the use process and even the user side cannot work normally, the user side is taken as a tablet personal computer as an example, and the tablet personal computer performs system self-inspection after the deployment data package operates, so that device inspection is performed to generate device inspection information.
S1700, analyzing the equipment detection information according to a preset analysis rule to obtain the operation state information of the user side.
After the equipment inspection information is obtained, analyzing the equipment inspection information according to a preset analysis rule to obtain the running state information of the user side, so as to judge whether the deployment data packet has system loopholes or defects. The maintenance and the upgrade of the application program can be conveniently carried out on the system bugs at the later stage, so that the continuous improvement function of the application program is realized.
In order to solve the above technical problem, an embodiment of the present invention further provides an automatic deployment control device.
Referring to fig. 8, fig. 8 is a schematic diagram of a basic structure of the automatic deployment control device according to the embodiment.
As shown in fig. 8, an automated deployment control apparatus includes: a first obtaining module 2100, a first processing module 2200, and a first executing module 2300, where the first obtaining module 2100 is configured to obtain a deployment request sent by a user end, where the deployment request includes area address information of an area where the user end is located; the first processing module 2200 is configured to compare the area address information with preset local address information; the first executing module 2300 is configured to perform on-chain broadcasting 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.
In this embodiment, by obtaining a deployment request sent by a user side, including area address information of an area where the user side is located, and comparing the area address information with the local address information, when a distance between the area address information and the local address information is greater than a preset distance threshold, the area address information is broadcast, so as to match a target deployment service process with the area address information to respond to the deployment request.
In some embodiments, the automated deployment control apparatus further comprises: the second 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 distribution information; the second execution module is used for deploying at least one service deployment process in the plurality of large areas in sequence according to the large area distribution information.
In some embodiments, the automated deployment control apparatus further comprises: the second acquisition module is used for acquiring the process IP address information of the service deployment process; the third execution module is configured to register service information of the service deployment process in the distributed system according to the process IP address information, where the service information includes the process IP address information of the service deployment process, monitoring port information, and regional information.
In some embodiments, the automated deployment control apparatus further comprises: the system comprises a thread module, an inspection module and a fourth execution module, wherein the thread module is used for establishing tasks to be executed by synchronizing preset deployment data packets to the file cache agents of the large areas through threads; the detection module is used for detecting whether an operation task with priority higher than that of the task to be executed exists in the task queue after the task to be executed; and the fourth execution module is used for calling back to execute the task to be executed after the operation task is executed in a priority mode when the task queue has the operation task with the priority higher than that of the task to be executed.
In some embodiments, the automated deployment control apparatus further comprises: the first execution submodule is used for initiating remote procedure call to each deployment service process according to the area address information; the first obtaining submodule is used for obtaining address information returned by each deployment service process responding to the remote procedure call; and the second execution submodule is used for selecting a deployment service process in the same large area as 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 apparatus further comprises: the third obtaining module is used for obtaining 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 sends the deployment data packet in the file cache agent to the user side at regular time, and the real-time release state of the user side is returned to the user side.
In some embodiments, the automated deployment control apparatus further comprises: the fourth acquisition module is used for acquiring equipment inspection information generated by equipment inspection after the deployment data packet is operated by the user side; the sixth execution module is used for analyzing the equipment detection information according to a preset analysis rule to obtain the running state information of the user side
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In order to solve the above technical problem, an embodiment of the present invention further provides a computer device. Referring to fig. 9, fig. 9 is a block diagram of a basic structure of a computer device according to the present embodiment.
As shown in fig. 9, the internal structure of the computer device is schematically illustrated. As shown in fig. 9, the computer apparatus includes a processor, a nonvolatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize an automatic deployment control method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform an automated deployment control method. The network interface of the computer device is used for connecting and communicating with the terminal. It will be appreciated by those skilled in the art that the configurations shown in the figures are block diagrams of only some of the configurations relevant to the present application, and do not constitute a limitation on the computing devices to which the present application may be applied, and that a particular computing device may include more or less components than those shown in the figures, or may combine certain components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute the first obtaining module 2100, the first processing module 2200, and the first executing module 2300 in fig. 8, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission to and from a user terminal or a server. The memory in this embodiment stores program codes and data required for executing all the submodules in the automated deployment control device, and the server can call the program codes and data of the server to execute the functions of all the submodules.
The computer acquires a deployment request sent by a user side, the deployment request comprises regional address information of a region where the user side is located, the regional address information is compared with the local 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, and therefore 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 having stored thereon 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 the embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a 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, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

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;
and when the distance between the regional address information and the local address information is greater than a preset distance threshold value, performing on-chain broadcasting on the regional address information so that a target deployment service process matched with the regional address information responds to the deployment request.
2. The automated deployment control method according to claim 1, wherein the step of obtaining the deployment request sent by the user side further comprises the following steps:
dividing the global scope into a plurality of large areas according to a preset division rule to generate large area distribution information;
and deploying at least one deployment service process in the plurality of large areas in sequence according to the large area distribution information.
3. The automated deployment control method according to claim 2, wherein after the step of deploying at least one deployment service process in the plurality of large areas in sequence according to the large area distribution information, the method further comprises the following steps:
acquiring process IP address information of the service deployment process;
and registering the service information of the service deployment process in a distributed system according to the process IP address information, wherein the service information comprises the process IP address information, the monitoring port information and the area information of the service deployment process.
4. The automated deployment control method of claim 3, further comprising, after the step of registering service information of the deployment service process in the distributed system according to the process IP address information, the steps of:
establishing tasks to be executed by synchronizing preset deployment data packets to the file caching agents of the large areas through threads;
detecting whether an operation task with priority higher than that of the task to be executed exists in a task queue behind the task to be executed;
and when the task queue has an operation task with the priority higher than that of the task to be executed, the operation task is executed preferentially until the operation task is executed, and then the task to be executed is called back to be executed.
5. The automated deployment control method according to claim 2, wherein the step of broadcasting the regional address information in a chain so that the deployment service process matching with the regional address information responds to the deployment request when the distance between the regional 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 regional address information;
acquiring address information returned by each deployment service process responding to the remote procedure call;
and selecting a deployment service process in the same large area as the user side from the deployment service processes as the target deployment service process according to the address information.
6. The automated deployment control method according to claim 5, wherein after the step of performing the on-chain broadcast of the regional address information when the distance between the regional address information and the local address information is greater than a preset distance threshold value, so that the target deployment service process matching with the regional address information responds to the deployment request, the method further comprises the following steps:
acquiring an identifier sent by the user side, wherein the identifier is a working identifier which is returned to the user side by the target deployment service process after receiving the remote procedure call;
and sending the identifier to the target deployment service process so that the target deployment service process sends the deployment data packet in the file cache agent to the user side at regular time, and the real-time issuing state is returned to the user side.
7. The automated deployment control method according to claim 6, wherein after the step of sending the identifier to the target deployment service process so that the target deployment service process periodically sends the deployment data packet in the file cache agent to the user side, the real-time status of the distribution to the user side further includes the following steps:
acquiring equipment inspection information generated by equipment inspection after the deployment data packet is operated by the user side;
and analyzing the equipment detection information according to a preset analysis rule to obtain the operation condition information of the user side.
8. An automated deployment control apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a deployment request sent by a user side, and the deployment request comprises area address information of an area where the user side is located;
the first processing module is used for comparing the regional address information with preset local address information;
a first execution module, configured to perform 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.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the automated deployment control method of any one of claims 1 to 7.
10. A storage medium having stored thereon 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 one of claims 1 to 7.
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 true CN111381832A (en) 2020-07-07
CN111381832B 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)

Cited By (3)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100030876A1 (en) * 2007-08-27 2010-02-04 DNSStuff, INC. Method, system and apparatus for discovering user agent dns settings
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100030876A1 (en) * 2007-08-27 2010-02-04 DNSStuff, INC. Method, system and apparatus for discovering user agent dns settings
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

Cited By (5)

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

Also Published As

Publication number Publication date
CN111381832B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN111381832B (en) Automatic deployment control method and device, computer equipment and storage medium
CN106713226B (en) A kind of remote procedure call processing method and system for distributed system
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
CN103237060B (en) A kind of data object acquisition, Apparatus and system
US9596313B2 (en) Method, terminal, cache server and system for updating webpage data
WO2021023042A1 (en) Method for searching edge computing server and related device
WO2013097525A1 (en) Method and system for transmitting network video
CN101453404A (en) Method and apparatus for implementing load balance
CN106230978A (en) Distributed caching synchronous method, Apparatus and system
CN105338564B (en) A kind of client adaptation method, client, server and system
US10861306B2 (en) Method and apparatus for video surveillance
CN114385956A (en) Method for communicating among multiple tabs of browser and updating state
CN111949484B (en) Information processing method, device, electronic equipment and medium
WO2013097827A1 (en) Dispatching system and method
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
US10154088B2 (en) System and method for migrating an agent server to an agent client device
US11924039B2 (en) System and method for optimization of network function management and computer readable medium thereof
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN115033656B (en) Data processing method and device based on map caching technology and electronic device
US9774640B2 (en) Method and system for sharing applications among a plurality of electronic devices
CN115442739A (en) Subway construction temporary communication processing method and device, electronic equipment and medium
CN111404761B (en) Content looping detection processing method and device and computer readable storage medium
US20140280447A1 (en) Method and apparatus for providing cloud service
US20200186478A1 (en) Dispatching Method and Edge Computing System

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