Skip to content

Commit

Permalink
Add config for kafka server
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed Aug 3, 2023
1 parent 90cb643 commit 8e8c892
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion production.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ PLAUSIBLE_URL = "https://plausible.io"

# Run notifications through Kafka in production.
#EVENT_SEND_FUNCTION = "portality.events.kafka_producer.send_event"
EVENT_SEND_FUNCTION = "portality.events.shortcircuit.send_event"
#EVENT_SEND_FUNCTION = "portality.events.shortcircuit.send_event"

# 2023-08-03 Use the combined event sender for max traffic - doaj-kafka machine
EVENT_SEND_FUNCTION = "portality.events.combined.send_event"
KAFKA_BROKER = "kafka://10.131.35.14:9092"
KAFKA_BOOTSTRAP_SERVER = "10.131.35.14:9092"

# https://github.com/DOAJ/doajPM/issues/3565 2023-03-07
PRESERVATION_PAGE_UNDER_MAINTENANCE = False
2 changes: 1 addition & 1 deletion test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ LOGIN_VIA_ACCOUNT_ID = True
# 2022-12-09 enable the shorcircuit handler until we can fix kafka
#EVENT_SEND_FUNCTION = "portality.events.shortcircuit.send_event"

# 2023-08-02 try out the combined event sender
# 2023-08-02 Use the combined event sender for max traffic - doaj-kafka machine
EVENT_SEND_FUNCTION = "portality.events.combined.send_event"
KAFKA_BROKER = "kafka://10.131.35.14:9092"
KAFKA_BOOTSTRAP_SERVER = "10.131.35.14:9092"
Expand Down

0 comments on commit 8e8c892

Please sign in to comment.