Skip to content

Commit 0b5e60d

Browse files
committed
[doc] document ECS2DCS2ECS mock server usage
OCTRL-1026
1 parent 06322a5 commit 0b5e60d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ There are two ways of interacting with AliECS:
110110
* [DCS PrepareForRun behaviour](/core/integration/README.md#dcs-prepareforrun-behaviour)
111111
* [DCS StartOfRun behaviour](/core/integration/README.md#dcs-startofrun-behaviour)
112112
* [DCS EndOfRun behaviour](/core/integration/README.md#dcs-endofrun-behaviour)
113+
* [ECS2DCS2ECS mock server](/core/integration/README.md#ecs2dcs2ecs-mock-server)
113114
* [DD Scheduler](/core/integration/README.md#dd-scheduler)
114115
* [Kafka (legacy)](/core/integration/README.md#kafka-legacy)
115116
* [ODC](/core/integration/README.md#odc)

core/integration/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,19 @@ The environment will then declare a **failure**, the
138138
`STOP_ACTIVITY` transition will be blocked and the environment
139139
will move to `ERROR`.
140140

141+
### ECS2DCS2ECS mock server
142+
143+
ECS2DCS2ECS is a simple server that mimics the DCS service and is developed by the DCS team.
144+
In particular, it sends heartbeats, reports detectors as PFR or SOR available and replies with requested state sequences.
145+
146+
The state sequences should be added as extra arguments to the DCS calls with key `"STATE_SEQUENCE"`, while the value is a comma-separated list of `MILLIS_DELAY:DETECTOR_STATE` values.
147+
148+
From the AliECS user point of view, state sequences can be defined as the following user-vars (Advanced Configuration panel in COG), which are then passed to the corresponding PFR/SOR/EOR calls for all detectors:
149+
150+
- `dcs_pfr_state_sequence`
151+
- `dcs_sor_state_sequence`
152+
- `dcs_eor_state_sequence`
153+
141154
## DD Scheduler
142155

143156
DD scheduler plugin informs the Data Distribution software about the pool of FLPs taking part in data taking.

0 commit comments

Comments
 (0)