AsterionDocumentation v0.4.1

Satellites

Tables of the area Satellites and their relations
Satellites: tables and foreign keys. Dashed lines lead to tables of other areas.

satellites

Pulsar satellites: tenant (null = global), encrypted secret, bound instance id, status, version, reported geo and connectivity (IPv4/IPv6), manual location and address, last heartbeat and sync, round-trip times, traceroute to the portal, web console grant, latest load sample.

45 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
uuid uniqueuuid
tenant_idbigint(20) unsignedyestenants on delete cascade
namevarchar(255)
descriptiontextyes
secrettext
statusvarchar(16)pending
registered_attimestampyes
instance_idvarchar(255)yes
versionvarchar(255)yes
hostnamevarchar(255)yes
public_ipvarchar(255)yes
ipv4tinyint(1)yes
ipv6tinyint(1)yes
connectivity_checked_attimestampyes
remote_ipvarchar(255)yes
ip_infolongtextyes
asnvarchar(255)yes
as_namevarchar(255)yes
providervarchar(255)yes
cityvarchar(255)yes
regionvarchar(255)yes
countryvarchar(8)yes
latitudedecimal(9,6)yes
longitudedecimal(9,6)yes
last_seen_attimestampyes
last_sync_attimestampyes
ws_connectedtinyint(1)0
portal_rtt_msdoubleyes
portal_http_rtt_msdoubleyes
portal_tracelongtextyes
portal_trace_attimestampyes
capabilitieslongtextyes
queue_sizeint(10) unsigned0
sync_versionvarchar(255)yes
console_grantlongtextyes
console_used_attimestampyes
console_revoked_attimestampyes
offline_notified_attimestampyes
created_attimestampyes
updated_attimestampyes
load_samplelongtextyes
addressvarchar(300)yes
manual_latitudedecimal(9,6)yes
manual_longitudedecimal(9,6)yes

Indexes: tenant_id · uuid (unique)

satellite_tags

Tags of a satellite with their source: auto (from the geo lookup: AS, provider, city, country), env (from PULSAR_TAGS) or manual (set in Polaris; the only source of zone=).

7 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
satellite_idbigint(20) unsignedsatellites on delete cascade
keyvarchar(64)
valuevarchar(255)
sourcevarchar(16)manual
created_attimestampyes
updated_attimestampyes

Indexes: satellite_id, key, value (unique)

satellite_heartbeats

One row per heartbeat: round-trip times, websocket state, queue size and load. Pruned after POLARIS_RETENTION_HEARTBEATS days.

14 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
satellite_idbigint(20) unsignedsatellites on delete cascade
rtt_msdoubleyes
http_rtt_msdoubleyes
ws_connectedtinyint(1)0
queue_sizeint(10) unsigned0
created_attimestampcurrent_timestamp()
run_slotssmallint(5) unsignedyes
runs_busysmallint(5) unsignedyes
runs_waitingsmallint(5) unsignedyes
busy_pctdoubleyes
cpu_loaddoubleyes
cpussmallint(5) unsignedyes
mem_pctdoubleyes

Indexes: satellite_id, created_at

satellite_logs

Log lines the satellite ships and events Polaris records about it (offline, back online, rejected results). Pruned after POLARIS_RETENTION_LOGS days.

7 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
satellite_idbigint(20) unsignedsatellites on delete cascade
levelvarchar(16)
messagetext
contextlongtextyes
logged_attimestampyes
created_attimestampcurrent_timestamp()

Indexes: satellite_id, logged_at

satellite_target

Which satellites watch a target: set in the Add targets wizard, used by the automatic plans.

5 columns
ColumnTypeNullDefaultReferences
id PKbigint(20) unsigned
satellite_idbigint(20) unsignedsatellites on delete cascade
target_idbigint(20) unsignedtargets on delete cascade
created_attimestampyes
updated_attimestampyes

Indexes: satellite_id, target_id (unique) · target_id

satellite_test_plan

Which satellites run a test plan.

2 columns
ColumnTypeNullDefaultReferences
satellite_id PKbigint(20) unsignedsatellites on delete cascade
test_plan_id PKbigint(20) unsignedtest_plans on delete cascade

Indexes: test_plan_id