@@ -42,13 +42,20 @@ static_resources:
42
42
route :
43
43
auto_host_rewrite : true
44
44
prefix_rewrite : " /ordering-api/"
45
- cluster : ordering
45
+ cluster : ordering
46
46
- name : " o-long"
47
47
match :
48
48
prefix : " /ordering-api/"
49
49
route :
50
50
auto_host_rewrite : true
51
- cluster : ordering
51
+ cluster : ordering
52
+ - name : " h-long"
53
+ match :
54
+ prefix : " /hub/notificationhub"
55
+ route :
56
+ auto_host_rewrite : true
57
+ cluster : signalr-hub
58
+ timeout : 300s
52
59
- name : " b-short"
53
60
match :
54
61
prefix : " /b/"
@@ -61,7 +68,7 @@ static_resources:
61
68
prefix : " /basket-api/"
62
69
route :
63
70
auto_host_rewrite : true
64
- cluster : basket
71
+ cluster : basket
65
72
- name : " agg"
66
73
match :
67
74
prefix : " /"
@@ -70,7 +77,7 @@ static_resources:
70
77
prefix_rewrite : " /"
71
78
cluster : shoppingagg
72
79
http_filters :
73
- - name : envoy.router
80
+ - name : envoy.router
74
81
access_log :
75
82
- name : envoy.file_access_log
76
83
filter :
@@ -80,15 +87,15 @@ static_resources:
80
87
time : " %START_TIME%"
81
88
protocol : " %PROTOCOL%"
82
89
duration : " %DURATION%"
83
- request_method : " %REQ(:METHOD)%"
84
- request_host : " %REQ(HOST)%"
85
- path : " %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
90
+ request_method : " %REQ(:METHOD)%"
91
+ request_host : " %REQ(HOST)%"
92
+ path : " %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%"
86
93
response_flags : " %RESPONSE_FLAGS%"
87
94
route_name : " %ROUTE_NAME%"
88
95
upstream_host : " %UPSTREAM_HOST%"
89
96
upstream_cluster : " %UPSTREAM_CLUSTER%"
90
97
upstream_local_address : " %UPSTREAM_LOCAL_ADDRESS%"
91
- path : " /tmp/access.log"
98
+ path : " /tmp/access.log"
92
99
clusters :
93
100
- name : shoppingagg
94
101
connect_timeout : 0.25s
@@ -113,12 +120,20 @@ static_resources:
113
120
hosts :
114
121
- socket_address :
115
122
address : basket-api
116
- port_value : 80
123
+ port_value : 80
117
124
- name : ordering
118
125
connect_timeout : 0.25s
119
126
type : strict_dns
120
127
lb_policy : round_robin
121
128
hosts :
122
129
- socket_address :
123
130
address : ordering-api
124
- port_value : 80
131
+ port_value : 80
132
+ - name : signalr-hub
133
+ connect_timeout : 0.25s
134
+ type : strict_dns
135
+ lb_policy : round_robin
136
+ hosts :
137
+ - socket_address :
138
+ address : ordering-signalrhub
139
+ port_value : 80
0 commit comments