CN115221138A - Production drilling method, device, system and node - Google Patents

Production drilling method, device, system and node Download PDF

Info

Publication number
CN115221138A
CN115221138A CN202210805689.XA CN202210805689A CN115221138A CN 115221138 A CN115221138 A CN 115221138A CN 202210805689 A CN202210805689 A CN 202210805689A CN 115221138 A CN115221138 A CN 115221138A
Authority
CN
China
Prior art keywords
data
drilling
log file
production
real
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
CN202210805689.XA
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202210805689.XA priority Critical patent/CN115221138A/en
Publication of CN115221138A publication Critical patent/CN115221138A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the specification provides a production drilling method, a production drilling device, a production drilling system and a node. The method comprises the following steps: receiving drilling data injected by an injection platform; adding the drilling data into a real log file, and intercepting production data into a set log file; performing simulated drilling according to drilling data in the real log file; and deleting the drilling data from the real log file, and supplementing the production data in the set log file to the real log file. In the technical scheme provided by the embodiment of the specification, the node intercepts production data into the set log file, and then performs simulated drilling according to drilling data in the real log file, so that the influence of real production on the simulated drilling process is avoided, and the simulation degree of production drilling is improved; the node deletes drilling data from the real log file and supplements production data in the set log file to the real log file, so that the influence of simulation drilling on real production is avoided. The embodiment of the specification improves the simulation degree of production drilling under the condition of not influencing real production. Thereby realizing the lossless drilling of the full link.

Description

Production drilling method, device, system and node
[ technical field ] A
The embodiment of the specification relates to the technical field of computers, in particular to a production drilling method, a production drilling device, a production drilling system and a node.
[ background of the invention ]
With the development of computer technology, people have higher and higher demand on the internet, and especially, a service system for a network needs to be continuously updated and improved. However, people are confronted with the negative problem caused by the failure of the network service system while enjoying the convenience of the network service system. In order to improve the user experience, it is usually necessary to drill down the production environment of the network service system.
In the related art, a log drilling scheme is generally adopted for drilling. However, the simulation of the real situation in the related art while performing drilling causes real damage failures to the real production, thereby affecting the actual production; meanwhile, the real production process can also influence the simulation of the real situation, thereby reducing the simulation degree of the production drilling.
In summary, no solution in the related art can improve the simulation degree of the production drill without affecting the real production.
[ summary of the invention ]
In view of this, the present specification provides a production drilling method, apparatus, system and node, which are used to improve the simulation degree of production drilling without affecting the real production.
A first aspect provides a production drill method, the method comprising:
receiving drilling data injected by an injection platform;
adding the drilling data into a real log file, and intercepting production data into a set log file;
performing simulated drilling according to drilling data in the real log file;
and deleting the drilling data from the real log file, and supplementing the production data in the set log file to the real log file.
In a possible implementation, the real log file and the set log file are located in the same directory.
In a possible implementation manner, after performing the simulation drilling according to the drilling data in the real log file, the method further includes:
and generating simulated drilling content according to the drilling data in the real log file, and outputting the simulated drilling content to a data display platform.
In one possible implementation, the method further includes:
setting an interception position mark for the drilling data, wherein the interception position mark is used for marking the position of the drilling data in the real log file;
the deleting the drilling data from the real log file includes: deleting the drilling data from the real log file according to the interception position mark;
supplementing the production data in the set log file into the real log file comprises the following steps: and supplementing the production data in the set log file to the real log file according to the interception position mark.
A second aspect provides a production drill method, the method comprising:
the injection platform injects drilling data to the node;
the nodes add the drilling data into a real log file and intercept production data into a set log file;
the node carries out simulation drilling according to the drilling data in the real log file;
and the node deletes the drilling data from the real log file and supplements the production data in the set log file to the real log file.
In a possible implementation manner, after performing the simulation drilling according to the drilling data in the real log file, the method further includes:
the node generates simulation drilling content according to the drilling data in the real log file and outputs the simulation drilling content to a data display platform;
and the data display platform displays the simulation drilling content.
In one possible implementation, the injection platform injects the drilling data to the node, including:
and the injection platform synchronously injects the drilling data of different nodes on the full link into the corresponding nodes.
In a possible implementation manner, before the injection platform injects the drilling data of different nodes on the full link to the corresponding node, the method further includes:
and the injection platform modifies the pre-stored data logs of different nodes on the full link to generate drilling data of different nodes.
In a possible implementation manner, the injection platform performs modification processing on pre-stored data logs of different nodes on a full link, including:
and the injection platform modifies the log data content of the log data of different nodes on the whole link and/or sets the proportion of the drilling log data.
In a possible implementation manner, before the injection platform modifies the pre-stored data logs of different nodes on the full link and generates the drilling data of different nodes, the method further includes:
the injection platform acquires a plurality of data logs of each node on a full link, wherein each data log comprises a call chain identifier;
the injection platform acquires call chain associated data according to the call chain identifier, wherein the call chain associated data comprises data logs of different nodes associated with the same call chain;
and the injection platform stores the call chain associated data.
In a possible implementation manner, the obtaining, by the injection platform, call chain associated data according to the call chain identifier includes:
and the injection platform determines the data logs of different nodes with the same calling chain identification as the calling chain associated data.
In a possible implementation manner, the storing, by the injection platform, the call chain association data includes:
and the injection platform stores the data logs of different nodes associated with the same call chain according to the real log data proportion.
A third aspect provides a production drill system, the system comprising: an injection platform and a plurality of nodes;
the injection platform is used for injecting drilling data into the node;
the node is used for adding the drilling data into a real log file and intercepting production data into a set log file; performing simulated drilling according to drilling data in the real log file; and deleting the drilling data from the real log file, and supplementing the production data in the set log file to the real log file.
In one possible implementation, the system further includes: a data presentation platform;
the node is also used for generating simulation drilling content according to the drilling data in the real log file and outputting the simulation drilling content to the data display platform;
the data display platform is used for displaying the simulation drilling content.
In one possible implementation, the plurality of nodes are located on a full link;
the injection platform is specifically configured to synchronously inject drilling data of different nodes on a full link into corresponding nodes.
A fourth aspect provides a production drill apparatus, the apparatus comprising:
the receiving and transmitting module is used for receiving the drilling data injected by the injection platform;
the adding module is used for adding the drilling data into a real log file;
the intercepting module is used for intercepting the production data into a set log file;
the simulation drilling module is used for performing simulation drilling according to the drilling data in the real log file;
and the log file processing module is used for deleting the drilling data from the real log file and supplementing the production data in the set log file to the real log file.
A fifth aspect provides a node comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the contingency rules platform, cause the node to perform the method of production drilling of the first aspect or any possible implementation of the first aspect.
A sixth aspect provides a computer-readable storage medium comprising a stored program, wherein the program, when executed, controls a node where the computer-readable storage medium is located to perform the first aspect or any possible production drill method of the first aspect.
In the technical scheme provided by the embodiment of the specification, the node intercepts production data into the set log file, and then performs simulation drilling according to drilling data in the real log file, so that the influence of real production on the simulation drilling process is avoided, and the simulation degree of production drilling is improved; the node deletes drilling data from the real log file and supplements production data in the set log file to the real log file, so that the influence of simulation drilling on real production is avoided. The embodiment of the specification improves the simulation degree of production drilling under the condition of not influencing real production.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present specification, the drawings required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present specification, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive labor.
Fig. 1 is a schematic structural diagram of a production drilling system provided in an embodiment of the present specification;
FIG. 2 is a flow chart of a production drill method provided in an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a production drill method provided in the embodiments of the present disclosure;
FIG. 4 is another schematic diagram of a production drill method provided in the embodiments of the present disclosure;
fig. 5 is a flowchart for acquiring drill data according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of acquiring drill data according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a production practicing device provided in an embodiment of the present specification;
fig. 8 is a schematic structural diagram of a node according to an embodiment of the present disclosure.
[ detailed description ] A
In order to better understand the technical solution of the present specification, the following detailed description is made with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The terminology used in the embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the specification examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely a relationship that describes an associated object, meaning that three relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the related art, a log drilling scheme is usually adopted for drilling, but no scheme is available for improving the simulation degree of production drilling under the condition of not influencing real production. In daily drilling, injection or simulation of a single node on a full link can be usually performed, so that the whole drilling scheme is not real, and a scene of the full link with risks cannot be effectively proved, thereby causing low simulation degree of production drilling. In addition, in the case of the log drilling scheme, if the injection of the full link is to be completely simulated, the injection process of the full link can be effectively simulated only by analyzing all nodes related to the full link and simultaneously performing synchronous injection on a single node. And a plurality of single nodes are found through the full link, and the writing of injection content is also a complex work, so that the injection efficiency in the drilling process is greatly reduced. In daily drilling, if one or two nodes are omitted when numerous nodes on a full link are searched, drilling simulation degree can be greatly reduced; meanwhile, in daily drilling, the log content of the full link under a complex condition cannot be effectively simulated, for example, the real data proportion of the log cannot be simulated, so that the production drilling and the real production condition are different, and the simulation degree of the production drilling is reduced.
In order to solve the above technical problems, embodiments of the present specification provide a production drilling method, apparatus, system, and node, which improve the simulation of production drilling without affecting the actual production, thereby implementing full-link lossless drilling. Meanwhile, the injection efficiency and the simulation degree of the drilling data can be effectively improved.
Fig. 1 is a schematic structural diagram of a production drill system according to an embodiment of the present disclosure, and as shown in fig. 1, the system includes an injection platform and a plurality of nodes.
As shown in fig. 1, the injection platform is a platform for performing drill data injection. In some embodiments, the injection platform and the plurality of nodes may each be an electronic device with certain computing capability, for example, the electronic device is a server, where the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides basic cloud computing services such as cloud services, a cloud database, cloud computing, cloud storage, big data, and an artificial intelligence platform.
As shown in fig. 1, a plurality of nodes may be located on a full link, and a plurality of nodes are disposed on one full link, which is described by taking four nodes as an example in fig. 1, and the plurality of nodes may include a node a, a node B, a node C, and a node D, that is, a node a, a node B, a node C, and a node D are disposed on one full link.
As shown in fig. 1, the injection platform is used to inject the drilling data into the node, for example, the injection platform injects the drilling data into node a, the injection platform injects the drilling data into node B, and the injection platform injects the drilling data into node D. And the injection platform is used for injecting the drilling data of different nodes on the full link into the corresponding nodes. In particular, the injection platform may be used to synchronously inject drill data for different nodes over a full link to the corresponding nodes. For example, the injection platform injects the drilling data of node a to node a, node B, node C and node D.
As an alternative, the production data may comprise a payment transaction log, a registration log, a login log, etc., and correspondingly, the drill data may comprise a payment transaction log, a registration log, a login log, etc. For example, if the production data is a payment transaction log of 10000 payment transactions per second, the drilling data is a payment transaction log of 100 payment transactions per second so that a failure can be detected during production drilling.
As shown in fig. 1, taking node a as an example, node a is configured to add the injected drilling data to a real log file, and intercept the production data to a set log file; performing simulated drilling according to drilling data in the real log file; and after the drilling is finished, deleting the drilling data from the real log file, and supplementing the production data in the set log file into the real log file. As shown in fig. 1, all nodes on the full link perform the production drilling process described above to implement the production drilling of the full link.
As shown in fig. 1, the system further includes a data presentation platform. The data display platform is used for displaying production data content and simulation exercise content. In some embodiments, the log display platform may be an electronic device with certain computing capability, for example, the electronic device is a server, where the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud services, a cloud database, cloud computing, cloud storage, big data, and an artificial intelligence platform.
As shown in fig. 1, taking node a as an example, node a is further configured to generate simulated drilling content according to the drilling data in the real log file, and output the simulated drilling content to the data presentation platform. The data display platform is used for displaying the simulation exercise content. In the embodiment of the present specification, the simulation exercise content includes payment transaction data, registration data, login verification data, and the like, for example, the payment transaction data is the number of transaction strokes per unit time, the registration data is the number of registered persons per unit time, and the login verification data is the number of verification codes sent per unit time. As shown in fig. 1, the data presentation platform presents the simulation drilling content output by all nodes on the link, so as to present the simulation drilling content of the full link.
As shown in fig. 1, the system further includes at least one terminal device, and the terminal device is in communication connection with the data presentation platform. The terminal devices are devices held by the drill attendant or the production attendant, and therefore, the number of the terminal devices may be one or more according to the needs of the drill attendant or the production attendant, which is described by taking 2 terminal devices as an example in fig. 1. For example, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a desktop computer, a vehicle-mounted terminal, and the like.
As an alternative, as shown in fig. 1, the data presentation platform is configured to receive an access request sent by the terminal device, where the access request includes a user identifier. The data display platform is used for returning a first display page to the terminal equipment if the user identification is identified as the identification of the drilling operator, and the first display page is used for displaying the simulation drilling content; the terminal equipment is used for displaying the first display page so as to display the simulation drilling content.
As another alternative, as shown in fig. 1, the data presentation platform is configured to receive an access request sent by the terminal device, where the access request includes a user identifier. The data display platform is used for returning a second display page to the terminal equipment if the user identification is identified as the identification of the production attendant, and the second display page is used for displaying the production data content; the terminal equipment is used for displaying the second display page so as to display the production data content.
Different users have different access rights, for example, a drilling operator on duty has the right to access drilling display data but does not have the right to access production display data; the production person on duty has the authority to access the production display data, but does not have the authority to access the drilling display data. Therefore, the data display platform can set different access rights for different users in advance, for example, the data display platform sets an access right capable of accessing the drilling display data for the drilling operator, and sets an access right capable of accessing the production display data for the production operator. As shown in fig. 1, after receiving the access request, the data presentation platform first needs to verify the identity of the user. If the data display platform identifies that the user identification is the identification of the drilling operator, determining that the user needing to access the data is the drilling operator; and if the data display platform identifies that the user identifier is the identifier of the production attendant, determining that the user needing to access the data is the production attendant. If the data display platform inquires that the drilling operator on duty has the access right for accessing the simulation drilling content according to the preset access right, the data display platform returns a first display page for displaying the drilling display data to the terminal equipment; and if the data display platform inquires that the production on-duty personnel has the access right for accessing the production data content according to the preset access right, the data display platform returns a second display page for displaying the drilling display data to the terminal equipment. For example, if the access request is a web request, the first displayed page is a web page, and the second displayed page is a web page.
Furthermore, when the user is authenticated, whether the password in the access request is correct or not can be verified, and if the password is verified to be correct, the user needing to access the data is determined to be a drilling operator, so that the safety of user authentication is ensured.
In this embodiment of the present specification, the node is further configured to set an interception location flag for the drilling data, where the interception location flag is used to mark a location of the drilling data in a real log file. The node is specifically used for deleting the drilling data from the real log file according to the interception position mark; and supplementing the production data in the set log file into the real log file according to the interception position mark.
In this embodiment, the injection platform is further configured to modify pre-stored data logs of different nodes on the full link, and generate drilling data of the different nodes. The injection platform is specifically used for modifying the content of the log data of different nodes on the full link and/or setting the proportion of the drill log data.
In an embodiment of the present specification, the injection platform is further configured to obtain a plurality of data logs of each node on the full link, where each data log includes a call chain identifier; acquiring call chain associated data according to the call chain identifier, wherein the call chain associated data comprises data logs of different nodes associated with the same call chain; and storing the call chain associated data. The injection platform is specifically configured to determine data logs of different nodes having the same call chain identifier as call chain associated data. The injection platform is specifically used for storing the data logs of different nodes associated with the same call chain according to the real log data proportion.
In the production drilling system provided by the embodiment of the description, the node intercepts production data into the set log file, and then performs simulation drilling according to drilling data in the real log file, so that the influence of real production on the simulation drilling process is avoided, and the simulation degree of production drilling is improved; the node deletes drilling data from the real log file and supplements production data in the set log file to the real log file, so that the influence of simulation drilling on real production is avoided. The embodiment of the specification improves the simulation degree of production drilling under the condition of not influencing real production. Thereby realizing the lossless drilling of the full link.
In the embodiment of the present specification, the injection platform modifies the pre-stored data logs of different nodes on the full link to generate the drilling data of different nodes, and injects the drilling data of different nodes on the full link to corresponding nodes, thereby implementing an injection process for effectively simulating the full link, further improving the simulation degree of production drilling, and improving the injection efficiency of the drilling data.
Fig. 2 is a flowchart of a production drill method provided in an embodiment of the present disclosure, and as shown in fig. 2, the method includes:
and 102, injecting the drilling data into the node by the injection platform.
Step 102 may include: and the injection platform injects the drilling data of different nodes on the full link into the corresponding nodes. In particular, the injection platform may be used to synchronously inject drill data for different nodes over a full link to the corresponding nodes. For example. The injection platform synchronously injects the drilling data of the node A to the node A, injects the drilling data of the node B to the node B, injects the drilling data of the node C to the node C, and injects the drilling data of the node D to the node D, thereby effectively simulating the injection process of a full link.
Fig. 3 is a schematic diagram of a production drilling method according to an embodiment of the present disclosure, and as shown in fig. 3, taking node a as an example, an injection platform injects drilling data of node a into node a, so that node a receives the drilling data.
The injection platform can synchronously inject the drilling data of all the nodes on the full link into the corresponding nodes so as to realize the injection process of the full link.
The production data may include payment transaction logs, registration logs, login logs, etc., and correspondingly, the drilling data may include payment transaction logs, registration logs, login logs, etc. For example, if the production data is a payment transaction log of 10000 payment transactions per second, the drilling data is a payment transaction log of 100 payment transactions per second so that a failure can be detected when performing production drilling.
And step 104, adding the drilling data into a real log file by the node, and intercepting the production data into a set log file.
As shown in fig. 3, taking node a as an example, node a is provided with a real log file and a set log file, and as an alternative, the real log file and the set log file are located in the same directory. Under the same directory, the file names of the real log file and the set log file are different, for example, the file name of the real log file is a.log, and the file name of the set log file is a.log.bak. The node A adds the drilling data to a real log file with a file name of A.log so as to facilitate simulation drilling according to the drilling data, and the node A intercepts the production data to a set log file with a file name of A.log.bak so as to temporarily intercept the production data, thereby avoiding the influence of the actual production process on the production drilling when simulation drilling is carried out according to the drilling data and improving the simulation degree of the production drilling.
Specifically, the method further comprises: the node sets an interception position mark for the drilling data, and the interception position mark is used for marking the position of the drilling data in the real log file. Step 104 may specifically include: and deleting the drilling data from the real log file according to the interception position mark, and supplementing the production data in the set log file into the real log file according to the interception position mark.
And 106, performing simulated drilling by the node according to drilling data in the real log file.
In this embodiment, step 106 may specifically include: the node can judge whether the drilling data in the real log file conforms to the alarm rule, and if so, a fault alarm result is generated; if not, a fault alarm result does not need to be generated.
In the embodiment of the specification, the alarm rule can be set according to production requirements. If the node judges that the drilling data accords with the alarm rule, the node indicates that the production drilling fails and needs to perform fault alarm, and a fault alarm result is generated; and if the node judges that the practice data does not accord with the alarm rule, the node indicates that the production practice has no fault and does not need to carry out fault alarm.
For example, if the drilling data is a payment transaction log, the node may monitor the payment transaction log, and count the number of the payment transaction logs in unit time, and the alarm rule may be that the number of the payment transaction logs in unit time is within a set threshold range. For example, if the threshold range is set to be less than or equal to 5000 transaction logs per second and the number of payment transaction logs per unit time is 100 transaction logs per second, the node may determine that the exercise data meets the alarm rule. The number of the transaction logs paid in the unit time of the drilling data is obviously lower than that of the transaction logs paid in the unit time of the normal production data, the alarm rule is met, and the fault alarm occurs.
In this embodiment, after step 106, the method further includes:
and 107a, generating simulated drilling content by the node according to the drilling data in the real log file, and outputting the simulated drilling content to a data display platform.
In the embodiment of the present specification, the simulation exercise content includes payment transaction data, registration data, and login verification data, for example, the payment transaction data is the number of transaction strokes in a unit time, the registration data is the number of registered people in a unit time, and the login verification data is the number of verification codes sent in a unit time. As shown in fig. 3, taking node a as an example, node a outputs the simulation exercise content to the data presentation platform. And the other nodes also output the simulation exercise content to the data presentation platform.
And step 107b, displaying the simulation drilling content by the data display platform.
In an embodiment of the present specification, the data display platform may display the simulation drill content to a drill attendant. As shown in fig. 3, specifically, the data presentation platform receives an access request sent by the terminal device, where the access request includes a user identifier. The data display platform is used for returning a first display page to the terminal equipment if the user identification is identified as the identification of the drilling operator, and the first display page is used for displaying the simulation drilling content; the terminal equipment displays the first display page so as to display the simulation drilling content to the drilling operator on duty.
The data display platform can display the simulation drilling contents output by all the nodes on the link so as to display the simulation drilling contents of the full link.
And step 108, deleting the drilling data from the real log file by the node, and supplementing the production data in the set log file into the real log file.
In this embodiment, after the drill is completed, step 108 may be executed, that is: and after the drilling is finished, the node deletes the drilling data from the real log file and supplements the production data in the set log file to the real log file.
Fig. 4 is another schematic diagram of the production drilling method provided in the embodiment of the present specification, and as shown in fig. 4, taking node a as an example, after drilling is completed, node a deletes drilling data from a real log file with a file name of a.log, and supplements production data in a set log file with a file name of a.log.bak to the real log file with a file name of a.log, thereby avoiding an influence of simulation drilling on real production.
Further, after step 108, the method further comprises:
and step 109a, the nodes carry out the production process according to the production data in the real log file.
Specifically, the node can judge whether the production data in the real log file accords with the alarm rule, and if so, a fault alarm result is generated; if not, a fault alarm result does not need to be generated.
In step 109a, the node may determine whether the production data in the real log file conforms to the alarm rule by the same method as the method for determining whether the drilling data conforms to the alarm rule in step 106, which is not described herein again.
And step 109b, the node generates production data content according to the production data in the real log file and outputs the production data content to the data display platform.
In the embodiment of the present specification, the production data content includes payment transaction data, registration data, login verification data, and the like, for example, the payment transaction data is the number of transaction strokes per unit time, the registration data is the number of registered persons per unit time, and the login verification data is the number of verification codes sent per unit time. As shown in fig. 4, taking node a as an example, node a outputs the production data content to the data presentation platform. And the other nodes also output the production data content to the data presentation platform.
And step 109c, displaying the production data content by the data display platform.
In the embodiment of the present specification, the data display platform may display production data content to a production attendant. Specifically, the data presentation platform receives an access request sent by the terminal device, where the access request includes a user identifier. The data display platform is used for returning a second display page to the terminal equipment if the user identifier is identified as the identifier of the production attendant, and the second display page is used for displaying the production data content; and the terminal equipment displays a second display page so as to display the production data content to the production attendant.
Fig. 5 is a flowchart of acquiring drill data according to an embodiment of the present disclosure, and fig. 6 is a schematic diagram of acquiring drill data according to an embodiment of the present disclosure. In this embodiment, as shown in fig. 5, before step 102, the method further includes:
step 100a, the injection platform obtains a plurality of data logs of each node on the full link, wherein each data log comprises a call chain identifier.
As shown in fig. 6, a plurality of nodes may be located on a full link, and a plurality of nodes are disposed on one full link, and as described by taking four nodes as an example in fig. 6, the plurality of nodes may include a node a, a node B, a node C, and a node D, that is, a node a, a node B, a node C, and a node D are disposed on one full link. Each node may generate a plurality of data logs, each data log including a call chain (tarce) identification for identifying which call chain the data log belongs to, and different data logs of a node may belong to different call chains. For example, if a call chain is used to represent a payment transaction process, the data log of the node may be a payment transaction log.
And step 100b, the injection platform acquires call chain associated data according to the call chain identifier, wherein the call chain associated data comprises data logs of different nodes associated with the same call chain.
Specifically, the injection platform determines the data logs of different nodes with the same call chain identifier as call chain associated data. As shown in fig. 6, if the data log A1 of the node a, the data log B1 of the node B, the data log C of the node C, the data log D1 of the node D, the data log D2 of the node D, and the data log D3 of the node D have the same call chain identifier, indicating that the data log of each node belongs to one call chain, the data log of each node may be determined as call chain associated data, where the call chain associated data includes the data log A1 of the node a, the data log B1 of the node B, the data log C of the node C, the data log D1 of the node D, the data log D2 of the node D, and the data log D3 of the node D associated with the same call chain.
And step 100c, the injection platform stores the call chain associated data.
Specifically, the injection platform stores the data logs of different nodes associated with the same call chain according to the real log data proportion. For example, one call chain is used to represent one payment transaction process, if a user browses N commodities in one payment transaction process, N browsing-related data logs are generated in the user browsing process, and then a user purchases 1 of the commodities, and 1 payment-related data log is generated in the user purchasing process. Therefore, the real log data ratio corresponding to the call chain is N: and if the number 1 and the number N are positive integers, the injection platform can store the data logs of different nodes related to the call chain according to the real log data proportion corresponding to the call chain.
And step 100d, the injection platform modifies the pre-stored data logs of different nodes on the full link to generate drilling data of different nodes.
The injection platform prestores data logs of different nodes on the full link. When production drilling is needed, the injection platform modifies the stored data log to obtain drilling data. As an alternative, the injection platform can perform desensitization processing on the stored data logs of different nodes, and then perform modification processing on the data logs after desensitization processing.
Specifically, the injection platform modifies the log data content of the log data of different nodes and/or sets the drilling log data proportion. The injection platform may modify the content of the log data by deleting part of the log data, for example, the number of the log data is 10000 per second, and the number of the drill data obtained after deleting part of the log data is 100 per second. Setting the drilling log data proportion may be to modify the real log data proportion to obtain the drilling log data proportion, for example, to set the real log data proportion N:1 modification is (N-2): 1, making the proportion of the drilling log data as (N-2): 1, if N =10, the real log data ratio is 10, and the modified drilling log data ratio is 8.
In the production drilling method provided by the embodiment of the specification, the node intercepts production data into the set log file, and then performs simulation drilling according to drilling data in the real log file, so that the influence of real production on the simulation drilling process is avoided, and the simulation degree of production drilling is improved; the node deletes drilling data from the real log file and supplements production data in the set log file to the real log file, so that the influence of simulation drilling on real production is avoided. The embodiment of the specification improves the simulation degree of production drilling under the condition of not influencing real production. Thereby realizing the lossless drilling of the full link.
In the embodiment of the present specification, the injection platform modifies the pre-stored data logs of different nodes on the full link to generate the drilling data of different nodes, and synchronously injects the drilling data of different nodes on the full link to corresponding nodes, so as to realize effective simulation of the injection process of the full link, further improve the simulation degree of production drilling, and improve the injection efficiency of the drilling data.
In the embodiment of the description, the injection platform can store the data logs of different nodes associated with the call chain according to the real log data proportion corresponding to the call chain, so that the real data proportion of the logs is effectively simulated, the difference between the production drilling and the real production situation is greatly reduced, and the simulation degree of the production drilling is further improved.
Fig. 7 is a schematic structural diagram of a production drill apparatus provided in an embodiment of the present disclosure, where the apparatus is applicable to a node, as shown in fig. 7, the apparatus includes: the system comprises a transceiver module 11, an adding module 12, an intercepting module 13, a simulation drilling module 14 and a log file processing module 15.
The transceiver module 11 is used for receiving the drilling data injected by the injection platform. The adding module 12 is used for adding the drilling data to the reality log file. The interception module 13 is configured to intercept the production data into a set log file. The simulation drilling module 14 is configured to perform simulation drilling according to the drilling data in the real log file. The log file processing module 15 is configured to delete the drilling data from the real log file, and supplement the production data in the set log file to the real log file.
In an embodiment of this specification, the apparatus further includes: a module 16 is generated. The generating module 16 is configured to generate simulated drilling content according to the drilling data in the real log file. The transceiver module 11 is further configured to output the simulation drill content to the data presentation platform.
In an embodiment of this specification, the apparatus further includes: a module 17 is provided. The setting module 17 is configured to set an interception location flag for the drilling data, where the interception location flag is used to mark a location of the drilling data in the real log file. The log file processing module 15 is specifically configured to delete the drilling data from the real log file according to the interception position mark; and supplementing the production data in the set log file into a real log file according to the interception position mark.
In the production drilling device provided in the embodiment of the specification, production data is intercepted into a set log file, and then simulation drilling is performed according to drilling data in a real log file, so that the influence of real production on the simulation drilling process is avoided, and the simulation degree of production drilling is improved; the drilling data is deleted from the real log file, and the production data in the set log file is supplemented into the real log file, so that the influence of simulation drilling on real production is avoided. The embodiment of the specification improves the simulation degree of production drilling under the condition of not influencing real production. Thereby realizing the lossless drilling of the full link.
The embodiment of the present specification provides a computer-readable storage medium, which includes a stored program, where when the program runs, the node where the computer-readable storage medium is located is controlled to execute the production drilling method.
The embodiment of the specification provides a node. The node comprises: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the node, make the node available for performing the steps in the production drilling method embodiments described above.
Fig. 8 is a schematic structural diagram of a node provided in an embodiment of the present disclosure, and as shown in fig. 8, the node 30 includes: a processor 31, a memory 32, and a computer program 33 stored in the memory 32 and capable of running on the processor 31, wherein the computer program 33 is executed by the processor 31 to implement the method for production drilling in the embodiments, which is not described herein in detail to avoid repetition. Alternatively, the computer program is executed by the processor 31 to implement the functions of each model/unit applied to the production drilling device in the embodiments, which are not repeated herein to avoid redundancy.
The node 30 includes, but is not limited to, a processor 31, a memory 32. Those skilled in the art will appreciate that fig. 8 is merely an example of the emergency rules platform 30, does not constitute a limitation of the node 30, and may include more or less components than those shown, or combine certain components, or different components, e.g., the image forming apparatus may further include input-output devices, network access devices, buses, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 32 may be an internal storage unit of the node 30, such as a hard disk or a memory of the node 30. The memory 32 may also be an external storage device of the node 30, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the node 30. Further, memory 32 may also include both internal storage units of node 30 and external storage devices. The memory 32 is used for storing computer programs and other programs and data required by the node 30. The memory 32 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present specification, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present specification may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In the embodiments of the present specification, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and 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.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical 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 specification.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present specification, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present specification may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present specification. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The above description is only an embodiment of the present disclosure, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope disclosed in the present disclosure, and all of them should be covered within the protection scope of the present disclosure. The protection scope of this specification shall be subject to the protection scope of the claims.

Claims (18)

1. A production drill method, the method comprising:
receiving drilling data injected by an injection platform;
adding the drilling data into a real log file, and intercepting production data into a set log file;
performing simulated drilling according to drilling data in the real log file;
and deleting the drilling data from the real log file, and supplementing the production data in the set log file to the real log file.
2. The method of claim 1, the real log file and the setup log file being located under a same directory.
3. The method of claim 1, further comprising, after performing the simulated drilling according to the drilling data in the real log file:
and generating simulation drilling content according to the drilling data in the real log file, and outputting the simulation drilling content to a data display platform.
4. The method of claim 1, further comprising:
setting an interception position mark for the drilling data, wherein the interception position mark is used for marking the position of the drilling data in the real log file;
the deleting the drilling data from the real log file includes: deleting the drilling data from the real log file according to the interception position mark;
the supplementing the production data in the set log file into the real log file comprises: and supplementing the production data in the set log file into the real log file according to the interception position mark.
5. A production drill method, the method comprising:
the injection platform injects drilling data to the node;
the node adds the drilling data into a real log file and intercepts production data into a set log file;
the node carries out simulated drilling according to the drilling data in the real log file;
and the node deletes the drilling data from the real log file and supplements the production data in the set log file to the real log file.
6. The method of claim 5, after performing the simulated drilling according to the drilling data in the real log file, further comprising:
the node generates simulation drilling content according to the drilling data in the real log file and outputs the simulation drilling content to a data display platform;
and the data display platform displays the simulation drilling content.
7. The method of claim 5, the injection platform injecting drill data into a node, comprising:
and the injection platform synchronously injects the drilling data of different nodes on the full link into the corresponding nodes.
8. The method of claim 7, the injection platform injecting the drill-down data of different nodes on the full link before the corresponding node, further comprising:
and the injection platform modifies the pre-stored data logs of different nodes on the full link to generate the drilling data of different nodes.
9. The method of claim 5, wherein the injection platform performs modification processing on pre-stored data logs of different nodes on the full link, and the modification processing comprises:
and the injection platform modifies the log data content of the log data of different nodes on the whole link and/or sets the proportion of the drilling log data.
10. The method of claim 9, wherein before the injection platform modifies the pre-stored data logs of different nodes on the full link to generate the drilling data of different nodes, the injection platform further comprises:
the injection platform acquires a plurality of data logs of each node on a full link, wherein each data log comprises a call chain identifier;
the injection platform acquires call chain associated data according to the call chain identifier, wherein the call chain associated data comprises data logs of different nodes associated with the same call chain;
and the injection platform stores the call chain associated data.
11. The method of claim 10, wherein the injection platform obtains call chain association data according to the call chain identifier, and comprises:
and the injection platform determines the data logs of different nodes with the same call chain identifier as the call chain associated data.
12. The method of claim 10, the injection platform storing the call chain association data according to comprising:
and the injection platform stores the data logs of different nodes associated with the same call chain according to the real log data proportion.
13. A production drill system, the system comprising: an injection platform and a plurality of nodes;
the injection platform is used for injecting drilling data into the node;
the node is used for adding the drilling data into a real log file and intercepting production data into a set log file; performing simulated drilling according to drilling data in the real log file; and deleting the drilling data from the real log file, and supplementing the production data in the set log file to the real log file.
14. The system of claim 13, further comprising: a data presentation platform;
the node is also used for generating simulation drilling content according to the drilling data in the real log file and outputting the simulation drilling content to the data display platform;
the data display platform is used for displaying the simulation drilling content.
15. The system of claim 13, the plurality of nodes being located on a full link;
the injection platform is specifically configured to synchronously inject drilling data of different nodes on a full link into corresponding nodes.
16. A production drill apparatus, the apparatus comprising:
the receiving and transmitting module is used for receiving the drilling data injected by the injection platform;
the adding module is used for adding the drilling data into a real log file;
the intercepting module is used for intercepting the production data into a set log file;
the simulation drilling module is used for performing simulation drilling according to the drilling data in the real log file;
and the log file processing module is used for deleting the drilling data from the real log file and supplementing the production data in the set log file to the real log file.
17. A node, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the node, cause the node to perform the production drilling method of any one of claims 1 to 4.
18. A computer-readable storage medium comprising a stored program, wherein the program when executed controls a node at which the computer-readable storage medium is located to perform the production drilling method of any one of claims 1 to 4.
CN202210805689.XA 2022-07-08 2022-07-08 Production drilling method, device, system and node Pending CN115221138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210805689.XA CN115221138A (en) 2022-07-08 2022-07-08 Production drilling method, device, system and node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210805689.XA CN115221138A (en) 2022-07-08 2022-07-08 Production drilling method, device, system and node

Publications (1)

Publication Number Publication Date
CN115221138A true CN115221138A (en) 2022-10-21

Family

ID=83609731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210805689.XA Pending CN115221138A (en) 2022-07-08 2022-07-08 Production drilling method, device, system and node

Country Status (1)

Country Link
CN (1) CN115221138A (en)

Similar Documents

Publication Publication Date Title
CN110602052B (en) Micro-service processing method and server
US20200294048A1 (en) Blockchain-based data verification method and apparatus, and electronic device
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN111556059A (en) Abnormity detection method, abnormity detection device and terminal equipment
CN107563181A (en) A kind of verification method and system for clicking graphical verification code
CN107634947A (en) Limitation malice logs in or the method and apparatus of registration
CN109447384A (en) Verification method, device, equipment and the storage medium of air control system
CN111711655A (en) Block chain-based electronic data evidence storing method, system, storage medium and terminal
CN106992975A (en) The recognition methods of malice network address and device
CN107656959B (en) Message leaving method and device and message leaving equipment
CN114024723B (en) Online signing method and device based on ESOP system, equipment and medium
CN113890739A (en) Cross-block-chain authentication method and device, electronic equipment and medium
JP6608061B2 (en) Risk event recognition system, method, electronic apparatus and storage medium based on SNS information
CN112598810A (en) Exhibition entrance processing method and device
CN112328686A (en) Block chain link point sharing method based on digital certificate and related products thereof
CN111814064A (en) Abnormal user processing method and device based on Neo4j, computer equipment and medium
CN115221138A (en) Production drilling method, device, system and node
CN114398678A (en) Registration verification method and device for preventing electronic file from being tampered, electronic equipment and medium
CN110941412B (en) Method, system and terminal for realizing multi-terminal animation collaborative browsing based on pictures
CN113190200A (en) Exhibition data security protection method and device
CN111625465A (en) Program generation method, device and system and electronic equipment
CN114928532B (en) Alarm message generation method, device, equipment and storage medium
CN115225666A (en) Production drilling method, device and system, emergency rule platform and injection platform
CN117272396B (en) Anti-tampering method for test result
CN109104322A (en) Solution, device, readable storage medium storing program for executing and the system of FL-NET communication failure

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