arbiter-core-0.1.0.0
arbiter-core
Safe HaskellNone
LanguageGHC2024

Arbiter.Core.Health

Description

Postgres health snapshots from the stats and catalog views. The queries name Arbiter's own tables and do not scan them.

Synopsis

Documentation

Source #data PgDbHealth

Connection and age counters for the current database, shared with its other clients.

Instances

Instances details
FromJSON PgDbHealth Source # 
Instance details

Defined in Arbiter.Core.Health

ToJSON PgDbHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Eq PgDbHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Generic PgDbHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Show PgDbHealth Source # 
Instance details

Defined in Arbiter.Core.Health

type Rep PgDbHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Source #data PgTableHealth

Per-table tuple counts, size, scan counters, block traffic, and freeze age.

Constructors

PgTableHealth 

Fields

Instances

Instances details
FromJSON PgTableHealth Source # 
Instance details

Defined in Arbiter.Core.Health

ToJSON PgTableHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Eq PgTableHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Generic PgTableHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Show PgTableHealth Source # 
Instance details

Defined in Arbiter.Core.Health

type Rep PgTableHealth Source # 
Instance details

Defined in Arbiter.Core.Health

Source #getPgHealth :: MonadArbiter m => SchemaName -> [TableName] -> m (Maybe PgDbHealth, [PgTableHealth])

Database-wide health and per-table churn for the given queues' tables and the schema's shared arbiter tables. Backends owned by another role report their state as unknown, absent pg_read_all_stats.

Source #getPgDbHealth :: MonadArbiter m => m (Maybe PgDbHealth)

The database-wide half on its own.