Skip to content

Instantly share code, notes, and snippets.

@kofemann
Created October 7, 2019 18:31
Show Gist options
  • Save kofemann/e899d9dc614b5a8f70bef548bc7b8317 to your computer and use it in GitHub Desktop.
Save kofemann/e899d9dc614b5a8f70bef548bc7b8317 to your computer and use it in GitHub Desktop.
dCache's pool manager configuration for distributed site
psu set regex off
psu set allpoolsactive off
psu create unit -store *@*
psu create unit -net 0.0.0.0/0.0.0.0
psu create unit -net 10.17.7.0/24
psu create unit -net ::/0
psu create unit -protocol */*
psu create ugroup any-protocol
psu addto ugroup any-protocol */*
psu create ugroup any-store
psu addto ugroup any-store *@*
psu create ugroup extern-net
psu addto ugroup extern-net 10.17.7.0/24
psu create ugroup world-net
psu addto ugroup world-net 0.0.0.0/0.0.0.0
psu addto ugroup world-net 10.17.7.0/24
psu addto ugroup world-net ::/0
psu create pool pool-dcache-extern-pool-1
psu create pool pool-dcache-extern-pool-2
psu create pool pool-dcache-main-pool-1
psu create pool pool-dcache-main-pool-2
psu create pgroup default
psu addto pgroup default pool-dcache-extern-pool-1
psu addto pgroup default pool-dcache-extern-pool-2
psu addto pgroup default pool-dcache-main-pool-1
psu addto pgroup default pool-dcache-main-pool-2
psu create pgroup external-pools -dynamic -tags=zone=extern
psu create link default-link any-protocol any-store world-net
psu set link default-link -readpref=10 -writepref=10 -cachepref=10 -p2ppref=0
psu addto link default-link default
psu create link remote-link any-protocol any-store extern-net
psu set link remote-link -readpref=20 -writepref=20 -cachepref=20 -p2ppref=1
psu addto link remote-link external-pools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment