Skip to content
Snippets Groups Projects
Commit ba8fc086 authored by Artur Sabirov's avatar Artur Sabirov
Browse files

system_tables.md: add more system tables

parent 6522976b
No related branches found
No related tags found
1 merge request!204system_tables.md: add more system tables
......@@ -48,3 +48,137 @@ Picodata, используемые для служебных нужд. Пере
* `id` (unique), parts: `[space_id, id]`
* `name` (unique), parts: `[space_id, name]`
## Описание свойств кластера {: #cluster_properties }
### _pico_property {: #_pico_property }
Содержит свойства кластера в формате «ключ—значение».
Поля:
* `key` (*string*)
* `value` (*any*)
Индексы:
* `key` (unique), parts: `[key]`
## Описание топологии кластера {: #cluster_topology }
### _pico_peer_address {: #_pico_peer_address }
Содержит адреса всех пиров кластера.
Поля:
* `raft_id` (*unsigned*)
* `address` (*string*)
Индексы:
* `raft_id` (unique), parts: `[raft_id]`
### _pico_instance {: #_pico_instance }
Содержит информацию обо всех инстансах кластера.
Поля:
* `instance_id` (*string*)
* `instance_uuid` (*string*)
* `raft_id` (*unsigned*)
* `replicaset_id` (*string*)
* `replicaset_uuid` (*string*)
* `current_grade` (*array*)
* `target_grade` (*array*)
* `failure_domain` (*map*)
* `tier` (*string*)
Индексы:
* `instance_id` (unique), parts: `[instance_id]`
* `raft_id` (unique), parts: `[raft_id]`
* `replicaset_id` (non-unique), parts: `[replicaset_id]`
### _pico_replicaset {: #_pico_replicaset }
Содержит информацию обо всех репликасетах кластера.
Поля:
* `replicaset_id` (*string*)
* `replicaset_uuid` (*string*)
* `master_id` (*string*)
* `tier` (*string*)
* `weight` (*number*)
* `weight_origin` (*string*)
* `weight_state` (*string*)
Индексы:
* `replicaset_id` (unique), parts: `[replicaset_id]`
### _pico_tier {: #_pico_tier }
Содержит информацию обо всех тирах в кластере.
Поля:
* `name` (*string*)
* `replication_factor` (*unsigned*)
Индексы:
* `name` (unique), parts: `[name]`
## Описание управления доступом {: #access_control }
### _pico_user {: #_pico_user }
Содержит информацию обо всех пользователях Picodata.
Поля:
* `id` (*unsigned*)
* `name` (*string*)
* `schema_version` (*unsigned*)
* `auth `(*array*)
Индексы:
* `id` (unique), parts: `[id]`
* `name` (unique), parts: `[name]`
### _pico_privilege {: #_pico_privilege }
Содержит информацию обо всех привилегиях, предоставленных пользователям Picodata.
Поля:
* `grantor_id` (*unsigned*)
* `grantee_id` (*unsigned*)
* `object_type` (*string*)
* `object_name` (*string*)
* `privilege` (*string*)
* `schema_version` (*unsigned*)
Индексы:
* `primary` (unique), parts: `[grantee_id, object_type, object_name, privilege]`
* `object` (unique), parts: `[object_type, object_name]`
### _pico_role {: #_pico_role }
Содержит информацию обо всех ролях Picodata.
Поля:
* `id` (*unsigned*)
* `name` (*string*)
* `schema_version` (*unsigned*)
Индексы:
* `id` (unique), parts: `[id]`
* `name` (unique), parts: `[name]`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment