StorePool

interface StorePool

The connections a store draws from, as its pool says them: a facet of a Store (Store.facet) whose pool can say them (HikariCP's, the MongoDB driver's, the Elasticsearch client's), so that the node bounds the store's queries by its pool and reads its write pressure from it. A store whose pool says nothing has none: its queries take the default bound and its write pressure is its append latency alone.

Every member reads what the pool already counts: it does no I/O, and the node calls waitingForConnection about once a second.

Properties

Link copied to clipboard
abstract val queryConnections: Int?

The most connections the pool the store's queries draw from opens; null when that pool does not say.

Link copied to clipboard

Whether the queries draw from the pool the appends draw from, so that a query takes a connection a command may wait for.

Functions

Link copied to clipboard
abstract fun waitingForConnection(): Int?

How many callers wait now for a connection of the pool the appends draw from (the fast half of the store's write pressure); null when the pool does not say.