Skip to main content

Event Logging

When an application is deployed the system generates various events. These events are fed into topics owned by the tenant. In the movie theater example, you can inspect those topics, Once the popcorn-controller is started you can see where the containers are deployed:

supctl show application-deployments
- name: popcorn-deployment
application: popcorn-controller
application-version: "1.0"
placement:
match-site-labels: |
system/type = edge
status:
oper-status: deployed
images:
- name: avassa-public/movie-theaters-demo/kettle-popper-manager:v1.0
status: present
digest: sha256:fbc922039b5464b84216
selected-sites:
- gothenburg-bergakungen
- helsingborg-roda-kvarn
- stockholm-sergel
- stockholm-sture
application-versions:
- version: "1.0"
deployed-to:
- gothenburg-bergakungen
- helsingborg-roda-kvarn
- stockholm-sergel
- stockholm-sture

At site stockholm-sergel, there are now Volga topics created for the popcorn application:

supctl show --site stockholm-sergel volga topics \
system:container-events:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager
topic: system:container-events:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager
tenant: popcorn-systems
seqno: 3
chunkno: 1
number-of-chunks: 10
created: 2021-08-12T13:16:29.895Z
assigned-hosts:
- stockholm-sergel-002
leader-host: stockholm-sergel-002
worker-hosts: []
replication-factor: 1
dir: /avassa-data/supd/volga/popcorn-systems/system:container-events:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager
persistence: disk
size-megabyte: 1
oldest-entry: 2021-08-12T13:16:29.895Z
dropped-chunks: 0
consumers: []
producers:
- producer-name: system:container-events:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager-stockholm-sergel-002
producing-host: stockholm-sergel-002

If the application is deleted, this topic will also be deleted. This is just a regular Volga topic, owned by the tenant, that can be read and manipulated lika all other Volga topics.

Additionally, logging topics are created for each container in the application. These topics are used to store the stdout log data from the individual containers.

supctl show --site stockholm-sergel volga topics \
system:container-logs:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager
topic: system:container-logs:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager
tenant: popcorn-systems
seqno: 292
chunkno: 1
number-of-chunks: 100
created: 2021-08-13T09:50:39.927Z
assigned-hosts:
- stockholm-sergel-001
leader-host: stockholm-sergel-001
worker-hosts: []
replication-factor: 1
dir: /avassa-data/supd/volga/popcorn-systems/system:container-logs:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager
persistence: disk
size-megabyte: 1
oldest-entry: 2021-08-13T09:50:39.927Z
dropped-chunks: 0
consumers: []
producers:
- producer-name: system:container-logs:popcorn-controller.popcorn-controller-service-1.kettle-popper-manager-stockholm-sergel-001
producing-host: stockholm-sergel-001

Note, these Volga topics are created by the system where the application is deployed, be it at the edge sites, or the Control Tower.