CN113778460A - Production environment deployment method and device - Google Patents

Production environment deployment method and device Download PDF

Info

Publication number
CN113778460A
CN113778460A CN202111051890.5A CN202111051890A CN113778460A CN 113778460 A CN113778460 A CN 113778460A CN 202111051890 A CN202111051890 A CN 202111051890A CN 113778460 A CN113778460 A CN 113778460A
Authority
CN
China
Prior art keywords
server data
file
production environment
user
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111051890.5A
Other languages
Chinese (zh)
Inventor
李嘉荣
黎原
徐欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202111051890.5A priority Critical patent/CN113778460A/en
Publication of CN113778460A publication Critical patent/CN113778460A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a production environment deployment method and device, which are used for solving the problem that the existing manual deployment scheme easily causes omission or errors when workers deploy a production environment. The method comprises the following steps: acquiring first server data and second server data, wherein the first server data is server data before a user deploys a drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user deploys the drilling environment; and generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification record is used for guiding the user deploying the production environment to deploy the production environment. The method and the device are suitable for the field of environment deployment.

Description

Production environment deployment method and device
Technical Field
The present application relates to the field of environment deployment, and in particular, to a method and an apparatus for deploying a production environment.
Background
At present, in order to ensure that a deployed production environment can normally provide services, it is necessary to determine that a drilling environment for manual deployment is correct first and then manually deploy the production environment, and it is necessary to ensure consistency between the deployed production environment and the deployed drilling environment. However, when a worker relies on the memory in the process of deploying the drilling environment to deploy the production environment, omission or errors may exist for the situation that a large amount of configuration parameters need to be modified or a program needs to be updated, and the production environment bears the situation of running normal transactions and cannot be debugged in real time, so the omission or errors easily occur in the process of deploying the production environment by the worker according to the existing scheme, and the deployed production environment cannot normally provide services.
Disclosure of Invention
The embodiment of the application provides a production environment deployment method and device, which are used for solving the problem that the existing manual deployment scheme easily causes omission or errors when workers deploy a production environment.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a production environment deployment method is provided, the method comprising: acquiring first server data and second server data, wherein the first server data is server data before a user deploys a drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user deploys the drilling environment; and generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification record is used for guiding the user deploying the production environment to deploy the production environment. Based on the scheme, the operation record for guiding the user to deploy the production environment can be generated, and compared with the method that the user relies on memory to deploy the production environment, the probability of omission or error can be reduced, so that the reliability of the deployment production environment is improved.
With reference to the first aspect, in a possible implementation manner, the method further includes: and generating a modification result after the user modifies the file in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification result is used for verifying the correctness of the deployment of the production environment. Based on the scheme, the correctness of the user in deploying the production environment can be verified according to the modification result of the user on the file in the process of deploying the drilling environment, and the problem in manually deploying the production environment is avoided.
With reference to the first aspect, in a possible implementation manner, the method further includes: replacing the name of the first file in the modification record with the name of the second file; the first file is a file in first equipment before a user deploys a drilling environment, the second file is a file in second equipment before the user deploys a production environment, the first equipment is equipment for operating the drilling environment, the second equipment is equipment for operating the production environment, and the first file and the second file have the same content but different file names. Based on the scheme, the replacement of specific information can be realized, so that a user can be ensured to deploy a production environment under the guidance of the operation record.
With reference to the first aspect, in a possible implementation manner, the method further includes: and determining third server data according to the first server data and the second server data, wherein the third server data is complete server data after the user finishes deploying the drilling environment. Based on the scheme, the storage read-write speed can be improved.
With reference to the first aspect, in a possible implementation manner, before generating, according to the first server data and the second server data, a modification record for a user to modify a file in the process of deploying the drilling environment, the method further includes: marking a third file or a first directory which does not need to be detected in the drilling environment; generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification record comprises: and under the condition of ignoring the modification of the first file or the first directory, generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data. Based on the scheme, the production environment deployment device can filter the modification record of the specified file when generating the operation record, so that the speed is increased
In a second aspect, there is provided a production environment deployment apparatus, the apparatus comprising: a processing module; the processing module is used for acquiring first server data and second server data, wherein the first server data is server data before the user deploys the drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user completes deployment on the drilling environment; and the processing module is further used for generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data, and the modification record is used for guiding the user deploying the production environment to deploy the production environment.
With reference to the second aspect, in a possible implementation manner, the processing module is further configured to generate a modification result obtained after the user modifies the file in the process of deploying the drilling environment according to the first server data and the second server data, where the modification result is used to verify the correctness of the deployment of the production environment.
With reference to the second aspect, in a possible implementation manner, the processing module is further configured to replace the name of the first file in the modification record with the name of the second file; the first file is a file in first equipment before a user deploys a drilling environment, the second file is a file in second equipment before the user deploys a production environment, the first equipment is equipment for operating the drilling environment, the second equipment is equipment for operating the production environment, and the first file and the second file have the same content but different file names.
With reference to the second aspect, in a possible implementation manner, the processing module is further configured to determine third server data according to the first server data and the second server data, where the third server data is complete server data after the user completes deployment of the drilling environment.
With reference to the second aspect, in a possible implementation manner, before the processing module generates, according to the first server data and the second server data, a modification record for a user to modify a file in a process of deploying a drilling environment, the processing module is further configured to label a third file or a first directory that does not need to be detected in the drilling environment; and the processing module is specifically used for generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data under the condition of ignoring modification of the first file or the first directory.
In a third aspect, a production environment deployment apparatus is provided, the production environment deployment apparatus comprising a memory and a processor; the memory is configured to store a computer program, and the processor is configured to execute the computer program to perform the production environment deployment method according to the first aspect and any possible implementation manner thereof.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a computer, causes the computer to perform the production environment deployment method according to the first aspect and any possible implementation manner thereof.
In a fifth aspect, a computer program product is provided, which, when run on a computer, causes the computer to perform the production environment deployment method according to the first aspect and any one of its possible implementations.
For technical effects brought by any one of the design manners in the second aspect to the fifth aspect, reference may be made to technical effects brought by different design manners in the first aspect, and details are not described herein.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a production environment deployment apparatus according to an embodiment of the present application;
FIG. 3 is an interaction diagram of a production environment deployment method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another production environment deployment apparatus provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Where in the description of the present application, "/" indicates a relationship where the objects associated before and after are an "or", unless otherwise stated, for example, a/B may indicate a or B; in the present application, "and/or" is only an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. Also, in the description of the present application, "a plurality" means two or more than two unless otherwise specified. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. In addition, in order to facilitate clear description of technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance. Also, in the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion for ease of understanding.
In addition, the network architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided in the embodiment of the present application, and it can be known by a person skilled in the art that the technical solution provided in the embodiment of the present application is also applicable to similar technical problems along with the evolution of the network architecture and the appearance of a new service scenario.
Fig. 1 is a schematic view of an application scenario of the production environment deployment method according to the embodiment of the present application. The application scene comprises equipment for running the drilling environment, a server connected with the equipment for running the drilling environment, equipment for running the production environment and a production environment deployment device for executing the production environment deployment method provided by the embodiment of the application.
It should be noted that, in the embodiment of the present application, the production environment deployment apparatus may be a device running a drilling environment, may also be integrated in the device running the drilling environment, and may also be a device independent of the drilling environment. The example of the production environment deployment apparatus integrated into the performance drilling environment is illustrated in fig. 1.
In an application scenario of the production environment deployment method provided in the embodiment of the application, the production environment deployment device obtains first server data and second server data, where the first server data is server data before the user deploys the drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user completes deployment on the drilling environment. And then, the production environment deployment device generates a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification record is used for guiding the user deploying the production environment to deploy the production environment. The specific implementation of the scheme and the related technical effects will be described in detail in the following method embodiments, and are not described herein again.
Optionally, the relevant functions of the production environment deployment apparatus in the embodiment of the present application may be implemented by one device, or may be implemented by multiple devices together, or may be implemented by one or more functional modules in one device, which is not specifically limited in this embodiment of the present application. It is understood that the above functions may be network elements in a hardware device, or software functions running on dedicated hardware, or a combination of hardware and software, or virtualization functions instantiated on a platform (e.g., a cloud platform).
By way of example, FIG. 2 illustrates a schematic diagram of a production environment deployment apparatus 20. The production environment deployment apparatus 20 includes one or more processors 21, a communication line 22, and at least one communication interface (which is only exemplary in fig. 2 to include a communication interface 24 and one processor 21 for illustration), and optionally may further include a memory 23.
The processor 21 may be a CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs in accordance with the teachings of the present application.
The communication link 22 may include a path for connecting the various components.
The communication interface 24, which may be a transceiver module, is used for communicating with other devices or communication networks, such as ethernet, RAN, Wireless Local Area Networks (WLAN), etc. For example, the transceiver module may be a transceiver, or the like. Optionally, the communication interface 24 may also be a transceiver circuit located in the processor 21, so as to realize signal input and signal output of the processor.
The memory 23 may be a device having a memory function. Such as, but not limited to, read-only memory (ROM) or other types of static storage devices that may store static information and instructions, Random Access Memory (RAM) or other types of dynamic storage devices that may store information and instructions, electrically erasable programmable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be separate and coupled to the processor via a communication line 22. The memory may also be integral to the processor.
The memory 23 is used for storing computer-executable instructions for executing the scheme of the application, and is controlled by the processor 21 to execute. The processor 21 is configured to execute computer-executable instructions stored in the memory 23 to implement the production environment deployment method provided in the embodiments of the present application.
Alternatively, in this embodiment of the present application, the processor 21 may also execute a function related to processing in the production environment deployment method provided in the foregoing embodiment of the present application, and the communication interface 24 is responsible for communicating with other devices or a communication network, which is not specifically limited in this embodiment of the present application.
The computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
In particular implementations, processor 21 may include one or more CPUs such as CPU0 and CPU1 in fig. 2, for example, as one embodiment.
In particular implementations, production environment deployment apparatus 20 may include, as one embodiment, a plurality of processors, such as processor 21 and processor 27 in FIG. 2. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In particular implementations, production environment deployment apparatus 20 may also include an output device 25 and an input device 26, as one embodiment. An output device 25 is in communication with the processor 21 and may display information in a variety of ways.
The production environment deployment device 20 described above may be a general purpose device or a dedicated device. For example, production environment deployment apparatus 20 may be a desktop computer, a laptop computer, a web server, a Personal Digital Assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a vehicle-mounted terminal device, an embedded device, or a device having a similar structure as in fig. 2. The embodiments of the present application do not limit the type of production environment deployment device 20.
The following describes a production environment deployment method provided in an embodiment of the present application in detail with reference to fig. 1 to 2. As shown in fig. 3, a production environment deployment method provided in the embodiment of the present application includes the following steps S301 to S302:
s301, the production environment deployment device acquires first server data and second server data, the first server data is server data before the user deploys the drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user completes deployment on the drilling environment.
S302, the production environment deployment device generates a modification record for modifying the file in the process of deploying the drilling environment by the user according to the first server data and the second server data, wherein the modification record is used for guiding the user deploying the production environment to deploy the production environment.
In the embodiment of the present application, the deployment environment may be understood as modifying or updating program codes, configuration files, and the like in an environment before deployment (original environment).
For step S301 above:
before the user deploys the drilling environment, the production environment deployment device saves the current data of the server connected to the equipment running the drilling environment. For the sake of brief description, in the embodiment of the present application, the server data before the user deploys the drilling environment is referred to as the first server data. The first server data can be used for analyzing the modification of the file when the user deploys the drilling environment, and if the user has a problem in the process of deploying the drilling environment, the first server data can be rolled back to the server state before deploying the drilling environment.
Optionally, the production environment deployment device may save the first server data in response to a user operating the production environment deployment device.
In this embodiment, the production environment deployment apparatus may store (store) the first server data in a disk.
Alternatively, the disk for storing the first server data may be mounted on the device running the drilling environment or on a server connected to the device running the drilling environment.
Alternatively, the production environment deployment apparatus may further store the first server data in a disk based on the cloud platform or the cloud server. In this implementation manner, the disk for storing the first server data may be mounted in any device or server capable of storing data, the server connected to the device operating the drilling environment sends the data to the cloud platform or the cloud server, and after receiving the data, the cloud platform or the cloud server issues the data to the device or the server mounted on the disk, and then stores the data in the disk.
Optionally, in this embodiment of the application, the production environment deployment apparatus may store the data in the disk by using a snapshot technology.
After the production environment deployment device stores the first server data, the user starts to deploy the drilling environment.
Optionally, the production environment deployment apparatus may adopt a method of displaying notification information on a display interface to prompt the user that the first server data has been stored. After seeing the notification information, the user can know that the first server data is stored completely, and can start to deploy the drilling environment.
When a user deploys a drilling environment, the user modifies files in the device running the drilling environment. The modification of the file may include modification of the content of the file, addition of the file, deletion of the file, and the like.
When the user deploys the drilling environment, the production environment deployment device can store the modification data of the file when the user deploys the drilling environment. In other words, the production environment deployment device may store modified data corresponding to the modified data in the first server data. For a brief description, in the embodiment of the present application, after the user completes the deployment of the drilling environment, modified data corresponding to modified data in the first server data is referred to as second server data.
In this embodiment, the manner in which the production environment deployment apparatus stores the second server data may refer to the manner in which the production environment deployment apparatus stores the first server data described above.
It is understood that in the embodiment of the present application, the location of the disk for storing the first server data is different from the location for storing the first server data. In one possible implementation, the disk used for storing the first server data is the same disk as the disk used for storing the second server data. In another possible implementation, the disk used for storing the first server data is a different disk than the disk used for storing the second server data.
In this embodiment, after the production environment deployment apparatus stores the first server data and the second server data, the first server data and the second server data may be obtained by reading a disk location for storing the first server data and reading a disk location for storing the second server data. Based on the scheme, the server data before the user deploys the drilling environment and the modification data of the file after the user deploys the drilling environment can be obtained, and the modification of the file when the user deploys the drilling environment is convenient to analyze.
In the following, how the production environment deployment apparatus stores the first server data and the second server data, and acquires the first server data and the second server data is described in detail in the embodiments of the present application.
Case 1: the user modifies the file content as the drill environment is deployed. For example, the production environment deployment device stores the first server data to the first disk and the second server data to the second disk. When a user modifies the content of the file, the data of the modified file is stored in a certain position in the second disk, and the position in the first disk for storing the data of the original file is linked with an address which is used for indicating the position of the data of the modified content of the file in the second disk. When the production environment deployment device runs the first disk and the second disk, if the position of the data used for storing the original file in the first disk is read, the position in the second disk indicated by the address can be skipped to according to the linked address, and the content of the file modified when the user deploys the drilling environment is read.
For example, when the user deploys the drilling environment, the content "123" of the file a is modified to "456", the first disk is linked with an address 1 at the position for storing the data of the file a, and the address 1 points to a certain position of the second disk, and the position stores the data "456" of the modified content of the file a. After the user deploys the drilling environment, when the production environment deployment device reads the first disk, if the position of the data for storing the file a is read, the production environment deployment device can jump to the position for storing the data "456" in the second disk according to the address linked with the position, and further, when the user deploys the drilling environment, the content of the file a is modified to "456".
Case 2: and adding files when the user deploys the drilling environment. For example, the production environment deployment device stores the first server data to the first disk and the second server data to the second disk. After the user adds the file, the data of the added file is stored in a certain position in the second disk, and the tail end of the position in the first disk for the data of the first server is linked with an address which is used for indicating the position of the data of the added file in the second disk. When the production environment deployment device runs the first disk and the second disk, if the tail end of the position used for storing the first server data in the first disk is read, the position in the second disk indicated by the address can be jumped to according to the linked address, and then the data of the file added when the user deploys the drilling environment is read.
Further, in case 1 or case 2, the production environment deployment apparatus jumps to the disk location indicated by the address according to the linked address, and after the modified data of the file stored in the disk location is read, may return to the disk location (or the disk location where the linked address is located) for storing the data of the original file, and continue reading.
Case 3: the user deletes the file while deploying the drilling environment. Illustratively, the production environment deployment device stores the first server data to the first disk. After the user deletes the file, a mark appears in the first disk at the position for storing the data of the original file, and the mark is used for indicating that the position can be covered. A location in the disk may be overwritten, which may be understood as the deletion of data for the file stored at that location in the system. When the production environment deployment device runs the first disk, if the position for storing the original file in the first disk is read, the file can be deleted when the user deploys the drilling environment according to the mark indicating that the position can be covered.
Optionally, in the foregoing case, the address for indicating the location of the modified data of the file in the disk may be a redirection address.
For step S302, after the user deploys the drilling environment, the production environment deployment apparatus may analyze the first server data and the second server data, and further generate a modification record for the user to modify the file in the process of deploying the drilling environment. When the user deploys the production environment, the file can be modified correspondingly under the guidance of the operation record. Thereby deploying the production environment. Based on the scheme, the operation record for guiding the user to deploy the production environment can be generated, and compared with the method that the user relies on memory to deploy the production environment, the probability of omission or error can be reduced, so that the reliability of the deployment production environment is improved.
Specifically, the production environment deployment device may compare and analyze the first server data and the second server data, analyze a modification operation on the file when the user deploys the drilling environment, and record the modification operation on the file. For example, the production environment deployment device analyzes that the modification operation of the file by the user is to modify the content of the file, and then compares the difference between the previous and subsequent file contents to find out the deleted partial content and the added partial content in the file, records the deleted partial content and the added partial content, and locally stores the modification record, for example, the modification record is "123 in the content of the file a is deleted, and 456 is added in the content of the file a". If the production environment deployment device analyzes that the modification operation of the user on the file is file addition and deletion, recording the added file information or the deleted file information and the corresponding addition and deletion operation, and locally storing the operation record. For example, the modified record is "delete file a, add file b".
In this embodiment, how the production environment deployment apparatus obtains the first server data and the second server data by reading the disk location for storing the first server data and the disk location for storing the second server data may be referred to in the above-described manner of comparing and analyzing the first server data and the second server data by the production environment deployment apparatus.
Optionally, in this embodiment of the application, the production environment deployment apparatus may start generating the operation record in response to an operation of the production environment deployment apparatus by a user.
Optionally, in this embodiment of the application, after the production environment deployment apparatus generates the modification record, the generated modification record may be displayed in the generated document. Further, the user can download the document and install the document into the equipment running the production environment, so that the user can perform corresponding operation according to the document displayed on the equipment interface.
Optionally, the method for deploying a production environment provided by the embodiment of the present application further includes:
and the production environment deployment device generates a modification result after the user modifies the file in the process of deploying the drilling environment according to the first server data and the second server data, and the modification result is used for verifying the correctness of the production environment deployment. Based on the scheme, the correctness of the user in deploying the production environment can be verified according to the modification result of the user on the file in the process of deploying the drilling environment, and the problem in manually deploying the production environment is avoided.
Specifically, the production environment deployment device may compare and analyze the first server data and the second server data, and determine a modification result of the file during the process of deploying the drilling environment by the user. For example, when the production environment deployment device reads a disk for storing first server data, if a disk location for storing data of the file a is read, the production environment deployment device jumps to another disk location according to an address linked to the disk location, and reads data "456" at the disk location, the production environment deployment device may determine that a result of modification of the file a by a user in a process of deploying a drilling environment is that the content of the file a is 456.
After the user finishes deploying the production environment, the modification result can be used for verifying whether the equipment running the production environment has the data of the file corresponding to the modification result. If not, the deployment of the production environment by the user is wrong. For example, the modification result 1 is to add the file a, and if the user does not include the file a in the device running the production environment after the production environment is deployed, it indicates that the user has an error in the deployment of the production environment. For another example, the modification result 2 is that the content of the file b includes 123, and if the content of the file b in the device running the production environment does not include 123, it indicates that the user has an error in the deployment of the production environment.
Optionally, in this embodiment of the application, the production environment deployment apparatus may start generating the operation result in response to an operation of the production environment deployment apparatus by a user.
Optionally, in this embodiment of the application, after the production environment deployment device generates the modification result, a verification script for verifying the file may be generated according to the modification result. Further, the user may download the verification script and install the verification script into the equipment running the production environment. When the test script runs, file information in the equipment running the production environment can be automatically searched and compared with the modification result, whether the data of the file in the equipment running the production environment corresponds to the modification result is tested, and if the data of the file does not correspond to the modification result, the arrangement of the production environment by a user is wrong.
Optionally, if the verification script detects that the deployment of the production environment by the user is wrong, the verification script may generate alarm information and display the alarm information on a display interface of the device running the production environment to remind the user that the deployed production environment has a problem.
In order to ensure consistency between the production environment and the drilling environment, if a user deploys the drilling environment, the files are modified, and if the user deploys the production environment, the files with the same file content and only different file names should be modified correspondingly.
However, in this case, the operation record or the operation result generated by the production environment deployment apparatus according to the first server data and the second server data corresponds to the file name in the drilling environment before deployment, so that the user cannot modify the files with different names in the production environment according to the operation record, or cannot check the correctness of the user deployment production environment according to the operation result. For example, the file a in the drilling environment before deployment is inconsistent with the file b in the production environment before deployment, and the file contents are consistent. When the user deploys the drilling environment, the file a content is deleted from ' 123 ', and the operation record generated by the production environment deployment device according to the first server data and the second server data is ' 123 ' in the file a content is deleted '. In order to ensure consistency between the production environment and the drilling environment, the user needs to delete '123' in the content of the file b when deploying the production environment, but the user cannot perform corresponding operation on the file b according to the operation record indicating the modification operation on the file a.
Therefore, optionally, the method for deploying a production environment provided by the embodiment of the present application further includes:
and the production environment deployment device replaces the name of the first file in the modification record with the name of the second file. The first file is a file in first equipment before a user deploys a drilling environment, the second file is a file in second equipment before the user deploys a production environment, the first equipment is equipment for operating the drilling environment, the second equipment is equipment for operating the production environment, and the first file and the second file have the same content but different file names.
Specifically, the production environment deployment device may preset a corresponding relationship between the first file and the second file according to an actual requirement, and after the operation record is generated, if it is determined that the name of the first file exists in the operation record, the name of the first file is replaced with the name of the second file. Based on the scheme, the replacement of specific information can be realized, so that a user can be ensured to deploy a production environment under the guidance of the operation record.
Optionally, the production environment deployment apparatus may further replace the name of the first file in the operation result with the name of the second file. Reference is made to the above description for details, which are not repeated herein.
Since the first server data and the second server data are stored in the disk in the present application, and it can be known from the above description that when the first server data and the second server data are read, a jump is required according to the link address in many cases. Therefore, if the first server data and the second server data are subsequently read in order to obtain the complete server data after the deployment and drilling environment is completed, the jump may be performed many times, resulting in a slow read-write speed.
Therefore, optionally, the method for deploying a production environment provided by the embodiment of the present application further includes: and the production environment deployment device determines third server data according to the first server data and the second server data, wherein the third server data is complete server data after the user completes deployment of the drilling environment.
Specifically, the production environment deployment device integrates the second server data to a disk location for storing the first server data, so that the second server data replaces data of a corresponding file before modification in the first server data, and complete server data after the user completes deployment of the drilling environment is obtained. The link address used for indicating the modified file data can be removed by integrating the second server data to the disk position used for storing the first server data, so that the jump times are reduced, and the storage read-write speed is improved.
The user may be involved in deploying the drilling environment with document information, such as logs, that does not require verification or detection. Modification operations on the files when the user deploys the drilling environment do not affect the production environment deployed by the user, but the production environment deployment device still generates modification records or modification results corresponding to the modification of the files, so that resources are consumed and the rate is reduced.
Therefore, optionally, before the production environment deployment device generates, according to the first server data and the second server data, a modification record for a user to modify a file in the process of deploying the drilling environment, the production environment deployment device may label a third file or a first directory that does not need to be detected in the drilling environment. And then, the production environment deployment device generates a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data under the condition of ignoring the modification of the third file or the first directory. After the first directory is marked, the production environment deployment device ignores the modification condition of all files in the first directory. In other words, the production environment deployment apparatus does not generate a modification record for the third file or all files under the first directory.
The user can determine the third file or the first directory of the modification condition which can be ignored in the drilling environment according to the actual requirement. Based on the scheme, the production environment deployment device can filter the modification record of the specified file when generating the operation record, so that the speed is increased.
Optionally, the production environment deployment apparatus may further generate a modification result obtained by modifying the file in the process of deploying the drilling environment by the user according to the first server data and the second server data, under the condition that modification of the third file or the first directory is omitted. Reference is made to the above description for details, which are not repeated herein.
The actions of the production environment deployment apparatus in steps S301 to S302 may be executed by the processor 21 in the production environment deployment apparatus 20 shown in fig. 2 calling the application program code stored in the memory 23 to instruct the production environment deployment apparatus to execute. This embodiment does not set any limit to this.
It is to be understood that, in the above embodiments, the method and/or steps implemented by the production environment deployment apparatus may also be implemented by a component (e.g., a chip or a circuit) that can be used for the production environment deployment apparatus or an apparatus including the production environment deployment apparatus.
It is understood that the production environment deployment apparatus, in order to implement the above-described functions, includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the functional modules of the production environment deployment apparatus may be divided according to the method embodiment, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
By way of example, FIG. 4 shows a schematic diagram of a production environment deployment device 40. The production environment deployment apparatus 40 includes a processing module 401. Wherein:
the processing module 401 is configured to obtain first server data and second server data, where the first server data is server data before the user deploys the drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user completes deployment of the drilling environment; the processing module 401 is further configured to generate a modification record for a user to modify a file in the process of deploying the drilling environment according to the first server data and the second server data, where the modification record is used to guide the user deploying the production environment to deploy the production environment.
In a possible implementation manner, the processing module 401 is further configured to generate a modification result obtained after a user modifies a file in a process of deploying the drilling environment according to the first server data and the second server data, where the modification result is used to verify the correctness of the deployment of the production environment.
In a possible implementation manner, the processing module 401 is further configured to replace the name of the first file in the modification record with the name of the second file; the first file is a file in first equipment before a user deploys a drilling environment, the second file is a file in second equipment before the user deploys a production environment, the first equipment is equipment for operating the drilling environment, the second equipment is equipment for operating the production environment, and the first file and the second file have the same content but different file names.
In a possible implementation manner, the processing module 401 is further configured to determine third server data according to the first server data and the second server data, where the third server data is complete server data after the user completes deployment of the drilling environment.
In a possible implementation manner, before the processing module 401 generates, according to the first server data and the second server data, a modification record for a user to modify a file in a process of deploying a drilling environment, the processing module 401 is further configured to label a third file or a first directory that does not need to be detected in the drilling environment; the processing module 401 is specifically configured to, in a case where modification of the first file or the first directory is omitted, generate a modification record for a user to modify the file in the process of deploying the drilling environment according to the first server data and the second server data.
All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the present embodiment, the production environment deployment apparatus 40 is presented in a form in which the respective functional modules are divided in an integrated manner. A "module" herein may refer to a particular ASIC, a circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other device that provides the described functionality.
In a simple embodiment, one skilled in the art will appreciate that production environment deployment device 40 may take the form of production environment deployment device 20 shown in FIG. 2.
For example, the processor 21 or 27 in the production environment deployment apparatus 20 shown in fig. 2 may cause the production environment deployment apparatus 20 to execute the production environment deployment method in the above-described method embodiment by calling the computer execution instruction stored in the memory 23. Specifically, the functions/implementation processes of the processing module 401 in fig. 4 can be implemented by the processor 21 or 27 in the production environment deployment apparatus 20 shown in fig. 2 calling a computer stored in a memory to execute instructions.
Since the production environment deployment apparatus provided in this embodiment can execute the production environment deployment method, the technical effects obtained by the apparatus can refer to the method embodiments, and are not described herein again.
It should be noted that one or more of the above modules or units may be implemented in software, hardware or a combination of both. When any of the above modules or units are implemented in software, which is present as computer program instructions and stored in a memory, a processor may be used to execute the program instructions and implement the above method flows. The processor may be built in a SoC (system on chip) or ASIC, or may be a separate semiconductor chip. The processor may further include a necessary hardware accelerator such as a Field Programmable Gate Array (FPGA), a PLD (programmable logic device), or a logic circuit for implementing a dedicated logic operation, in addition to a core for executing software instructions to perform an operation or a process.
When the above modules or units are implemented in hardware, the hardware may be any one or any combination of a CPU, a microprocessor, a Digital Signal Processing (DSP) chip, a Micro Controller Unit (MCU), an artificial intelligence processor, an ASIC, an SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which may run necessary software or is independent of software to perform the above method flow.
Optionally, an embodiment of the present application further provides a chip system, including: at least one processor coupled with the memory through the interface, and an interface, the at least one processor causing the method of any of the above method embodiments to be performed when the at least one processor executes the computer program or instructions in the memory. In one possible implementation, the production environment deployment apparatus further includes a memory. Optionally, the chip system may be composed of a chip, and may also include a chip and other discrete devices, which is not specifically limited in this embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application are all or partially generated upon loading and execution of computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or can comprise one or more data storage devices, such as a server, a data center, etc., that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
While the present application has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (13)

1. A production environment deployment method, the method comprising:
acquiring first server data and second server data, wherein the first server data is server data before a user deploys a drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user completes deployment on the drilling environment;
and generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification record is used for guiding the user deploying the production environment to deploy the production environment.
2. The method of claim 1, further comprising:
and generating a modification result after the user modifies the file in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification result is used for verifying the correctness of the deployment of the production environment.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
replacing the name of the first file in the modification record with the name of the second file; the first file is a file in first equipment before the user deploys the drilling environment, the second file is a file in second equipment before the user deploys the production environment, the first equipment is equipment for operating the drilling environment, the second equipment is equipment for operating the production environment, and the first file and the second file have the same content but different file names.
4. The method according to any one of claims 1-3, further comprising:
and determining third server data according to the first server data and the second server data, wherein the third server data is complete server data after the user finishes deploying the drilling environment.
5. The method of any of claims 1-4, wherein prior to generating a modification record of modifications made to files by the user in deploying the drilling environment based on the first server data and the second server data, the method further comprises:
marking a third file or a first directory which does not need to be detected in the drilling environment;
generating a modification record for modifying a file by the user in the process of deploying the drilling environment according to the first server data and the second server data, wherein the modification record comprises:
and under the condition of ignoring the modification of the first file or the first directory, generating a modification record for modifying the file by the user in the process of deploying the drilling environment according to the first server data and the second server data.
6. A production environment deployment apparatus, the apparatus comprising: a processing module;
the processing module is configured to obtain first server data and second server data, where the first server data is server data before a user deploys a drilling environment, and the second server data is modified data corresponding to modified data in the first server data after the user completes deployment of the drilling environment;
the processing module is further configured to generate a modification record for modifying a file by the user in the process of deploying the drilling environment according to the first server data and the second server data, where the modification record is used to guide the user deploying the production environment to deploy the production environment.
7. The production environment deployment device according to claim 6, wherein the processing module is further configured to generate a modification result obtained by modifying the file during the deployment of the drilling environment by the user according to the first server data and the second server data, and the modification result is used to verify the correctness of the deployment of the production environment.
8. The production environment deployment device according to claim 6 or 7, wherein the processing module is further configured to replace a name of a first file in the modification record with a name of a second file; the first file is a file in first equipment before the user deploys the drilling environment, the second file is a file in second equipment before the user deploys the production environment, the first equipment is equipment for operating the drilling environment, the second equipment is equipment for operating the production environment, and the first file and the second file have the same content but different file names.
9. The production environment deployment device according to any one of claims 6 to 8, wherein the processing module is further configured to determine third server data according to the first server data and the second server data, wherein the third server data is complete server data after the user completes deployment of the drilling environment.
10. The production environment deployment device according to any one of claims 6 to 9, wherein before the processing module generates a modification record of file modification performed by the user during deployment of the drilling environment according to the first server data and the second server data, the processing module is further configured to mark a third file or a first directory that does not need to be detected in the drilling environment; the processing module is specifically configured to generate a modification record for modifying a file by the user in the process of deploying the drilling environment according to the first server data and the second server data under the condition that modification of the first file or the first directory is ignored.
11. A production environment deployment apparatus, comprising a memory and a processor; the memory is configured to store a computer program that the processor is configured to execute to perform the production environment deployment method of any of claims 1-5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a computer, causes the computer to execute the production environment deployment method of any one of claims 1-5.
13. A computer program product, which, when run on a computer, causes the computer to perform the production environment deployment method of any one of claims 1-5.
CN202111051890.5A 2021-09-08 2021-09-08 Production environment deployment method and device Pending CN113778460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111051890.5A CN113778460A (en) 2021-09-08 2021-09-08 Production environment deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111051890.5A CN113778460A (en) 2021-09-08 2021-09-08 Production environment deployment method and device

Publications (1)

Publication Number Publication Date
CN113778460A true CN113778460A (en) 2021-12-10

Family

ID=78841893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111051890.5A Pending CN113778460A (en) 2021-09-08 2021-09-08 Production environment deployment method and device

Country Status (1)

Country Link
CN (1) CN113778460A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501335A (en) * 2023-06-28 2023-07-28 北京安锐卓越信息技术股份有限公司 Deployment method, device and medium of one-stop type station building system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095501A (en) * 2016-06-12 2016-11-09 华为软件技术有限公司 A kind of application section arranging method and device
CN106201502A (en) * 2016-07-06 2016-12-07 ***股份有限公司 A kind of across host application program dispositions method and device
US20210255847A1 (en) * 2020-02-18 2021-08-19 International Business Machines Corporation Model-based differencing to selectively generate and deploy images in a target computing environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095501A (en) * 2016-06-12 2016-11-09 华为软件技术有限公司 A kind of application section arranging method and device
CN106201502A (en) * 2016-07-06 2016-12-07 ***股份有限公司 A kind of across host application program dispositions method and device
US20210255847A1 (en) * 2020-02-18 2021-08-19 International Business Machines Corporation Model-based differencing to selectively generate and deploy images in a target computing environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501335A (en) * 2023-06-28 2023-07-28 北京安锐卓越信息技术股份有限公司 Deployment method, device and medium of one-stop type station building system
CN116501335B (en) * 2023-06-28 2023-09-19 北京安锐卓越信息技术股份有限公司 Deployment method, device and medium of one-stop type station building system

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107506300B (en) User interface testing method, device, server and storage medium
CN108399132B (en) Scheduling test method, device and storage medium
CN108388514B (en) Interface automation test method, device, equipment and computer readable storage medium
CN110457211B (en) Script performance test method, device and equipment and computer storage medium
US10169203B2 (en) Test simulation for software defined networking environments
CN110765018B (en) Automatic interface testing method and equipment
CN107644075B (en) Method and device for collecting page information
CN113778898B (en) User interface automatic test method and device, electronic equipment and storage medium
CN107015841B (en) Preprocessing method for program compiling and program compiling device
CN106874028A (en) Using dispositions method and device
CN111475390A (en) Log collection system deployment method, device, equipment and storage medium
CN113590454A (en) Test method, test device, computer equipment and storage medium
CN113778460A (en) Production environment deployment method and device
US11288170B1 (en) Log analysis debugging without running on real production environment
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN112100036B (en) Page performance monitoring method and system based on PaaS front-end engine
CN117539459A (en) API interface configuration method, system and equipment
CN113220577A (en) Software testing task testing method and system based on cloud computing
CN110889116A (en) Advertisement blocking method and device and electronic equipment
US11947966B2 (en) Identifying computer instructions enclosed by macros and conflicting macros at build time
CN113434938B (en) BIM model checking method, BIM model checking device, computer equipment and storage medium
CN115656788A (en) Chip testing system, method, equipment and storage medium
CN113986768A (en) Application stability testing method, device, equipment and medium
CN114116407A (en) Vehicle machine error log analysis uploading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination