2019-02-27 14:33:06 -08:00
Long Running Tests
==================
2019-09-26 11:25:09 -07:00
This directory contains the long-running workloads which are intended to run
forever until they fail. To set up the project you need to run
.. code-block :: bash
pip install any
any project create
2019-02-27 14:33:06 -08:00
Running the Workloads
---------------------
2019-09-26 11:25:09 -07:00
You can start all the workloads with:
2019-06-28 15:42:54 -07:00
.. code-block :: bash
2019-09-26 11:25:09 -07:00
any session start -y run --workload="*" --wheel=https://s3-us-west-2.amazonaws.com/ray-wheels/releases/0.7.5/6da7eff4b20340f92d3fe1160df35caa68922a97/ray-0.7.5-cp36-cp36m-manylinux1_x86_64.whl
2019-06-28 15:42:54 -07:00
2019-08-19 23:41:24 -07:00
This will start one EC2 instance per workload and will start the workloads
2019-09-26 11:25:09 -07:00
running (one per instance). You can start a specific workload by specifying
its name as an argument `` --workload= `` instead of `` "*" `` . A list of available options
is available via `any session start run --help` .
2019-02-27 14:33:06 -08:00
Check Workload Statuses
-----------------------
2019-09-26 11:25:09 -07:00
To check up on the workloads, run either
`` any session --name="*" execute check-load `` , which
will print the load on each machine, or
`` any session --name="*" execute show-output `` , which
2019-03-04 14:05:42 -08:00
will print the tail of the output for each workload.
2019-02-27 14:33:06 -08:00
To debug workloads that have failed, you may find it useful to ssh to the
relevant machine, attach to the tmux session (usually `` tmux a -t 0 `` ), inspect
the logs under `` /tmp/ray/session*/logs/ `` , and also inspect
`` /tmp/ray/session*/debug_state.txt `` .
2019-03-01 19:56:30 -08:00
Shut Down the Workloads
-----------------------
The instances running the workloads can all be killed by running
2019-09-26 11:25:09 -07:00
`` any session stop --name "*" `` .
2019-03-01 19:56:30 -08:00
2019-02-27 14:33:06 -08:00
Adding a Workload
-----------------
2019-09-26 11:25:09 -07:00
To create a new workload, simply add a new Python file under `` workloads/ `` and
add the workload in the run command in `.rayproject/project.yaml` .