SearchRequests

class SearchRequests : HttpRequestInterceptor, AutoCloseable

The requests an Elasticsearch client sends, counted by kind as an interceptor of its HTTP client, which sees each request once, as sent: the last segment of the path when it is one of KINDS (_bulk, _refresh, _update_by_query), otherwise other. So a measurement reads what the sink sent with nothing in the store that counts for a benchmark. The counts are cumulative from the start and logged once a second and on stop (search-requests {json} at WARN, the level the server logs at), as BenchSignals logs its own.

A _bulk is one of the sink's writes or one of its access stamps: a stamp updates its documents by id in _bulk requests (#7546), which the path does not tell from a write, and the interceptor sees no body. The account's attributes are its owner and space, which no deposit changes, so the sink scenarios stamp nothing and their _bulk are writes. At the store's default refresh the sink sends no _refresh and no _update_by_query: a count of either is another part's (the reindex of a field mapped later is an _update_by_query).

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun process(request: HttpRequest, entity: EntityDetails?, context: HttpContext?)
Link copied to clipboard

The counts as one JSON object, each of KINDS and other present: {"_bulk": <count>, …}.

Link copied to clipboard
fun start()