# US 2018/0025057 A1 · M x n dispatching in large scale distributed system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0025057 A1
- Document ID: US20180025057A1
- Status: Published application
- Kind: A1
- Application number: 15/668,861
- Filed: 2017-08-04
- Published: 2018-01-25
- Earliest claimed: 2013-02-25
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Lei Chang; Tao Ma; Zhanwei Wang; Luke Lonergan; Lirong Jian; Lili Ma
- Web page: https://patentgrep.com/patent/US20180025057A1

## CPC

- G06F 16/24542: {Plan optimisation}
- G06F 16/10: File systems; File servers
- G06F 16/11: File system administration, e.g. details of archiving or snapshots (error detection or correction of the data by redundancy in operations G06F11/14)
- G06F 16/148: {File search processing}
- G06F 16/182: Distributed file systems
- G06F 16/1858: {Parallel file systems, i.e. file systems supporting multiple processors}
- G06F 16/24524: {Access plan code generation and invalidation; Reuse of access plans}
- G06F 16/2453: Query optimisation
- G06F 16/24532: {of parallel queries}
- G06F 16/2455: Query execution
- G06F 16/2471: {Distributed queries}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- H04L 65/60: Network streaming of media packets
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F 16/113: {Details of archiving (lifecycle management in storage systems G06F3/0649; point-in-time backing up or restoration of persistent data G06F11/1446)}
- G06F 16/217: {Database tuning (G06F16/2282 takes precedence; database performance monitoring G06F11/3409)}
- G06F 16/245: Query processing
- G06F 16/43: Querying
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

M×N dispatching in a large scale distributed system is disclosed. In various embodiments, a query is received. A query plan is generated to perform the query. A subset of query processing segments is selected, from a set of available query processing segments, to perform an assigned portion of the query plan. An assignment to perform the assigned portion of the query plan is dispatched to the selected subset of query processing segments.

## Claims

### Claim 1

A method, comprising:
receiving a query;
generating, by a master node, a query plan to perform the query, wherein the generating of the query plan includes dividing the query plan into at least a first portion and a second portion, and wherein the master node comprises one or more hardware processors;
selecting, by the master node, from a set of available query processing segments a first subset of query processing segments to perform a first assigned portion of the query plan corresponding to the first portion of the query plan, and a second subset of query processing segments to perform a second assigned portion of the query plan corresponding to the second portion of the query plan; and
dispatching to the selected first subset of query processing segments an assignment to perform the first assigned portion of the query plan, wherein the dispatching of the assignment to perform the first assigned portion of the query plan includes providing to the selected first subset of query processing segments with corresponding metadata that is obtained from a central metadata store, wherein the metadata provided to the corresponding selected first subset of query processing segments is determined to be used by the selected first subset of query processing segments to perform the first assigned portion of the query plan.

### Claim 2 (depends on 1)

The method of claim 1, wherein a first number of segments selected to perform the first portion of the query plan is dynamically determined according to one or both of (1) data locality of data corresponding to the first portion of the query plan associated with the query in relation to the first subset of query processing segments, and (2) available resources.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first subset of query processing segments is selected based at least in part on a co-locality of one or more of the selected query processing segments with data with which the assigned portion of the query plan is associated.

### Claim 4 (depends on 2)

The method of claim 2, wherein the first number of segments is selected to perform the first portion of the query plan and a second number of segments, different from the first number, is selected to perform the second portion of the query plan.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first subset of query processing segments and the second subset of query processing segments include at least a first segment.

### Claim 6 (depends on 1)

The method of claim 1, wherein the metadata to be used by the selected first subset of query processing segments to perform the first assigned portion of the query plan is embedded in a communication from the master node to the selected first subset of query processing segments that comprises the first assigned portion of the query plan.

### Claim 7 (depends on 1)

The method of claim 1, wherein the metadata comprises data indicating where data required to perform first assigned portion of the query plan is located.

### Claim 8 (depends on 1)

The method of claim 1, wherein a first number of segments selected to perform the first portion of the query plan is dynamically determined.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first subset of query processing segments executes a plurality of query execution threads.

### Claim 10 (depends on 1)

The method of claim 1, wherein the dividing the query plan into at least a first portion and a second portion includes dividing the query plan into a plurality of independently executable slices.

### Claim 11 (depends on 1)

The method of claim 1, wherein selecting the first subset of query processing segments includes receiving from a resource manager an indication of a degree of availability of processing segments included in the set of available query processing segments.

### Claim 12 (depends on 1)

The method of claim 1, wherein the first subset of query processing segments is selected according to a determination for each of a plurality of portions of the query plan a corresponding number of segments to be assigned to perform that portion.

### Claim 13 (depends on 1)

The method of claim 1, wherein the assignment comprises a network communication sent via a network interconnect.

### Claim 14 (depends on 1)

The method of claim 1, wherein the assignment includes the metadata, wherein the metadata is embedded in the assignment and is to be used to perform one or more tasks associated with the assigned portion of the query plan.

### Claim 15 (depends on 1)

The method of claim 1, wherein segments comprising the subset of query processing segments are associated with one or more segments hosts, each of which is configured to provide one or more processing segments.

### Claim 16 (depends on 1)

The method of claim 1, wherein the assignment includes the metadata, wherein the metadata indicates a location, within a distributed storage layer, of data associated with the assignment.

### Claim 17 (depends on 16)

The method of claim 16, wherein the location includes identification of a table of data to be search in connection with the assignment.

### Claim 18 (depends on 1)

The method of claim 1, wherein the first subset of query processing segments comprises one or more query processing segments, and the second subset of query processing segments comprises one or more query processing segments.

### Claim 19

A system, comprising:
a communication interface; and
one or more hardware processors coupled to the communication interface and configured to:
receive a query;
generate a query plan to perform the query, wherein the query plan is generated such that the query plan is divided into at least a first portion and a second portion;
select from a set of available query processing segments a first subset of query processing segments to perform a first assigned portion of the query plan, corresponding to the first portion of the query plan, and a second subset of query processing segments to perform a second assigned portion of the query plan corresponding to the second portion of the query plan; and
dispatch to the selected first subset of query processing segments, via the communication interface, an assignment to perform the first assigned portion of the query plan, wherein to dispatch the assignment to perform the first assigned portion of the query plan includes providing to the selected first subset of query processing segments with corresponding metadata that is obtained from a central metadata store, wherein the metadata provided to the corresponding selected first subset of query processing segments is determined to be used by the selected first subset of query processing segments to perform the first assigned portion of the query plan.

### Claim 20

A computer program product embodied in a tangible, non-transitory computer readable storage means, comprising computer instructions for:
receiving a query;
generating a query plan to perform the query, wherein the generating of the query plan includes dividing the query plan into at least a first portion and a second portion;
selecting from a set of available query processing segments a first subset of query processing segments to perform a first assigned portion of the query plan corresponding to the first portion of the query plan, and a second subset of query processing segments to perform a second assigned portion of the query plan corresponding to the second portion of the query plan; and
dispatching to the selected first subset of query processing segments an assignment to perform the first assigned portion of the query plan, wherein the dispatching of the assignment to perform the first assigned portion of the query plan includes providing to the selected first subset of query processing segments with corresponding metadata that is obtained from a central metadata store, wherein the metadata provided to the corresponding selected first subset of query processing segments is determined to be used by the selected first subset of query processing segments to perform the first assigned portion of the query plan.
