# How Instances Propagate<no value>

## Propagation Flow

```
1. Operator adds instance to Relay A
             ↓
2. Relay A's health checker starts pinging it
             ↓
3. Relay B (peer of A) pulls /federation/instances from A
             ↓
4. Relay B merges new instance into its directory
             ↓
5. Relay C (peer of B) pulls from B on next sync
             ↓
6. Instance is now visible across the entire mesh
```

## Merge Semantics

When a relay pulls instances from a peer:

- **New instances** are added to the local directory
- **Existing instances** are updated if the peer has fresher data
- **Removed instances** are NOT automatically deleted (prevents a malicious peer from clearing your directory)

## Sync Interval

The default sync interval is 120 seconds. This can be configured:

```bash
--sync-interval-secs 60
# or
RELAY_SYNC_INTERVAL_SECS=60
```

Lower intervals mean faster propagation but more HTTP requests.
