The present invention generally relates to a system and method for organizing and managing large volume of data, and more particularly relates to a massively parallel database management system optimized for managing time based data. More particularly still, the present disclosure relates to hybrid indexing structures, manifests and three tiered hierarchical data query processing architectures used in silos within a massively parallel database management system.
With rapid development and widespread utilization of computer technologies in the last few decades, large volumes of digital data are generated on a daily basis. Organizing and managing such a huge amount of data has promoted the development of database technologies. Relational database management systems (“RDBMS”), such as Oracle Database Management System, Microsoft SQL Database Management System and MySQL Database Management System, have thus been proposed and gained broad acceptance for data management. Such database management systems store data by rows of tables. Querying and retrieving data from conventional databases oftentimes include retrieving a list of records while such records contain information that is not requested. For example, the illustrative SQL query causes a conventional database management system to read fifty rows from a disk drive storing the rows:
select column1 from table1 where key>100 and key<151
In the illustrative SQL query, column1 is a column of a table 1, and key is another column (such as a primary key) of the table 1. While only data in column1 is requested, data in other columns of table1 is already read from a storage disk drive. Furthermore, the conventional database management systems do not store data in an ordered manner on physical disk drives. However, many types of data (such as network logs, network access data, financial transaction data, weather data, etc.) are of extremely high volume and ordered by time. Accordingly, there is a need for a highly parallel and efficient database system that is optimized for managing large volumes of time based data. There is a further need for a highly parallel and efficient database system for storing data by columns for faster and more efficient data retrieval.
Conventional database management systems typically generate a large number of indexes for data. Such indexes logically identify rows (also referred to herein as records). Rows of data within a table are stored on disk drives. Related rows, such as rows of a particular order by time, are typically stored consecutively in large groups on disk drives in order to improve the efficiency of read operations on those rows. Rows could also be related by other factors. Retrieving a set of related records thus involves reading entire sets of such rows at once in large sequential read operations. If the rows to be retrieved are not related to one another in the same manner in which they were stored, reading them involves multiple disk reads of data dispersed at different locations on a disk drive, which has typically been an inefficient operation. Accordingly, there is a need for a highly parallel and efficient database system for storing rows in smaller clusters on disk with the intention of reading them all in parallel, and providing an efficient structure for locating such data on a disk drive. There is a further need for a new database management system to load the structure in memory for higher performance in locating data on disk drives.
To improve data retrieval performance, conventional database management systems take advantage of high end hardware platforms, such as a computer with multiple sockets and a large amount of memory. Each of the sockets includes one or more processing units (also interchangeably referred to herein as cores). A processing unit housed in one socket can access resources (such as disk drives and memory) local to another socket. Such cross socket access incurs a performance penalty due to latency and bandwidth limitations of the cross-socket interconnect. Accordingly, there is a need for a highly parallel and efficient database management system that improves performance by avoiding the cross socket boundary access. The present disclosure incorporates novel solutions to overcome the above mentioned shortcomings of conventional database management systems.
Storage drive access is typically the performance bottleneck in conventional database management systems due to the fact that storage drives are not fully utilized. In a conventional database management system, disk drives are in idle state during various time periods. One major reason for the underutilization of the storage drives is that the conventional database management systems are not efficient in processing data queries and data fetched from storage drives. For example, conventional database management systems lack a high level of parallelism in processing queries and data returned from storage drives. Accordingly, there is a need for a massively parallel database management that maximizes storage drive utilization and minimizes wait on the drives. In particular, there is a need for a massively parallel database management that utilizes silo systems and hybrid indexing tables in memory, tiered query and data parallel processing and manifests within silo systems.
Accordingly, it is an object of this disclosure to provide a parallel database management system optimized for managing large volumes of time based data.
Another object of this disclosure is to provide a parallel database management system with silo systems that utilize only local resources for faster performance.
Another object of this disclosure is to provide a parallel database management system with silo systems that utilize only local resources to avoid latency and bandwidth limitations inherent in interconnect access.
Another object of this disclosure is to provide a parallel database management system with silo systems that utilize only local memory and local disk drives for faster performance.
Another object of this disclosure is to provide a parallel database management system with a signal rich manifest describing physical locations of data stored on a disk drive for locating the maximum amount of data while taking the least amount of memory and disk space.
Another object of this disclosure is to provide a parallel database management system with a hierarchical manifest describing physical locations of data stored on a disk drive for faster data retrieval from a storage disk by direct reads.
Another object of this disclosure is to provide a parallel database management system with a manifest for each segment.
Another object of this disclosure is to provide a parallel database management system with a manifest stored in each segment.
Another object of this disclosure is to provide a parallel database management system with a manifest stored at end of each segment.
Another object of this disclosure is to provide a parallel database management system with a hierarchical manifest in a physically backed memory region for faster access minimizing page faults.
Another object of this disclosure is to provide a parallel database management system with a hierarchical manifest organizing data by cluster keys.
Another object of this disclosure is to provide a parallel database management system with a hierarchical manifest organizing data by time based data buckets for each cluster key.
Another object of this disclosure is to provide a parallel database management system with a hierarchical manifest organizing data by time based data buckets of equal time frames.
Another object of this disclosure is to provide a parallel database management system with time based data stored on disk drives based on the order of time stamps of the data.
Another object of this disclosure is to provide a parallel database management system with time based data of different time periods stored in different segment groups.
Another object of this disclosure is to provide a parallel database management system with data records stored by columns for faster performance in retrieving data from physical disk drives.
Another object of this disclosure is to provide a parallel database management system with data records stored by columns for reducing reads of physical disk drives in data retrieval.
Another object of this disclosure is to provide a parallel database management system with data records stored by columns in coding blocks of different coding lines on a segment to allow fewer reads in data retrieval.
Another object of this disclosure is to provide a parallel database management system to store data records by columns in a segment with a manifest indicating the location of the data on the physical disk drive of the segment for faster data retrieval.
Another object of this disclosure is to provide a parallel database management system to store a data record along with a confidence about the accuracy of the data record.
Another object of this disclosure is to provide a parallel database management system that prioritizes analytical calculations on large datasets.
Another object of this disclosure is to provide a parallel database management system that prioritizes analytical calculations on large datasets based on characteristics of the analytical calculations and characteristics of the dataset.
Another object of this disclosure is to provide a parallel database management system that prioritizes an analytical calculation based the rank of a similar analytical calculation based on characteristics of the two analytical calculations.
Another object of this disclosure is to provide an in-memory sorted hybrid indexing list with both header entries and data entries containing entry counts and cluster keys respectively.
Another object of this disclosure is to provide an in-memory sorted hybrid indexing list with data entries containing cluster keys linking to a manifest respectively.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture in a silo within a massively parallel database system.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture with a dispatcher thread, a set of search threads and a set of aggregation threads pinned to a silo within a massively parallel database system.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture with a dispatcher thread, a set of search threads, a set of aggregation threads, and a storage drive access thread pinned to silo within a massively parallel database system.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture within a silo that divides a work into multiple work units processed by a set of search threads within a massively parallel database system.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture within a silo that divides a work into multiple work units processed by a set of search threads, and each work units into multiple subwork units assigned to a set of aggregation threads within a massively parallel database system.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture with a dispatcher thread, a set of search threads causing data read requests processed by a storage drive access thread, and a set of aggregation threads processing data fetched from a storage drive by the storage drive access thread.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture with a lower tier communicating backward pressure to an upper tier and the upper tier then balancing load on the lower tier.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture with a search thread communicating backward pressure to a dispatcher thread and the dispatcher thread then balancing load distributed to the search thread.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture with a search thread determining its load status based utilization of its buffers.
Another object of this disclosure is to provide a three tiered hierarchical data query processing architecture with an aggregation thread communicating backward pressure to a search thread and the search thread then balancing load distributed to the aggregation thread.
Other advantages of this disclosure will be clear to a person of ordinary skill in the art. It should be understood, however, that a system or method could practice the disclosure while not achieving all of the enumerated advantages, and that the protected disclosure is defined by the claims.
Generally speaking, pursuant to the various embodiments, the present disclosure provides a massively parallel database management system for managing massive volumes of data. In particular, massively parallel database management system is optimized for managing time based data. A database management software application running in user space directly accesses a disk drive to store and retrieve data for faster performance. The time based data is stored in coding blocks of segments of a segment group of a cluster. Coding blocks of different segments within the same segment group are grouped in coding lines. The cluster includes a set of nodes, each of which includes one or more storage disk drives. Each disk drive includes one or more segments.
Each node includes one or more sockets while each socket houses a set (meaning one or more) of processing units. A socket and its processing units are operatively coupled to a set of local resources, such as a local memory, a local disk drive and a local network interface card. A processing unit accesses the local devices at a higher speed than accesses to remote devices that are local to a different socket. The two sockets are interconnected by an interconnect interface. The cross socket access is slower due to latency and bandwidth limitation in the interconnect interface. A socket, the process units housed in the socket, and physical devices local to the socket are termed herein as a silo. The massively parallel database management system implementing the silo oriented computing achieves faster performance due to the fact that the data management processing within different silos uses only local devices. Data management threads are pinned to specific processing units with a silo such that the threads only access local memory and other local resources.
For improved performance in data retrieval reads and data storing writes, the novel data management system accesses disk drives directly without going through middle layers, such as a file system of an operating system. The data management system software application maintains a manifest to track the exact physical location where a particular piece of data is stored in a segment of a physical disk drive. The manifest embodies a compact structure such that it minimizes storage overhead for relational information in a segment while occupying a small footprint. The manifest is thus optimized to occupy less memory and disk drive space while providing the maximum amount of signal. The manifest is stored, for example, at the end of each segment while data is stored in coding blocks from the beginning of the segment.
Since data requests usually demand data in certain columns, but not all columns of data records, the database management system software application further improves on conventional technologies by storing data by columns in coding blocks on segments within a cluster. By retrieving only data of one or multiple columns, the number of reads is reduced because the amount of data read is less that the total amount of data within all of the relevant records. To further speed up data queries, different segment groups store time based data of different time periods. In such a case, a requested data record is first quickly narrowed to a segment group based on the time stamp of the data record.
The manifest indicates the location of data stored in the corresponding segment. The manifest organizes data records by cluster keys. For each cluster key, data is organized as data buckets of sequential, but not necessarily contiguous, time periods. The different time periods are of the same time duration (also referred to herein as time frame) in one implementation. For each data bucket, data is stored by columns, wherein each stored column is indicated by coding lines and storage byte offsets.
Further in accordance with various embodiments, the present teachings provide a database management system that stores data records along with confidence data. The confidence data indicates a confidence in the accuracy of a data record or data point. In addition, analytical calculations for analyzing large datasets are prioritized for effective data analysis. The prioritization can be based on characteristics of the analytical calculations and/or characteristics of a particular dataset. Furthermore, a rank of one analytical calculation is assigned to a similar analytical calculation. The ranks are determined based on, for example, execution results of the analytical calculations on the dataset.
Further in accordance with various embodiments, the present teachings provide a cluster system with a query coordinator dispatching a data query to each node within the cluster system of a massively parallel database management system. The distribution of the query to each node within the cluster allows highly parallel processing of the query by multiple nodes.
Further in accordance with various embodiments, the present teachings provide an in-memory hybrid indexing table for fast data search. The hybrid indexing table is sorted for fast search. Furthermore, the hybrid indexing table includes both header entries and data entries. Each data entry includes attributes (such as IP addresses) of a data query and a cluster key. The cluster key is present in a manifest associating the cluster key to specific locations on a storage drive storing the data corresponding to the data query. The hybrid indexing table allows the database management system to quickly identify the physical location of the requested data of a query in a storage drive.
Further in accordance with various embodiments, the present teachings provide a tiered hierarchical data query and retrieved data processing system within a silo. A three tiered hierarchical architecture includes a dispatcher thread in the first tier, a set of search threads in the second tier and a set of aggregation threads in the third tier. Furthermore, the three tiered hierarchical architecture includes a storage drive access thread for accessing one or more storage drives. The dispatcher thread breaks a work (such as a query) into a batch of work units and assigns the work units to a set of search threads. Each search thread breaks its work units into a batch of subwork units, and generates a data read request for the storage drive read thread to fetch the corresponding data from one of the storage drives. The data read request indicates the physical location of the data in the storage drive. When the data is read from the drive, one of the associated aggregation threads then processes the data. Thereafter, the search thread merges data corresponding to the subwork units. The dispatcher thread then merges data for the work units, and returns the merged data.
Each search thread determines its task load status, which indicates the backward pressure on the search thread. The search thread communicates the backward pressure to the dispatcher thread. In response, the dispatcher thread balances the load on the search threads. Similarly, the backward pressure handling mechanism is also applicable between aggregation threads and search threads. The backward pressure handling mechanism avoids hot spots in the three tiered hierarchical paradigm. Furthermore, the highly parallel query and data processing by the dispatcher thread, the search threads and the aggregation threads provides the maximum amount of data read requests to the storage drive read thread within any particular time period. Accordingly, the three tiered hierarchical paradigm causes the storage drive read thread and the storage drive to be in a highly utilized state. With the storage drive and the storage drive thread utilization maximized, the latency of data being made available for processing is minimized. In other words, the wait on the storage drive to return all requested data is minimized.
Further in accordance with the present teachings is a database management system providing load balance within cluster nodes. The database management system includes a cluster of nodes. Each node within the cluster includes a processing unit, a storage disk drive accessible by the processing unit, and a networking interface operatively coupled to the processing unit. Each node within the cluster has a first tier thread executed by the processing unit and a set of second tier threads executed by the processing unit. Each second tier thread within the set of second tier threads is adapted to determine a backward pressure, and indicate the backward pressure to the first tier thread. The first tier thread is adapted to receive the backward pressure of each second tier thread, and load balance the set of second tier threads by assigning tasks between the set of second tier threads based on the backward pressures of the set of second tier threads.
Although the characteristic features of this disclosure will be particularly pointed out in the claims, the invention itself, and the manner in which it may be made and used, may be better understood by referring to the following description taken in connection with the accompanying drawings forming a part hereof, wherein like reference numerals refer to like parts throughout the several views and in which:
A person of ordinary skills in the art will appreciate that elements of the figures above are illustrated for simplicity and clarity, and are not necessarily drawn to scale. The dimensions of some elements in the figures may have been exaggerated relative to other elements to help understanding of the present teachings. Furthermore, a particular order in which certain elements, parts, components, modules, steps, actions, events and/or processes are described or illustrated may not be actually required. A person of ordinary skill in the art will appreciate that, for the purpose of simplicity and clarity of illustration, some commonly known and well-understood elements that are useful and/or necessary in a commercially feasible embodiment may not be depicted in order to provide a clear view of various embodiments in accordance with the present teachings.
Turning to the Figures and to
A specialized computer software 126 for managing data runs on the operating system 122 within the silos 102 and 104 respectively. In one implementation, the operating system 122 is a single instance running on the sockets 106-108 of the node 100. In one implementation, the specialized computer software 126 programs each silo to perform a part of a task. The specialized computer software 126 can also program one silo (such as the silo 102) to perform one task, and another silo (such as the silo 104) to perform a different task.
The disk drives 114-116 are storage devices for storing data, and can be, for example, Non-volatile Random-Access Memory (“NVRAM”), Serial Advanced Technology Attachment (“SATA”) Solid State Drives (“SSDs”), or Non-volatile Memory Express (“NVMe”). As used herein, drives, storage drives, disk drives and storage disk drives are interchangeably used to refer to any types of data storage devices, such as NVRAM, SATA, SATA SSDs and NVMe. Each of the disk drives (such as the drives 114-116) has one or more segments. For ease of illustration, each of the disk drives 114-116 is said to include only one segment and interchangeably referred to as a segment herein. Segments within a cluster form a segment group.
The processing units within the socket 106 directly access the memory 110, the NIC 118 and the disk drive 114 over electrical interfaces, such as Peripheral Component Interconnect Express (“PCIe”). For example, the socket 106 directly accesses these physical devices via a PCIe bus, a memory control, etc. Similarly, the socket 108 directly access the memory 112, the NIC 120 and the disk drives 115-116.
In contrast, the processing unit(s) within the socket 108 accesses the memory 110, the disk drive 114 and the NIC 118 via an interconnection interface 152. Similarly, the processing unit(s) within the socket 106 accesses the NIC 120, the disk drives 115-116 and the memory 112 via the same interconnection interface 152. The access over the interconnect interface 152 between the sockets 106 and 108 is referred to herein as an indirection connection. In other words, a socket within each silo directly accesses physical devices within the same silo, and indirectly accesses physical devices within a different silo. Physical devices within one silo are said to be local to the silo and remote to a different silo.
In one implementation, the interface 152 is a QuickPath Interconnect (“QPI”) interface or an UltraPath Interconnect (“UPI”) interface. The indirect access between the silos 102-104 incurs a performance penalty due to latency inherent in indirect access. Furthermore, the interconnect interface 152 becomes a bottleneck in indirect access. In addition, the interconnect interface 152 has a bandwidth limitation. Accordingly, accessing remote devices over the interconnect interface 152 is less desirable. To overcome the performance issues imposed by the indirect access, the present teachings provide the specialized database management system software 126 to implement a silo oriented database system.
In the silo based data management system, the instance of the specialized database management system software 126, running on the processing unit(s) within the socket 106, accesses only the local resources, such as the memory 110, the NIC 118 and the disk drive 114 that are local to the socket 106 and all the processing units within the socket 106. Similarly, the instance of the software 126 running on the processing unit(s) within the socket 108 accesses only the NIC 120, the memory 112 and the disk drives 115-116 local to the socket 108 and all the processing units within the socket 108. In other words, the instance of the software 126 running on the socket 108 do not access the remotely connected physical devices 110, 114, 118 when, for example, data queries are served. However, cross-silo access is possible in certain cases, such as system startup and shutdown. It should be noted that the silo boundary based computing is programmed for a set of predetermined functionality. For example, for storing data into and retrieving data from a database and disk drives, the specialized program 126 limits its access to local devices and avoids remote access to a different silo. The silo boundary control is further illustrated by reference to
Referring to
At 204, the special software program 126 performs a specialized memory allocation to allocate a huge page of the memory 110. The huge page is a big swatch of memory (such as 1 GB) that is a virtual memory region. The huge page is physically backed by the memory 110. In other words, the virtual memory region corresponds to a region of the same size on the memory device 110. Multiple accesses to the virtual memory region result in the same physical region being accessed. A processor maintains a cache of virtual-to-physical page mappings (i.e., the Translation Lookaside Buffer (“TLB”)); and by utilizing a huge page the special software is able to address larger regions of memory with fewer TLB cache entries. The physically backed huge page is also referred to herein as a physical huge page of memory. The physically backed huge page is within the silo boundary, and corresponds to a segment manifest.
At 206, the specialized software program 126 loads a segment manifest into the physically backed huge page. The manifest describes a hierarchical structure indicating the location of data in the segment (such as the disk drive 114). In one implementation, each segment stores a manifest. A segment with a manifest is further illustrated by reference to
Turning to
Returning to
Referring to
Referring to
Many types of data are generated in great volumes and of similar or same formats. For example, a computer network logger produces large volumes of records of the same format. Another example of the time based data is weather data. Each record includes a time stamp (meaning the time when the record is generated), a cluster key, and a number columns of other types of data. The cluster key can identify, for instance in network log data, a source IP address and a destination IP address. The source IP address is the IP address of the computer or device sending the data contained in the record, while the destination IP address is the IP address of the computer or device receiving the data contained in the record. In one implementation, the cluster key is derived from the source IP address (also referred to herein as local IP address) and the destination IP address (also referred to herein as remote IP address). Alternatively, the cluster key is derived from the local IP address, the remote IP address and a remote IP port number associated with the remote IP address. The remote IP address and the remote port collectively identify the remote computer receiving the data.
Such time stamp based data is uploaded to a database management system to be stored in disk drives, such as the disk drives 114-116. A logical representation of the time based data is further illustrated by reference to
The records with the same cluster key are said to be related. Taking a network logger as an example, the cluster key is the pair of source IP address and the destination IP address. All records with the same cluster key are data sent from a particular computer or device to another particular computer or device, and are said to be related herein. The related records have different time stamps and are also ordered by the time stamps. For instance, records 0-500 have a same cluster key while records 501-1000 share a different cluster key.
To maximize the performance in serving requests for such data after it is stored on the disk drives 114-116, the present database management system stores the records 0-M based on columns, instead of rows. Data queries usually request one or more columns of certain records, such as records during a particular time period. Storing the records 0-M by columns allows the minimum amount of reads to retrieve the desired data from a disk drive. The column based data storage in the highly parallel database management system is further illustrated by reference to
Referring to
For example, data of Column 0 of the records with cluster key 0 (meaning a first cluster key) during a particular time period is stored in coding block 502; data of column 1 of the records with cluster key 0 during the particular time period is stored in coding blocks 502-504; data of column 2 of the records with cluster key 0 during the particular time period is stored in coding blocks 504, 508-510; data of column 3 of the records with cluster key 0 during the particular time period is stored in coding blocks 510 and 514; data of column 4 of the records with cluster key 0 during the particular time period is stored in coding blocks 514-516,520-522,526; data of column 0 of the records with cluster key 1 during the particular time period is stored in coding block 526; data of column 1 of the records with cluster key 1 during the particular time period is stored in coding blocks 526-528; etc. Records of the cluster key 0 (as well as the cluster key 1) during the particular time period are ordered by their corresponding time stamps from, for example, the oldest to the newest.
The time based data is sequentially stored in segments groups, each of which comprises a set of segments. A particular time period is mapped to a small fixed set of segment groups. For example, in one implementation, a particular time period is mapped to a unique segment group. As an additional example, a particular time period is mapped to two segment groups in a different implementation due to the fact that segment groups can overlap slightly in time at their boundaries. The mapping is further illustrated by reference to
The time based data between time TA and time TB is stored in the segment group 672; the time based data between time TB and time TC is stored in the segment group 674; the time based data between time TC and time TD is stored in the segment group 676; and so on. The time stamps TA, TB, TC, TD, TE, TF and TG are ordered from the oldest to the latest. Accordingly, when a data record is requested, the segment group storing the record is first determined based on the time stamp of the record. The time based storage of data in the cluster 600 thus provides an efficient and faster response to a data query. The lengths of different time periods, such as from TA to TB and from TB to TC, may differ.
When time based data records are received, a segment group and a segment within the segment group is first determined for storing the record. For example, a function is performed on the cluster key of the records to determine the segment group and the segment. The function is shown below:
function(cluster key)=segment group identifier and segment identifier
The data records are then forwarded to the node (such as the node 100) having the segment. The data records are then received by the target node. For example, the data record is received at 222 of the process 200B. The function (cluster key) enables even distribution data records between segments within a segment group.
For efficiently placing and searching the time based data records, a hierarchical manifest for each segment is created and managed by the specialized database management software 126. The manifest is further illustrated by reference to
Within each data bucket, data records are organized by columns starting from column 0 to column 1 to column 2, and so on. Taking the cluster key 0 as an example, the data in the column 0 within the bucket of the period from TA1 to TA2 is stored in one or more coding blocks. The coding blocks are identified by a starting coding block number SL0, and an ending coding block number EL0. The coding block numbers SL0 and EL0 are also referred to herein as a starting coding block line and an ending coding block line. Accordingly, SL0 and EL0 identify one or more consecutive blocks on the segment storing the corresponding data. SB0 indicates the starting byte location from the beginning of the first coding block of the one or more consecutive coding blocks, while EB0 indicates the ending byte location from the beginning of the first coding block of the one or more consecutive blocks. In other words, the storage space starting from the byte at SB0 to the byte at EB0 in the one or more consecutive coding blocks store the data of the column 0 of the time based records in the data bucket between TA1 and TA2 of the cluster key 0. A data bucket cannot be empty. If no data is present for a particular time period, no bucket is stored, and during retrieval the lack of a bucket is interpreted as there being no data for that time period. In one embodiment, the manifest is immutable; and, if changes are required, the entire manifest is regenerated.
Referring to
In one embodiment, the time based data is compressed before it is stored into a segment of the node 100. For instance, the data of column 3 of a particular data bucket of a particular cluster key is encoded. The compression can be optionally performed on some columns. For example, the compression is not performed on the time stamp and cluster key columns. The compression form can be, for example, Run-Length Encoding (“RLE”). In one implementation, the compression is performed at 224 of the process 200B.
Certain types of data, such as genomic base pairs in a genome sequence, are created in such a manner that the data value is not known to be 100% accurate. In other words, there is not a 100% confidence in the accuracy of such data. For instance, a gene sequencer may estimate that a genomic base pair at a given location is 90% likely to be C-G and 10% likely to be A-T. As an additional example, when network traffic data is collected, the accuracy of each data record may be affected by the bit error rate of the network hardware or some other reasons. When mathematical and statistical analysis is later performed on such data without 100% confidence in its accuracy, the confidence of the calculated output data would be affected by the less than 100% confidence in the network traffic data. Accordingly, in one embodiment, the confidence information about the data is stored in the database. When the data records are retrieved from the database system storing such records, the corresponding data confidence is also retrieved. The data confidence is further incorporated and considered in the analysis of the data records.
The data without 100% confidence in accuracy and the confidence information are further illustrated by reference to
Various datasets, such as network traffic data, financial transactions, and digital sensor data, are growing rapidly each day and becoming so large that humans can no longer examine such data and get a sense of what is unusual with such datasets. Accordingly, computers are needed to analyze these large datasets to determine whether any data abnormality are present. Computers generally analyze a dataset by performing analyses, such as calculating a standard deviation or a distance between data points. As used herein an analysis is also referred to as a calculation. On a large dataset, only a limited number of calculations could be effectively performed. Accordingly, prioritizing calculations to perform on large datasets is more desirable.
For example, it is beneficial to prioritize those next calculations of data abnormality in a dataset by prioritizing the calculations likely to complete faster. In a different implementation, future analytical calculations are prioritized based on how the results of previous calculations are scored. An analytical calculation similar to a previously executed calculation with high scoring results is also prioritized higher. In other words, the analytical calculation is assigned with the same priority score. The analytical calculation prioritization is further illustrated by reference to
Referring to
Referring now to
The present disclosure teaches a massively parallel database management system optimized for managing time based data. The database system provides significant performance improvement over conventional database management system. For example, the massively parallel database management system is capable of processing tens and even hundreds of millions of data queries per second. To achieve the unprecedented performance, the database management system incorporates various novel features, such as high speed hybrid indexing tables in memory for fast search, a three tiered hierarchical dynamic query and data processing system, and others as set forth herein.
Referring to
Each node within the cluster 1100 maintains one or more fast hybrid indexing table structures in memory for high speed data query processing. One high speed hybrid indexing table is illustrated in
The illustrative hybrid indexing table 1200 includes entries 1222 through 1252. The collection of entries with LIP1 in the LIP field 1204 is indicated at 1262 while the list of entries with LIP2 in the LIP field 1204 is indicated at 1264. The entry 1222 in the list 1262 is the first entry with the first bit of the indicator 1202 set to 0 and other bits set to 1. The 0 value indicates that the entry 1222 is a header entry and starts with a new LIP, i.e., LIP1 in this case. The value 10 in the value field 1210 of the entry 1222 indicates that the 10 entries 1222-1240 all have the same local IP address LIP1. The value 10 is also referred to herein as the length of the list 1262.
The first two bits of the indicator 1202 of the entry 1224 are set to 00 indicating that the entry 1224 is a header entry with a new remote IP address, i.e., RIP1 in this case. The value 3 in the value field 1210 of the entry 1224 indicates that the 3 entries 1224-1228 all have the same LIP1 and RIP1. All bits of the indicator field 1202 of the entries 1226-1228 are set value 1. Accordingly, the entries 1226-1228 are data entries. In each data entry, the value field 1210 contains a cluster key derived from the LIP, RIP and RP of the data entry. For example, the key 1210 of the entry 1226 is a cluster key derived from LIP1, RIP1 and RP1. The entry 1230 starts a new RIP, i.e., RIP2 in this case. In the list 1274 starting from the entry 1230, there are five data entries 1232-1240. The list 1264 starts with the header entry 1242 with a new LIP, i.e., LIP2 in this case.
In one implementation, the list 1200 is an ordered high-speed hybrid indexing list sorted by LIP, RIP and then RP fields. The sorted hybrid indexing list 1200 allows fast search, such as binary search because each entry 1298 is of the same size. For example, when a query requests for data sent from a particular LIP to a particular RIP at a particular RP, the ordered hybrid indexing list 1200 supports an extremely fast search for determining the cluster key corresponding to the query. Each cluster node can also maintain additional ordered hybrid indexing lists. For example, an additional list is ordered by RIP, RP and then LIP. Furthermore, additional lists are not limited to a single three-level deep segmentation. The ordered hybrid indexing structure is equally efficient at one, two, or any N-deep configuration.
The hybrid indexing table 1200 includes a plurality of header entries with entry counts and a plurality of data entries with cluster keys. Furthermore, each data entry includes both data identifying communication devices and a cluster key. Header entries and data entries each incorporate an indicator 1202. The indicator specifies the type of the entry and the type of the header entry when the entry is a header entry.
The hybrid indexing table 1200 illustrates a hierarchical indexing structure. The hierarchical indexing structure 1200 illustrates a hierarchy with two levels indicated by the header entries 1222 and 1242, and the header entries 1224 and 1244. The hierarchical indexing structure 1200 can be a hierarchy of more than two levels. For instance, the third level can be indicated by header entries of different port numbers.
In a different implementation, the hierarchical indexing structure 1200 is used to record the usage data of mobile devices, such as cell phones. In such a case, the tier one header entries, such as the header entries 1222 and 1242, identify unique mobile devices by, for example, their Mobile Identification Number (“MIN”) or International Mobile Subscriber Identity (“IMSI”). The tier two header entries, such as the header entries 1224, 1230 and 1244, identify mobile device event types. The data entries include mobile usage data, such as phone calls, network access, application usage, etc.
In another implementation, the hierarchical indexing structure 1200 is used to record TV watching data. In such a case, the tier one header entries, such as the header entries 1222 and 1242, identify unique customer accounts by, for example, their account numbers. The tier two header entries, such as the header entries 1224, 1230 and 1244, identify TV set-top boxes. The data entries include TV watch data, such as watched channels and data and time, etc.
In yet another implementation, the hierarchical indexing structure 1200 is used to track and log system events of networked servers. In such a case, the tier one header entries, such as the header entries 1222 and 1242, identify unique server computers. The tier two header entries, such as the header entries 1224, 1230 and 1244, identify event categories. The tier three header entries identify event types. The data entries then include system event data, such as logins, etc.
High speed data retrieval is further illustrated by reference to
At 1312, based on the cluster keys and the time interval (indicated by a starting timestamp and an ending timestamp) the node searches a manifest, such as the manifest 700, to determine the location on a storage drive where the requested data is stored. It should be noted that a given cluster key may not exist in all nodes. When a cluster key is not present in the manifest of a particular node, the node then terminates the search for that key. When a cluster key is present in the manifest of a particular node, the node may not have data within the time interval of the query. In such a case, the node also terminates the query for that key and does not read a drive or returns any data. At 1314, the node reads the data from the drive. At 1316, the coordinator combines the read data from different nodes within the cluster. At 1318, the coordinator returns the combined data to the data requestor.
To maximize the data query processing performance of the massively parallel database management and be able to handle tens and even hundreds of millions of queries per second, the database system further incorporates a three tiered hierarchical architecture as shown in
In one implementation, the threads 1402, 1412-1416 and 1422-1432 are pinned to a particular silo, such as the silo 102 or 104. In a further implementation, the thread 1452 is also pinned to the particular silo. The three tier hierarchical query processing system 1400 can thus be implemented in different sockets of each node within a cluster of the massively parallel database management system.
When a node receives a data query (such as that illustrated in
As an example, the work is a data query for data sent from a local IP address to a remote IP address at a remote port from time T1 to T2. In one implementation, the dispatcher thread 1402 groups the set of cluster keys for the query, such as that determined at 1310, and associates the groups (i.e., subsets) of the set of cluster keys to different search threads. Each subset of cluster keys is a work unit. In one implementation, a work unit with more cluster keys is considered a bigger work unit.
In an alternate embodiment in accordance with the present teachings, the work unit 1 is a data query for data sent from the local IP address to the remote IP address at the remote port from time T1 to Tm; and the work unit 2 is a data query for data sent from the local IP address to the remote IP address at the remote port from time Tm to T2. In the example above, Tm is a timestamp between timestamp T1 and timestamp T2. When Tm is the middle point between T1 and T2, the work units 1 and 2 are regarded as work units of the same size by the dispatcher thread 1402. In other words, work units 1-2 are equal size work units. When Tm is closer to T2 than to T1, the work unit 1 is regarded as a bigger work unit by the dispatcher thread 1402 and the work unit 2 is regarded as a smaller work unit. When Tm is closer to T1 than to T2, the work unit 1 is regarded as a smaller work unit by the dispatcher thread 1402 and the work unit 2 is regarded as a bigger work unit.
The search threads 1412-1414 process the work units 1-2 respectively. In one implementation, the search threads each divide a work unit into multiple subwork units that are processed in parallel. Each of the subwork units is an independent portion of the work unit. For example, the work unit is divided into the subwork units based on groups of cluster keys. For instance, each subwork unit corresponds to a group of cluster keys. As an additional example, the work unit 1 corresponds to the entire time period between T1 and Tm; and the subwork units correspond to different portions of time periods between T1 and Tm. The different portions of time periods are consecutive and not over lapping. Alternatively, a search thread does not divide a work unit into multiple subwork units. In such a case, it is also said herein that the search thread divides the work unit into one subwork unit. This alternate embodiment is further illustrated in
The processing of the work units 1-2 is further illustrated by reference to
The search thread further maintains a list of buffers, which is further illustrated by reference to
Returning to
In the tiered hierarchical system 1400, the drive 1454 is highly utilized for providing data with least amount of idling time. Furthermore, since multiple search threads are all submitting data read requests in a silo, the drive 1454 is made to process a large number of parallel requests. Different from conventional database management systems, the highly parallel nature of the new paradigm reduces the total time required to process a given query because it is divided into a large number of parallel tasks to be executed at once, instead of in sequence.
The process by which the storage drive 1452 provides data is further illustrated by reference to
The process by which the aggregation thread processes the data read by the drive access thread 1452 is shown and generally indicated at 1900 in
Turning to
The dispatcher thread 1402 then merges data of all work units of a particular work to produce a final result. For example, it merges data for the work units 1-2 from the search threads 1412-1414. Thereafter, the dispatcher thread 1402 returns the merged data (i.e., data requested by the work) to a requester, such as another computer within the database management system, a web server or a computer of a third party or a different system. The data flow from aggregation threads to search threads and then to the dispatcher thread are indicated in
In one implementation, a work is concurrently processed by more than one silo within a node as shown in
Different work units oftentimes require different amount of resources, such as computer processing time of a core, and it is not always known in advance the amount of resources that will be necessary. Accordingly, some search threads may have a higher load than others at particular points in time. It is thus desired for search threads to provide backward pressure to the dispatcher thread, i.e., from the tier 2 to the tier 1. More generally speaking, a lower stream tier (or thread) provides backward pressure to an upper stream tier (or thread). The backward pressure communication is further illustrated by reference to
Referring to
Referring to
At 2308, the dispatcher thread 1402 sends more work units to less occupied search threads, and fewer or none work units to more occupied search threads. For example, the allocation of work units between search threads are based on thresholds. When a search thread's load is over a threshold, it then receives no work units (as shown at 2310) until its load falls below the threshold. As an additional example, a search thread with a load of ten percent receives two work units while another search thread with a load of fifty percent receives one work unit when there are three work units available for processing. In a different implementation, at 2312, the dispatcher thread 1402 sends bigger work units to less occupied search threads and smaller work units to more occupied search threads.
Obviously, many additional modifications and variations of the present disclosure are possible in light of the above teachings. Thus, it is to be understood that, within the scope of the appended claims, the disclosure may be practiced otherwise than is specifically described above. For example, the aggregation threads communicate backward pressure to the search threads.
The foregoing description of the disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or to limit the disclosure to the precise form disclosed. The description was selected to best explain the principles of the present teachings and practical application of these principles to enable others skilled in the art to best utilize the disclosure in various embodiments and various modifications as are suited to the particular use contemplated. It should be recognized that the words “a” or “an” are intended to include both the singular and the plural. Conversely, any reference to plural elements shall, where appropriate, include the singular.
It is intended that the scope of the disclosure not be limited by the specification, but be defined by the claims set forth below. In addition, although narrow claims may be presented below, it should be recognized that the scope of this invention is much broader than presented by the claim(s). It is intended that broader claims will be submitted in one or more applications that claim the benefit of priority from this application. Insofar as the description above and the accompanying drawings disclose additional subject matter that is not within the scope of the claim or claims below, the additional inventions are not dedicated to the public and the right to file one or more applications to claim such additional inventions is reserved.
This application claims the benefit and priority of U.S. Patent Application No. 62/480,601 entitled “DATABASE MANAGEMENT SYSTEM USING HYBRID INDEXING LIST AND HIERARCHICAL QUERY PROCESSING ARCHITECTURE,” filed Apr. 3, 2017, which is hereby incorporated by reference in its entirety. This application is related to U.S. Patent Application No. 62/403,328, entitled “APPLICATION DIRECT ACCESS TO NETWORK RDMA MEMORY,” filed on Oct. 3, 2016, assigned to Ocient, INC, which is hereby incorporated by reference in its entirety. This application is also related to U.S. Patent Application No. 62/403,231, entitled “HIGHLY PARALLEL DATABASE MANAGEMENT SYSTEM,” filed on Oct. 3, 2016, assigned to Ocient, INC, which is hereby incorporated by reference in its entirety. This application is related to U.S. Patent Application No. 62/433,901, entitled “EFFICIENT DATABASE MANAGEMENT SYSTEMS,” filed on Dec. 14, 2016, assigned to Ocient, INC, which is hereby incorporated its entirety. This application is also related to U.S. Patent Application No. 62/433,919, entitled “USE OF A DESIGNATED LEADER TO MANAGE A CLUSTER OF NODES IN A DATABASE MANAGEMENT SYSTEM,” filed on Dec. 14, 2016, assigned to Ocient, INC, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
62480601 | Apr 2017 | US |