区分环境
This commit is contained in:
25
apps/mqs/etc/mqs.dev.yaml
Normal file
25
apps/mqs/etc/mqs.dev.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
Name: mq
|
||||
Host: 0.0.0.0
|
||||
Port: 12001
|
||||
|
||||
# kq 消费者组1 - 用于记录
|
||||
KqConsumerLog:
|
||||
Name: kqConsumerLog
|
||||
Brokers:
|
||||
- 127.0.0.1:9092
|
||||
Group: logGroup
|
||||
Topic: apirequest
|
||||
Offset: first
|
||||
Consumers: 2 # 为了避免资源争夺,分配2个消费者
|
||||
Processors: 2
|
||||
|
||||
# kq 消费者组2 - 用于扣款
|
||||
KqConsumerCharge:
|
||||
Name: kqConsumerCharge
|
||||
Brokers:
|
||||
- 127.0.0.1:9092
|
||||
Group: chargeGroup
|
||||
Topic: apirequest
|
||||
Offset: first
|
||||
Consumers: 2 # 同样分配2个消费者
|
||||
Processors: 2
|
||||
@@ -6,7 +6,7 @@ Port: 12001
|
||||
KqConsumerLog:
|
||||
Name: kqConsumerLog
|
||||
Brokers:
|
||||
- 127.0.0.1:9092
|
||||
- tyapi_kafka:9092
|
||||
Group: logGroup
|
||||
Topic: apirequest
|
||||
Offset: first
|
||||
@@ -17,7 +17,7 @@ KqConsumerLog:
|
||||
KqConsumerCharge:
|
||||
Name: kqConsumerCharge
|
||||
Brokers:
|
||||
- 127.0.0.1:9092
|
||||
- tyapi_kafka:9092
|
||||
Group: chargeGroup
|
||||
Topic: apirequest
|
||||
Offset: first
|
||||
|
||||
Reference in New Issue
Block a user