主权项 |
1. A computer-implemented method comprising:
identifying, at the master device, a first indexer from a set of indexers to serve as a primary indexer for responding to queries pertaining to certain data, and wherein the first indexer is configured to determine whether to search the certain data based on a time range associated with one of the queries pertaining to the certain data; assigning, at the master device, a generation identifier indicating that the first indexer is the primary indexer for the certain data, the first indexer receiving information that the generation identifier designates the first indexer as the primary indexer for the certain data; in response to an event prompting a change in a primary indexer designation for the certain data:
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 certain data; andassigning, at the master device, a new generation identifier indicating that the second indexer is the primary indexer for the certain data, the second indexer receiving information that the new generation identifier designates the second indexer as the primary indexer for the certain data;receiving, at the master device, a request for a current generation identifier; andresponding, at the master device, to the request query with the new generation identifier. |