Skip to content

Commit 27c70ce

Browse files
committed
config file cleanups
1 parent 483cd56 commit 27c70ce

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

psql-streamer.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type = "postgres"
1616
dsn = "dbname=test sslmode=disable"
1717

1818
# Name of the publication in PostgreSQL created with CREATE PUBLICATION
19-
publication = "pub_test"
19+
publication = "pub1"
2020

2121
# Replication slot represents a unique replication client in the database.
2222
# PostgreSQL stores the current client WAL positions in the slot (they're updated by the status messages)
@@ -62,7 +62,7 @@ type = "kafka"
6262
hosts = [ "kafka1:9092", "kafka2:9092", "kafka3:9092" ]
6363

6464
# List of Kafka topics to fetch events from
65-
topics = [ "dbItemChanges", "dbAccountChanges" ]
65+
topics = [ "topic1", "topic2" ]
6666

6767
# When running several instances with the same groupID on the same Kafka cluster/topic then
6868
# the events will be distributed evenly between consumers
@@ -91,20 +91,17 @@ sources = [ "kafka1" ]
9191
# List of kafka brokers in host:port form
9292
hosts = [ "kafka1:9092", "kafka2:9092", "kafka3:9092" ]
9393

94-
# A list of handlers to enable (items|passthrough)
95-
handlers = [ "items" ]
94+
# A list of handlers to enable
95+
handlers = [ "passthrough" ]
9696

9797
# Mapping between table name of event and Kafka topic
98-
tableTopicMapping = { action_states = "dbItemChanges", account_actions = "dbAccountChanges" }
98+
tableTopicMapping = { table1 = "topic1", table2 = "topic2" }
9999

100100
# This specifies the topic where the messages for which the mapping wasn't found will go.
101101
# If it's empty or undefined then they will be discarded.
102102
# At least one of tableTopicMapping or fallbackTopic should be specified.
103103
topicFallback = "garbageBin"
104104

105-
# Domain API grpc endpoint (required for *items* handler)
106-
domain = "qa2-grpc:10000"
107-
108105
# Timeout for Kafka message sending
109106
timeout = "2s"
110107

@@ -124,7 +121,7 @@ requiredAcks = -1
124121
# and we'll report success to the source as if the message was sent successfully.
125122
async = false
126123

127-
# Number of messages to buffer in Kafka before sending
124+
# Number of messages to buffer before sending to Kafka
128125
batchSize = 100
129126

130127
# How frequently to flush the queue if batchSize is not yet exceeded.

0 commit comments

Comments
 (0)