Skip to content

Commit da18ed2

Browse files
committed
add documentation for select pool by zone configuration
1 parent 852068c commit da18ed2

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

docs/TheBook/src/main/markdown/config-PoolManager.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,33 @@ Will create pool group `zone-A-pools` and any existing pool as well as any new p
177177
>
178178
> Pools can't be manually added into dynamic groups with `psu addto pgroup` admin command.
179179
180+
#### Zone-Aware Pool Selection
181+
182+
In deployments across it might be useful that uploads are directed to pools in the same zone as the door that accepted them. This avoids unnecessary cross-zone data movement. This is supported through zone-aware pool selection.
183+
184+
Assign a zone to a door in the layout file:
185+
186+
```ini
187+
[site-a/webdav-door-1]
188+
dcache.zone=A
189+
```
190+
191+
Tag pools with their zone:
192+
193+
```ini
194+
[site-a/pool-1]
195+
pool.tags=zone=A
196+
```
197+
198+
Create a dynamic pool group per zone and attach it to the write link (see [Dynamic Pool Groups](#dynamic-pool-groups)):
199+
200+
```
201+
psu create pgroup -dynamic -tags=zone=A A-pools
202+
psu addto link write-link A-pools
203+
```
204+
205+
The door propagates its zone to the pool manager, which filters the pool selection to pools with matching `zone` tag. If no matching pool is available, the selection falls back to all pools in the link.
206+
180207
#### Nested Pool Groups
181208

182209
Pool groups can be grouped together into nested pool groups. The special symbol `@` used as prefix

0 commit comments

Comments
 (0)