# US 2025/0156322 A1 · Single-phase commit for replicated cache data

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

- Number: US 2025/0156322 A1
- Document ID: US20250156322A1
- Status: Published application
- Kind: A1
- Application number: 18/587,258
- Filed: 2024-02-26
- Published: 2025-05-15
- Earliest claimed: 2023-11-13
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Yingrui TONG; Sijia HUANG; Vadim MAKHERVAKS; Yuxing ZHOU; Junxiang WANG; Zhihao LIU; Bangzhu ZHU; Xigeng SUN
- Web page: https://patentgrep.com/patent/US20250156322A1

## CPC

- G06F 3/065: {Replication mechanisms}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0683: {Plurality of storage devices}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/0813: with a network or matrix configuration
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1048: Scalability
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/154: Networked environment
- G06F 2212/286: Mirrored cache memory
- G06F 2212/311: In host system
- G06F 2212/313: In storage device
- G06F 2212/502: using adaptive policy
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer system and method are disclosed for replicating logs in a distributed environment. The method includes identifying a write input/output (I/O) operation and identifying a log to be replicated based on the write I/O operation. The log is then persisted to local non-volatile memory in the computer system. Subsequently, the log is replicated to multiple remote hosts, where each remote host of the plurality of remote hosts stores the log in its corresponding local non-volatile memory without de-staging the log to a backing store. The write I/O operation is committed once the log is replicated to at least a subset of the remote hosts that forms a quorum. Finally, the log is de-staged to the backing store after the write I/O operation is successfully committed.

## Claims

### Claim 1

A method implemented in a computer system that includes a processor system, comprising:
identifying a write input/output (I/O) operation;
identifying a log to be replicated based on the write I/O operation;
persisting the log to local non-volatile memory in the computer system;
replicating the log to a plurality of remote hosts, wherein each remote host of the plurality of remote hosts stores the log in a corresponding local non-volatile memory in the remote host;
committing the write I/O operation after replicating the log to at least a subset of the plurality of remote hosts that comprises a quorum; and
de-staging the log to a backing store based on committing the write I/O operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein the log comprises data written by the write I/O operation and metadata describing the log.

### Claim 3 (depends on 1)

The method of claim 1, wherein replicating the log to the plurality of remote hosts includes using Remote Direct Memory Access (RDMA) to transfer the log to each remote host.

### Claim 4 (depends on 1)

The method of claim 1, wherein the corresponding local non-volatile memory comprises a persistent memory.

### Claim 5 (depends on 1)

The method of claim 1, wherein,
identifying the write I/O operation comprises identifying the write I/O operation from a virtual storage controller; and
committing the write I/O operation comprises notifying the virtual storage controller.

### Claim 6 (depends on 1)

The method of claim 1, wherein the quorum comprises less than a majority of the plurality of remote hosts.

### Claim 7 (depends on 1)

The method of claim 1, wherein the method further comprises, prior to identifying the write I/O operation:
receiving a first message from a management service requesting the computer system to de-stage persisted logs to the backing store;
acquiring exclusive access to the backing store;
de-staging one or more logs persisted to the local non-volatile memory in the computer system;
sending a second message to the management service indicating a completion of de-staging the persisted logs to the backing store; and
accepting write I/O operations.

### Claim 8 (depends on 1)

The method of claim 1, wherein the method further comprises assigning a unique log identifier to the log.

### Claim 9 (depends on 1)

The method of claim 1, wherein the method further comprises:
storing a record of the log in an index; and
using the index, serving data corresponding to the log in response to a read I/O request.

### Claim 10 (depends on 1)

The method of claim 1, wherein persisting the log to the local non-volatile memory in the computer system comprises persisting log data to a first ring buffer, and persisting log metadata to a second ring buffer.

### Claim 11 (depends on 1)

The method of claim 1, wherein replicating the log to the plurality of remote hosts comprises each remote host of the plurality of remote hosts storing the log in the corresponding local non-volatile memory in the remote host without de-staging the log to the backing store.

### Claim 12

A computer system, comprising:
a processor system; and
a computer storage medium that stores computer-executable instructions that are executable by the processor system to at least:
identify a write input/output (I/O) operation;
identify a log to be replicated based on the write I/O operation;
persist the log to local non-volatile memory in the computer system;
replicate the log to a plurality of remote hosts, wherein each remote host of the plurality of remote hosts stores the log in a corresponding local non-volatile memory in the remote host without de-staging the log to a backing store;
commit the write I/O operation after replicating the log to at least a subset of the plurality of remote hosts that comprises a quorum, wherein the quorum comprises less than a majority of the plurality of remote hosts; and
de-stage the log to the backing store based on committing the write I/O operation.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the log comprises data written by the write I/O operation and metadata describing the log.

### Claim 14 (depends on 12)

The computer system of claim 12, wherein replicating the log to the plurality of remote hosts includes using Remote Direct Memory Access (RDMA) to transfer the log to each remote host.

### Claim 15 (depends on 12)

The computer system of claim 12, wherein the corresponding local non-volatile memory comprises a persistent memory.

### Claim 16 (depends on 12)

The computer system of claim 12, wherein,
identifying the write I/O operation comprises identifying the write I/O operation from a virtual storage controller; and
committing the write I/O operation comprises notifying the virtual storage controller.

### Claim 17 (depends on 12)

The computer system of claim 12, wherein the computer-executable instructions are also executable by the processor system to, prior to identifying the write I/O operation:
receive a first message from a management service requesting the computer system to de-stage persisted logs to the backing store;
acquire exclusive access to the backing store;
de-stage one or more logs persisted to the local non-volatile memory in the computer system;
send a second message to the management service indicating a completion of de-staging the persisted logs to the backing store; and
accept write I/O operations.

### Claim 18 (depends on 12)

The computer system of claim 12, wherein the computer-executable instructions are also executable by the processor system to assign a unique log identifier to the log.

### Claim 19 (depends on 12)

The computer system of claim 12, wherein the computer-executable instructions are also executable by the processor system to:
store a record of the log in an index; and
using the index, serve data corresponding to the log to a cache consumer in response to receiving a read I/O request from the cache consumer.

### Claim 20

A computer storage medium that stores computer-executable instructions that are executable by a processor system to at least:
Identify a write input/output (I/O) operation;
identify a log to be replicated based on the write I/O operation;
persist the log to a persistent non-volatile memory in a computer system;
replicate the log to a plurality of remote hosts, wherein each remote host of the plurality of remote hosts stores the log in a corresponding local non-volatile memory in the remote host without de-staging the log to a backing store;
commit the write I/O operation after replicating the log to at least a subset of the plurality of remote hosts that comprises a quorum; and
de-stage the log to the backing store based on committing the write I/O operation.
