Skip to content

Latest commit

 

History

History
184 lines (176 loc) · 6.48 KB

README.md

File metadata and controls

184 lines (176 loc) · 6.48 KB

Rucio-SENSE Interoperation Prototype Simulation

Southbound

Contains components that allow high-level components to communicate with low-level components

  • Burro: stand-in for Rucio
./bin/burro
  • DMM: Data Movement Manager

Northbound

Contains components that allow low-level components to communicate with high-level components

  • VSnet: Virtual Science Network (stand-in for ESnet+FTS)
./bin/vsnet
  • NONSENSE: Name-Only Nonfunctional SENSE (stand-in for SENSE)
./bin/nonsense

Running the simulation containers

  1. Install Docker
  2. Clone this repository
git clone [email protected]:jkguiang/rucio-sense-sim.git
  1. Request the ESNet topology JSON from an author/maintainer or ESNet and put it in the configured location (see the VSNet section of config.yaml):
cd rucio-sense-sim
mv /path/to/esnet_adjacencies.json data/esnet_adjacencies.json
mv /path/to/esnet_coordinates.json data/esnet_coordinates.json
  1. Spool up the containers using docker-compose
docker-compose --file etc/docker-compose.yaml up -d
  1. Ensure that all four containers are running with docker ps
CONTAINER ID   IMAGE                            COMMAND                  CREATED         STATUS         PORTS     NAMES
7500768303db   jguiang/rucio-sense-sim:latest   "python bin/vsnet"       6 seconds ago   Up 5 seconds             etc_vsnet_1
5fc40c71cf8c   jguiang/rucio-sense-sim:latest   "tail -f /dev/null"      6 seconds ago   Up 5 seconds             etc_burro_1
8fca40160de7   jguiang/rucio-sense-sim:latest   "python bin/nonsense"    6 seconds ago   Up 5 seconds             etc_nonsense_1
c11142487fbe   jguiang/rucio-sense-sim:latest   "python bin/dmm --lo…"   6 seconds ago   Up 5 seconds             etc_dmm_1
  1. Hop onto the burro container
docker exec -it etc_burro_1 /bin/sh
  1. Run burro
./bin/burro --loglevel=DEBUG
  1. (Optional) restart containers in order to run again
docker-compose --file etc/docker-compose.yaml restart
  1. Clean up
docker-compose --file etc/docker-compose.yaml stop
docker-compose --file etc/docker-compose.yaml rm -f
docker system prune -f --volumes

Editing the simulation parameters

The simulation is primarily driven by the configuation YAML (config.yaml) found in this respository. This sections provides more details as to exactly what each configuration line in the YAML does. Importantly, the host and port for each component of the simulation is configured by an environment variable (see setup.sh).

Burro

burro:
  heartbeat: 5
  throttler: true
  rules:
    - delay: 10
      src_rse: T2_US_SDSC
      dst_rse: T2_US_Caltech_Test
      src_limit: 10
      dst_limit: 7
      size_GB: 20
      n_transfers: 20
      priority: 1
    - ...
  • heartbeat: (int) number of seconds to wait between runs of Burro's main loop
  • throttler: (bool) whether or not to throttle the number of transfers submitted
  • rules: (list) Rucio-like "rules" to run
    • delay: (int) number of seconds to wait before submitting this rule
    • src_rse: (str) name of source site
    • dst_rse: (str) name of destination site
    • size_GB: (float) total size of transfer
    • n_transfers: (int) total number of transfers
    • priority: (int) numerical priority of this rule (0 = no priority)
    • src_limit: (int, optional) maximum number of transfers that the source can support (only respected if throttler == true)
    • dst_limit: (int, optional) maximum number of transfers that the destination can support (only respected if throttler == true)

NONSENSE

nonsense:
  profile_uuid: ddd1dec0-83ab-4d08-bca6-9a83334cd6db
  sites:
    - name: T2_US_SDSC
      full_uri: urn:ogf:t2.ucsd.edu:nrp-dev:T2_US_SDSC
      root_uri: urn:ogf:t2.ucsd.edu:nrp-dev
      port_capacity: 1000000
      ipv6_subnet_pool: 2001:48d0:3001:111::/64,2001:48d0:3001:112::/64,2001:48d0:3001:113::/64
    - ...
  • profile_uuid: (str) UUID of profile to use (see data/profiles for supported profiles)
  • sites: (list) list of site information
    • name: (str) name of site
    • full_uri: (str) full URI of site (root_uri:name)
    • root_uri: (str) root URI of site (just needs to be something SENSE-like)
    • port_capacity: (int) I/O capacity of site
    • ipv6_subnet_pool: (str) comma-separated list of IPv6 /64 blocks that the site has available

VSnet

vsnet:
  network_json: data/esnet_adjacencies.json
  coordinates_json: data/esnet_coordinates.json
  time_dilation: 5000.0
  max_beff_passes: 100
  beff_frac: 0.1
  sites:
    T1_US_FNAL: fnalfcc-cr6
    T2_US_Caltech: losa-cr6
    ...
  • network_json: (str) path to ESnet topology JSON
  • coordinates_json: (str) path to ESnet node coordinates JSON
  • time_dilation: (float) factor by which to scale "virtual" time by
  • max_beff_passes: (int) maximum number of attempts that VSnet can make to maximally distribute best effort bandwidth
  • beff_frac: (float) fraction of network bandwidth to allocate to best effort
  • sites: (dict) dictionary of name-node pairs
    • NAME: (str) name of node corresponding to the site named NAME in ESnet topology JSON

Running the simulation locally

  1. Clone both the Rucio-SENSE simulation and DMM
git clone https://github.com/jkguiang/rucio-sense-sim
git clone https://github.com/jkguiang/rucio-sense-dmm
  1. Install the following dependencies:
pip install pyyaml fastapi "uvicorn[standard]" sense-o-api==1.23 python-multipart
  1. Go to DMM base dir and copy the mock SENSE yaml to the appropriate location:
cd rucio-sense-dmm
cp .sense-o-auth.yaml.sim ~/sense-o-auth.yaml
  1. Request the ESNet topology JSON from an author/maintainer or ESNet and put it in the configured location (see the VSNet section of config.yaml):
cd rucio-sense-sim
mv /path/to/esnet_adjacencies.json data/esnet_adjacencies.json
mv /path/to/esnet_coordinates.json data/esnet_coordinates.json
  1. Open 4 terminal sessions and start each component of the simulation (in this order!)
# Session 1:
cd rucio-sense-sim
source setup.sh     # sets up simulation environment
./bin/vsnet         # starts VSNet
# Session 2:
cd rucio-sense-sim
source setup.sh     # sets up simulation environment
./bin/nonsense      # starts NONSENSE
# Session 3:
cd rucio-sense-dmm
source setup.sh     # sets up DMM environment
./bin/dmm           # starts DMM
# Session 4:
cd rucio-sense-sim
source setup.sh     # sets up simulation environment
./bin/burro         # starts Burro