Orchestration Configuration Example
The configuration file for creating a graph (graph.prototxt) is in proto format. In the following example, two graphs are created at the same time, multiple engines are created for each graph, and the mapping is configured.

To transfer a file, the following conditions must be met. Otherwise, the system transfers a string or number by default.
- In the Linux operating system, the file must contain a relative path or an absolute path, for example, /home/1.txt or ../test/2.txt. Note: The string may be mistakenly considered as a file if it contains the "\" or "/" symbol. Therefore, do not use the symbols.
- In Windows, the file must contain a relative path or an absolute path, for example: c:\1.txt or ..\test\2.txt. Note: The string may be mistakenly considered as a file if it contains the "\" or "/" symbol. Therefore, do not use the symbols.
graphs { graph_id: 100 device_id: "0" priority: 1 engines { id: 1000 engine_name: "SrcEngine" side: HOST thread_num: 1 } engines { id: 1001 engine_name: "HelloWorldEngine" so_name: "./libhelloworld.so" side: DEVICE thread_num: 1 } engines { id: 1002 engine_name: "DestEngine" side: HOST thread_num: 1 } connects { src_engine_id: 1000 src_port_id: 0 target_engine_id: 1001 target_port_id: 0 } connects { src_engine_id: 1001 src_port_id: 0 target_engine_id: 1002 target_port_id: 0 } } graphs { graph_id: 200 device_id: "1" priority: 1 engines { id: 1000 engine_name: "SrcEngine" side: HOST thread_num: 1 } engines { id: 1001 engine_name: "HelloWorldEngine" internal_so_name: "/lib64/libhelloworld.so" side: DEVICE thread_num: 1 } engines { id: 1002 engine_name: "DestEngine" side: HOST thread_num: 1 } connects { src_engine_id: 1000 src_port_id: 0 target_engine_id: 1001 target_port_id: 0 } connects { src_engine_id: 1001 src_port_id: 0 target_engine_id: 1002 target_port_id: 0 } }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot