Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
📝 Document storage metrics keys
Browse files Browse the repository at this point in the history
  • Loading branch information
TilBlechschmidt committed Mar 22, 2021
1 parent f1e969d commit 2c12d1b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/architecture/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,25 @@ During the lifecycle of a session each component generates status codes for trac
}
```

#### Slots
#### Orchestrator
```javascript
`metrics:slots:reclaimed.total` = Hashes {
dead = number
orphaned = number
}
```

#### Storage
```javascript
`metrics:storage:disk.bytes.total` = Hashes {
<storage-id> = number
}

`metrics:storage:disk.bytes.used` = Hashes {
<storage-id> = number
}
```

## Garbage collection

Special considerations have been taken to ensure that most keys expire on their own (e.g. active manager/storage/api metadata). Those that do not expire on their own (e.g. sessions) will be purged by a dedicated garbage collector service.

0 comments on commit 2c12d1b

Please sign in to comment.