CN116701063B - Persistence method, device and system for internal memory state data for data language of digital networking - Google Patents
Persistence method, device and system for internal memory state data for data language of digital networking Download PDFInfo
- Publication number
- CN116701063B CN116701063B CN202310981899.9A CN202310981899A CN116701063B CN 116701063 B CN116701063 B CN 116701063B CN 202310981899 A CN202310981899 A CN 202310981899A CN 116701063 B CN116701063 B CN 116701063B
- Authority
- CN
- China
- Prior art keywords
- point data
- language
- digital
- data
- data language
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 94
- 230000002688 persistence Effects 0.000 title claims abstract description 48
- 230000006855 networking Effects 0.000 title claims abstract description 20
- 238000003860 storage Methods 0.000 claims abstract description 75
- 230000008569 process Effects 0.000 claims abstract description 44
- 238000011084 recovery Methods 0.000 claims description 30
- 238000011068 loading method Methods 0.000 claims description 14
- 238000004458 analytical method Methods 0.000 claims description 8
- 238000012795 verification Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000002085 persistent effect Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000007405 data analysis Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1456—Hardware arrangements for backup
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1474—Saving, restoring, recovering or retrying in transactions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/24569—Query processing with adaptation to specific hardware, e.g. adapted for using GPUs or SSDs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/283—Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a persistence method, a device and a system of memory state data for digital networking data languages, wherein the method comprises the following steps: in the running process of the single-point data language, automatically and periodically storing the full state data of the single-point data language to a hard disk according to a preset period in a preset storage mode; at any moment in the single-point data language operation process, a storage instruction is received, and the full state data at the current moment is stored in a hard disk; when the condition that the language is stopped at any moment in the single-point data language operation process, the full-quantity state data of the language at the time of stopping operation is automatically stored to the hard disk according to a stopping storage mode in the configuration information. The invention can not lose the full-quantity state data due to the problems of downtime, power failure and the like of the Rayleigh operator digital object warehouse node, and can recover the language use of the latest full-quantity state data or the single-point data language use of the full-quantity state data at the selected moment in the later period, thereby having higher practicability.
Description
Technical Field
The invention relates to the field of digital networking, in particular to a persistence method and device of memory state data for digital networking data languages and a digital networking system.
Background
With the advent of the big data age, the value of data is increasingly prominent. Through analysis of the big data, many additional values can be generated. For example, during an epidemic situation, through big data analysis, a person can accurately and quickly inquire about which cities to go, which trains to take, whether to go to a high risk area, and the like. To use data for analysis, exchange and processing of data is required. In a data sharing exchange scenario, there is a regulatory problem, i.e., a serious trust problem, on large-scale shared data. The acquirer needs to use the acquirer's data, producing valuable results by manipulating the data, but the acquirer is often not trusted by the acquirer. Once the data is transferred from the supplier to the acquirer, the acquirer can do any action, such as doing something different from the previously declared action on the data, even vending the original data.
Based on the above big data application requirements, currently, a system for running data language based on a memory is available, and corresponding services are provided for the scene of big data application. In the digital networking system adopting the memory digital object warehouse mode for the data language, the sharing exchange of big data is realized by means of the form of the data language, and in the digital networking system adopting the memory digital object warehouse mode for the data language, the memory-based digital object warehouse mode and the random multipoint execution mode are adopted for the data language.
The memory-based digital object warehouse mode of the digital Rate operator can well meet the requirement of the execution time of the data language, improves the throughput rate of the execution of the data language, has good overall performance and has no additional cost. However, in the memory-based digital object warehouse mode of the digital Rayleigh operator, because the data words are used in the memory digital object warehouse, run and store, when the problems of downtime, power failure and the like of equipment for running the data words occur, the memory state data for the whole data words can be completely lost and cannot be recovered. Therefore, how to ensure the memory state data for the data language not to be lost when the related equipment is in downtime, power failure and other problems on the basis of ensuring the execution time requirement for the data language and the execution throughput rate for the data language under the digital object warehouse mode of the number and the Rate operator based on the memory, and recovering the memory state data for the data language after the related equipment is recovered to be normal is a problem to be solved urgently.
Disclosure of Invention
In view of the above problems, the invention provides a persistence method, a persistence device and a persistence system for data language memory state data of a digital network, which ensure that the data language memory state data is not lost when related equipment is down, power failure and the like on the basis of guaranteeing the execution time requirement and the execution throughput rate of the data language, and can recover the data language memory state data after the related equipment is recovered to be normal.
The embodiment of the invention provides a persistence method of memory state data for a digital networking data language, which is applied to a digital object warehouse node of a digital network of digital data sub-operators, wherein the digital object warehouse node of the digital data sub-operators runs the data language, and the data language is a single-point data language, and the persistence method comprises the following steps:
in the running process of the data language, according to a preset period in a preset storage mode, automatically storing the full state data of the single-point data language to a hard disk when each preset period expires;
at any moment in the single-point data language operation process, a storage instruction is received, and the full state data at the current moment is stored into the hard disk;
when the condition that the single-point data language stops running occurs at any moment in the running process of the single-point data language, automatically storing the full state data of the single-point data language at the running stopping moment to the hard disk according to a stopping storage mode in configuration information;
and after the operation of the single-point data language is finished, sending an operation result of the single-point data language to the digital object warehouse node of the digital network for verification.
Optionally, the method further comprises:
before the single-point data language is started for the first time, receiving the configuration information and the preset storage mode;
and receiving a starting instruction, starting the single-point data language through the single-point data language execution engine and various parameters for starting the single-point data language, and starting the single-point data language.
Optionally, the method further comprises:
receiving a recovery instruction at any moment in the single-point data language operation process, and acquiring full state data corresponding to the appointed moment in the recovery instruction from the hard disk;
and according to the full state data corresponding to the designated time in the recovery instruction, recovering the single-point data language to the full state at the designated time.
Optionally, the method further comprises:
when the single-point data language is stopped and restarted, loading the full state data of the single-point data language used at the previous stopping operation time according to a starting loading mode in the configuration information;
and taking the full state data of the single-point data word used at the previous running stopping time as the initial full state data of the single-point data word used at the current running time, and continuing to run the single-point data word.
Optionally, the preset storage mode further includes: a non-save mode, the persistence method further comprising:
and in the running process of the single-point data word, if the preset storage mode is the non-storage mode, not automatically storing the full-state data of the single-point data word to the hard disk until the storage instruction is received or the running stop condition of the single-point data word occurs.
Optionally, after the full-quantity state data used in the single-point data word at the previous time of stopping running is used as the initial full-quantity state data used in the single-point data word at the current time of running and the single-point data word is continuously running, the method further includes:
and taking the rerun time of the single-point data word as the starting time, and automatically storing the full state data of the single-point data word to a hard disk when each preset period expires according to the preset period.
The embodiment of the invention also provides a persistence device of memory state data for the digital data language of the digital network, the persistence device is applied to a digital object warehouse node of the digital object warehouse of the digital network, the digital object warehouse of the digital network operates the data language on the digital object warehouse node of the digital object warehouse of the digital network, the intelligent data language is used as a single-point data language, and the persistence device comprises:
The period storage module is used for automatically storing the full state data of the single-point data language to a hard disk when each preset period expires according to the preset period in the preset storage mode in the running process of the single-point data language;
the instruction storage module is used for receiving a storage instruction at any moment in the single-point data language operation process and storing the full state data at the current moment to the hard disk;
the stop storage module is used for automatically storing the full state data of the single-point data language used at the stop operation time to the hard disk according to the stop storage mode in the configuration information when the stop operation condition of the single-point data language appears at any time in the operation process of the single-point data language;
and the result sending module is used for sending the operation result for the single-point data language to the digital object storage warehouse of the digital network for verification after the operation for the single-point data language is finished.
Optionally, the persistence device further comprises:
the receiving module is used for receiving the configuration information and the preset storage mode before the single-point data language is started for the first time;
The starting operation module is used for receiving a starting instruction, starting the single-point data language through the single-point data language execution engine and various parameters for starting the single-point data language, and starting the single-point data language.
Optionally, the persistence device further comprises:
the data acquisition module is used for receiving a recovery instruction at any moment in the single-point data language operation process and acquiring full state data corresponding to the appointed moment in the recovery instruction from the hard disk;
and the recovery state module is used for recovering the single-point data language to the full state at the appointed moment according to the full state data corresponding to the appointed moment in the recovery instruction.
Optionally, the persistence device further comprises:
the starting loading module is used for loading the full state data of the single-point data language used at the previous stopping running time according to the starting loading mode in the configuration information when the single-point data language is stopped and restarted;
and the continuous operation module is used for taking the full state data of the single-point data language used at the previous time of stopping operation as the initial full state data of the single-point data language used at the current time of operation and continuously operating the single-point data language.
The embodiment of the invention also provides a digital networking system, which comprises: the digital network identification analysis system, the digital object warehouse node of the digital Rayleigh operator and the digital object warehouse node of the digital Rayleigh storage;
the digital networking identification analysis system node is used for managing the digital object warehouse node of the digital data sub-operator and the digital object warehouse node of the digital data storage sub-operator;
the digital object warehouse node is used for executing the persistence method of the data language memory state data;
the digital object warehouse node is used for storing the operation result for the single-point data language sent by the digital object warehouse node.
According to the persistence method of the memory state data for the data languages, in the running process of the single-point data languages, the full state data of the single-point data languages in each preset period is automatically stored to a hard disk according to the preset period in the preset storage mode. According to the periodic storage method, the full-quantity state data for the single-point data words are stored in the hard disk, and even if the problems of downtime, power failure and the like occur in the digital object warehouse nodes of the digital Rayleigh operator, the full-quantity state data in the memory is lost, but the full-quantity state data in the hard disk is not lost. And the data language execution time requirement and the data language execution throughput rate are not affected due to the periodical storage.
In addition, considering that some key nodes need to be saved in the single-point data word operation process, or that a user needs to save the full-quantity state data for the single-point data word at a certain moment, a save instruction is received at any moment in the single-point data word operation process, and the full-quantity state data at the current moment is saved to the hard disk. The storage method can store the full-quantity state data for the single-point data language in the hard disk according to actual requirements, can ensure that the full-quantity state data for the single-point data language is not lost, and is convenient for the recovery of the full-quantity state data for the single-point data language in the later period. And due to sporadic storage, the execution time requirement of the data language and the execution throughput rate of the data language are not affected.
Similarly, considering the special situation when the single-point data word is stopped, when the situation that the single-point data word is stopped at any moment occurs in the single-point data word operation process, the full state data of the single-point data word at the time of stopping operation is automatically stored in the hard disk according to the stopping storage mode in the configuration information. The storage method ensures that the latest full-quantity state data for the single-point data language is not lost, and when the full-quantity state data for the single-point data language is recovered in the later period, the latest full-quantity state data before the operation is stopped is directly recovered, the state which is already operated is not required to be repeated, and the execution time requirement and the execution throughput rate of the data language are also improved.
Through the three storage methods, the persistent storage of the full-quantity state data for the single-point data in the operation life cycle of the single-point data is ensured, the full-quantity state data cannot be lost due to the problems of downtime, power failure and the like of the warehouse nodes of the Rayleigh operator digital object, and the single-point data for the latest full-quantity state data or the single-point data for the full-quantity state data at the selected moment or the key node can be restored in the later recovery.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of a method for persisting memory state data for a data word of a digital network in accordance with an embodiment of the present invention;
FIG. 2 is a block diagram of a persistence device for data in a data language of a digital network in accordance with an embodiment of the present invention;
FIG. 3 is a simplified key value of the present invention showing the balance of all user accounts before application stops;
FIG. 4 is a simplified key value of an embodiment of the present invention illustrating the balance of all user accounts when creating an application;
FIG. 5 is a user account balance after a simple key value has been used to restart an application in an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a persistence method of memory state data for data languages, which aims at the current memory-based digital object warehouse mode of a digital Rayleigh operator, and referring to FIG. 1, a flow chart of the persistence method of memory state data for data languages for digital networking is shown, the persistence method is applied to a digital object warehouse node of a digital network of digital Rayleigh operator digital object warehouses, the digital object warehouse node of the digital network of digital Rayleigh operator digital object warehouses operates data language, and the data language is single-point data language, and the persistence method comprises the following steps:
Step 101: and in the running process of the single-point data language, according to the preset period in the preset storage mode, automatically storing the full state data of the single-point data language to the hard disk when each preset period expires.
In the embodiment of the invention, the single-point data language is characterized by self, typically arranged and run on a number of digital object warehouse number of a number of digital object warehouse nodes of the digital network, except the provider for the data language, other users who need to use the single-point data language need to apply certain rights to the provider for the data language, so that the single-point data language can be used. Different single-point data languages may be arranged on different ones of the digital object warehouse nodes, it is also possible to arrange the same number of number object warehouses.
Before the data language is used, namely before the single-point data language is started for the first time, the digital object warehouse node of the digital object warehouse of the digital object of the digital Rayleigh operator needs to receive configuration information and a preset storage mode; the configuration information can be configured by the data language booster in advance, and of course, the configuration information can also be configured by the user after applying for the authority, and the configuration information comprises: the stop save mode and the start load mode are described in detail below, and are not described in detail. The preset save mode is selected by the user before the data language is started.
The digital object warehouse node of the digital object warehouse of the digital Rayleigh operator receives a starting instruction, then starts the single-point data language through the single-point data language execution engine and various parameters for starting the single-point data language, the single-point data language can start to run, and the operation starts according to the configuration information and a preset storage mode.
In the single-point data word use operation process, assuming that a user does not have sporadic storage requirements, the number-end operator digital object warehouse node executes the single-point data word use based on the number-end operator digital object warehouse mode of the memory, and the full state data is stored in the memory, and the number-end operator digital object warehouse node automatically stores the full state data for the single-point data word use to a hard disk when each preset period expires according to the preset period in the preset storage mode. The preset period may be 12 hours, one day, two days, or the like.
As one example: taking 12 hours as an example, assume that the digital object warehouse node of the number of rayleigh operators at 9:00 starts single point data language usage and starts running, then at 21:00, the digital object warehouse node of the number Rayleigh operator automatically uses a single-point data word at 21: the full state data at 00 is saved to the hard disk, and during this time, the digital object repository node only stores the full state data in a single point data word in memory. Continuing to execute the single-point data language to 9 on the second day: at 00, the single-point data word is automatically used again at 21: and storing the full state data in 00 times to a hard disk, and the like until the single-point data language receives a stop request to stop running or the whole single-point data language normally runs.
Thus, even if the digital object warehouse node of the digital Rayleigh operator is in downtime, power failure and the like, the full state data in the memory is lost, but the data in the hard disk is not lost. And the data language execution time requirement and the data language execution throughput rate are not affected due to the periodical storage. Of course, it will be appreciated that if the number of rake digital object warehouse nodes occur within a certain period, for example: at 12: at time 00, the digital object warehouse node of the digital Rayleigh operator is down, so that the full state data for the single-point data word is not saved to the hard disk because the time of the preset period is not reached, and based on the problem, a solution is proposed in step 103, and is not repeated.
Of course, the user may set the preset period to be shorter, for example, 1 hour, and the digital object warehouse node of the digital Rayleigh operator will save the full-scale state data to the hard disk every hour according to the period of 1 hour. However, the shortening of the preset period increases the execution time of the digital object warehouse node of the digital Rayleigh operator for the single-point data language and the throughput of the single-point data language, so that the user can reasonably set the preset period according to the performance and other factors of the digital object warehouse node of the digital Rayleigh operator.
In addition, the preset storage mode further includes: the non-save mode is a mode of saving the full amount of state data for a single-point data word to the hard disk, and may be selected according to the actual needs of the user, for example, some single-point data words have a short life cycle or the user wants to save the state for the data word by manually sending a command, or the data word is a stateless data word and the full amount of state data does not need to be saved, and the save mode may be set to be non-save.
Therefore, in the running process of the single-point data word, if the preset storage mode is not the storage mode, the digital object warehouse node of the number-rate operator does not automatically store the full-state data for the single-point data word to the hard disk, and only stores the full-state data in the memory until a storage instruction is received or the situation that the single-point data word stops running occurs.
Step 102: at any moment in the single-point data language operation process, a storage instruction is received, and the full state data at the current moment is stored in the hard disk.
In the embodiment of the invention, for some single-point data words, some key nodes exist in the operation process, or when a user needs to store the full-quantity state data for the single-point data words at a certain moment, the user can store the full-quantity state data by means of a management tool for the single-point data words and the like by sporadically actively letting the digital object warehouse nodes of the digital Rayleigh operator. That is, at any time in the single-point data word operation process, a save instruction is received, and the digital object warehouse node saves the full-scale state data at the current time to the hard disk. The storage method can store the full-quantity state data for the single-point data language in the hard disk according to actual requirements, can ensure that the full-quantity state data for the single-point data language is not lost, and is convenient for later recovery of the full-quantity state data for the single-point data language. And due to sporadic storage, the execution time requirement of the data language and the execution throughput rate of the data language are not affected.
Along with the above example, assume that after one hour of operation, the single point data word is 10:00, the user needs to save the full-quantity state data for the single-point data language, then a save instruction is sent, and after the data Rayleigh operator digital object warehouse node receives the save instruction, 10: the full-quantity state data for the single-point data word at the time 00 is stored in the hard disk. After that the user has no sporadic save needs, then at 21:00, the digital object warehouse node of the number Rate operator stores 21 according to a preset period of 12 hours in a preset storage mode: full state data for single-point data words at time 00 is sent to the hard disk.
Step 103: when the single-point data language stops running at any moment in the running process of the single-point data language, the full state data of the single-point data language at the running stopping moment is automatically stored to the hard disk according to the stopping storage mode in the configuration information.
In the embodiment of the present invention, in order to prevent a situation that a single-point data word is used in a situation that a stop request is received to stop running in the running process but the whole amount of state data is lost, the configuration information includes: a stop save mode and a start load mode. The stop save mode means: when the operation is stopped at any moment in the single-point data language operation process, the full state data at the current moment is automatically stored to the hard disk. The boot loading method is as follows: after the single-point data language is restarted, the full-quantity state data at the stopping moment is automatically loaded and used as the initial full-quantity state data at the current running time of the single-point data language. The storage method ensures that the latest full-quantity state data for the single-point data word is not lost, and when the full-quantity state data for the single-point data word is recovered in the later period, the latest full-quantity state data before the operation is stopped is directly recovered, the state which is already operated is not required to be repeated, and the execution time requirement for the single-point data word and the execution throughput rate for the data word are also improved.
Along with the above example, assume that after ten hours of 10 minutes of operation for a single point data word, 19:10, the user wishes to stop the single point data word, then the digital rake digital object repository node will 19: and storing the full-quantity state data for the single-point data language at the moment 10 into a hard disk. After that, when the single-point data language is restarted, the digital object warehouse node of the digital Rayleigh operator automatically changes 19: the full-quantity state data at the time 10 is used as the initial full-quantity state data when the single-point data word is used for running at the current time.
It should be noted that, assuming that the single-point data word is started for the first time, it naturally does not have the full state data of the previous stop time of the single-point data word, so that only when the single-point data word receives a stop request to stop running and is restarted, the full state data of the single-point data word at the previous stop time is loaded according to the start loading mode in the configuration information; and then, using the full-quantity state data of the single-point data word at the previous running stopping time as the initial full-quantity state data of the single-point data word at the current running time, and continuing to run the single-point data word.
In the operation of storing the full-volume state data to the hard disk, the storing mode and the name of the single-point data word are used as the identification to be classified and stored generally at the moment of storing the full-volume state data, so that the user can find conveniently in the later recovery process, and the efficiency of the user is improved.
Step 104: after the operation of the single-point data language is finished, the operation result of the single-point data language is sent to a digital object warehouse node of the digital network for verification.
In the embodiment of the invention, if the single-point data language is used normally, an operation result is generated, and the operation result is only required to be used as the certification storage data to be sent to the digital object warehouse node of the digital network for storing certification in the digital object warehouse. Of course, the digital object warehouse node of the number Rayleigh operator can also store the running result, and the running result can be determined according to the requirement of a user.
Of course, the user can also make the digital object warehouse node of the digital sub-database take the full state data of a certain moment as the evidence storage data to generate to the digital object warehouse node of the digital sub-database, and then store the evidence in the digital object warehouse of the digital sub-database, however, the operation needs to occupy more operation resources of the digital object warehouse node of the digital operator, so that the requirement of the execution time for single-point data language is increased, and the execution throughput rate of the data language is reduced, and therefore, the operation can be implemented under the condition that the performance of the digital object warehouse node of the digital operator is very strong and the operation resources are relatively abundant.
In the embodiment of the invention, in the running process of the single-point data word, the full state data of the single-point data word can be stored according to the preset period, or the full state data of the single-point data word can be stored at any time according to the storage instruction, so that a user can restore the single-point data word to the single-point data word at the selected moment according to the self requirement. That is, at any time in the running process of the single-point data language, a recovery instruction is received, and full-quantity state data corresponding to the specified time in the recovery instruction is obtained from the hard disk; and then, according to the full state data corresponding to the designated time in the recovery instruction, the single-point data word is recovered to the full state at the designated time.
Similarly, when the single-point data word is restarted, loading the full state data of the single-point data word at the previous stopping operation time according to a starting loading mode in the configuration information; and taking the full-quantity state data of the single-point data word used at the previous running stopping time as the initial full-quantity state data of the single-point data word used at the current running time, and continuing to run the single-point data word. In addition, if the single-point data word is stopped and restarted after receiving the stop request, the preset period starts to be counted according to the restart time as the starting time, and the preset period is automatically saved until the preset period is not calculated by the time when the single-point data word is started for the first time.
Along with the above examples: suppose single point data word 9:00 starts to run for the first time, and after one hour of running, namely 10:00, the user needs to save the full-quantity state data for the single-point data language, then a save instruction is sent, and after the data Rayleigh operator digital object warehouse node receives the save instruction, 10: the full state data for the single-point data word at the time 00 is stored in the hard disk, and the full state data stored in the hard disk is stored at the time point: 10:00, save type: sporadically, the names are used together as identifiers in combination with the single-point data words for users to find. After that, the user has no sporadic storage requirement, and the single-point data language continues to run for ten hours and 10 minutes, namely 19:10, the single point data word is stopped by receiving a stop request, then the digital object repository node will 19: the full state data for the single-point data word at the time 10 is stored in the hard disk, and the full state data stored in the hard disk at the time point: 19:10, preservation type: stopping storing, and using the name together as the identification by combining the single-point data language for searching by the user. The user is at 20:06 need to restart the single-point data word, two identifications can be found at this time, one is 10: sporadic saving at time 00, one is 19: and stopping saving at the time 10, and enabling a user to select any time to recover the single-point data language.
Suppose that the user selects 10: the sporadically saved full-volume state data at time 00 is shown at 20:08 restart the single-point data word, then the single-point data word is used to 10: the full-quantity state data at the moment 00 is the initial full-quantity state data at the current running time, and the single-point data language is continuously run. After the single-point data language is started and operated, the method uses 20:08 as the new start time of the preset period. At 8:08, the digital object warehouse node of the number Rayleigh operator stores 8 according to a preset period of 12 hours in a preset storage mode: full state data for single-point data words at time 08 is stored in the hard disk at the time point: 8:08, save type: the periodicity is preset, and the name is used as a mark together in combination with the single-point data language so as to be searched by a user.
In summary, through the three storage methods, the persistent storage of the full-quantity state data for the single-point data in the operation life cycle of the single-point data is ensured, the full-quantity state data cannot be lost due to the problems of downtime, power failure and the like of the warehouse node of the Rayleigh operator digital object, and the single-point data for the latest full-quantity state data or the single-point data for the full-quantity state data at the selected moment or the key node can be restored in the later recovery.
Referring to fig. 2, there is shown a block diagram of a persistence device for memory status data for data language according to an embodiment of the present invention, where the persistence device is applied to a digital object repository node of a digital network, and the digital object repository node of the digital network runs data language, and the data language is used by a single point data language, and the persistence device includes:
the period saving module 210 is configured to automatically save the full-scale status data for the single-point data word to the hard disk when each preset period expires according to the preset period in the preset saving mode during the running process of the single-point data word;
the instruction saving module 220 is configured to receive a saving instruction at any time in the single-point data word running process, and save full-quantity state data at the current time to the hard disk;
a stop saving module 230, configured to automatically save, when the stop operation condition of the single-point data word occurs at any time in the operation process of the single-point data word, the full state data of the single-point data word at the stop operation time to the hard disk according to a stop saving manner in the configuration information;
And the result sending module 240 is configured to send the operation result for the single-point data word to the digital object repository node for digital storage of the digital network after the operation for the single-point data word is finished.
Optionally, the persistence device further comprises:
the receiving module is used for receiving the configuration information and the preset storage mode before the single-point data language is started for the first time;
the starting operation module is used for receiving a starting instruction, starting the single-point data language through the single-point data language execution engine and various parameters for starting the single-point data language, and starting the single-point data language.
Optionally, the persistence device further comprises:
the data acquisition module is used for receiving a recovery instruction at any moment in the single-point data language operation process and acquiring full state data corresponding to the appointed moment in the recovery instruction from the hard disk;
and the recovery state module is used for recovering the single-point data language to the full state at the appointed moment according to the full state data corresponding to the appointed moment in the recovery instruction.
Optionally, the persistence device further comprises:
The starting loading module is used for loading the full state data of the single-point data language used at the previous stopping running time according to the starting loading mode in the configuration information when the single-point data language is stopped and restarted;
and the continuous operation module is used for taking the full state data of the single-point data language used at the previous time of stopping operation as the initial full state data of the single-point data language used at the current time of operation and continuously operating the single-point data language.
Based on the persistence method of the memory state data for the data language, the embodiment of the invention also provides a digital networking system, which comprises the following steps: the digital object warehouse node comprises a digital Rayleigh networking identification analysis system, a digital object warehouse node of a digital Rayleigh operator and a digital object warehouse node of digital Rayleigh storage; the digital rake networking identity resolution system is configured to manage the digital rake operator digital object repository node and the digital rake storage digital object repository node, for example: annotating any server or user equipment to enter a digital networking system as a digital object warehouse node of a digital Rayleigh operator; the digital object warehouse node of the digital Rayleigh operator is used for executing the persistence method of the memory state data for the data language in any one of the steps 101 to 105; the digital object warehouse node is used for storing the operation result for the single-point data language sent by the digital object warehouse node.
In order to verify the reliability of the persistence method of the invention, experimental tests and evaluations were performed on the persistence method for data languages.
The digital data networking system is a typical digital data networking system based on memory operation data language. The system comprises 1 device, 7 devices and a plurality of digital object warehouse nodes, wherein the 1 device is used as a digital data networking identification analysis system, the 1 device is used as a digital data storage digital object warehouse node, and the 7 devices are used as digital data sub-digital object warehouse nodes. The application is exemplified as a single-point data language application with a simple key value, which is a data language application for creating users and transferring operations between users, and experiments can be performed using any currently known single-point data language application.
And configuring the application items by using the simple key values to obtain configuration information, so that the data words can automatically store the full state data to the hard disk before stopping and can automatically recover when restarting. After writing the simple key-value pair application program code, the data language is started, some user creation and transfer operations are performed, all users and account balances thereof are queried, and as shown in fig. 3, all user account balances before the simple key-value pair application (the simple key-value pair application is represented by kv in fig. 3, 4 and 5) is stopped are shown. "viewAll" in FIG. 3 refers to a simple key value that implements the viewAll method for querying the user account balance for an application; success (2 ms) identifies the Success of the execution result and takes 2 ms; person1, person2, person4, person3, person5 refer to five user accounts, respectively, with the corresponding balances: 990. 1055, 425, 955, 1575. The simple key value is then forced to stop the application.
After the application is forcibly stopped by the simple key value, each digital object warehouse node of the number Rayleigh operator can automatically store the simple key value before stopping to the hard disk for the application full state data. And then restarting the simple key value pair application, and not executing any data language call and other operations, wherein the simple key value pair application automatically restores to a state before forced stopping, and in order to verify the conclusion, executing a simple key value pair application view all method again to obtain the information of the balance of each user and account in the current simple key value pair application, and arranging the results as the following table:
comparison with fig. 3 concludes: the simple key value has automatically completed state recovery for the application.
In another case, configuration information in a simple key-value pair application is first deleted, after which 5 user accounts are created in the simple key-value pair application: person1, person2, person3, person4, person5, and the remainder set to 1000, the query balance is shown in fig. 4.
At this time, a save instruction is sent through a simple key value corresponding application instance management tool, so that the digital object warehouse node of the digital Rayleigh operator saves the full-quantity state data of the simple key value pair application at the current moment, and a state file '2021-02-22.14' is generated: 22:55", i.e. 22 nd of 2020, 14 th and 22 min 55 s, holds the full state data of the simple key value pair application to the hard disk. And restarting the application after stopping the simple key value, wherein the configuration information is deleted, so that the digital object warehouse node of the digital Rayleigh operator cannot automatically save the full-quantity state data of the application at the stopping moment of the simple key value, and cannot automatically recover the full-quantity state data at the stopping moment after restarting. When the simple key-value application is restarted, the user account balance in the simple key-value application is first queried as shown in FIG. 5.
In fig. 5, since the simple key value pair full-quantity state data of the application is not saved to the hard disk, and the characteristic of the memory number identifier digital object warehouse mode causes the simple key value pair full-quantity state data to be lost in the late stage of application stop, no user account exists in the complete execution result, and naturally no balance of the user account exists.
Finally, work selection status file "2021-02-22.14 is managed by the data language instance: 22:55", sending a recovery instruction, and then carrying out all account balance inquiry again, wherein the inquiry result is shown in the following table:
comparison with fig. 4 and 5 concludes: the simple key value indicates that the application has completed its recovery of the full amount of state data by the recovery instruction.
By means of the above examples, the reliability of the persistence method of the invention is demonstrated, being fully viable.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing description of embodiments of the invention, wherein specific examples are employed to illustrate the principles and implementations of the invention, is provided by way of example only to assist in understanding the methods and concepts underlying the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (8)
1. The utility model provides a persistence method of memory state data for data language of digital network, its characterized in that, persistence method is applied to the digital object warehouse node of digital network of digital Rayleigh operator, the operation data language is used on the digital object warehouse node of digital network of digital Rayleigh operator, the data language is used for single-point data language, persistence method includes:
automatically storing the full state data of the single-point data language to a hard disk when each preset period expires according to the preset period in a preset storage mode in the running process of the single-point data language;
at any moment in the single-point data language operation process, a storage instruction is received, and the full state data at the current moment is stored into the hard disk;
Receiving a recovery instruction at any moment in the single-point data language operation process, and acquiring full state data corresponding to the appointed moment in the recovery instruction from the hard disk; according to the full state data corresponding to the designated moment in the recovery instruction, the single-point data language is recovered to the full state at the designated moment;
when the condition that the single-point data language stops running occurs at any moment in the running process of the single-point data language, automatically storing the full state data of the single-point data language at the running stopping moment to the hard disk according to a stopping storage mode in configuration information;
and after the operation of the single-point data language is finished, sending an operation result of the single-point data language to the digital object warehouse node of the digital network for verification.
2. The persistence method of claim 1, further comprising:
before the single-point data language is started for the first time, receiving the configuration information and the preset storage mode;
and receiving a starting instruction, starting the single-point data language through the single-point data language execution engine and various parameters for starting the single-point data language, and starting the single-point data language.
3. The persistence method of claim 1, further comprising:
when the single-point data language is stopped and restarted, loading the full state data of the single-point data language used at the previous stopping operation time according to a starting loading mode in the configuration information;
and taking the full state data of the single-point data word used at the previous running stopping time as the initial full state data of the single-point data word used at the current running time, and continuing to run the single-point data word.
4. The persistence method of claim 1, wherein the preset save mode further comprises: a non-save mode, the persistence method further comprising:
and in the running process of the single-point data word, if the preset storage mode is the non-storage mode, not automatically storing the full-state data of the single-point data word to the hard disk until the storage instruction is received or the running stop condition of the single-point data word occurs.
5. The persistence method of claim 3, wherein after using the full-scale state data of the single-point data word at a previous stop operation time as the initial full-scale state data of the single-point data word at a current operation time and continuing to operate the single-point data word, further comprising:
And taking the rerun time of the single-point data word as the starting time, and automatically storing the full state data of the single-point data word to a hard disk when each preset period expires according to the preset period.
6. The utility model provides a persistence device of memory status data for data language of digital network, its characterized in that, persistence device is applied to the digital object warehouse node of digital network of digital number of the book, the operation data language is used on the digital object warehouse node of digital number of the book, the data language is used for single-point data language, persistence device includes:
the period storage module is used for automatically storing the full state data of the single-point data language to a hard disk when each preset period expires according to the preset period in the preset storage mode in the running process of the single-point data language;
the instruction storage module is used for receiving a storage instruction at any moment in the single-point data language operation process and storing the full state data at the current moment to the hard disk;
the data acquisition module is used for receiving a recovery instruction at any moment in the single-point data language operation process and acquiring full state data corresponding to the appointed moment in the recovery instruction from the hard disk;
The recovery state module is used for recovering the single-point data language to the full state at the appointed moment according to the full state data corresponding to the appointed moment in the recovery instruction;
the stop storage module is used for automatically storing the full state data of the single-point data language used at the stop operation time to the hard disk according to the stop storage mode in the configuration information when the stop operation condition of the single-point data language appears at any time in the operation process of the single-point data language;
and the result sending module is used for sending the operation result for the single-point data language to the digital object warehouse node of the digital network for verification after the operation for the single-point data language is finished.
7. The persistence apparatus of claim 6, wherein the persistence apparatus further comprises:
the receiving module is used for receiving the configuration information and the preset storage mode before the single-point data language is started for the first time;
the starting operation module is used for receiving a starting instruction, starting the single-point data language through the single-point data language execution engine and various parameters for starting the single-point data language, and starting the single-point data language.
8. A digital networking system, comprising: the system comprises a digital Rayleigh network identification analysis system, a digital Rayleigh operator digital object warehouse node and a digital Rayleigh storage digital object warehouse node;
the digital network identification analysis system is used for managing the digital object warehouse node of the digital sub-digital object and the digital object warehouse node of the digital storage sub-digital object;
the digital object warehouse node of the digital Rayleigh operator is used for executing the persistence method of the memory status data for the data language according to any one of claims 1 to 5;
the digital object warehouse node is used for storing the operation result of single-point data language use sent by the digital object warehouse node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310981899.9A CN116701063B (en) | 2023-08-07 | 2023-08-07 | Persistence method, device and system for internal memory state data for data language of digital networking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310981899.9A CN116701063B (en) | 2023-08-07 | 2023-08-07 | Persistence method, device and system for internal memory state data for data language of digital networking |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116701063A CN116701063A (en) | 2023-09-05 |
CN116701063B true CN116701063B (en) | 2023-10-20 |
Family
ID=87837848
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310981899.9A Active CN116701063B (en) | 2023-08-07 | 2023-08-07 | Persistence method, device and system for internal memory state data for data language of digital networking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116701063B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117560380B (en) * | 2024-01-11 | 2024-03-19 | 北京大学 | Intelligent contract-based data language extraction system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111340414A (en) * | 2020-02-14 | 2020-06-26 | 上海东普信息科技有限公司 | Cloud bin big data processing method, cloud bin system, computer equipment and storage medium |
CN111427898A (en) * | 2020-03-16 | 2020-07-17 | 上海爱数信息技术股份有限公司 | Continuous data protection system and method based on analysis of Oracle log |
CN112035298A (en) * | 2020-09-10 | 2020-12-04 | 北京城市网邻信息技术有限公司 | Data backup method and device, electronic equipment and storage medium |
CN114201343A (en) * | 2021-12-14 | 2022-03-18 | 西安西电电力***有限公司 | Code warehouse backup method based on interplanetary file system |
CN114205233A (en) * | 2021-11-30 | 2022-03-18 | 北京大学 | Intelligent contract self-adaptive configuration and execution framework oriented to data management and control |
-
2023
- 2023-08-07 CN CN202310981899.9A patent/CN116701063B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111340414A (en) * | 2020-02-14 | 2020-06-26 | 上海东普信息科技有限公司 | Cloud bin big data processing method, cloud bin system, computer equipment and storage medium |
CN111427898A (en) * | 2020-03-16 | 2020-07-17 | 上海爱数信息技术股份有限公司 | Continuous data protection system and method based on analysis of Oracle log |
CN112035298A (en) * | 2020-09-10 | 2020-12-04 | 北京城市网邻信息技术有限公司 | Data backup method and device, electronic equipment and storage medium |
CN114205233A (en) * | 2021-11-30 | 2022-03-18 | 北京大学 | Intelligent contract self-adaptive configuration and execution framework oriented to data management and control |
CN114201343A (en) * | 2021-12-14 | 2022-03-18 | 西安西电电力***有限公司 | Code warehouse backup method based on interplanetary file system |
Also Published As
Publication number | Publication date |
---|---|
CN116701063A (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110532247B (en) | Data migration method and data migration system | |
CN107220142B (en) | Method and device for executing data recovery operation | |
CN105446807B (en) | batch processing method and device | |
CN105930228A (en) | data backup method and system | |
CN116701063B (en) | Persistence method, device and system for internal memory state data for data language of digital networking | |
CN108121511B (en) | Data processing method, device and equipment in distributed edge storage system | |
CN107656705B (en) | Computer storage medium and data migration method, device and system | |
CN112685175B (en) | Construction method and device of service topological graph and computer readable storage medium | |
CN110209736A (en) | Device, method and the storage medium of block chain data processing | |
CN111240892A (en) | Data backup method and device | |
CN106874343B (en) | Data deletion method and system for time sequence database | |
CN108536541B (en) | Process engine object processing method and device | |
CN111008095A (en) | State snapshot generation and recovery method facing edge cloud | |
CN112540875B (en) | Method for restoring check availability of mysql database based on xtrabackup | |
CN112486656B (en) | Method for realizing wireless ionization wire task scheduling and data downloading | |
CN108959501B (en) | Method and device for deleting ES index | |
CN114691309A (en) | Batch business processing system, method and device | |
CN107341048B (en) | Method and device for inquiring client occupying specific resources of server | |
CN116701410B (en) | Method and system for storing memory state data for data language of digital networking | |
CN117459401B (en) | Method, device, equipment and storage medium for generating network target range environment snapshot | |
US20240195893A1 (en) | User data disaster tolerance method, device, network element device and storage medium | |
CN116662290B (en) | Read optimization method and device for stateful server non-perceptual function | |
CN116955013A (en) | Method, system and digital networking system for recovering memory state data for data language | |
CN111464580B (en) | Method and device for selecting main server | |
CN116893932A (en) | Resource timing snapshot and backup implementation method based on cloud platform workflow |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |