# US 2019/0317947 A1 · Executing data searches 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 2019/0317947 A1
- Document ID: US20190317947A1
- Status: Published application
- Kind: A1
- Application number: 16/451,582
- Filed: 2019-06-25
- Published: 2019-10-17
- 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/US20190317947A1

## 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

Techniques and mechanisms are disclosed to execute data searches using generation identifiers. In general, a method of executing the searches comprises broadcasting, from a search head, a first query to a plurality of indexers in a cluster, wherein a portion of the first query is directed to a set of data, and wherein the set of data comprises time-stamps within a particular time frame. The method further comprises providing, with the first query, a first generation identifier for the set of data, wherein the first generation identifier identifies a first indexer from the plurality of indexers to serve as a primary indexer for responding to queries that comprise the first generation identifier and that pertain to the set of data, wherein one or more indexers in the cluster other than the first indexer are designated as secondary indexers, wherein the secondary indexers are configured to ignore queries that pertain to the set of data and that comprise the first generation identifier. Subsequently, the method comprises receiving a response to the first query from the plurality of indexers.

## Claims

### Claim 1

A computer-implemented method comprising:
broadcasting, from a search head, a first query to a plurality of indexers in a cluster, wherein a portion of the first query is directed to a set of data, and wherein the set of data comprises time-stamps within a particular time frame;
providing, with the first query, a first generation identifier for the set of data, wherein the first generation identifier identifies a first indexer from the plurality of indexers to serve as a primary indexer for responding to queries that comprise the first generation identifier and that pertain to the set of data, wherein one or more indexers in the cluster other than the first indexer are designated as secondary indexers, wherein the secondary indexers are configured to ignore queries that pertain to the set of data and that comprise the first generation identifier; and
receiving a response to the first query from the plurality of indexers.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
consolidating responses to the first query from the plurality of indexers to a consolidated response; and
providing the consolidated response to a client device.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising:
prior to the broadcasting, receiving the first generation identifier from a master device, wherein the master device is operable to coordinate a status of each indexer of the plurality of indexers in the cluster.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
prior to the broadcasting, receiving the first generation identifier from a master device, wherein the master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster at a particular time.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein a master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster, and wherein the generation mapping comprises a plurality of generations, wherein each generation is associated with a unique identifier and a different time period.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster, wherein the first generation identifier is updated to generate a second generation identifier, and wherein the second generation identifier identifies the second indexer as the new primary indexer for responding to queries that pertain to the set of data.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster, wherein the first generation identifier is updated to generate a second generation identifier by the master device, and wherein the second generation identifier identifies the second indexer as the new primary indexer for responding to queries that pertain to the set of data.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster, wherein the first generation identifier is updated to generate a second generation identifier, and wherein the second generation identifier identifies the second indexer as the new primary indexer for responding to queries that pertain to the set of data, and wherein the method further comprises:
broadcasting, from the search head, a second query for the set of data to each indexer in the cluster;
providing, with the second query, the second generation identifier; and
receiving a response to the second query from the plurality of indexers.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein a master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster, and wherein the generation mapping comprises a plurality of generations, wherein each generation is associated with a unique identifier and a different time period, and wherein each indexer of the plurality of indexers in the cluster is operable to use the unique identifier to determine a mapping to consult when searching subsets of data stored by the indexer.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein the response to the first query comprises metadata, wherein the metadata comprises diagnostic information.

### Claim 12 (depends on 1)

The computer-implemented method of claim 1, wherein the response to the first query comprises metadata, wherein the metadata comprises an amount of time required to process the first query.

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, further comprising:
responsive to a determination that the response to the first query was not received, generating an alert indicating incomplete results to the first query.

### Claim 14 (depends on 1)

The computer-implemented method of claim 1, wherein a master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster, wherein the generation mapping comprises a plurality of generations, wherein each generation is associated with a unique identifier and a different time period, and wherein the master device is operable to create a new generation with a corresponding generation identifier responsive to an event, wherein the event is selected from a group consisting of: initializing the master device, a new indexer joining the cluster, an indexer in the plurality of indexers leaving the cluster, and rebalancing subsets of data stored by the plurality of indexers in the cluster.

### Claim 15

One or more non-transitory computer-readable storage media, storing software instructions, which when executed by one or more processors cause performance of:
broadcasting, from a search head, a first query to a plurality of indexers in a cluster, wherein a portion of the first query is directed to a set of data, and wherein the set of data comprises time-stamps within a particular time frame;
providing, with the first query, a first generation identifier for the set of data, wherein the first generation identifier identifies a first indexer from the plurality of indexers to serve as a primary indexer for responding to queries that comprise the first generation identifier and that pertain to the set of data, wherein one or more indexers in the cluster other than the first indexer are designated as secondary indexers, wherein the secondary indexers are configured to ignore queries that pertain to the set of data and that comprise the first generation identifier; and
receiving a response to the first query from the plurality of indexers.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein the instructions, when executed by the one or more computing devices, further cause performance of:
consolidating responses to the first query from the plurality of indexers to a consolidated response; and
providing the consolidated response to a client device.

### Claim 17 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein the instructions, when executed by the one or more computing devices, further cause performance of:
prior to the broadcasting, receiving the first generation identifier from a master device, wherein the master device is operable to coordinate a status of each indexer of the plurality of indexers in the cluster.

### Claim 18 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein the instructions, when executed by the one or more computing devices, further cause performance of:
prior to the broadcasting, receiving the first generation identifier from a master device, wherein the master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster at a particular time.

### Claim 19 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein a master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster, and wherein the generation mapping comprises a plurality of generations, wherein each generation is associated with a unique identifier and a different time period.

### Claim 20 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster.

### Claim 21 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster, wherein the first generation identifier is updated to generate a second generation identifier, and wherein the second generation identifier identifies the second indexer as the new primary indexer for responding to queries that pertain to the set of data.

### Claim 22 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein a master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster, and wherein the generation mapping comprises a plurality of generations, wherein each generation is associated with a unique identifier and a different time period, and wherein each indexer of the plurality of indexers in the cluster is operable to use the unique identifier to determine a mapping to consult when searching subsets of data stored by the indexer.

### Claim 23 (depends on 15)

The one or more non-transitory computer-readable storage media of claim 15, wherein the response to the first query comprises metadata, wherein the metadata comprises diagnostic information.

### Claim 24

An apparatus, comprising:
a subsystem, implemented at least partially in hardware, that broadcasts, from a search head, a first query to a plurality of indexers in a cluster, wherein a portion of the first query is directed to a set of data, and wherein the set of data comprises time-stamps within a particular time frame;
a subsystem, implemented at least partially in hardware, that provides, with the first query, a first generation identifier for the set of data, wherein the first generation identifier identifies a first indexer from the plurality of indexers to serve as a primary indexer for responding to queries that comprise the first generation identifier and that pertain to the set of data, wherein one or more indexers in the cluster other than the first indexer are designated as secondary indexers, wherein the secondary indexers are configured to ignore queries that pertain to the set of data and that comprise the first generation identifier; and
a subsystem, implemented at least partially in hardware, that receives a response to the first query from the plurality of indexers.

### Claim 25 (depends on 24)

The apparatus of claim 24, further comprising:
a subsystem, implemented at least partially in hardware, that consolidates responses to the first query from the plurality of indexers to a consolidated response; and
a subsystem, implemented at least partially in hardware, that provides the consolidated response to a client device.

### Claim 26 (depends on 24)

The apparatus of claim 24, further comprising:
a subsystem, implemented at least partially in hardware, that prior to the broadcasting, receives the first generation identifier from a master device, wherein the master device is operable to coordinate a status of each indexer of the plurality of indexers in the cluster.

### Claim 27 (depends on 24)

The apparatus of claim 24, further comprising:
a subsystem, implemented at least partially in hardware, that prior to the broadcasting, receives the first generation identifier from a master device, wherein the master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster at a particular time.

### Claim 28 (depends on 24)

The apparatus of claim 24, wherein a master device is operable to create a generation mapping for the cluster, wherein the generation mapping comprises a mapping of each indexer in the plurality of indexers as either primary or secondary for each set of data stored in the cluster, and wherein the generation mapping comprises a plurality of generations, wherein each generation is associated with a unique identifier and a different time period.

### Claim 29 (depends on 24)

The apparatus of claim 24, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster.

### Claim 30 (depends on 24)

The apparatus of claim 24, wherein in response to an event prompting a change in a primary indexer designation for the set of data, a second indexer from the secondary indexers is elected as a new primary indexer by a master device operable to coordinate a status of each indexer of the plurality of indexers in the cluster, wherein the first generation identifier is updated to generate a second generation identifier, and wherein the second generation identifier identifies the second indexer as the new primary indexer for responding to queries that pertain to the set of data.
