# US 2023/0273936 A1 · Disaster recovery in a clustered environment using generation identifiers

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

- Number: US 2023/0273936 A1
- Document ID: US20230273936A1
- Status: Published application
- Kind: A1
- Application number: 18/313,240
- Filed: 2023-05-05
- Published: 2023-08-31
- Earliest claimed: 2012-05-15
- Assignees: Splunk Inc.
- Applicants: Splunk Inc.
- Inventors: Da XU; Sundar VASAN; Dhruva Kumar BHAGI
- Web page: https://patentgrep.com/patent/US20230273936A1

## CPC

- 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)
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/3072: {where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting}
- G06F 11/32: with visual {or acoustical} indication of the functioning of the machine
- G06F 11/323: {Visualisation of programs or trace data}
- G06F 11/3409: {for performance assessment}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 16/2272: {Management thereof}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- 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 3/0617: {in relation to availability}
- G06F 2201/815: Virtual
- G06F 2201/835: Timestamp
- G06F 2201/86: Event-based monitoring
- 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

A method for performing disaster recovery in a clustered environment comprises identifying, at a master device, a first indexer from a set of indexers to serve as a primary indexer for responding to queries pertaining to a subset of data. The method also comprises assigning, at the master device, a generation identifier indicating that the first indexer is the primary indexer for the subset of data. Responsive to an event prompting a change in a primary indexer designation for the subset of data, the method comprises identifying, at the master device, a second indexer from the set of indexers to serve as the primary indexer for responding to queries pertaining to the subset of data. Further, the method comprises assigning, at the master device, a new generation identifier indicating that the second indexer is the primary indexer for the subset of data.

## Claims

### Claim 1

A method comprising:
receiving, at an indexer, a search affinity identifier, wherein the search affinity identifier indicates that the indexer has primary responsibility for responding to search queries originating from a particular site of a plurality of sites from which a search query may originate, wherein a site represents a group of one or more computing devices corresponding to a particular geographic location;
receiving, at the indexer, a search query and a site identifier identifying a site at which the search query originated;
determining, based on the search affinity identifier and the site identifier, that the indexer has primary responsibility to respond to the search query; and
transmitting results of the search query to the site at which the search query originated.

### Claim 2 (depends on 1)

The method of claim 1, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates for a respective site of the plurality of sites from which a search query may originate whether the indexer has primary responsibility for responding to search queries from the respective site.

### Claim 3 (depends on 1)

The method of claim 1, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates, for a particular subset of data accessible to the indexer and for a respective site of the plurality of sites from which a search query may originate, whether the indexer has primary responsibility for responding to search queries originating from the respective site based on data from the particular subset of data.

### Claim 4 (depends on 1)

The method of claim 1, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates for a respective site of the plurality of sites from which a search query may originate, whether the indexer as primary responsibility for responding to search queries from the respective site, and wherein the search query originates from a first site, and wherein the method further comprises:
receiving, at the indexer, an additional search query including a second site identifier identifying a second site;
determining, based on both the second site identifier and a respective search affinity identifier of the set of search affinity identifiers, that the indexer is not to respond to the additional search query.

### Claim 5 (depends on 1)

The method of claim 1, wherein the search affinity identifier is a bitmask, and wherein each digit of the bitmask represents a respective site of the plurality of sites from which a search query may originate.

### Claim 6 (depends on 1)

The method of claim 1, wherein the group of one or more computing devices corresponding to the particular geographic location is user-specified.

### Claim 7 (depends on 1)

The method of claim 1, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates for a respective site of the plurality of sites from which a search query may originate, whether the indexer as primary responsibility for responding to search queries from the respective site, and wherein the search query originates at a first site, and wherein the method further comprises:
receiving, at the indexer, an additional search query including a second site identifier identifying a second site;
determining, based on both the second site identifier and a respective search affinity identifier of the set of search affinity identifiers, that the indexer is not to respond to the additional search query, wherein the search query and the additional search query are identical.

### Claim 8 (depends on 1)

The method of claim 1, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates for a respective site of the plurality of sites from which a search query may originate, whether the indexer as primary responsibility for responding to search queries from the respective site, and wherein the search query originates at a first site, and wherein the method further comprises:
receiving, at the indexer, an additional search query including a second site identifier identifying a second site;
determining, based on both the second site identifier and a respective search affinity identifier of the set of search affinity identifiers, that the indexer is not to respond to the additional search query, wherein the search query and the additional search query are different.

### Claim 9 (depends on 1)

The method of claim 1, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates, for a particular subset of data accessible to the indexer and for a respective site of the plurality of sites from which a search query may originate, whether the indexer has primary responsibility for responding to search queries originating from the respective site based on data from the particular subset of data, and wherein the method further comprises:
receiving, at the indexer, raw data;
separating the raw data into a plurality of events included in the particular subset of data;
determining, for each event in the plurality of events, a time stamp; and
storing the particular subset of data in a data store.

### Claim 10 (depends on 1)

The method of claim 1, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates, for a particular subset of data accessible to the indexer and for a respective site of the plurality of sites from which a search query may originate, whether the indexer has primary responsibility for responding to search queries originating from the respective site based on data from the particular subset of data, and wherein the method further comprises:
receiving, at the indexer, raw data;
separating the raw data into a plurality of events included in the particular subset of data;
storing the particular subset of data in a data store;
identifying a replication factor that indicates a number of times that the particular subset of data is to be replicated; and
transmitting the particular subset of data to a number of other indexers, wherein the number corresponds to the replication factor.

### Claim 11 (depends on 1)

The method of claim 1, wherein the search affinity identifier is generated by a master node of a cluster, wherein the cluster comprises a plurality of indexers including the indexer, and wherein the cluster is distributed over the plurality of sites.

### Claim 12 (depends on 1)

The method of claim 1, wherein the search affinity identifier is a bitmask, and wherein each digit of the bitmask represents a respective site of the plurality of sites from which a search query may originate, and wherein a value of each digit indicates to the indexer whether the indexer has primary responsibility for searches originating from a respective site.

### Claim 13

A non-transitory computer-readable medium storing computer-executable instructions which, when executed by a processor, cause the processor to perform operations comprising:
receiving, at an indexer, a search affinity identifier, wherein the search affinity identifier indicates that the indexer has primary responsibility for responding to search queries originating from a particular site of a plurality of sites from which a search query may originate, wherein a site represents a group of one or more computing devices corresponding to a particular geographic location;
receiving, at the indexer, a search query and a site identifier identifying a site at which the search query originated;
determining, based on the search affinity identifier and the site identifier, that the indexer has primary responsibility to respond to the search query; and
transmitting results of the search query to the site at which the search query originated.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates for a respective site of the plurality of sites from which a search query may originate whether the indexer has primary responsibility for responding to search queries from the respective site.

### Claim 15 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates, for a particular subset of data accessible to the indexer and for a respective site of the plurality of sites from which a search query may originate, whether the indexer has primary responsibility for responding to search queries originating from the respective site based on data from the particular subset of data.

### Claim 16 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the search affinity identifier is a bitmask, and wherein each digit of the bitmask represents a respective site of the plurality of sites from which a search query may originate, and wherein a value of each digit indicates to the indexer whether the indexer has primary responsibility for searches originating from a respective site.

### Claim 17

A system comprising:
at least one memory storing computer-executable instructions; and
at least one processor, wherein the at least one processor is configured to access the at least one memory and to execute the computer-executable instructions to:
receive, at an indexer, a search affinity identifier, wherein the search affinity identifier indicates that the indexer has primary responsibility for responding to search queries originating from a particular site of a plurality of sites from which a search query may originate, wherein a site represents a group of one or more computing devices corresponding to a particular geographic location;
receive, at the indexer, a search query and a site identifier identifying a site at which the search query originated;
determine, based on the search affinity identifier and the site identifier, that the indexer has primary responsibility to respond to the search query; and
transmit results of the search query to the site at which the search query originated.

### Claim 18 (depends on 17)

The system of claim 17, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates for a respective site of the plurality of sites from which a search query may originate whether the indexer has primary responsibility for responding to search queries from the respective site.

### Claim 19 (depends on 17)

The system of claim 17, wherein the search affinity identifier received at the indexer is one of a set of search affinity identifiers received at the indexer, wherein each search affinity identifier indicates, for a particular subset of data accessible to the indexer and for a respective site of the plurality of sites from which a search query may originate, whether the indexer has primary responsibility for responding to search queries originating from the respective site based on data from the particular subset of data.

### Claim 20 (depends on 17)

The system of claim 17, wherein the search affinity identifier is generated by a master node of a cluster, wherein the cluster comprises a plurality of indexers including the indexer, and wherein the cluster is distributed over the plurality of sites.
