496 | | When using sandbox sharing with several CEs (specified in the same `CE_HOSTS` variable), it is important to define a distinct mount point for each CE. |
| 496 | When using sandbox sharing with several CEs (specified in the same `CE_HOSTS` variable), it is important to define a distinct mount point for each CE. An example using `CREAMCE_SANDBOX_MPOINTS`: |
| 497 | {{{ |
| 498 | variable CREAMCE_SANDBOX_MPOINTS ?= nlist( |
| 499 | 'ce1.example.org', '/cream_sandbox/ce1.example.org', |
| 500 | 'ce2.example.org', '/cream_sandbox/ce2.example.org', |
| 501 | ); |
| 502 | }}} |
| 503 | |
| 504 | Or a possible definition that will implement such a naming scheme for every CREAM CE defined: |
| 505 | {{{ |
| 506 | variable CE_HOSTS_CREAM ?= list('cream1.example.org','cream2.example.org'); |
| 507 | variable CE_HOSTS_LCG ?= list('lcg1.example.org','lcg2.example.org'); |
| 508 | variable CE_HOSTS ?= merge(CE_HOSTS_LCG,CE_HOSTS_CREAM); |
| 509 | variable CREAMCE_SANDBOX_MPOINTS ?= { |
| 510 | foreach (i;ce;CE_HOSTS_CREAM) { |
| 511 | SELF[ce] = '/cream_sandbox/'+ce; |
| 512 | }; |
| 513 | SELF; |
| 514 | }; |
| 515 | }}} |