Tee (tee)
The tee backend writes data to multiple backends simultaneously, providing redundancy. At
least one sub-backend is required.
Configuration
# Example aegis.toml configuration:
[backends.my-tee-backend]
type = "tee"
sub_backends = ["local", "remote"] # Names of another backends in aegis.toml
Options
| Option | Type | Required | Description |
|---|---|---|---|
type | String | Yes | Must be "tee" |
sub_backends | Vec | Yes | A list of downstream backends to use |
Behavior
When you add a blob or snapshot, the tee backend will write to all sub-backends in parallel. If any backend fails to write the data, the operation will fail.
When reading blobs, the tee backend currently just reads from the first configured backend. This will become configurable in the future, however currently this means that the first backend listed should be the fastest or most reliable one. If the first backend fails to read the read will fail. If this happens you should re-order the backends in the list.