Skip to main content

Customize Template Files

Dayu system runs based on template/ directory and the files in it. Before run the system, you should customize the template files according to your requirements.

Get dayu template files by cloning the dayu repository on the master node (cloud server):

git clone https://github.com/dayu-autostreamer/dayu.git

cd dayu/template

template/ directory structure is as follows:

template/
├── base.yaml
├── scheduler_policies.yaml
├── services.yaml
├── result-visualizations.yaml
├── system-visualizations.yaml
├── scheduler/
│ ├── fixed-policy.yaml
│ ├── hei.yaml
│ └── ...
├── processor/
│ ├── age-classification.yaml
│ ├── pedestrian-detection.yaml
│ └── ...
├── generator/
│ ├── generator-base.yaml
│ └── ...
├── controller/
│ ├── controller-base.yaml
│ └── ...
├── distributor/
│ ├── distributor-base.yaml
│ └── ...
└── monitor/
├── monitor-base.yaml
└── ...

The table below lists the template files and their functions. For more details about each file format, please refer to the linked documentation:

FileFunctionDetails
base.yamlcontains basic information of dayu systemdetail formats
scheduler_policies.yamlcontains list of switchable scheduling policies, which is further defined in scheduler/detail formats
services.yamlcontains list of available services, which is further defined in processor/detail formats
result-visualizations.yamlcontains list of visualization modules for task resultsdetail formats
system-visualizations.yamlcontains list of visualization modules for system monitoringdetail formats
scheduler/*.yamldefines different scheduling policies in different yaml templates, which is switchable in frontend UI after runningdetail formats
processor/*.yamldefines different services in different yaml templates, which can be orchestrated in frontend UI as applications after runningdetail formats
generator/*.yamldefines the generator component in yaml templatedetail formats
controller/*.yamldefines the controller component in yaml templatedetail formats
distributor/*.yamldefines the distributor component in yaml templatedetail formats
monitor/*.yamldefines the monitor component in yaml templatedetail formats