-
Notifications
You must be signed in to change notification settings - Fork 34
Docker Local Demo
NOTE: The scripts and container described on this page are no longer maintained.
This page describes how to download and use the pscheduler-demo Docker container with multiple pScheduler nodes all running on the local host.
You will need a Linux system with access to the Internet, NTPD and Docker installed. Installation instructions for docker may be found at https://docs.docker.com/v1.11/engine/installation/linux. This process has been tested on Docker running under CentOS 7.1. It should work on any distribution of 64-bit Linux which has a 3.x kernel and is supported by Docker.
Log into your system as root
.
Download and prepare the demo script:
curl -s -O https://raw.githubusercontent.com/perfsonar/pscheduler/master/scripts/docker/local-demo
chmod +x ./local-demo
Execute ./local-demo start
. This will create three containers called psc1
, psc2
and psc3
and put them on a private, internal network.
Check the status of containers with ./local-demo status
.
Connect to the first container by executing ./local-demo login
.
- You may connect to the others by specifying their names as an argument (e.g.,
./local-demo login psc2
). - Disconnect from the container by exiting the shell (
exit
or^D
).
When you are finished with the containers, remove them by executing ./local-demo stop
.
[demo@psc1 ~]$ psc task idle --duration PT2S
Task URL:
https://psc1/pscheduler/tasks/c5dc6d9a-098a-4f30-839b-9fe68e6d7431
Fetching first run...
Next run:
https://psc1/pscheduler/tasks/c5dc6d9a-098a-4f30-839b-9fe68e6d7431/runs/5a4e07dc-1dd7-4b30-bd47-5b9bd020f70e
Starts 2016-07-27T08:17:34Z (~8 seconds)
Ends 2016-07-27T08:17:36Z (~1 seconds)
Duration ... PT2S
[demo@psc1 ~]$ psc task idle --duration PT2S --host psc3
Task URL:
https://psc3/pscheduler/tasks/20cd356f-c990-46af-b73c-a85c9cf4634a
Fetching first run...
Next run:
https://psc3/pscheduler/tasks/20cd356f-c990-46af-b73c-a85c9cf4634a/runs/8d93ba84-0a03-4450-9c1a-702ba6409563
Starts 2016-07-27T08:19:31Z (~8 seconds)
Ends 2016-07-27T08:19:33Z (~1 seconds)
Duration ... PT2S
[demo@psc1 ~]$ psc task simplestream --timeout PT5S --dest psc2
Task URL:
https://psc1/pscheduler/tasks/0cebcd56-2625-43f7-b2d8-1d74bad73a63
Fetching first run...
Next run:
https://psc1/pscheduler/tasks/0cebcd56-2625-43f7-b2d8-1d74bad73a63/runs/dff766d4-44eb-467a-9fbb-b801ce73c288
Starts 2016-07-27T08:20:35Z (~6 seconds)
Ends 2016-07-27T08:20:40Z (~4 seconds)
Dawdled ......... P0D
Text Sent ....... Data sent at 2016-07-27 08:20:36.582151
Text Received ... Data sent at 2016-07-27 08:20:36.582151
Elapsed Time .... PT0.154961S
[demo@psc1 ~]$ psc task simplestream --timeout PT5S --source psc2 --dest psc3
Task URL:
https://psc2/pscheduler/tasks/2316edbf-54cd-4b96-9916-ff65454c477f
Fetching first run...
Next run:
https://psc2/pscheduler/tasks/2316edbf-54cd-4b96-9916-ff65454c477f/runs/70d00bc6-0107-485f-b3c2-b0fed07199d2
Starts 2016-07-27T08:21:49Z (~6 seconds)
Ends 2016-07-27T08:21:54Z (~4 seconds)
Dawdled ......... P0D
Text Sent ....... Data sent at 2016-07-27 08:21:50.004755
Text Received ... Data sent at 2016-07-27 08:21:50.004755
Elapsed Time .... PT0.138862S
[demo@psc1 ~]$ psc task throughput --dest psc2
Task URL:
https://psc1/pscheduler/tasks/f41d53c7-7a46-4ef0-9185-5f07ed085c3c
Fetching first run...
Next run:
https://psc1/pscheduler/tasks/f41d53c7-7a46-4ef0-9185-5f07ed085c3c/runs/6357db6d-40de-4bb4-8828-9f0a753585dd
Starts 2016-07-27T08:30:25Z (~6 seconds)
Ends 2016-07-27T08:30:40Z (~14 seconds)
Throughput Results
Summary
Interval Throughput Sent/Lost Jitter
0.0 - 10.0 30.50 Gbps None / None None
[demo@psc1 ~]$ psc task latency --dest psc2
Task URL:
https://psc1/pscheduler/tasks/690eaff5-6361-4f66-9345-5326e803b785
Fetching first run...
Next run:
https://psc1/pscheduler/tasks/690eaff5-6361-4f66-9345-5326e803b785/runs/49d3078d-8b82-477f-90b6-17b8f0f1b4d0
Starts 2016-07-28T09:26:29-04:00 (~7 seconds)
Ends 2016-07-28T09:26:44-04:00 (~14 seconds)
Packet Statistics
-----------------
Packets Sent ......... 100 packets
Packets Received ..... 100 packets
Packets Lost ......... 0 packets
Packets Duplicated ... 0 packets
Packets Reordered .... 0 packets
One-way Latency Statistics
--------------------------
Delay Median ......... 0.98 ms
Delay Minimum ........ 0.81 ms
Delay Maximum ........ 1.20 ms
Delay Mean ........... 0.97 ms
Delay Mode ........... 0.99 ms
Delay 25th Percentile 0.94 ms
Delay 75th Percentile 1.00 ms
Delay 95th Percentile 1.04 ms
Max Clock Error ...... 1.98 ms
Common Jitter Measurements:
P95 - P50 ........ 0.06 ms
P75 - P25 ........ 0.06 ms
Variance ......... 0.00 ms
Std Deviation .... 0.05 ms
Histogram:
0.81 ms: 1 packets
0.82 ms: 1 packets
0.86 ms: 1 packets
0.89 ms: 4 packets
0.90 ms: 3 packets
0.91 ms: 5 packets
0.92 ms: 3 packets
0.93 ms: 5 packets
0.94 ms: 6 packets
0.95 ms: 6 packets
0.96 ms: 10 packets
0.97 ms: 3 packets
0.98 ms: 9 packets
0.99 ms: 13 packets
1.00 ms: 12 packets
1.01 ms: 9 packets
1.02 ms: 2 packets
1.04 ms: 3 packets
1.08 ms: 2 packets
1.10 ms: 1 packets
1.20 ms: 1 packets
TTL Statistics
--------------
TTL Median ........... 255.00
TTL Minimum .......... 255.00
TTL Maximum .......... 255.00
TTL Mean ............. 255.00
TTL Mode ............. 255.00
TTL 25th Percentile .. 255.00
TTL 75th Percentile .. 255.00
TTL 95th Percentile .. 255.00
Histogram:
255: 100 packets