File tree Expand file tree Collapse file tree 10 files changed +40
-95
lines changed
Expand file tree Collapse file tree 10 files changed +40
-95
lines changed Original file line number Diff line number Diff line change 11[
22 {
3- "fr_setup" : {
4- "fr_ready_cnxn" : " tcp://127.0.0.1:10001" ,
5- "fr_release_cnxn" : " tcp://127.0.0.1:10002"
6- },
73 "meta_endpoint" : " tcp://*:10008"
84 },
95 {
4238 }
4339 }
4440 },
45- {
46- "plugin" : {
47- "connect" : {
48- "index" : " eiger" ,
49- "connection" : " frame_receiver"
50- }
51- }
52- },
5341 {
5442 "plugin" : {
5543 "connect" : {
7765 {
7866 "hdf" : {
7967 "dataset" : {
80- "compressed_size " : {
68+ "size " : {
8169 "datatype" : " uint32" ,
8270 "chunks" : [1000 ]
8371 }
133121 "dataset" : {
134122 "data" : {
135123 "indexes" : true
124+ },
125+ "data2" : {
126+ "indexes" : true
127+ },
128+ "data3" : {
129+ "indexes" : true
136130 }
137131 }
138132 }
143137 "data" : {
144138 "dims" : [{{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}],
145139 "chunks" : [1 , {{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}]
140+ },
141+ "data2" : {
142+ "dims" : [{{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}],
143+ "chunks" : [1 , {{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}]
144+ },
145+ "data3" : {
146+ "dims" : [{{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}],
147+ "chunks" : [1 , {{ .Values.sensorSizeY }}, {{ .Values.sensorSizeX }}]
146148 }
147149 }
148150 }
151+ },
152+ {
153+ "eiger" : {
154+ "endpoint" : " tcp://{{ .Values.detectorName }}-eiger-fan:{{ add 31600 .idx | add1 }}"
155+ }
149156 }
150157]
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 22debug_mode = 0
33http_port = 8888
44http_addr = 0.0.0.0
5- adapters = fp, fr, mw, ef
5+ adapters = fp, mw, ef
66
77[tornado]
88logging = 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]
1116module = 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 ) }}
14- update_interval = 0.2
15-
16- [adapter.fr]
17- module = odin_data.control.frame_receiver_adapter.FrameReceiverAdapter
18- {{- $endpointFormat := (printf " %s-odin-data-%%d:%d" .Values.detectorName 10000) }}
19- endpoints = {{ include " odin-helm-charts.rangeJoin" (dict " separator" " , " " format" $endpointFormat " count" .Values.odinDataCount ) }}
17+ endpoints = {{ join " , " $endpoints }}
2018update_interval = 0.2
2119
2220[adapter.mw]
Original file line number Diff line number Diff line change 44sleep 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'
Original file line number Diff line number Diff line change 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 }}
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 }}
6672{{- range $idx, $e := until (int $.Values.odinDataCount) }}
6773 - name : {{ $.Values.detectorName }}-eiger-fan-data-{{ $idx }}
6874 protocol : TCP
69- port : 3160{{ $idx }}
75+ port : 3160{{ $idx | add1 }}
7076{{- end }}
Original file line number Diff line number Diff line change 2121 {{- tpl ($.Files.Get "deployment/fp.sh") $ctx | nindent 4 }}
2222 fp{{ $idx | add1 }}.json : |
2323 {{- tpl ($.Files.Get "deployment/fp.json") $ctx | nindent 4 }}
24- fr{{ $idx | add1 }}.sh : |
25- {{- tpl ($.Files.Get "deployment/fr.sh") $ctx | nindent 4 }}
26- fr{{ $idx | add1 }}.json : |
27- {{- tpl ($.Files.Get "deployment/fr.json") $ctx | nindent 4 }}
2824{{- end }}
Original file line number Diff line number Diff line change @@ -33,36 +33,13 @@ 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 :
4339 path : {{ .hostPath }}
4440 type : Directory
4541 {{- end }}
4642 containers :
47- - name : frame-receiver
48- image : {{ $.Values.image }}
49- command :
50- - /odin/deployment/fr{{ $idx | add1 }}.sh
51- ports :
52- - containerPort : 10000
53- volumeMounts :
54- - name : {{ $.Values.detectorName }}-odin-config-volume
55- mountPath : /odin/deployment
56- - name : dev-shm
57- mountPath : /dev/shm
58- {{- with $.Values.frameReceiverResources }}
59- resources :
60- {{- toYaml . | nindent 12 }}
61- {{- end }}
62- {{- with $.Values.securityContext }}
63- securityContext :
64- {{- toYaml . | nindent 12 }}
65- {{- end }}
6643 - name : frame-processor
6744 image : {{ $.Values.image }}
6845 command :
7350 volumeMounts :
7451 - name : {{ $.Values.detectorName }}-odin-config-volume
7552 mountPath : /odin/deployment
76- - name : dev-shm
77- mountPath : /dev/shm
7853 {{- with $.Values.dataVolume }}
7954 - name : {{ $.Values.detectorName }}-data
8055 mountPath : {{ .hostPath }}
9873 selector :
9974 app : {{ $.Values.detectorName }}-odin-data-{{ $idx }}
10075 ports :
101- - name : {{ $.Values.detectorName }}-fr-{{ $idx }}-ctrl
102- protocol : TCP
103- port : 10000
10476 - name : {{ $.Values.detectorName }}-fp-{{ $idx }}-ctrl
10577 protocol : TCP
10678 port : 10004
Original file line number Diff line number Diff line change @@ -72,14 +72,6 @@ odinServerResources:
7272 cpu : 1000m
7373 memory : 256Mi
7474
75- frameReceiverResources :
76- limits :
77- cpu : 1000m
78- memory : 10Gi
79- requests :
80- cpu : 1000m
81- memory : 10Gi
82-
8375frameProcessorResources :
8476 limits :
8577 cpu : 1000m
You can’t perform that action at this time.
0 commit comments