docs(config): update docs for supporting consumer group

Signed-off-by: pengtianyue <pengtianyue@oppo.com>
This commit is contained in:
pengtianyue 2023-06-02 17:43:45 +08:00 committed by pengtianyue
parent 4c01579daf
commit a90af25ce7
2 changed files with 36 additions and 72 deletions

View File

@ -71,42 +71,29 @@ Scheduler的配置是基于[公有配置](./base.md),以下配置说明主要
### kafka示例
::: tip 提示
v3.3.0版本开始支持消费组,之前版本请参考对应版本配置文件
:::
* broker_listkafka节点列表
* fail_msg_sender_timeout_ms消息消费失败后重新投递至失败主题的超时时间默认为1000ms
* shard_repair修补消息主题及消费分区指定分区未指定默认消费所有分区其中包含三类主题
* normal普通主题默认为shard_repair
* failed失败主题正常消息消费失败后会将消息重新投递至该主题默认为shard_repair_failed
* priority优先消费主题主要存放一些需要高优先级消费的修补消息默认为shard_repair_prior
* blob_delete删除消息主题及消费分区指定其中包含两类主题
* normal普通主题默认为blob_delete
* failed失败主题正常消息消费失败后会将消息重新投递至该主题默认为blob_delete_failed
* topics主题信息
* shard_repair修补主题包含两个普通修补主题与高优修补主题默认为`shard_repair`与`shard_repair_prior`
* shard_repair_failed修补失败主题默认为`shard_repair_failed`
* blob_delete删除主题默认`blob_delete`
* blob_delete_failed删除失败主题默认`blob_delete_failed`
```json
{
"broker_list": ["127.0.0.1:9095","127.0.0.1:9095","127.0.0.1:9095"],
"fail_msg_sender_timeout_ms": 1000,
"shard_repair": {
"normal": {
"topic": "shard_repair",
"partitions": [0,1]
},
"failed": {
"topic": "shard_repair_failed",
"partitions": [0,1]
},
"priority": {
"topic": "shard_repair_prior",
"partitions": [0,1]
}
},
"blob_delete": {
"normal": {
"topic": "blob_delete",
"partitions": [0,1]
},
"failed": {
"topic": "blob_delete_failed",
"partitions": [0,1]
}
"topics": {
"shard_repair": [
"shard_repair",
"shard_repair_prior"
],
"shard_repair_failed": "shard_repair_failed",
"blob_delete": "blob_delete",
"blob_delete_failed": "blob_delete_failed"
}
}
```
@ -202,10 +189,8 @@ v3.3.0版本开始支持并发修复磁盘。
}
```
### shard_repair示例
* task_pool_size修补任务的并发度默认10
* normal_handle_batch_cnt批量消费普通消息大小默认100
* fail_handle_batch_cnt批量消费失败消息大小默认100
* fail_msg_consume_interval_ms失败消息消费时间间隔默认10000ms
* orphan_shard_log记录修补失败的孤本信息dir需要配置chunkbits为日志文件轮转大小默认292^29字节
```json
{
@ -227,9 +212,6 @@ v3.3.0版本开始支持配置数据删除时间段。
:::
* task_pool_size修补任务的并发度默认10
* normal_handle_batch_cnt批量消费普通消息大小默认100
* fail_handle_batch_cnt批量消费失败消息大小默认100
* fail_msg_consume_interval_ms失败消息消费时间间隔默认10000ms
* safe_delay_time_h删除保护期默认72h如果配置负数则表示直接删除
* delete_log删除日志保留目录需要配置chunkbits默认为29
* delete_hour_range支持配置删除时间段24小时制比如以下配置表示凌晨1点到3点中间时间段才会发起删除请求如果不配置默认全天删除

View File

@ -72,42 +72,30 @@ The configuration of the Scheduler is based on the [public configuration](./base
### kafka
::: tip Note
Starting from v3.3.0, consumer groups are supported. For previous versions, please refer to the corresponding configuration file.
:::
* broker_list, Kafka node list
* fail_msg_sender_timeout_ms, timeout for resending messages to the failed topic after message consumption fails, default is 1000ms
* shard_repair, repair message topic and consumption partition specification (if the partition is not specified, all partitions will be consumed), which contains three types of topics:
* normal, normal topic, default is shard_repair
* failed, failed topic (after normal message consumption fails, the message will be resent to this topic), default is shard_repair_failed
* priority, priority consumption topic, mainly used to store repair messages that need to be consumed with high priority, default is shard_repair_prior
* blob_delete, deletion message topic and consumption partition specification, which contains two types of topics
* normal, normal topic, default is blob_delete
* failed, failed topic (after normal message consumption fails, the message will be resent to this topic), default is blob_delete_failed
* topicsconsume topics
* shard_repair, normal topic, default are `shard_repair` and `shard_repair_prior`
* shard_repair_failed, failed topic, default is `shard_repair_failed`
* blob_delete, normal topic, default is `blob_delete`
* blob_delete_failed, failed topic, default is `blob_delete_failed`
```json
{
"broker_list": ["127.0.0.1:9095","127.0.0.1:9095","127.0.0.1:9095"],
"fail_msg_sender_timeout_ms": 1000,
"shard_repair": {
"normal": {
"topic": "shard_repair",
"partitions": [0,1]
},
"failed": {
"topic": "shard_repair_failed",
"partitions": [0,1]
},
"priority": {
"topic": "shard_repair_prior",
"partitions": [0,1]
}
},
"blob_delete": {
"normal": {
"topic": "blob_delete",
"partitions": [0,1]
},
"failed": {
"topic": "blob_delete_failed",
"partitions": [0,1]
}
"topics": {
"shard_repair": [
"shard_repair",
"shard_repair_prior"
],
"shard_repair_failed": "shard_repair_failed",
"blob_delete": "blob_delete",
"blob_delete_failed": "blob_delete_failed"
}
}
```
@ -205,9 +193,6 @@ Starting from version v3.3.0, concurrent disk repair is supported.
### shard_repair
* task_pool_size, concurrency of repair tasks, default is 10
* normal_handle_batch_cnt, batch consumption size of normal messages, default is 100
* fail_handle_batch_cnt, batch consumption size of failed messages, default is 100
* fail_msg_consume_interval_ms, time interval for consuming failed messages, default is 10000ms
* orphan_shard_log, record information of orphan data repair failures, directory needs to be configured, chunkbits is the log file rotation size, default is 29 (2^29 bytes)
```json
{
@ -229,9 +214,6 @@ Starting from version v3.3.0, it is supported to configure the data deletion tim
:::
* task_pool_size, concurrency of deletion tasks, default is 10
* normal_handle_batch_cnt, batch consumption size of normal messages, default is 100
* fail_handle_batch_cnt, batch consumption size of failed messages, default is 100
* fail_msg_consume_interval_ms, time interval for consuming failed messages, default is 10000ms
* safe_delay_time_h, deletion protection period, default is 72h. If a negative value is configured, the data will be deleted directly.
* delete_log, directory for storing deletion logs, needs to be configured, chunkbits default is 29
* delete_hour_range, supports configuring the deletion time period in 24-hour format. For example, the following configuration indicates that deletion requests will only be initiated during the time period between 1:00 a.m. and 3:00 a.m. If not configured, deletion will be performed all day.