Skip to content

Commit

Permalink
feat: add wal.auto_create_topics option (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu authored Aug 27, 2024
1 parent 0b0d395 commit f847a33
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 48 deletions.
10 changes: 8 additions & 2 deletions docs/user-guide/operations/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,12 @@ provider = "raft_engine"
## The broker endpoints of the Kafka cluster.
broker_endpoints = ["127.0.0.1:9092"]

## Number of topics to be created upon start.
## Automatically create topics for WAL.
## Set to `true` to automatically create topics for WAL.
## Otherwise, use topics named `topic_name_prefix_[0..num_topics)`
auto_create_topics = true

## Number of topics.
num_topics = 64

## Topic selector type.
Expand Down Expand Up @@ -697,7 +702,8 @@ backoff_deadline = "5mins"
| `wal` | -- | -- | -- |
| `wal.provider` | String | `raft_engine` | -- |
| `wal.broker_endpoints` | Array | -- | The broker endpoints of the Kafka cluster. |
| `wal.num_topics` | Integer | `64` | Number of topics to be created upon start. |
| `wal.auto_create_topics` | Bool | `true` | Automatically create topics for WAL.<br/>Set to `true` to automatically create topics for WAL.<br/>Otherwise, use topics named `topic_name_prefix_[0..num_topics)` |
| `wal.num_topics` | Integer | `64` | Number of topics. |
| `wal.selector_type` | String | `round_robin` | Topic selector type.<br/>Available selector types:<br/>- `round_robin` (default) |
| `wal.topic_name_prefix` | String | `greptimedb_wal_topic` | A Kafka topic is constructed by concatenating `topic_name_prefix` and `topic_id`. |
| `wal.replication_factor` | Integer | `1` | Expected number of replicas of each partition. |
Expand Down
Loading

0 comments on commit f847a33

Please sign in to comment.