Commit 25ca0b05 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron
Browse files

[README] Explain Tango config in Usage section, use simpler simulator example

parent eaa5636a
......@@ -41,23 +41,22 @@ optional arguments:
--verbose Verbose output
```
The `application` property defines the specific JSON schema.
When the `Tango` database is used, the information is stored in a server-like structure, where the executable name is `lima_launcher`. For each personal (instance) name, a single device of the `LimaLauncher` class should be defined, with the `config` property containing the JSON configuration.
## Supported applications
The `application` top-level configuration property defines the specific JSON schema.
### LImA2 Tango application
The `LImA2 Tango` application stores its configuration in the `Tango` database. A separate `lima_launcher` server with the same personal name of the `LImA2 Tango` servers should be registered with a single `LimaLauncher` device. The JSON configuration is stored in the device `config` property and has the following structure for a single-receiver application just requiring a dedicated `Conda` environment:
As a convention, the `LImA2 Tango` application stores its configuration in the `Tango` database. The JSON configuration has the following structure for a single-binary application (with control and receiver merged in a single process) just requiring a dedicated `Conda` environment:
```json
{
"application": "lima2_tango",
"lima2_tango": {
"plugin": "simulator",
"instance": "simulator_ahoms1",
"receivers": [
{
"nb_receivers": 1
}
]
"instance": "simulator_ahoms0"
},
"environment": {
"*": {
......@@ -69,8 +68,14 @@ The `LImA2 Tango` application stores its configuration in the `Tango` database.
}
}
```
The following command starts the previous configuration, assuming that it is included in the `Tango` database inside a `lima_launcher/lima2_simulator_ahoms0` server:
```bash
lima_launcher --tango_personal_name=lima2_simulator_ahoms0 --verbose
```
A more optimized configuration with two receivers, CPU affinity tuning and hardware GZIP acceleration:
A more optimized configuration with two independent receiver processes, CPU affinity tuning and hardware GZIP acceleration can have the following structure:
```json
{
......@@ -128,9 +133,3 @@ A more optimized configuration with two receivers, CPU affinity tuning and hardw
}
}
```
The following command starts the previous configuration:
```bash
lima_launcher --tango_personal_name=lima2_jungfrau_500k_307_lid29p9jfrau1_rr_x1 --verbose
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment