Method for constructing peer-to-peer data computing and storage architecture
Through the peer-to-peer data computing and storage architecture, the interest game problem existing in the data sharing process of group-level enterprises is solved, autonomous control and safe sharing between data lake server nodes are realized, and the data management and storage of group-level enterprises are satisfied. need.
Patent Information
- Application Number
- CN201811427862.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-27
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2038-11-27
AI Technical Summary
There is a game of interests in the data sharing process among group-level enterprises. The data management relationship between the head office and its subsidiaries is reciprocal, making it difficult to achieve effective data sharing and management.
Adopting a peer-to-peer data computing and storage architecture, multiple data lake server nodes form a topology with equal permissions. Each node has completely independent control permissions and supports relational databases, document databases, file data and graph data. storage and management, and realize data sharing through point-to-point secure communication and distributed computing architecture.
It realizes the autonomy and security of data management and storage of group-level enterprises, solves the data sharing interest game between subsidiaries and the head office, and meets the data computing and storage needs of group-level enterprises.
Smart Images

Figure CN111221786B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a data lake server cluster architecture, and in particular to a method for constructing a peer-to-peer data computing and storage architecture. Background Art
[0002] The characteristics of data computing and storage applications of large-scale group-level enterprises are that, although the relationship between the head office and its subsidiaries is that of management and being managed, in the actual operation of the group-level company, the head office and the subsidiaries are in fact a cooperative relationship. The management of the subsidiaries by the head office is macroscopic, and the subsidiaries need to retain their own operational independence. Therefore, in terms of data sharing, there is a game of interests between the head office and each subsidiary. At this time, the relationship between the two parties is equal. The subsidiary has the right to retain or can retain its own data privately, and only shares data that does not harm its own interests. The head office can also accept this state. At present, there is an urgent need for an architecture with equal permissions to meet the data computing and storage needs of such group-level enterprise applications. Summary of the invention
[0003] The present invention provides a method for constructing a peer-to-peer data computing and storage architecture, in which each topological node has completely autonomous control authority, and is suitable for meeting the needs of group-level enterprises in data computing and storage.
[0004] In order to achieve the above object, a technical solution of the present invention is to provide a method for constructing a peer-to-peer data operation and storage architecture:
[0005] Multiple data lake server nodes form a topology with equal permissions;
[0006] Each data lake server acts as a node, adopts a distributed computing and storage architecture, and supports the storage and management of any one or any combination of relational database data, document database data, file data, and graph data.
[0007] Point-to-point secure communication is carried out between users within a node, or between users of each node, and users of each node have equal permissions during communication.
[0008] Optionally, the data lake server is a data storage and management service platform that includes a relational database, a document database, a distributed file system, and a graph database. This platform adopts a distributed computing and storage architecture, integrates various stand-alone computers, servers, and computer clusters or server clusters with data storage and computing functions, and provides various functional components including data management, data storage, and algorithm development.
[0009] Optionally, the “users of each node have equal authority” means:
[0010] Each node has complete autonomy in managing its own data and computing resources.
[0011] After a user of each node sends a request to a user of another node and obtains authorization, he is allowed to access data resources owned by users of other nodes or use computing resources of other nodes;
[0012] Each node user has the right to approve or reject any operation request from other node users.
[0013] Optionally, each node has one or more corresponding users, and the current node supports each user to perform arbitrary operations on the data imported by him / her without permission restrictions, and / or perform processing consistent with permissions on the data shared by other users of the current node or users of other nodes.
[0014] Optionally, each communication between any two users is a one-to-one connection through a dedicated network line or a public network; the two users belong to the same node or different nodes; the user identity is securely verified, and the data communication content between users is securely encrypted.
[0015] Optionally, any number of users form a user group; the any number of users belong to the same node or to different nodes; each communication between any two users in the user group is a one-to-one connection through a dedicated network line or a public network.
[0016] Optionally, the user identity is established by an administrator of the current node, or by an administrator of another node in the topology that has a communication connection with the current node;
[0017] The administrator of each node has the following permissions: create, delete, view, modify, and set permissions for users and user groups of the current node, and / or users and user groups of other nodes that communicate with it;
[0018] Group administrators have the following permissions: create, delete, and modify information of user groups; collect statistics on group information, the number of users in the group, and the permissions of users in the group; and apply to the administrators or data owners of nodes within or outside the group for permissions to access data or use computing resources.
[0019] Optionally, the topology structure includes a mesh topology, a tree topology, or a star topology.
[0020] Optionally, the distributed computing and storage architecture refers to: providing computing resource allocation by using a PaaS cloud computing platform, allocating business containers to each node in a cluster, and providing distributed computing resources.
[0021] Optionally, the data storage and management service platform organizes and manages data files and their storage and exchange through log files and metadata files;
[0022] The log record data contained in the log file exists in the form of key-value pairs, including fields corresponding to the following contents:
[0023] The name of the operator of the current operation;
[0024] The type of the current operation;
[0025] The content of the current operation, that is, the object of the operation; when the operation type is modification, creation, or append, it refers to the location where the corresponding data source is saved; when the operation type is query, it refers to the location where the corresponding query statement is saved;
[0026] The date and time of the current operation;
[0027] The status of the current operation, used to determine whether the current operation is successful;
[0028] The data type of the current operation;
[0029] The file metadata contained in the metadata file exists in the form of key-value pairs, which include fields corresponding to the following contents:
[0030] The name of the data being processed;
[0031] A description of the current data;
[0032] The user to whom the current data belongs;
[0033] The group to which the current data belongs;
[0034] The destination of the storage, which matches the database type;
[0035] Resource description framework for data generation;
[0036] Metadata creation time;
[0037] The metadata update time.
[0038] Another technical solution of the present invention is to provide an application method of a peer-to-peer data computing and storage architecture, using any of the above peer-to-peer data computing and storage architectures to manage, process and store data for an organization similar to a group enterprise management architecture;
[0039] The head office and each subsidiary, supplier, and customer within the group are each a node in a topological structure with equal authority, and a corresponding data lake server is built to collect internal data;
[0040] Any node is called a local node; the local node establishes information connections with other nodes, collects data shared by other nodes to the local node, and saves the data to the local node after extracting data fields, integrating data, and cleaning data.
[0041] Optionally, the local node sends a request and, after other nodes allow, adds other nodes to the user group of the local node;
[0042] The local node analyzes the integrated data from other nodes and publishes the analysis results to other nodes in the form of files; and / or other nodes request the local node to obtain the analysis results.
[0043] The present invention constructs a multi-node expansion and communication architecture with equal permissions. Each node in the peer-to-peer topology is a data lake server. The data lake server is a storage server architecture that integrates four typical common data / document type storage forms and centrally accepts mixed data from three external data sources.
[0044] Each topological node of the present invention has completely autonomous control authority, which can be used to resolve the interest game between the subsidiary and the head office in the process of data sharing and reach a solution acceptable to both parties. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a schematic diagram of the data lake server architecture of the present invention;
[0046] Figure 2 , Figure 3 , Figure 4 The typical topological structures of the server cluster nodes in the present invention are schematic diagrams of mesh, tree and star topological architectures;
[0047] Figure 5 It is a schematic diagram of nodes and data flows in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] See also Figure 1 and Figure 2-Figure 4 As shown, the present invention provides a data lake server cluster architecture for data storage, computing and sharing. The cluster architecture can be composed of any number of data lake server nodes. According to the different organizational structures of data lake server users, each data lake server acts as a node and forms a mesh topology with other data lake server nodes of the same type with equal authority ( Figure 2 ), or form other permission types of topologies, such as a tree topology ( Figure 3 ) or star topology ( Figure 4 ).
[0049] Each data lake server, as a node in the topology, adopts a distributed computing and storage architecture to support the storage and management of relational database data, document database data, file data, and graph data, thereby solving the problem of multi-heterogeneity of data to be saved, so that all types of data can be saved in the data lake. The "distributed computing and storage architecture" refers to: using the PaaS cloud computing platform to provide computing resource allocation, allocating business containers to each node in the cluster, and providing distributed computing resources.
[0050] Users within a node or users on each node can conduct secure point-to-point communication, and users on each node have equal rights during communication. The term "equal rights" means: first, each data lake server node has full management rights over its own node's data and computing resources, that is, each node has full autonomous management rights when managing its own resources, and does not require permission or authorization from any other node; second, users of each node need to send a request to the node user and obtain authorization from the user in order to access data resources owned by other node users or use computing resources of other nodes; at the same time, each node user also has the right to agree or reject any operation request issued by other node users.
[0051] The "conducting secure point-to-point communication" means that any two users from one or more server data lake nodes can connect to each other through a dedicated network line or a public network; any multiple users from one or more server data lake nodes can form a user group; each communication between any two users, or between users in a user group, is a one-to-one connection; and user identities are securely verified using methods including facial recognition, fingerprint recognition, vein image recognition, iris recognition, voiceprint recognition, etc.; data communication content between users is securely encrypted, using at least the https protocol and other security measures.
[0052] The administrator of the data lake server node is responsible for setting up and managing users, and users can process their own imported data or shared data. User identities can be established by the administrator of the local node; or, user identities can be established by other data lake server nodes in the topology that have communication connections with the current node.
[0053] The administrator of the data lake server has the following permissions: can create and delete users and groups, can view all users and groups, can modify user and group information, such as resetting passwords and setting tags, can view user information as well as login date and time, user IP address, browser, system, version, etc. used to log into the platform, etc.; further, group administrators can modify group information, delete groups, create groups, count group information, number of people, and permissions, and can apply for permissions from the data lake server administrator.
[0054] The "users can process the data they have imported or shared" means: users can perform various operations on the data they have imported without permission restrictions, and further, they can also access the data shared by other users. The specific operation permissions depend on the permission settings of the data sharer for the sharing; the data owner and data administrator have full permissions to the resource, and the recipient of the sharing can only view or copy it, and the copy can also be turned off by the owner. The so-called copy means that an application or data of user A can be copied by another user B for easy use or modification; at the same time, the modification of the application or data by user A will notify user B, and user B will decide whether to apply the modification of user A to the application or data he copied before.
[0055] The "data lake server" described in the present invention is a data storage and management service platform composed of four types of databases: relational databases (such as MariaDB, MySQL, etc.), document databases (such as MongoDB, CouchDB, etc.), distributed file systems (such as HDFS, PVFS, PanFS, etc.), and graph databases (such as Neo4j, Cayley, GrapgDB, etc.). This platform adopts a distributed computing and storage architecture, integrates various types of stand-alone computers, servers, and computer clusters or server clusters with data storage and computing functions, and provides various functional components including data management, data storage, and algorithm development. Figure 1 The data lake architecture and its specific functions are shown, where "IT data" refers to existing data; "open data" refers to data from various networks, for example; "OT data" refers to data in the generation process; the above three types of data all refer to the source of data and do not belong to the data lake itself.
[0056] The data exchange management of the entire data lake is based on log records and file metadata stored in the document database MongoDB:
[0057] (a) Log record data exists in the form of key-value pairs, and its field names and contents are:
[0058] Field "user": saves the name of the operator of the current operation;
[0059] Field "operation_type": saves the type of the current operation, such as create, modify, append, etc.;
[0060] Field "operation_record": used to save the content of the current operation, i.e. the object of the operation. When the operation type is modification, creation, or append, the location of the corresponding data source is saved; when the operation type is query, the corresponding query statement is saved;
[0061] Field "operation_time": saves the date and time of the current operation, for example: "2018-06-28T03:18:58.91;
[0062] Field "operation_statue": saves the status of the current operation. It is an auxiliary field used to determine whether the current operation is successful;
[0063] Field "operation_source": saves the data type of the current operation, for example: "hdfs" represents file-type data.
[0064] (b) File metadata exists in the form of key-value pairs, and its field names and contents are mainly:
[0065] Data Name: The name of the data being processed
[0066] Description: Description of the current data
[0067] Owner: The user to whom the current data belongs
[0068] Group: The group to which the current data belongs
[0069] Storage backend: the storage destination, which refers to a certain database type
[0070] Auxiliary tags: RDF generated by data
[0071] Metadata creation time: the time when the metadata was created
[0072] Metadata update time: the time when the metadata is updated.
[0073] The above-mentioned RDF is the English abbreviation of "Resource Description Framework". Its essence is a data model (DataModel), which provides a unified standard for describing entities and resources. Simply put, it is a method and means to represent things, which is formally expressed as a "subject-predicate-object" triple. For example, in a graph database, RDF consists of nodes and edges. Nodes represent entities / resources and attributes, and edges represent the relationship between entities and the relationship between entities and attributes.
[0074] The above-mentioned "storage backend" field includes different fields according to different data types (file type, document type, table type, and graph type).
[0075] For file type data, there are the following fields: file physical path, file physical name, HDFS occupied space size, real file owner, real file group, front-end displayed file path, front-end displayed file name, file extension, file MINE type, file real size, stop word list (for RDF processing).
[0076] For document-type data (JSON-type data), the following fields are available: physical database location, physical collection name, displayed database name, displayed collection name, document structure (JSON data structure), and stop word list (for RDF processing).
[0077] For table-type data (such as data from mySql), there are the following fields: physical database name, physical table name, display database name, display table name, column name table, stop word table (for RDF processing).
[0078] For graph-type data (such as data from Neo4j), there are the following fields: Neo4j ID, front-end display name, stop word list (for RDF processing).
[0079] Through the above-mentioned log files and metadata files, the data management service platform can efficiently and securely organize and manage data files and speed up data storage.
[0080] Among the “relational database data, document database data, file data and graph data”, “relational database data” refers to: traditional types of database data with regular structures, such as data from traditional relational databases such as Oracle, mySQL, SQL Server, etc.; “document database data” refers to: unlike traditional relational databases, it can be saved in a document database; “file data” refers to: data saved in file format, such as PDF files, image files and other types of engineering design files, etc.; graph data refers to data information based on graph databases, such as Neo4j, GraphDB, etc.
[0081] The authority-equivalent architecture adopted by the present invention can meet the data management, processing and storage requirements of group-level enterprise applications. Of course, its practicality is specifically reflected in the specific data transfer authority and implementation details based on the architecture.
[0082] The following is a detailed description of the features of the present invention based on a specific embodiment:
[0083] like Figure 5 As shown, a certain group company A has three subsidiaries A1, A2, A3, two suppliers S1, S2 and three customers C1, C2, C3. It now plans to establish a peer-to-peer data computing and storage architecture to promote the flow of information within and outside the enterprise, thereby improving enterprise efficiency.
[0084] First, each unit is a data lake server node, and data lake servers are built within these units to collect internal enterprise data. In general, these units form a mesh topology, with multiple user identities in each node. Each user in the node can establish a connection with users of other nodes with the permission of the node administrator. For simplicity, in this embodiment, it is assumed that each node has only one user identity that can connect and interact with external nodes - although in fact the administrator of each node can add multiple users with different permissions.
[0085] Assume that user A of a group company (we use company name instead of user name, the same below) has the need to collect and analyze data from subsidiaries A1, A2, A3, suppliers S1, S2 and customer C1, so he establishes node connection with A1, A2, A3, S1, S2 and C1 and issues a request. With the permission of A1, A2, A3, S1, S2 and C1, each adds A to the user group of this node and shares the data A needs. At this time, A can collect data from A1, A2, A3, S1, S2 and C1, extract data fields, integrate data, clean data, and save it to the local node. Furthermore, the integrated data from multiple nodes can be analyzed to assist business development; further, the analysis results can be published in the form of files to the relevant nodes A1, A2, A3, S1, S2, C1, C2, and C3; further, nodes A1, S2, C1, C2, and C3 can request analysis results from A according to their own needs; A adds A1, S2, C1, and C2 as group members in the form of a group, thereby sharing its own analysis result files with group members; since C3 is not added, it is considered that C3's request is rejected. The data flow and topology of this operation are as follows Figure 5 As shown, the lines between the nodes in the figure indicate the flow of data.
[0086] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.
Claims
1. A method for constructing a peer-to-peer data computing and storage architecture, characterized in that: Multiple data lake server nodes form a topology with equal permissions; Each data lake server acts as a node, adopts a distributed computing and storage architecture, and supports the storage and management of any one or any combination of relational database data, document database data, file data, and graph data. Point-to-point secure communication is carried out between users within a node or between users of each node, and users of each node have equal permissions during communication; The "users of each node have equal rights" means: Each node has complete autonomy in managing its own data and computing resources. After a user of each node sends a request to a user of another node and obtains authorization, he is allowed to access data resources owned by users of other nodes or use computing resources of other nodes; Each node user has the right to approve or reject any operation request from other node users; Each node has one or more users corresponding to it. The current node supports each user to perform any operation on the data imported by him / her without permission restriction, and / or perform processing consistent with the permission on the data shared by other users of the current node or users of other nodes; User identities are established by the administrator of the current node, or by administrators of other nodes in the topology that have a communication link with the current node.
2. The method for constructing a peer-to-peer data computing and storage architecture as claimed in claim 1, characterized in that: The data lake server is a data storage and management service platform that includes relational databases, document databases, distributed file systems, and graph databases. This platform adopts a distributed computing and storage architecture, integrates various stand-alone computers, servers, and computer clusters or server clusters with data storage and computing functions, and provides various functional components including data management, data storage, and algorithm development.
3. The method for constructing a peer-to-peer data computing and storage architecture as claimed in claim 1, characterized in that: Each communication between any two users is a one-to-one connection through a dedicated network line or a public network; the two users belong to the same node or different nodes; the user identity is securely verified, and the data communication content between users is securely encrypted.
4. The method for constructing a peer-to-peer data computing and storage architecture according to any one of claims 1 to 3, characterized in that: Any number of users form a user group; the said any number of users belong to the same node or to different nodes; each communication between any two users in the user group is a one-to-one connection through a dedicated network line or a public network.
5. The method for constructing a peer-to-peer data computing and storage architecture as claimed in claim 4, characterized in that: The administrator of each node has the following permissions: create, delete, view, modify, and set permissions for users and user groups of the current node, and / or users and user groups of other nodes that communicate with it; Group administrators have the following permissions: create, delete, and modify information of user groups; collect statistics on group information, the number of users in the group, and the permissions of users in the group; and apply to the administrators or data owners of nodes within or outside the group for permissions to access data or use computing resources.
6. The method for constructing a peer-to-peer data computing and storage architecture as claimed in claim 2, wherein: The topology structure includes a mesh topology, a tree topology, or a star topology; The distributed computing and storage architecture refers to: providing computing resource allocation by using the PaaS cloud computing platform, allocating business containers to each node in the cluster, and providing distributed computing resources.
7. The method for constructing a peer-to-peer data computing and storage architecture as claimed in claim 2, characterized in that: The data storage and management service platform organizes and manages data files and their storage and exchange through log files and metadata files; The log record data contained in the log file exists in the form of key-value pairs, including fields corresponding to the following contents: The name of the operator of the current operation; The type of the current operation; The content of the current operation, that is, the object of the operation; when the operation type is modification, creation, or append, it refers to the location where the corresponding data source is saved; when the operation type is query, it refers to the location where the corresponding query statement is saved; The date and time of the current operation; The status of the current operation, used to determine whether the current operation is successful; The data type of the current operation; The file metadata contained in the metadata file exists in the form of key-value pairs, which include fields corresponding to the following contents: The name of the data being processed; A description of the current data; The user to whom the current data belongs; The group to which the current data belongs; The destination of the storage, which matches the database type; Resource Description Framework for Data Generation; Metadata creation time; The metadata update time.
8. An application method of a peer-to-peer data computing and storage architecture, characterized in that: Using the peer-to-peer data computing and storage architecture described in any one of claims 1 to 7 to manage, process and store data for an organization similar to a group enterprise management architecture; The head office and each subsidiary, supplier, and customer within the group are each a node in a topological structure with equal authority, and a corresponding data lake server is built to collect internal data; Any node is called a local node; the local node establishes information connections with other nodes, collects data shared by other nodes to the local node, and saves the data to the local node after extracting data fields, integrating data, and cleaning data; The local node sends a request and after other nodes allow, adds other nodes to the user group of the local node; The local node analyzes the integrated data from other nodes and publishes the analysis results to other nodes in the form of files; and / or other nodes request the local node to obtain the analysis results.
