Data Management Method, Terminal Device, Management System, and Storage Medium
The data management system provides real-time file updates and operation history tracking, addressing the delays and traceability issues in existing methods, ensuring immediate updates and secure file management across servers.
Patent Information
- Application Number
- CN201910202831.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-18
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2039-03-18
AI Technical Summary
In the prior art, the server node cannot obtain the latest resource files in time, and cannot trace the operator and previous changes to update the resource files.
Through the collaborative work of terminal equipment and management system, resource files can be obtained and updated in real time, and historical operation records are generated to record the different content, time and user identification of update operations.
It realizes timely update of resource files and traceability of operations, and improves the security and traceability of the management system.
Smart Images

Figure CN111708730B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of operation and maintenance technologies, and in particular to a data management method, a terminal device, a management system, and a storage medium. Background Art
[0002] With the development of Internet technology, various business platforms include a large number of server nodes. Operation and maintenance personnel need to manage resource files in a large number of server nodes. Here, the resource files are, for example, configuration files, user data, business logic code, and so on. Currently, operation and maintenance personnel can keep the latest resource files in the management center. Each server node can regularly pull the latest resource files from the management center. Summary of the Invention
[0003] According to one aspect of the present application, there is provided a data management method, including: obtaining a first resource file, where the first resource file is applied to one or more business servers; sending first resource data in the first resource file to a terminal device so that the terminal device presents the first resource data; receiving an update request for the first resource file from the terminal device, where the update request includes second resource data obtained by updating the first resource data; determining first difference content between the second resource data and the first resource data; performing an update operation on the first resource file in the one or more business servers according to the second resource data; and generating a first historical operation record corresponding to the update operation, where the first historical operation record includes at least one of the first difference content, a record generation time, a user identifier corresponding to the update operation, and the second resource data.
[0004] According to one aspect of the present application, there is provided a data management method, including: obtaining a file management table from a management system, where the file management table includes one or more file management records, and each file management record is used to store a list of business servers applying a resource file and a file access path of the resource file in each business server; presenting the one or more file management records; in response to a query operation on a first resource file corresponding to one of the one or more file management records, sending a query request for the first resource file to the management system; receiving and presenting first resource data of the first resource file from the management system; in response to a modification confirmation operation on the first resource data, obtaining second resource data corresponding to the first resource data; and sending the second resource data to the management system so that the management system sends the second resource data to the business server corresponding to the first resource file.
[0005] According to one aspect of the present application, there is provided a management system, including:
[0006] a processor;
[0007] a memory; and
[0008] one or more programs, stored in the memory and configured to be executed by the processor, the one or more programs including instructions for performing the data management method according to the present application.
[0009] According to one aspect of the present application, there is provided a terminal device, including:
[0010] a processor;
[0011] a memory; and
[0012] one or more programs, stored in the memory and configured to be executed by the processor, the one or more programs including instructions for performing the data management method according to the present application.
[0013] According to one aspect of the present application, there is provided a storage medium storing one or more programs, the one or more programs including instructions that, when executed by a computing device, cause the computing device to perform the data management method according to the present application.
[0014] In summary, the data management solution according to the present application can present a file management table and an operation record table. On this basis, the data management solution of the present application can edit and update resource files in real time according to the file management table, and can also trace the operator and previous change situations of updated resource files (for example, display the latest resource data and different content corresponding to each historical operation record). BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0016] Figure 1 A schematic diagram showing an application scenario 100 according to some embodiments of the present application;
[0017] Figure 2 A flowchart showing a data management method 200 according to some embodiments of the present application;
[0018] Figure 3A A display diagram showing a file management table according to some embodiments of the present application;
[0019] Figure 3B A display diagram showing an operation record table according to some embodiments of the present application;
[0020] Figure 4 shows a flowchart of a data management method 400 according to some embodiments of the present application;
[0021] Figure 5 shows a flowchart of a data management method 500 according to some embodiments of the present application;
[0022] Figure 6A shows a flowchart of a method 600 for obtaining a first resource file according to some embodiments of the present application;
[0023] Figure 6B shows a flowchart of a method for determining whether first resource files in multiple service servers are the same according to some embodiments of the present application. Detailed implementation manners
[0024] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0025] In some embodiments, the server node can regularly pull the latest version of the resource file from the management center. However, the method of regularly pulling the resource file has a delay and cannot ensure that each server node can immediately obtain the latest resource file. In addition, since there are many operation and maintenance personnel editing the resource files in the management center, the above embodiments cannot trace the operator of the updated resource file and the historical change situations.
[0026] Figure 1 shows a schematic diagram of an application scenario 100 according to some embodiments of the present application. The application scenario 100 may include a terminal device 110, a management system 120, and one or more service servers. For the sake of simplicity of description, Figure 1 only service servers 130, 140, and 150 are shown, but not limited thereto.
[0027] The terminal device 110, the management system 120, the service servers 130, 140, and 150 can communicate through a network 160. The network 160 may include, for example, a local area network (LAN) and a wide area network (WAN). Embodiments of the present application can use any well-known network protocol to implement the network 140, including various wired or wireless protocols, such as Ethernet, FIREWIRE, Global System for Mobile Communications (GSM), Enhanced Data GSM Environment (EDGE), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wi-MAX, or any other suitable communication protocol.
[0028] The terminal device 110 may include, for example, but is not limited to, a palm computer, a wearable computing device, a personal digital assistant (PDA), a tablet computer, a laptop computer, a desktop computer, a smart phone, a media player, a navigation device, a game console, a television set, or a combination of any two or more of these data processing devices or other data processing devices.
[0029] The service server may be various servers for performing service processing. Here, the service server may be, for example, a hardware-independent server node or a virtual server, and the present application does not limit this.
[0030] The management system 120 may include one or more servers. In some embodiments, the management system 120 may include a database 121. The database 121 may store an operation record table and a file management table. Among them, the file management table may include one or more file management records. Each file management record is used to store a list of service servers corresponding to a resource file and the file access paths of the resource file in each service server. Here, the resource file may be, for example, a configuration file, business logic code, and so on. A list of service servers corresponding to a resource file refers to a set of service servers deployed with the resource file. The operation record table is used to store one or more historical operation records. A historical operation record may be for an update operation of a resource file. A historical operation record may include, for example, the latest resource data of the resource file after the update operation. A historical operation record may also include the difference content between the latest resource data after the update operation and the resource data before the update operation, the user identifier for performing the update operation, and the generation time of the operation record.
[0031] The terminal device 110 can obtain the file management records in the file management table from the management system 120 to present them in the user graphical interface. In this way, the user can operate on the file management table through the terminal device 110. For example, the terminal device 110 can, in response to a user operation, request the management system 120 to perform table operations such as record creation, modification, deletion, etc. That is, the management system 120 can operate on the file management table according to the operation instructions from the terminal device 110. In addition, the terminal device 110 can also perform operations such as querying resource files and modifying (updating) resource files based on the file management records in the file management table. For example, the terminal device 110 can obtain the first resource data of the first resource file from the management system 120. Here, the first resource data refers to the currently latest data of the first resource file. The terminal device 110 can modify the first resource data according to the user operation to obtain the second resource data (that is, the latest resource data after the first resource file is updated). The terminal device 110 can send an update request containing the second resource data to the management system 120. In this way, in response to the update request, the management system 120 can update the first resource file in the corresponding business server in real time according to the second resource data and the file management record of the first resource file. In addition, the management system 120 can also generate a historical operation record about the second resource data and store it in the operation record table. Here, the historical operation record can record the data changes of this update operation. In summary, the management system 120 of the present application can update the resource files in the business server in a timely manner and can record the update operations of the resource files, so that the operator of the updated resource file and the previous change situations can be traced.
[0032] Figure 2 The flowchart of the data management method 200 according to some embodiments of the present application is shown. The method 200 can be executed by the terminal device 110, for example, but is not limited thereto.
[0033] In step S201, obtain the file management table from the management system 120. The file management table includes one or more file management records, and each file management record is used to store a list of business servers applying a resource file and the file access paths of the resource file in each business server. Here, the resource file can be, for example, a configuration file, business logic code, and other contents.
[0034] In step S202, present the one or more file management records. For example, Figure 3A The interface schematic diagram showing the file management table according to some embodiments of the present application is shown. Figure 3A Two file management records are shown in the interface. Taking the record with ID 1 as an example, when the user clicks the operation buttons of "View File" or "Edit File", the terminal device 110 can receive the user's query operation on the resource file in this record.
[0035] In step S203, in response to a query operation on the first resource file corresponding to one of the one or more file management records, a query request for the first resource file is sent to the management system 120.
[0036] In step S204, the first resource data of the first resource file from the management system 120 is received and presented. For example, the terminal device 110 may display the first resource data in a text editing interface.
[0037] In step S205, in response to a modification confirmation operation on the first resource data, second resource data corresponding to the first resource data is obtained. For example, when the user clicks the confirmation button in the text editing interface, the terminal device 110 may receive the modification confirmation operation.
[0038] In step S206, the second resource data is sent to the management system 120. In this way, the management system 120 can update the first resource file in the service server according to the second resource data.
[0039] In some embodiments, the method 200 may further include step S207. In step S207, in response to a query operation on the historical operation record of the first resource file, a query request for the historical operation record of the first resource file is sent to the management server 120. For example, when the user clicks Figure 3A the operation button of "View Historical Operation Records", the terminal device 110 may receive the query operation input by the user.
[0040] In step S208, the historical operation record of the first resource file from the management system 120 is received and presented. For example Figure 3B shows a display interface diagram of the historical operation record according to some embodiments of the present application. Figure 3B Schematically shows two historical operation records of the first resource file, namely the two records denoted as 1 and 2. Among them, record 2 is the current latest historical operation record. The text box 301 records the latest resource data generated by the update operation corresponding to this operation record. The text box 302 records the difference between the content in the text box 301 and the previous (i.e., before the update operation) first resource file.
[0041] In summary, the data management method 200 according to the present application can present a file management table and an operation record table. On this basis, the data management method 200 can edit and update the resource file in real time, and can also trace the operator and previous change situations of the updated resource file (for example, display the latest resource data and difference content corresponding to each historical operation record).
[0042] Figure 4 FIG. 400 is a flowchart of a data management method according to some embodiments of the present application. The method 400 may be executed by the management system 120, for example, but is not limited thereto.
[0043] As Figure 4 shown, in step S401, a first resource file is obtained. The first resource file is applied to one or more business servers. In some embodiments, the management system 120 may obtain the first resource file in response to a request from the terminal device 110. Here, the data in the first resource file obtained in step S401 may be referred to as first resource data.
[0044] In step S402, the first resource data in the first resource file is sent to the terminal device 110. In this way, the terminal device 110 can present the first resource data to the user.
[0045] In step S403, an update request for the first resource file from the terminal device 110 is received. The update request includes second resource data obtained by updating the first resource data. Here, the second resource data may be the latest data obtained by the terminal device 110 modifying the first resource data according to the user's operation.
[0046] In step S404, a first difference content between the second resource data and the first resource data is determined.
[0047] In step S405, an update operation is performed on the first resource file in the one or more business servers according to the second resource data.
[0048] In step S406, a first historical operation record corresponding to the update operation is generated. The first historical operation record includes at least one of the first difference content, the record generation time, the user identifier corresponding to the update operation, and the second resource data.
[0049] In summary, according to the data management method 400 of the present application, when an update request is received, the resource file in the business server can be updated in a timely manner using the latest data (such as the second resource data). In addition, the data management method 400 can generate a historical operation record corresponding to the update operation. In this way, the data management method 400 can record the operator and the historical change situations of the resource file update, so as to trace the changes and operators of the resource file in the business server, and thus improve the security of the management server.
[0050] Figure 5 FIG. 500 is a flowchart of a data management method according to some embodiments of the present application. The method 500 may be executed by the management system 120, for example.
[0051] As Figure 5As shown, in step S501, a file management table is created. Here, in step S501, when creating the file management table, one or more file management records can be generated. In other words, the file management table can include one or more file management records. Each file management record is used to store a list of business servers that apply a resource file and the file access path of the resource file in each business server. For example, Table 1 below shows the data content of one file management record.
[0052] Table 1
[0053]
[0054]
[0055] In step S502, in response to an access request from the terminal device 110 to the file management table, the file management table is obtained. In some embodiments, the file management table can be stored in the database 121. Step S502 can obtain the data in the file management table from the database 121 through a table lookup operation.
[0056] In step S503, the file management table is sent to the terminal device 110. In this way, the terminal device 110 can present the file management records in the file management table to the user. The user can view the file management records in the graphical interface of the file management records. In addition, in response to a query operation on a first resource file corresponding to one of the one or more file management records, the terminal device 110 sends a query request for the first resource file to the management system 120.
[0057] In step S504, the query request for the first resource file is received.
[0058] In response to the query request in step S504, method 500 can execute step S505. In step S505, the first resource file is obtained.
[0059] In step S506, the first resource data in the first resource file is sent to the terminal device 110. In this way, the terminal device 110 can present the first resource data to the user.
[0060] In step S507, an update request for the first resource file from the terminal device 110 is received. The update request includes second resource data obtained by updating the first resource data. Here, the second resource data can be the latest data obtained by the terminal device 110 modifying the first resource data according to the user's operation.
[0061] In step S508, the first difference content between the second resource data and the first resource data is determined. That is, step S508 can determine the modification content of the first resource file.
[0062] In step S509, an update operation is performed on the first resource file in the one or more business servers according to the second resource data. In some embodiments, step S509 may be implemented as steps S5091 and S5092.
[0063] In step S5091, a list of business servers corresponding to the first resource file and the corresponding file access path are read from the file management table.
[0064] In step S5092, according to the file access path, the second resource data is sent to each business server in the list of business servers. In this way, step S5092 can cause the first resource file in the business server to be updated.
[0065] In step S510, a first historical operation record corresponding to the update operation is generated. The first historical operation record includes at least one of the first difference content, the record generation time, the user identifier corresponding to the update operation, and the second resource data.
[0066] In step S511, the first historical operation record is stored in the operation record table. For example, Table 2 below shows a data example of the first historical operation record in the operation record table.
[0067] Table 2
[0068] Field Name Field Type Description id int(11) unsigned Record Identifier config_manager_id varchar(100) Resource File Identifier Now_content longtext Latest Content Diff_change Varchar(1000) Differences between This Update and the Previous Update creater Varchar(1000) Operator created_at dateTime Record Creation Time
[0069] In step S512, in response to a query request from the terminal device 110 for the historical operation record of the first resource file, one or more historical operation records related to the first resource file are queried from the operation record table. Each historical operation record includes the resource data generated by the corresponding update operation and the corresponding difference content, and the corresponding difference content is used to describe the difference between the generated resource data and the first resource file before performing the corresponding update operation.
[0070] In step S513, the one or more queried historical operation records are sent to the terminal device 110.
[0071] In summary, the data management method 500 according to the present application can uniformly manage the update of resource files in multiple business servers through the file management table. In addition, the data management method 500 can record the update operations of resource files through the operation record table, so as to facilitate the traceability of each update of the resource file and the operator.
[0072] In some embodiments, step S505 may be implemented as method 600. As Figure 6AAs shown, in step S601, query the historical operation records of the first resource file from the operation record table. The operation record table is used to store the historical operation records corresponding to one or more resource files.
[0073] In step S602, obtain the resource data of the first resource file from the latest historical operation record queried, and use the resource data as the first resource data.
[0074] When no historical operation record of the first resource file is queried in step S601, method 600 may execute step S603 to determine whether the first resource files in multiple business servers are the same.
[0075] In some embodiments, step S603 may include steps S6031 and S6032.
[0076] As Figure 6B shown, in step S6031, obtain the data digest of the first resource file in multiple business servers. In some embodiments, the data digest is, for example, the digest information generated based on the MD5 Message-Digest Algorithm, but is not limited thereto.
[0077] In step S6032, determine whether the first resource files in the multiple business servers are the same according to the respective data digests of the multiple business servers.
[0078] When step S603 determines that the first resource files in the multiple business servers are not the same, method 600 may execute step S604 to send an exception prompt message to the terminal device. The exception prompt message is used to describe that the first resource files in the multiple business servers are inconsistent.
[0079] When step S603 determines that the first resource files in the multiple business servers are the same, method 600 may execute step S605 to read the data in the first resource file from any one of the multiple business servers, and use the read data as the first resource data.
[0080] In summary, according to method 600 of the present application, it is possible to determine whether the resource files in multiple business servers are the same, thereby ensuring the consistency of the same resource file in different servers. In addition, method 600 of the present application can automatically determine whether the management system 120 stores the historical operation records of the resource file, obtain the latest data of the resource file from the historical operation records, and obtain the latest data of the resource file from the business server when there is no historical operation record.
[0081] In addition, the method steps described in this application can be implemented not only by a data processing program, but also by hardware. For example, they can be implemented by logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and microcontrollers, etc. Therefore, such hardware that can implement the method described in this application can also form this application.
[0082] The foregoing is only an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. A data management method, characterized in that, Including: Obtain a first resource file, where the first resource file is applied to one or more business servers; Send first resource data in the first resource file to a terminal device so that the terminal device presents the first resource data; Receive an update request for the first resource file from the terminal device, where the update request includes second resource data obtained by updating the first resource data; Determine first difference content between the second resource data and the first resource data; Perform an update operation on the first resource file in the one or more business servers according to the second resource data; And Generate a first historical operation record corresponding to the update operation, where the first historical operation record includes at least one of the first difference content, a record generation time, a user identifier corresponding to the update operation, and the second resource data; The obtaining of the first resource file includes: Query a historical operation record of the first resource file from an operation record table, where the operation record table is used to store historical operation records corresponding to one or more resource files; When no historical operation record of the first resource file is queried, obtain data summaries of the first resource file in the multiple business servers, and determine whether the first resource files in the multiple business servers are the same according to the data summaries of the multiple business servers respectively; When it is determined that the first resource files in the multiple business servers are different from each other, send an exception prompt message to the terminal device, where the exception prompt message is used to describe that the first resource files in the multiple business servers are inconsistent; When it is determined that the first resource files in the multiple business servers are the same, read the data in the first resource file from any one of the multiple business servers, and use the read data as the first resource data.
2. The method according to claim 1, wherein Further including: Store the first historical operation record into the operation record table.
3. The method according to claim 1, wherein The obtaining of the first resource file includes: Obtain the resource data of the first resource file from the latest historical operation record queried, and use the resource data as the first resource data.
4. The method according to claim 1, characterized in that Further including: In response to a query request of the terminal device for the historical operation record of the first resource file, query one or more historical operation records related to the first resource file from the operation record table, where each historical operation record includes the resource data generated by the corresponding update operation and the corresponding difference content, and the corresponding difference content is used to describe the difference content between the generated resource data and the first resource file before executing the corresponding update operation; Send the one or more historical operation records queried to the terminal device.
5. The method according to claim 1, characterized in that Further including: Create a file management table, where the file management table includes one or more file management records, and each file management record is used to store a list of business servers corresponding to a resource file and the file access path of the resource file in each business server.
6. The method according to claim 5, wherein Performing an update operation on the first resource file in the one or more service servers according to the second resource data includes: Reading, from the file management table, a list of service servers corresponding to the first resource file and corresponding file access paths; Sending the second resource data to each service server in the list of service servers according to the file access paths.
7. The method according to claim 5, characterized in that, Further including: Obtaining the file management table in response to an access request of the terminal device to the file management table; Sending the file management table to the terminal device; Receiving a query request for the first resource file.
8. A data management method, characterized in that, Including: Obtaining a file management table from a management system, the file management table including one or more file management records, each file management record being used to store a list of service servers applying a resource file and a file access path of the resource file in each service server; Presenting the one or more file management records; In response to a query operation on a first resource file corresponding to one of the one or more file management records, sending a query request for the first resource file to the management system; Receiving and presenting first resource data of the first resource file from the management system; In response to a modification confirmation operation on the first resource data, obtaining second resource data corresponding to the first resource data; Sending the second resource data to the management system so that the management system sends the second resource data to service servers corresponding to the first resource file; The first resource file is obtained by the management system based on the following manner: Querying a historical operation record of the first resource file from an operation record table, the operation record table being used to store historical operation records corresponding to one or more resource files; When no historical operation record of the first resource file is queried, obtaining data summaries of the first resource file in multiple service servers, and determining whether the first resource files in the multiple service servers are the same according to the respective data summaries of the multiple service servers; When it is determined that the first resource files in the multiple service servers are different from each other, sending an exception prompt message to the terminal device, the exception prompt message being used to describe that the first resource files in the multiple service servers are inconsistent; When it is determined that the first resource files in the multiple service servers are the same, reading data in the first resource file from any one of the multiple service servers, and using the read data as the first resource data.
9. The method according to claim 8, wherein Further including: In response to a query operation on the historical operation record of the first resource file, sending a query request for the historical operation record of the first resource file to the management system; Receiving and presenting the historical operation record of the first resource file from the management system.
10. A management system, characterized in that Including: A processor; A memory; And One or more programs, stored in the memory and configured to be executed by the processor, the one or more programs including instructions for performing the method according to any one of claims 1-7.
11. A terminal device, characterized in that Including: A processor; A memory; and one or more programs, stored in the memory and configured to be executed by the processor, the one or more programs including instructions for performing the method according to claim 8 or 9.
12. A storage medium storing one or more programs, the one or more programs including instructions which, when executed by a computing device, cause the computing device to perform the method according to any one of claims 1-9.
Citation Information
Patent Citations
File resource access method and device
CN101763418A
Data processing method and device
CN105516230A
Management method and system of configuration file
CN107506218A
A substation file version management method and system
CN109086062A