# US 2023/0409537 A1 · Distributed storage system with machine learning model for selecting a hash function to map a data item to a storage device

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

- Number: US 2023/0409537 A1
- Document ID: US20230409537A1
- Status: Published application
- Kind: A1
- Application number: 17/841,851
- Filed: 2022-06-16
- Published: 2023-12-21
- Earliest claimed: 2022-06-16
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Veera Raghava; Sunil Angadi
- Web page: https://patentgrep.com/patent/US20230409537A1

## CPC

- G06F 16/182: Distributed file systems
- G06N 3/08: Learning methods
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

One example described herein includes a system that can receive values for performance factors associated with a distributed storage system. The system can provide the values as input to a machine-learning model configured to select a hash function from among a set of hash functions based on the values and generate an output indicating the hash function. The system can then configure the distributed storage system to map a data item to a storage device using the hash function.

## Claims

### Claim 1

A non-transitory computer-readable medium comprising program code that is executable by a processor for causing the processor to:
receive values for performance factors associated with a distributed storage system;
provide the values as input to a machine-learning model configured to select a hash function from among a plurality of hash functions based on the values and generate an output indicating the hash function; and
configure the distributed storage system to map a data item to a storage device using the hash function.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the performance factors include at least one storage factor, at least one network factor, and at least one workload factor.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein each hash function in the plurality of hash functions is configured to map data items to storage devices in a different way than the other hash functions in the plurality of hash functions.

### Claim 4 (depends on 3)

The non-transitory computer-readable medium of claim 3, wherein the plurality of hash functions include at least two hashing algorithms selected from a group of hashing algorithms consisting of: a linear hashing algorithm, a prime-number hashing algorithm, a pseudo-random hashing algorithm, and a controlled replication under scalable hashing (CRUSH) algorithm.

### Claim 5 (depends on 1)

The non-transitory computer-readable medium of claim 1, further comprising program code that is executable by the processor for causing the processor to, prior to providing the values as input to the machine-learning model:
receive training data that includes a plurality of labeled observations, each labeled observation in the plurality of labeled observations including a respective set of values for the performance factors correlated to a target hash function from among the plurality of hash functions; and
train the machine-learning model using a supervised learning technique based on the training data.

### Claim 6 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the machine-learning model is a deep neural network that includes an input layer configured to receive the values and an output layer configured to identify which hash function of the plurality of hash functions was selected by the machine-learning model based on the values.

### Claim 7 (depends on 1)

The non-transitory computer-readable medium of claim 1, further comprising program code that is executable by the processor for causing the processor to, subsequent to applying the hash function for mapping the data item to the storage device:
determine a current value for a performance metric, the current value indicating a performance level of the distributed storage system when using the hash function;
compare the current value for the performance metric to a reference value for the performance metric to generate a comparison result, the reference value indicating another performance level of the distributed storage system when not using the hash function;
generate feedback data based on the comparison result; and
train the machine-learning model using the feedback data.

### Claim 8

A method comprising:
receiving, by a processor, values for performance factors associated with a distributed storage system;
providing, by the processor, the values as input to a machine-learning model configured to select a hash function from among a plurality of hash functions based on the values and generate an output indicating the hash function; and
configuring, by the processor, the distributed storage system to map a data item to a storage device using the hash function.

### Claim 9 (depends on 8)

The method of claim 8, wherein the performance factors include at least one storage factor and at least one network factor.

### Claim 10 (depends on 8)

The method of claim 8, wherein each hash function in the plurality of hash functions is configured to map data items to storage devices in a different way than the other hash functions in the plurality of hash functions.

### Claim 11 (depends on 10)

The method of claim 10, wherein the plurality of hash functions include at least two hashing algorithms selected from a group of hashing algorithms consisting of: linear hashing, prime-number hashing, pseudo-random hashing, and controlled replication under scalable hashing.

### Claim 12 (depends on 8)

The method of claim 8, further comprising, prior to providing the values as input to the machine-learning model:
receiving, by the processor, training data that includes a plurality of labeled observations, each labeled observation in the plurality of labeled observations including a respective set of values for the performance factors correlated to a target hash function from among the plurality of hash functions; and
training the machine-learning model using a supervised learning technique based on the training data.

### Claim 13 (depends on 8)

The method of claim 8, wherein the machine-learning model is a deep neural network that includes an input layer configured to receive the values and an output layer configured to identify which hash function of the plurality of hash functions was selected by the machine-learning model based on the values.

### Claim 14 (depends on 8)

The method of claim 8, further comprising, subsequent to applying the hash function for mapping the data item to the storage device:
determining, by the processor, a current value for a performance metric, the current value indicating a performance level of the distributed storage system when using the hash function;
comparing, by the processor, the current value for the performance metric to a reference value for the performance metric to generate a comparison result, the reference value indicating another performance level of the distributed storage system when not using the hash function;
generating, by the processor, feedback data based on the comparison result; and
training, by the processor, the machine-learning model using the feedback data.

### Claim 15

A system comprising:
a processor; and
a memory that includes instructions executable by the processor for causing the processor to:
receive values for performance factors associated with a distributed storage system;
provide the values as input to a machine-learning model configured to select a hash function from among a plurality of hash functions based on the values and generate an output indicating the hash function; and
configure the distributed storage system to map a data item to a storage device using the hash function.

### Claim 16 (depends on 15)

The system of claim 15, wherein the performance factors include at least one storage factor.

### Claim 17 (depends on 15)

The system of claim 15, wherein each hash function in the plurality of hash functions is configured to map data items to storage devices in a different way than the other hash functions in the plurality of hash functions.

### Claim 18 (depends on 17)

The system of claim 17, wherein the plurality of hash functions include at least two hashing algorithms selected from a group of hashing algorithms consisting of: linear hashing, prime-number hashing, pseudo-random hashing, and controlled replication under scalable hashing.

### Claim 19 (depends on 15)

The system of claim 15, wherein the memory further comprises instructions executable by the processor for causing the processor to, prior to providing the values as input to the machine-learning model:
receive training data that includes a plurality of labeled observations, each labeled observation in the plurality of labeled observations including a respective set of values for the performance factors correlated to a target hash function from among the plurality of hash functions; and
train the machine-learning model using a supervised learning technique based on the training data.

### Claim 20 (depends on 15)

The system of claim 15, wherein the machine-learning model is a deep neural network that includes an input layer configured to receive the values and an output layer configured to identify which hash function of the plurality of hash functions was selected by the machine-learning model based on the values.
