Skip to content

Commit 17caa5e

Browse files
committed
More updates
Move dev-shm allocation to fan Fix eiger endpoints Nicer endpoint formatting Use fastcs-eiger with fastcs-odin
1 parent 5a814b7 commit 17caa5e

File tree

6 files changed

+23
-17
lines changed

6 files changed

+23
-17
lines changed

Charts/odin-eiger/deployment/fp.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@
122122
"data": {
123123
"indexes": true
124124
},
125-
"data2": {
125+
"data2": {
126126
"indexes": true
127127
},
128-
"data3": {
128+
"data3": {
129129
"indexes": true
130130
}
131131
}
@@ -138,11 +138,11 @@
138138
"dims": [{{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}],
139139
"chunks": [1, {{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}]
140140
},
141-
"data2": {
141+
"data2": {
142142
"dims": [{{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}],
143143
"chunks": [1, {{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}]
144144
},
145-
"data3": {
145+
"data3": {
146146
"dims": [{{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}],
147147
"chunks": [1, {{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}]
148148
}
@@ -151,7 +151,7 @@
151151
},
152152
{
153153
"eiger": {
154-
"endpoint": "{{ .Values.endpoint }}:{{ add 3160 .idx | add1 }}"
154+
"endpoint": "{{ .Values.detectorName }}-eiger-fan:{{ add 31600 .idx | add1 }}"
155155
}
156156
}
157157
]
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22

3-
{{- $endpointFormat := (printf "tcp://%s-odin-data-%%d:%d" .Values.detectorName 10008) }}
3+
{{- $endpoints := list }}
4+
{{- range $i := until (int .Values.odinDataCount) }}
5+
{{- $endpoints = append $endpoints (printf "tcp://%s-odin-data-%d:10008" $.Values.detectorName $i) }}
6+
{{- end }}
47

58
/venv/bin/eiger_meta_writer \
69
--writer eiger_detector.EigerMetaWriter \
710
--sensor-shape {{ .Values.sensorSizeY }} {{ .Values.sensorSizeX }} \
8-
--data-endpoints {{ include "odin-helm-charts.rangeJoin" (dict "separator" "," "format" $endpointFormat "count" .Values.odinDataCount ) }}
11+
--data-endpoints {{ join "," $endpoints }}

Charts/odin-eiger/deployment/odin-server.cfg

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ adapters = fp, mw, ef
77
[tornado]
88
logging = error
99

10+
{{- $endpoints := list }}
11+
{{- range $i := until (int .Values.odinDataCount) }}
12+
{{- $endpoints = append $endpoints (printf "%s-odin-data-%d:10004" $.Values.detectorName $i) }}
13+
{{- end }}
14+
1015
[adapter.fp]
1116
module = odin_data.control.frame_processor_adapter.FrameProcessorAdapter
12-
{{- $endpointFormat := (printf "%s-odin-data-%%d:%d" .Values.detectorName 10004) }}
13-
endpoints = {{ include "odin-helm-charts.rangeJoin" (dict "separator" ", " "format" $endpointFormat "count" .Values.odinDataCount ) }}
17+
endpoints = {{ join ", " $endpoints }}
1418
update_interval = 0.2
1519

16-
1720
[adapter.mw]
1821
module = odin_data.control.meta_listener_adapter.MetaListenerAdapter
1922
endpoints = {{ $.Values.detectorName }}-meta-writer:5659

Charts/odin-eiger/ioc-config/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
sleep 5
55

66
# Start the IOC
7-
stdio-expose --ptty --stdin --ctrl-d 'fastcs-odin ioc {{ .Values.pvPrefix }} --ip {{ .Values.detectorName }}-odin-server --port 8888'
7+
stdio-expose --ptty --stdin --ctrl-d 'fastcs-eiger ioc {{ .Values.pvPrefix }} --ip {{ .Values.detectorIp }} --port 80 --odin-ip {{ .Values.detectorName }}-odin-server --odin-port 8888'

Charts/odin-eiger/templates/eiger-fan.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ spec:
3232
configMap:
3333
name: {{ $.Values.detectorName }}-odin-config
3434
defaultMode: 0755
35+
- name: dev-shm
36+
emptyDir:
37+
medium: Memory
38+
sizeLimit: {{ $.Values.devShmSize }}
3539
containers:
3640
- name: {{ .Values.detectorName }}-eiger-fan
3741
image: {{ .Values.image }}
@@ -42,6 +46,8 @@ spec:
4246
volumeMounts:
4347
- name: {{ $.Values.detectorName }}-odin-config-volume
4448
mountPath: /odin/deployment
49+
- name: dev-shm
50+
mountPath: /dev/shm
4551
{{- with $.Values.eigerFanResources }}
4652
resources:
4753
{{- toYaml . | nindent 12 }}

Charts/odin-eiger/templates/odin-data.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ spec:
3333
configMap:
3434
name: {{ $.Values.detectorName }}-odin-config
3535
defaultMode: 0755
36-
- name: dev-shm
37-
emptyDir:
38-
medium: Memory
39-
sizeLimit: {{ $.Values.devShmSize }}
4036
{{- with $.Values.dataVolume }}
4137
- name: {{ $.Values.detectorName }}-data
4238
hostPath:
@@ -54,8 +50,6 @@ spec:
5450
volumeMounts:
5551
- name: {{ $.Values.detectorName }}-odin-config-volume
5652
mountPath: /odin/deployment
57-
- name: dev-shm
58-
mountPath: /dev/shm
5953
{{- with $.Values.dataVolume }}
6054
- name: {{ $.Values.detectorName }}-data
6155
mountPath: {{ .hostPath }}

0 commit comments

Comments
 (0)