The last state the worker process’s in-memory limiter reported for each rate-limited Suotar endpoint, so the dashboard in another process can show it. Written by the worker, never read back by it, and overwritten in place, so there is no deleted_at. The circuit breakers are in suotar_circuit_breakers.
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| available | integer | false | Items, or requests for list_by_course, that could be sent right now. | |||
| created_at | timestamp with time zone | now() | false | Timestamp when the record was created. | ||
| endpoint | suotar_endpoint | false | The limited endpoint. | |||
| full_rate_per_minute | integer | false | The full rate, in items per minute, or requests per minute for list_by_course. | |||
| rate_share | real | false | The share of the full rate currently allowed, 0.1 to 1: it drops to 0.1 after failures or a breaker cooldown and doubles every five healthy minutes. | |||
| updated_at | timestamp with time zone | now() | false | Timestamp when the record was last updated, which is when the worker last reported this state. The field is updated automatically by the set_timestamp trigger. |
| Name | Type | Definition |
|---|---|---|
| suotar_endpoint_rate_limits_available_not_null | n | NOT NULL available |
| suotar_endpoint_rate_limits_created_at_not_null | n | NOT NULL created_at |
| suotar_endpoint_rate_limits_endpoint_not_null | n | NOT NULL endpoint |
| suotar_endpoint_rate_limits_full_rate_per_minute_not_null | n | NOT NULL full_rate_per_minute |
| suotar_endpoint_rate_limits_pkey | PRIMARY KEY | PRIMARY KEY (endpoint) |
| suotar_endpoint_rate_limits_rate_share_not_null | n | NOT NULL rate_share |
| suotar_endpoint_rate_limits_updated_at_not_null | n | NOT NULL updated_at |
| Name | Definition |
|---|---|
| suotar_endpoint_rate_limits_pkey | CREATE UNIQUE INDEX suotar_endpoint_rate_limits_pkey ON public.suotar_endpoint_rate_limits USING btree (endpoint) |
| Name | Definition |
|---|---|
| set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.suotar_endpoint_rate_limits FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls