-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdstream.hcl
53 lines (45 loc) · 1.49 KB
/
dstream.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
ingester {
# Database provider type
db_type = "sqlserver"
# Connection string for the database
db_connection_string = "{{ env "DSTREAM_DB_CONNECTION_STRING" }}"
# Default polling intervals for tables
poll_interval_defaults {
poll_interval = "1s"
max_poll_interval = "5s"
}
queue {
type = "azure_service_bus" # Type of queue (azure_service_bus, eventhub)
name = "ingest-queue"
connection_string = "{{ env "DSTREAM_INGEST_CONNECTION_STRING" }}"
}
# Lock configuration
locks {
type = "azure_blob" # Specifies the lock provider type
connection_string = "{{ env "DSTREAM_BLOB_CONNECTION_STRING" }}" # Connection string to Azure Blob Storage
container_name = "locks" # The name of the container used for lock files
}
# List of tables
tables = [
"Persons"
]
# Table-specific overrides
tables_overrides {
overrides {
table_name = "Persons"
poll_interval = "1s"
max_poll_interval = "5s"
}
}
}
publisher {
source {
type = "azure_service_bus"
connection_string = "{{ env "DSTREAM_PUBLISHER_CONNECTION_STRING" }}" # Used if type is "eventhub" or "servicebus"
}
# Output configuration
output {
type = "azure_service_bus" # "azure_service_bus"
connection_string = "{{ env "DSTREAM_PUBLISHER_CONNECTION_STRING" }}" # Used if type is "eventhub" or "servicebus"
}
}