Skip to content

Commit b4785e1

Browse files
committed
update yaml
1 parent 782bc6c commit b4785e1

File tree

11 files changed

+19
-136
lines changed

11 files changed

+19
-136
lines changed

6_micro-cluster/example-1-multi-repo/shop_gw/configs/shop_gw.yml

-15
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ logger:
4848
isSave: false # false:output to terminal, true:output to file, default is false
4949

5050

51-
# mysql settings
52-
mysql:
53-
# dsn format, <user>:<pass>@(127.0.0.1:3306)/<db>?[k=v& ......]
54-
dsn: "root:123456@(192.168.3.37:3306)/account?parseTime=true&loc=Local&charset=utf8,utf8mb4"
55-
enableLog: true # whether to turn on printing of all logs
56-
maxIdleConns: 3 # set the maximum number of connections in the idle connection pool
57-
maxOpenConns: 100 # set the maximum number of open database connections
58-
connMaxLifetime: 30 # sets the maximum time for which the connection can be reused, in minutes
59-
#slavesDsn: # sets slaves mysql dsn, array type
60-
# - "your slave dsn 1"
61-
# - "your slave dsn 2"
62-
#mastersDsn: # sets masters mysql dsn, array type, non-required field, if there is only one master, there is no need to set the mastersDsn field, the default dsn field is mysql master.
63-
# - "your master dsn"
64-
65-
6651
# redis settings
6752
redis:
6853
# dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.

6_micro-cluster/example-2-mono-repo/eshop_gw/configs/eshop_gw.yml

-14
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,6 @@ logger:
5555
#isCompression: true # Whether to compress/archive old files (default is false)
5656

5757

58-
# set database configuration. reference-db-config-url
59-
database:
60-
driver: "mysql" # database driver
61-
# mysql settings
62-
mysql:
63-
# dsn format, <username>:<password>@(<hostname>:<port>)/<db>?[k=v& ......]
64-
dsn: "root:123456@(192.168.3.37:3306)/account?parseTime=true&loc=Local&charset=utf8,utf8mb4"
65-
enableLog: true # whether to turn on printing of all logs
66-
maxIdleConns: 10 # set the maximum number of connections in the idle connection pool
67-
maxOpenConns: 100 # set the maximum number of open database connections
68-
connMaxLifetime: 30 # sets the maximum time for which the connection can be reused, in minutes
69-
70-
71-
7258
# redis settings
7359
redis:
7460
# dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.

8_community-cluster/community_gw/configs/community_gw.yml

-15
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,6 @@ logger:
5151
isSave: false # false:output to terminal, true:output to file, default is false
5252

5353

54-
# mysql settings
55-
mysql:
56-
# dsn format, <user>:<pass>@(127.0.0.1:3306)/<db>?[k=v& ......]
57-
dsn: "root:123456@(192.168.3.37:3306)/account?parseTime=true&loc=Local&charset=utf8,utf8mb4"
58-
enableLog: true # whether to turn on printing of all logs
59-
maxIdleConns: 3 # set the maximum number of connections in the idle connection pool
60-
maxOpenConns: 100 # set the maximum number of open database connections
61-
connMaxLifetime: 30 # sets the maximum time for which the connection can be reused, in minutes
62-
#slavesDsn: # sets slaves mysql dsn, array type
63-
# - "your slave dsn 1"
64-
# - "your slave dsn 2"
65-
#mastersDsn: # sets masters mysql dsn, array type, non-required field, if there is only one master, there is no need to set the mastersDsn field, the default dsn field is mysql master.
66-
# - "your master dsn"
67-
68-
6954
# redis settings
7055
redis:
7156
# dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.

9_order-grpc-distributed-transaction/example-1-multi-repo/order_gw/configs/order_gw.yml

-15
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,6 @@ logger:
5454
isSave: false # false:output to terminal, true:output to file, default is false
5555

5656

57-
# mysql settings
58-
mysql:
59-
# dsn format, <user>:<pass>@(127.0.0.1:3306)/<db>?[k=v& ......]
60-
dsn: "root:123456@(192.168.3.37:3306)/account?parseTime=true&loc=Local&charset=utf8,utf8mb4"
61-
enableLog: true # whether to turn on printing of all logs
62-
maxIdleConns: 3 # set the maximum number of connections in the idle connection pool
63-
maxOpenConns: 100 # set the maximum number of open database connections
64-
connMaxLifetime: 30 # sets the maximum time for which the connection can be reused, in minutes
65-
#slavesDsn: # sets slaves mysql dsn, array type
66-
# - "your slave dsn 1"
67-
# - "your slave dsn 2"
68-
#mastersDsn: # sets masters mysql dsn, array type, non-required field, if there is only one master, there is no need to set the mastersDsn field, the default dsn field is mysql master.
69-
# - "your master dsn"
70-
71-
7257
# redis settings
7358
redis:
7459
# dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.

9_order-grpc-distributed-transaction/example-2-mono-repo/order_gw/configs/order_gw.yml

-13
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,6 @@ logger:
5959
#isCompression: true # Whether to compress/archive old files (default is false)
6060

6161

62-
# set database configuration. reference-db-config-url
63-
database:
64-
driver: "mysql" # database driver
65-
# mysql settings
66-
mysql:
67-
# dsn format, <username>:<password>@(<hostname>:<port>)/<db>?[k=v& ......]
68-
dsn: "root:123456@(192.168.3.37:3306)/account?parseTime=true&loc=Local&charset=utf8,utf8mb4"
69-
enableLog: true # whether to turn on printing of all logs
70-
maxIdleConns: 10 # set the maximum number of connections in the idle connection pool
71-
maxOpenConns: 100 # set the maximum number of open database connections
72-
connMaxLifetime: 30 # sets the maximum time for which the connection can be reused, in minutes
73-
74-
7562
# redis settings
7663
redis:
7764
# dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.

_14_eshop/example-1-multi-repo/eshop_gw/configs/eshop_gw.yml

+7-28
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ grpcClient:
5757
enableLoadBalance: true # whether to turn on the load balancer
5858

5959

60-
httpClient:
61-
- name: "flashSale" # grpc service name, used for service discovery
62-
host: "127.0.0.1" # grpc service address, used for direct connection
63-
port: 30680 # grpc service port
64-
registryDiscoveryType: "" # registration and discovery types: consul, etcd, nacos, if empty, connecting to server using host and port
65-
66-
6760
# logger settings
6861
logger:
6962
level: "info" # output log levels debug, info, warn, error, default is debug
@@ -77,27 +70,13 @@ logger:
7770
#isCompression: true # Whether to compress/archive old files (default is false)
7871

7972

80-
# set database configuration. reference-db-config-url
81-
database:
82-
driver: "mysql" # database driver
83-
# mysql settings
84-
mysql:
85-
# dsn format, <username>:<password>@(<hostname>:<port>)/<db>?[k=v& ......]
86-
dsn: "root:123456@(192.168.3.37:3306)/account?parseTime=true&loc=Local&charset=utf8,utf8mb4"
87-
enableLog: true # whether to turn on printing of all logs
88-
maxIdleConns: 10 # set the maximum number of connections in the idle connection pool
89-
maxOpenConns: 100 # set the maximum number of open database connections
90-
connMaxLifetime: 30 # sets the maximum time for which the connection can be reused, in minutes
91-
92-
93-
94-
# redis settings
95-
redis:
96-
# dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.
97-
dsn: "default:[email protected]:6379/0"
98-
dialTimeout: 10 # connection timeout, unit(second)
99-
readTimeout: 2 # read timeout, unit(second)
100-
writeTimeout: 2 # write timeout, unit(second)
73+
## redis settings
74+
#redis:
75+
# # dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.
76+
# dsn: "default:[email protected]:6379/0"
77+
# dialTimeout: 10 # connection timeout, unit(second)
78+
# readTimeout: 2 # read timeout, unit(second)
79+
# writeTimeout: 2 # write timeout, unit(second)
10180

10281

10382
# jaeger settings

_14_eshop/example-1-multi-repo/order/configs/order.yml

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ kafka:
122122
brokers: ["192.168.3.37:9092"]
123123
groupID: "activity-order-group"
124124
orderTopic: "flash-sale-order"
125+
mode: "producer,consumer"
125126

126127

127128
# jaeger settings

_14_eshop/example-1-multi-repo/stock/configs/stock.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,9 @@ grpc:
4141

4242
# grpc client-side settings, support for setting up multiple grpc clients.
4343
grpcClient:
44-
- name: "dtmservice" # grpc service name, used for service discovery
45-
host: "192.168.3.37" # grpc service address, used for direct connection
46-
port: 36790 # grpc service port
47-
registryDiscoveryType: "" # registration and discovery types: consul, etcd, nacos, if empty, connecting to server using host and port
48-
enableLoadBalance: true
49-
- name: "stock" # grpc service name, used for service discovery
50-
host: "192.168.3.90" # grpc service address, used for direct connection
51-
port: 30382 # grpc service port
44+
- name: "your_grpc_service_name" # grpc service name, used for service discovery
45+
host: "127.0.0.1" # grpc service address, used for direct connection
46+
port: 8282 # grpc service port
5247
registryDiscoveryType: "" # registration and discovery types: consul, etcd, nacos, if empty, connecting to server using host and port
5348
enableLoadBalance: true
5449

_14_eshop/example-2-mono-repo/eshop_gw/configs/eshop_gw.yml

+7-28
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ grpcClient:
5757
enableLoadBalance: true # whether to turn on the load balancer
5858

5959

60-
httpClient:
61-
- name: "flashSale" # grpc service name, used for service discovery
62-
host: "127.0.0.1" # grpc service address, used for direct connection
63-
port: 30680 # grpc service port
64-
registryDiscoveryType: "" # registration and discovery types: consul, etcd, nacos, if empty, connecting to server using host and port
65-
66-
6760
# logger settings
6861
logger:
6962
level: "info" # output log levels debug, info, warn, error, default is debug
@@ -77,27 +70,13 @@ logger:
7770
#isCompression: true # Whether to compress/archive old files (default is false)
7871

7972

80-
# set database configuration. reference-db-config-url
81-
database:
82-
driver: "mysql" # database driver
83-
# mysql settings
84-
mysql:
85-
# dsn format, <username>:<password>@(<hostname>:<port>)/<db>?[k=v& ......]
86-
dsn: "root:123456@(192.168.3.37:3306)/account?parseTime=true&loc=Local&charset=utf8,utf8mb4"
87-
enableLog: true # whether to turn on printing of all logs
88-
maxIdleConns: 10 # set the maximum number of connections in the idle connection pool
89-
maxOpenConns: 100 # set the maximum number of open database connections
90-
connMaxLifetime: 30 # sets the maximum time for which the connection can be reused, in minutes
91-
92-
93-
94-
# redis settings
95-
redis:
96-
# dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.
97-
dsn: "default:[email protected]:6379/0"
98-
dialTimeout: 10 # connection timeout, unit(second)
99-
readTimeout: 2 # read timeout, unit(second)
100-
writeTimeout: 2 # write timeout, unit(second)
73+
## redis settings
74+
#redis:
75+
# # dsn format, [user]:<pass>@127.0.0.1:6379/[db], the default user is default, redis version 6.0 and above only supports user.
76+
# dsn: "default:[email protected]:6379/0"
77+
# dialTimeout: 10 # connection timeout, unit(second)
78+
# readTimeout: 2 # read timeout, unit(second)
79+
# writeTimeout: 2 # write timeout, unit(second)
10180

10281

10382
# jaeger settings

_14_eshop/example-2-mono-repo/order/configs/order.yml

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ kafka:
122122
brokers: ["192.168.3.37:9092"]
123123
groupID: "activity-order-group"
124124
orderTopic: "flash-sale-order"
125+
mode: "producer,consumer"
125126

126127

127128
# jaeger settings
Loading

0 commit comments

Comments
 (0)