# US 10,956,447 B2 · Determining data replication cost for cloud based application

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

- Number: US 10,956,447 B2
- Document ID: US10956447B2
- Status: Granted
- Kind: B2
- Application number: 16/681,758
- Filed: 2019-11-12
- Published: 2020-03-12
- Granted: 2021-03-23
- Earliest claimed: 2015-11-25
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jason K. Arnold; Henry E. Calzaretta; Shantan Kethireddy; Dylan S. Murphy
- Web page: https://patentgrep.com/patent/US10956447B2

## CPC

- G06F 16/275: {Synchronous replication}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/1023: based on a hash applied to IP addresses or costs
- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- H04L 67/565: Conversion or adaptation of application format or content (adding application control or application functional data H04L67/561)
- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- 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

Technical solutions are described for determining data replication cost for a data server. In an example, a method for estimating the data replication cost includes receiving an identification of a source table and an identification of a target table for the data replication. The method further includes receiving a selection of a data replication scheme to be used to replicate the data. A costing system that implements the method determines the data replication cost, based on a conversion cost for conversion of the data from the source table to the target table, and a transfer cost for transfer of the data from the source table to the target table. The costing system communicates the data replication cost to an administrator.

## Claims

### Claim 1

A computer implemented method for selecting data replication scheme for a data server, the method comprising:
receiving, by a processor of a costing system, an identification of a source table and an identification of a target table in the data server, wherein data from the source table is to be replicated into the target table;
receiving, by the processor, a selection of a first data replication scheme to be used to replicate the data;
determining, by the processor, a first data replication cost to replicate the data from the source table to the target table using the first data replication scheme based on a number of processor operations to convert the data from the source table to the target table;
estimating, by the processor, a second data replication cost to replicate the data from the source table to the target table using a second data replication scheme; and
notifying, by the processor, to use the second data replication scheme in response to the second data replication cost being lesser than the first data replication cost.

### Claim 2 (depends on 1)

The computer implemented method of claim 1 further comprising:
determining, by the processor, an amount of data to be replicated from the source table to the target table based on the first data replication scheme.

### Claim 3 (depends on 2)

The computer implemented method of claim 2 further comprising:
identifying, by the processor, a type of a source database of the source table;
identifying, by the processor, a type of a target database of the target table; and
determining, by the processor, a conversion cost to convert the data from the type of the source database to the type of the target database.

### Claim 4 (depends on 2)

The computer implemented method of claim 2 further comprising:
identifying, by the processor, a maximum payload size of communication packets that transfer data from the source table to the target table;
determining, by the processor, a number of communication packets to transfer the amount of data from the source table to the target table based on the maximum payload size; and
determining, by the processor, the transfer cost to transfer the data from the source table to the target table based on a cost for transfer of a single communication packet and the number of communication packets to transfer the amount of data.

### Claim 5 (depends on 1)

The computer implemented method of claim 1, wherein the data replication scheme identifies a frequency of replication of the data from the source table to the target table.

### Claim 6 (depends on 1)

The computer implemented method of claim 1, wherein the data replication cost is determined for a predetermined duration that spans one or more data replications from the source table to the target table.

### Claim 7 (depends on 1)

The computer implemented method of claim 1 further comprising:
comparing, by the processor, the second data replication cost with a predetermined threshold; and
in response to the second data replication cost being higher than the predetermined threshold, computing, by the processor, a third data replication cost for a third data replication scheme, and identifying the second data replication scheme otherwise.

### Claim 8

A system for determining a data replication cost for a data server, the system comprising:
a costing repository configured to store metadata associated with tables in the data server; and
a costing system comprising a processor coupled with the costing repository, the processor is configured to:
receive an identification of a source table and an identification of a target table in the data server, wherein data from the source table is to be replicated into the target table;
receive a selection of a first data replication scheme to be used to replicate the data;
determine a first data replication cost to replicate the data from the source table to the target table using the first data replication scheme based on a number of processor operations to convert the data from the source table to the target table;
estimate a second data replication cost to replicate the data from the source table to the target table using a second data replication scheme; and
notify to use the second data replication scheme in response to the second data replication cost being lesser than the first data replication cost.

### Claim 9 (depends on 8)

The system of claim 8, wherein the processor is further configured to:
determine an amount of data to be replicated from the source table to the target table based on the first data replication scheme.

### Claim 10 (depends on 9)

The system of claim 9, wherein the processor is further configured to:
identify a type of a source database of the source table;
identify a type of a target database of the target table; and
determine a conversion cost to convert the data from the type of the source database to the type of the target database.

### Claim 11 (depends on 9)

The system of claim 9, wherein the processor is further configured to:
identify a maximum payload size of communication packets that transfer data from the source table to the target table;
determine a number of communication packets to transfer the amount of data from the source table to the target table based on the maximum payload size; and
determine the transfer cost to transfer the data from the source table to the target table based on a cost for transfer of a single communication packet and the number of communication packets to transfer the amount of data.

### Claim 12 (depends on 8)

The system of claim 8, wherein the first data replication scheme identifies a frequency of replication of the data from the source table to the target table.

### Claim 13 (depends on 8)

The system of claim 8, wherein the first data replication cost is determined for a predetermined duration that spans one or more data replications from the source table to the target table.

### Claim 14 (depends on 8)

The system of claim 8, wherein the processor is further configured to:
compare the second data replication cost with a predetermined threshold; and
in response to the second data replication cost being higher than the predetermined threshold, compute a third data replication cost for a third data replication scheme, and identify the second data replication scheme otherwise.

### Claim 15

A computer program product determining a data replication cost for a data server, the computer product comprising computer readable storage medium, the computer readable storage medium comprising computer executable instructions, wherein the computer readable storage medium comprises instructions to:
receive an identification of a source table and an identification of a target table in the data server, wherein data from the source table is to be replicated into the target table;
receive a selection of a first data replication scheme to be used to replicate the data;
determine a first data replication cost to replicate the data from the source table to the target table using the first data replication scheme based on a number of processor operations to convert the data from the source table to the target table;
estimate a second data replication cost to replicate the data from the source table to the target table using a second data replication scheme; and
notify to use the second data replication scheme in response to the second data replication cost being lesser than the first data replication cost.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the computer readable storage medium further comprises instructions to:
determine an amount of data to be replicated from the source table to the target table based on the first data replication scheme.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the computer readable storage medium further comprises instructions to:
identify a type of a source database of the source table;
identify a type of a target database of the target table; and
determine a conversion cost to convert the data from the type of the source database to the type of the target database.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the computer readable storage medium further comprises instructions to:
identify a maximum payload size of communication packets that transfer data from the source table to the target table;
determine a number of communication packets to transfer the amount of data from the source table to the target table based on the maximum payload size; and
determine the transfer cost to transfer the data from the source table to the target table based on a cost for transfer of a single communication packet and the number of communication packets to transfer the amount of data.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the first data replication scheme identifies a frequency of replication of the data from the source table to the target table.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the computer readable storage medium further comprises instructions to:
compare the second data replication cost with a predetermined threshold; and
in response to the second data replication cost being higher than the predetermined threshold, compute a third data replication cost for a third data replication scheme, and identify the second data replication scheme otherwise.
