Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Example configuration #34

Open
faustus123 opened this issue Feb 14, 2024 · 0 comments
Open

Create Example configuration #34

faustus123 opened this issue Feb 14, 2024 · 0 comments
Assignees

Comments

@faustus123
Copy link
Contributor

faustus123 commented Feb 14, 2024

I'm creating a new issue to track the yaml file created to describe the example diagram below. The diagram represents a configuration imagined for the Grand Challenge II that would involve a couple of detectors in Hall-C.

image

Comments on initial version put into branch Issue-7:

  1. This should be moved into a directory examples/configs and be renamed into something like RTDP_EXA01.yaml for "RTDP EXample Advanced 01".

  2. Instead of "machines" change to "rtdpcomponent". This is more accurate since these tend to represent a process as opposed to a machine.

  3. The rtdpcomponent should have attributes:
    type
    config
    host
    launch_command
    kill_command

The config attribute can be a complex configuration structure that is specific to the type. We will want rtdp.py to use the "host" and "launch_command" to start the process representing the component. If launch_command is empty or undefined, then it will be assumed that the process is already running by some other means.

  1. The launch_command attribute can be something like:

    ssh <host> et_start_fifo -f /tmp/etfifo

In this case, the rtdp.py script should replace the string "<host>" with the value from the host attribute. That way, if someone wants to change the host, it only needs to be change in one place. Similar substitutions may be made in the commands. For example <config_json_file> could signal to the rtdp.py script to reformat the config attribute into a JSON file that is automatically copied to the host and the file name then substituted in the launch command before it is executed.

Ultimately, I would like to be able to run rtdp.py file.yaml and have it launch and configure all processes needed for the system.

This should be enough to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants