Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hidra
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
steinbac
hidra
Commits
0d5b9207
Commit
0d5b9207
authored
9 years ago
by
Manuela Kuhn
Committed by
p11user
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Changed message format sent to OnDA
parent
6c3117b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
conf/sender.conf
+5
-5
5 additions, 5 deletions
conf/sender.conf
src/copy_loop_cbf.sh
+4
-4
4 additions, 4 deletions
src/copy_loop_cbf.sh
src/sender/WorkerProcess.py
+5
-5
5 additions, 5 deletions
src/sender/WorkerProcess.py
with
14 additions
and
14 deletions
conf/sender.conf
+
5
−
5
View file @
0d5b9207
# Directory you want to monitor for changes
# Inside this directory only the subdirectories "commissioning", "current" and "local" are monitored
watchDir
= /
space
/
projects
/
live
-
viewer
/
data
/
source
/
watchDir
= /
rd_temp
# Target to move the files into
cleanerTargetPath
= /
space
/
projects
/
live
-
viewer
/
data
/
target
/
cleanerTargetPath
= /
gpfs
/
# Subdirectories of watchDir to be monitored
monitoredSubdirs
= [
"commissioning"
,
"current"
,
"local"
]
...
...
@@ -14,7 +14,7 @@ monitoredFormats = [".tif", ".cbf"]
parallelDataStreams
=
1
# List of hosts allowed to connect to the sender
receiverWhiteList
= [
"
zitpcx19282"
,
"zitpcx22614"
,
"lsdma-lab04"
,
"haspp11eval01"
,
"it-hpc-cxi04
"
,
"it-hpc-cxi03"
]
receiverWhiteList
= [
"
haspp11eval01
"
,
"it-hpc-cxi03"
]
# Enable ZMQ pipe into storage system (if set to False: the file is moved into the cleanerTargetPath)
useDataStream
=
False
...
...
@@ -40,7 +40,7 @@ receiverComIp = 0.0.0.0
receiverComPort
=
50000
# Ports and ips to communicate with onda/realtime analysis
# There needs to be one entry for each workerProcess (meaning stream)
ondaIps
= [
"
127
.0.0.
1
"
]
ondaIps
= [
"
0
.0.0.
0
"
]
ondaPorts
= [
"50200"
]
# Chunk size of file-parts getting send via zmq
...
...
@@ -48,7 +48,7 @@ chunkSize = 10485760 ; # = 1024*1024*10
#chunkSize = 1073741824 ; # = 1024*1024*1024
# Path where the logfile will be created
logfilePath
= /
space
/
projects
/
live
-
viewer
/
logs
logfilePath
= /
home
/
p11user
/
live
-
viewer
/
logs
# Filename used for logging
logfileName
=
zmq_sender
.
log
...
...
This diff is collapsed.
Click to expand it.
src/copy_loop_cbf.sh
+
4
−
4
View file @
0d5b9207
#/bin/sh
BASEPATH
=
/space/projects/live-viewer
#
BASEPATH=/home/p11user/live-viewer
#
BASEPATH=/space/projects/live-viewer
BASEPATH
=
/home/p11user/live-viewer
FILES
=
${
BASEPATH
}
/test_015_00001.cbf
#FILES=/tmp/PhilipPBS_3_00001.cbf
TARGET
=
${
BASEPATH
}
/data/source/local
#
TARGET=/rd/local/sender_test
#
TARGET=${BASEPATH}/data/source/local
TARGET
=
/rd
_temp
/local/sender_test
i
=
1
LIMIT
=
1000
while
[
"
$i
"
-le
$LIMIT
]
...
...
This diff is collapsed.
Click to expand it.
src/sender/WorkerProcess.py
+
5
−
5
View file @
0d5b9207
...
...
@@ -397,7 +397,7 @@ class WorkerProcess():
self
.
log
.
debug
(
"
Passing multipart-message for file
"
+
str
(
sourceFilePathFull
)
+
"
...
"
)
chunkNumber
=
0
stillChunksToRead
=
True
payloadAll
=
[]
payloadAll
=
[
json
.
dumps
(
payloadMetadata
.
copy
())
]
while
stillChunksToRead
:
chunkNumber
+=
1
...
...
@@ -448,12 +448,12 @@ class WorkerProcess():
# self.liveViewerSocket.send_multipart(multipartMessage)
self
.
log
.
debug
(
"
Passing multipart-message for file
"
+
str
(
sourceFilePathFull
)
+
"
...done.
"
)
except
zmq
.
error
.
Again
:
self
.
log
.
error
(
"
unable to send multiplart-message for file
"
+
str
(
sourceFilePathFull
))
self
.
log
.
error
(
"
Receiver has disconnected
"
)
#
except zmq.error.Again:
#
self.log.error("unable to send multiplart-message for file " + str(sourceFilePathFull))
#
self.log.error("Receiver has disconnected")
except
Exception
,
e
:
self
.
log
.
error
(
"
Unable to send multipart-message for file
"
+
str
(
sourceFilePathFull
))
self
.
log
.
debug
(
"
Error was:
"
+
str
(
e
))
#
self.log.debug("Error was: " + str(e))
trace
=
traceback
.
format_exc
()
self
.
log
.
debug
(
"
Error was:
"
+
str
(
trace
))
self
.
log
.
debug
(
"
Passing multipart-message...failed.
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment