Skip to content
Snippets Groups Projects
Commit ce177d7b authored by Roberto DePietri's avatar Roberto DePietri Committed by Cody Messick
Browse files

Update configuration for running on Minikube

parent fad881f1
No related branches found
No related tags found
1 merge request!1002Configuration for running on Minikube
......@@ -15,8 +15,8 @@ the GraceDB service URLs, IGWN Alert groups, GCN hostnames, and frame file types
channel names. For a list of all GWCelery-specific options, see the
API documentation for the :mod:`gwcelery.conf` module.
GWCelery provides four preset configurations, one for each GraceDB server
instance (production, deployment, testing, or playground). The default
GWCelery provides five preset configurations, one for each GraceDB server
instance (production, deployment, testing, minikube or playground). The default
configuration preset is for the playground server,
``gracedb-playground.ligo.org``. The recommended way to select a different
preset is to set the :meth:`CELERY_CONFIG_MODULE
......
......@@ -56,6 +56,12 @@ expose_to_public = False
"""Set to True if events meeting the public alert threshold really should be
exposed to the public."""
igwn_alert_server = None
"""IGWN alert server: None == DEFAULT_SERVER"""
igwn_alert_noauth = False
"""IGWN alert server no-authetication"""
igwn_alert_group = 'gracedb-playground'
"""IGWN alert group."""
......
"""Application configuration for ``minikube`` local installation."""
from . import * # noqa: F401, F403
expose_to_public = True
"""Set to True if events meeting the public alert threshold really should be
exposed to the public."""
igwn_alert_server = 'kafka://hopskotch-server'
"""IGWN alert server: None == DEFAULT_SERVER"""
igwn_alert_noauth = True
"""IGWN alert server no-authetication"""
igwn_alert_group = 'default'
"""IGWN alert group."""
gracedb_host = 'gracedb.default.svc.cluster.local'
"""GraceDB host."""
early_warning_alert_far_threshold = float('inf')
"""False alarm rate threshold for early warning alerts."""
mock_events_simulate_multiple_uploads = False
"""If True, then upload each mock event several times in rapid succession with
random jitter in order to simulate multiple pipeline uploads."""
kafka_alert_config = {
'scimma': {'url': 'kafka://hopskotch-server/igwn.gwalert-minikube',
'suffix': 'avro', 'skymap_encoder': lambda _: _}
}
"""Kafka broker configuration details"""
......@@ -97,6 +97,8 @@ class Receiver(IGWNAlertBootStep):
super().start(consumer)
self._client = IGWNAlertClient(
server=consumer.app.conf['igwn_alert_server'],
noauth=consumer.app.conf['igwn_alert_noauth'],
group=consumer.app.conf['igwn_alert_group'])
self.thread = Thread(
target=self._client.listen,
......
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