# US 10,956,278 B2 · Intelligent captain selection for disaster recovery of search head cluster

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

- Number: US 10,956,278 B2
- Document ID: US10956278B2
- Status: Granted
- Kind: B2
- Application number: 15/582,441
- Filed: 2017-04-28
- Published: 2018-11-01
- Granted: 2021-03-23
- Earliest claimed: 2017-04-28
- Assignees: Splunk Inc.
- Applicants: Splunk Inc.
- Inventors: Ankit Jain; Manu Jose, Jr.; Bharath Aleti; Amritpal Singh Bath; Yuan Xu
- Web page: https://patentgrep.com/patent/US10956278B2

## CPC

- G06F 11/1464: {for networked environments}
- G06F 11/142: {Reconfiguring to eliminate the error (group management mechanisms in a peer-to-peer network H04L67/1044)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3089: {Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents (software debugging using additional hardware using a specific debug interface G06F11/3656; performance evaluation by tracing or monitoring G06F11/3466)}
- G06F 11/3419: {by assessing time}
- G06F 11/3495: {for systems}
- G06F 16/211: {Schema design and management}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- H04L 41/069: using logs of notifications; Post-processing of notifications
- H04L 43/106: using time related information in packets, e.g. by adding timestamps
- 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

Embodiments of the present disclosure provide solutions for determining an elected search head captain is unqualified for the position, identifying a more qualified search head, and transferring the captain position to the more qualified search head. A method is provided that includes referencing qualification parameters in an elected search head captain, determining whether the newly elected search head captain is qualified for the position based on the parameters, identifying a more qualified search head to be the search head captain if the newly elected search head captain is determined to be unqualified for the position, and transferring the position of captain to the more qualified search head. The qualification parameters may include, for example, a pre-determined static flag set by an administrator of the search environment, and configuration replication status that corresponds to the most recent configuration state of the search head as recorded by the previous search head captain.

## Claims

### Claim 1

A method for search head captaincy selection, the method comprising:
in a search head cluster comprising a plurality of search heads of a search environment, referencing, by a first search head in the search head cluster, a set of captaincy qualification parameters corresponding to each search head of the search head cluster, wherein the search head cluster comprises a search head captain, wherein the set of captaincy qualification parameters indicates whether a particular search head qualifies to be the search head captain, wherein the set of captaincy qualification parameters for the particular search head comprises a configuration replication status corresponding to the particular search head, and wherein the configuration replication status corresponds to a most recent configuration state of the particular search head as recorded by the search head captain;
determining by the first search head that it is not qualified to be the search head captain for the search head cluster based on the set of captaincy qualification parameters corresponding to the first search head;
identifying, by the first search head, based on the set of captaincy qualification parameters, a second search head in the search head cluster that is more qualified to be the search head captain than the first search head; and
transferring captaincy of the search head cluster to the second search head.

### Claim 2 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters for the particular search head further comprises a preference flag corresponding to the particular search head, the preference flag comprising a static indication of whether the particular search head has been pre-selected as a preferred search head to be the search head captain for the search head cluster.

### Claim 3 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters for the particular search head further comprises a preference flag corresponding to the particular search head, the preference flag comprising a static indication of whether the particular search head has been pre-selected by an administrator of the search environment as a preferred search head to be the search head captain for the search head cluster.

### Claim 4 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters for the particular search head further comprises a preference flag corresponding to the particular search head, the preference flag comprising a Boolean indication of whether the particular search head has been pre-selected as a preferred search head to be the search head captain for the search head cluster.

### Claim 5 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters for the particular search head further comprises a preference flag corresponding to the particular search head, the preference flag comprising a static indication of whether the particular search head has been pre-selected as a preferred search head to be the search head captain for the search head cluster based on at least one: of a physical locality of the particular search head, and a computing capability of the particular search head.

### Claim 6 (depends on 1)

The method of claim 1, wherein the configuration replication status is based on a last interaction between the particular search head and the search head captain of the search head cluster.

### Claim 7 (depends on 1)

The method of claim 1, wherein the configuration replication status is based on a timestamp of a last interaction between the particular search head and the search head captain of the search head cluster.

### Claim 8 (depends on 1)

The method of claim 1, wherein the configuration replication status is indicative of whether a last interaction between the particular search head and the search head captain of the search head cluster exceeds a pre-determined threshold duration.

### Claim 9 (depends on 1)

The method of claim 1, wherein the configuration replication status is indicative of whether a timestamp of a last interaction between the particular search head and the search head captain of the search head cluster exceeds a pre-determined threshold duration relative to timestamps of last interactions between other search heads of the search head cluster and the search head captain.

### Claim 10 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters is stored in a data structure accessible to each search head of the search head cluster.

### Claim 11 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters is stored in a data structure accessible to each search head of the search head cluster and further comprises a configuration replication status corresponding to each search head of the search head cluster, the configuration replication status of a particular search head of the search head cluster being based on a last interaction between the particular search head and the search head captain,
further wherein the configuration replication status for each search head is periodically updated by the search head captain.

### Claim 12 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters is stored in a data structure accessible to each search head of the search head cluster and further comprises a configuration replication status corresponding to each search head of the search head cluster, the configuration replication status of a particular search head of the search head cluster being based on a last interaction between the particular search head and the search head captain,
wherein a persistent communication thread is maintained between the search head captain and each search head of the search head cluster;
further wherein the configuration replication status for a particular search head is periodically updated by the search head captain of the search head cluster based on a status communication sent via the persistent communication thread maintained between the particular search head and the search head captain.

### Claim 13 (depends on 1)

The method of claim 1, wherein the referencing the set of search heads is performed in response to the first search head being elected the search head captain of the search head cluster.

### Claim 14 (depends on 1)

The method of claim 1, wherein the transferring captaincy to the second search head comprises transferring captaincy from the first search head to the second search head.

### Claim 15 (depends on 1)

The method of claim 1, wherein the transferring captaincy to the second search head comprises:
communicating, to the second search head, a request for the second search head to initiate a captain election protocol;
receiving a request for a vote for the second search head to be the next search head captain of the search head cluster via the captain election protocol; and
submitting a vote for the second search head to be the next search head captain of the search head cluster.

### Claim 16 (depends on 1)

The method of claim 1, wherein each search head of the search head cluster maintains a captain-response timer corresponding to that particular search head, the captain-response timer being configured to countdown the time between a time a communication from the particular search head is sent to the current search head captain in the search head cluster and a time a responsive communication from the current search head is received by the particular search head,
further wherein the particular search head initiates a captain election protocol when the captain-response timer corresponding to the particular search head expires.

### Claim 17 (depends on 1)

The method of claim 1, wherein the set of captaincy qualification parameters for a particular search head of the search head cluster further comprises at least a flag indicative of a preference for the particular search head to be the search head captain, and a configuration replication status corresponding to the particular search head corresponding to a timing of a last configuration replication performed between the particular search head and the search head captain,
further wherein determining the first search head is not qualified to be the current search head captain comprises determining either that the flag indicative of the preference for the first search head is set to false, or that the configuration replication status corresponding to the first search head indicates that the last configuration replication between the first search head and a last search head captain exceeds a threshold duration.

### Claim 18 (depends on 1)

The method of claim 1, wherein the search environment employs a late-binding schema for searching data.

### Claim 19

A system comprising:
a memory storing a set of captaincy qualification parameters; and
a processor comprised in a first search head in a search head cluster of a search environment, wherein the search head cluster comprises a search head captain, the processor being configured to:
reference the set of captaincy qualification parameters corresponding to each search head of the search head cluster, wherein the set of captaincy qualification parameters indicates whether a particular search head qualifies to be the search head captain, wherein the set of captaincy qualification parameters for the particular search head comprises a configuration replication status corresponding to the particular search head, and wherein the configuration replication status corresponds to a most recent configuration state of the particular search head as recorded by the search head captain;
determine whether the first search head is qualified to be the search head captain for the search head cluster based on the set of captaincy qualification parameters corresponding to the first search head;
identify, based on the set of captaincy qualification parameters, a second search head in the search head cluster that is more qualified to be the search head captain than the first search head when the first search head is determined not to be qualified to be the search head captain; and
transfer captaincy of the search head cluster to the second search head when the first search head is determined not to be qualified to be the search head captain.

### Claim 20 (depends on 19)

The system of claim 19, wherein the processor is further configured to:
remain the search head captain when the first search head is determined to be qualified to be the search head captain;
maintain a persistent periodic communication channel between the first search head captain and each search head of the search head cluster for so long as the first search head remains the search head captain;
receive, from the particular search head of the search head cluster, a periodic communication via the persistent periodic communication channel corresponding to the particular search head, the periodic communication comprising a configuration replication status corresponding to the particular search head;
determine a timestamp corresponding to the configuration replication status based on a timing of the periodic communication; and
update a data structure with the configuration replication status and the timestamp of the configuration replication status of the particular search head, wherein the shared data structure is configured to store a configuration replication status for each search head of the search head cluster.

### Claim 21 (depends on 19)

The system of claim 19, wherein the set of captaincy qualification parameters for a particular search head further comprises a preference flag corresponding to the particular search head, the preference flag comprising a static indication of whether the particular search head has been pre-selected as a preferred search head to be the search head captain for the search head cluster.

### Claim 22 (depends on 19)

The system of claim 19, wherein the set of captaincy qualification parameters for a particular search head further comprises a preference flag corresponding to the particular search head and indicative of whether the particular search head has been pre-selected as a preferred search head to be the search head captain for the search head cluster,
further wherein the set of captaincy qualification parameters for a particular search head also comprises a configuration replication status corresponding to the particular search head.

### Claim 23 (depends on 19)

The system of claim 19, wherein the processor is further configured to:
communicate, to the second search head, a request for the second search head to initiate a captain election protocol;
receive a request for a vote for the second search head to be the next search head captain of the search head cluster via the captain election protocol; and
submit a vote for the second search head to be the next search head captain of the search head cluster.

### Claim 24 (depends on 19)

The system of claim 19, wherein the search environment employs a late-binding schema for searching data.

### Claim 25

A non-transitory computer-readable, medium having computer-readable program code embodied therein for causing a computer system to perform a method for search head captaincy selection, the method comprising:
in a search head cluster comprising a plurality of search heads of a search environment, wherein the search head cluster comprises a search head captain, referencing, by a first search head in the search head cluster, a set of captaincy qualification parameters corresponding to each search head of the search head cluster, wherein the set of captaincy qualification parameters indicates whether a particular search head qualifies to be the search head captain, wherein the set of captaincy qualification parameters for the particular search head comprises a configuration replication status corresponding to the particular search head, and wherein the configuration replication status corresponds to a most recent configuration state of the particular search head as recorded by the search head captain;
determining by the first search head that it is not qualified to be the search head captain for the search head cluster based on the set of captaincy qualification parameters corresponding to the first search head;
identifying, by the first search head, based on the set of captaincy qualification parameters, a second search head in the search head cluster that is more qualified to be the search head captain than the first search head; and
transferring captaincy of the search head cluster to the second search head.
