Commit bcaf860
committed
poolmanager: filter staging pools by zone
Motivation:
When zones are enabled and configured, staged files should land in a pool in the same zone as the client that requested it.
Modification:
refactor selectStagePool with new filterStagePool helper method in PoolMonitorV5.
Result:
Best effort ("soft") filtering of stage pool lists by zone. Fallback to full unfiltered list, if no eligible pool in correct zone was found.
if configured, p2p should trigger and copy to a pool in clients zone when selcted stage pool is not a read pool (no extra modification needed).
Target: master
Require-book: no1 parent 32cd45a commit bcaf860
2 files changed
Lines changed: 72 additions & 12 deletions
File tree
- modules/dcache/src
- main/java/diskCacheV111/poolManager
- test/java/org/dcache/tests/poolmanager
Lines changed: 33 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
528 | 547 | | |
529 | 548 | | |
530 | 549 | | |
531 | 550 | | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
537 | 560 | | |
538 | 561 | | |
539 | 562 | | |
540 | | - | |
| 563 | + | |
541 | 564 | | |
542 | | - | |
| 565 | + | |
543 | 566 | | |
544 | 567 | | |
545 | 568 | | |
| |||
549 | 572 | | |
550 | 573 | | |
551 | 574 | | |
552 | | - | |
| 575 | + | |
553 | 576 | | |
554 | 577 | | |
555 | 578 | | |
556 | 579 | | |
557 | 580 | | |
558 | 581 | | |
559 | 582 | | |
560 | | - | |
| 583 | + | |
561 | 584 | | |
562 | 585 | | |
563 | 586 | | |
| |||
Lines changed: 39 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
226 | 259 | | |
227 | 260 | | |
228 | 261 | | |
| |||
255 | 288 | | |
256 | 289 | | |
257 | 290 | | |
258 | | - | |
| 291 | + | |
259 | 292 | | |
260 | 293 | | |
261 | 294 | | |
| |||
266 | 299 | | |
267 | 300 | | |
268 | 301 | | |
| 302 | + | |
| 303 | + | |
269 | 304 | | |
270 | 305 | | |
271 | 306 | | |
272 | 307 | | |
273 | | - | |
| 308 | + | |
274 | 309 | | |
275 | 310 | | |
276 | 311 | | |
277 | 312 | | |
278 | 313 | | |
279 | 314 | | |
280 | 315 | | |
| 316 | + | |
281 | 317 | | |
282 | 318 | | |
283 | 319 | | |
| 320 | + | |
284 | 321 | | |
285 | 322 | | |
286 | 323 | | |
| |||
0 commit comments