# US 2020/0210428 A1 · Service level goal processing for multi-environment data engine requests

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

- Number: US 2020/0210428 A1
- Document ID: US20200210428A1
- Status: Published application
- Kind: A1
- Application number: 16/296,732
- Filed: 2019-03-08
- Published: 2020-07-02
- Earliest claimed: 2018-12-28
- Assignees: Teradata Corporation
- Applicants: Teradata Corporation
- Inventors: Douglas Paul Brown; Michael Sean McIntire; Prama Agarwal
- Web page: https://patentgrep.com/patent/US20200210428A1

## CPC

- G06F 16/24542: {Plan optimisation}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 2209/549: Remote execution
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data engine request is received on a local data system. The data engine request includes a portion of the request that is to be processed on an external data engine system. The portion is forwarded to the external data engine system and statistics for accessing external objects of the external data engine system is acquired. The statistics are evaluated for compliance with a Service Level Goal (SLG) associated with the request. Rules-based processing permits optimization and planning of the request on the local data engine system to be modified in view of the statistics received from the external data engine system to comply with the SLG. In an embodiment, actual resource utilization metrics noted during execution of the portion on the external data engine system is provided as feedback to the local data engine system for re-planning and re-optimizing the request with a modified execution plan.

## Claims

### Claim 1

A method, comprising:
receiving a data engine request on a local data engine system;
identifying a portion of the data engine request that is to be processed by an external data engine system;
obtaining statistics from an external resource of the external data engine system used in fulfilling the portion on the external data engine system; and
modifying an optimization and an execution plan for processing the data engine request on the local data engine system based on the statistics and a Service Level Goal (SLG) associated with the data engine request.

### Claim 2 (depends on 1)

The method of claim 1, wherein receiving further includes receiving the data engine request as a data engine query.

### Claim 3 (depends on 2)

The method of claim 2, wherein identifying further includes identifying the portion as access to a remote function located on the external data engine system.

### Claim 4 (depends on 3)

The method of claim 3, wherein identifying further includes identifying an Application Programming Interface (API) for accessing the remote function and the external data engine system from an external query grid mapping.

### Claim 5 (depends on 4)

The method of claim 4, wherein obtaining further includes obtaining the statistics as a total number of rows in the remote function and a data size of the rows in the remote function.

### Claim 6 (depends on 4)

The method of claim 4, wherein obtaining further includes obtaining the statistics as a histogram for column groupings associated with the remote function.

### Claim 7 (depends on 1)

The method of claim 1, wherein modifying further includes processing automated actions to create a modified optimization and a modified execution plan based on the statistics and the SLG.

### Claim 8 (depends on 8)

The method of claim 8, wherein processing further includes evaluating rules to select the automated actions.

### Claim 9 (depends on 1)

The method of claim 1 further comprising, processing the execution plan and obtaining resource utilization metrics from the external data engine system based on actual processing of the portion on the external data engine system.

### Claim 10 (depends on 9)

The method of claim 9 further comprising, modifying the optimization and the execution plan based on the resource utilization metrics.

### Claim 11 (depends on 1)

The method of claim 1 further comprising, notifying a local data engine administrator when execution costs associated with optimization and the execution plan are unable to satisfy the SLG for the data engine request.

### Claim 12

A method comprising:
altering a query execution plan for a query on a local system based on external system costs obtained from an external system to fulfill a portion of the query and a Service Level Goal (SLG) for the query;
obtaining external resource utilization metrics from the external system when the portion is processed for the query execution plan on the external system; and
adjusting the query execution plan for the query based on the external resource utilization metrics and the SLG.

### Claim 13 (depends on 12)

The method of claim 12, wherein altering further includes altering the query execution plan by evaluating rules and applying automated actions to a local optimization associated with a local portion of the query processed on the local system.

### Claim 14 (depends on 13)

The method of claim 13, wherein selecting at least one automated action that alters a local resource priority associated with processing the local portion or that changes the local resource to a different local resource.

### Claim 15 (depends on 12)

The method of claim 12, wherein altering further includes determining the external system costs based on metadata statistics obtained from the external system that estimates a cardinality associated with processing the portion on the external system.

### Claim 16 (depends on 15)

The method of claim 15, wherein determining further includes estimating the cardinality based on a histogram for indices associated with a table used by the external system when processing the portion on the external system.

### Claim 17 (depends on 12)

The method of claim 12, wherein altering further includes process one or more probing queries on the external system to estimate the external system costs.

### Claim 18 (depends on 12)

The method of claim 12 further comprising, determining based on the adjusting whether the SLG can be satisfied or is unable to be satisfied for the query by the local system as an initiating system for the query.

### Claim 19

A system, comprising:
a data engine management system;
at least one hardware processor;
a non-transitory computer-readable storage medium having executable instructions representing a workload request manager;
the workload request manager configured to execute on the at least one hardware processor from the non-transitory computer-readable storage medium and to perform processing to:
integrate external statistics associated with an external data engine management system fulfilling a portion of a request with local statistics associated with the data engine management system fulfilling a second portion of the request;
estimate external costs based on the external statistics; and
modify a request execution plan on the data engine management system based on the external costs and a Service Level Goal (SLG) associated with the request.

### Claim 20 (depends on 19)

The system of claim 19, wherein the workload request manager is further configured to perform processing to assign the external costs to a contract negotiation SLG category and apply rules based on the contract negotiation SLG category to process automated actions to modify the request execution plan.
