Skip to content
Snippets Groups Projects
Commit 8b74a05d authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_feature_hdf5_sink: generate kafka group name from tag + process name

parent 40e573e9
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@ class HDF5StreamSink(object):
"""
def __init__(self, logger, options):
logger.info('setting up hdf5 stream sink...')
self.tag = options.tag
### initialize timing options
self.request_timeout = options.request_timeout
......@@ -98,8 +99,10 @@ class HDF5StreamSink(object):
self.is_running = False
### kafka settings
self.kafka_settings = {'bootstrap.servers': options.kafka_server,
'group.id': 'group_1'}
self.kafka_settings = {
'bootstrap.servers': options.kafka_server,
'group.id': 'hdf5_sink_{}'.format(self.tag)
}
### initialize consumers
self.consumer = Consumer(self.kafka_settings)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment