Commit 429f325
committed
refactor(opensearchtransport)!: drop IncludeDedicatedClusterManagers, exclude DCMs from routing unconditionally
BREAKING CHANGE: remove the IncludeDedicatedClusterManagers config flag from
opensearch.Config and opensearchtransport.Config.
v5 no longer offers an opt-in for routing to dedicated cluster managers. They are
kept in the connection inventory (allConns) for discovery reuse and eviction, but
never selected for request traffic. A connection is skipped during selection when
it is a dedicated cluster manager unless it is a user-supplied seed, so discovery
still bootstraps against a dedicated-cluster-manager seed via the seed-fallback
pool. This replaces the flag-gated excludeDCM pool field with an intrinsic
conn.seed check, removing the per-pool bool and the policyConfig plumbing.
RoundRobinPolicy now excludes dedicated cluster managers from its DiscoveryUpdate
add path unconditionally.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>1 parent ca4569f commit 429f325
12 files changed
Lines changed: 179 additions & 131 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
Lines changed: 9 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
448 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
449 | 450 | | |
450 | | - | |
451 | | - | |
452 | | - | |
| 451 | + | |
| 452 | + | |
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 461 | + | |
473 | 462 | | |
474 | 463 | | |
475 | 464 | | |
| |||
479 | 468 | | |
480 | 469 | | |
481 | 470 | | |
482 | | - | |
483 | | - | |
| 471 | + | |
484 | 472 | | |
485 | 473 | | |
486 | 474 | | |
| |||
497 | 485 | | |
498 | 486 | | |
499 | 487 | | |
500 | | - | |
501 | | - | |
502 | | - | |
| 488 | + | |
| 489 | + | |
503 | 490 | | |
504 | 491 | | |
505 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1177 | 1177 | | |
1178 | 1178 | | |
1179 | 1179 | | |
1180 | | - | |
1181 | | - | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
1182 | 1183 | | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
| 1184 | + | |
| 1185 | + | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
| 1196 | + | |
1208 | 1197 | | |
1209 | 1198 | | |
1210 | 1199 | | |
| |||
1214 | 1203 | | |
1215 | 1204 | | |
1216 | 1205 | | |
1217 | | - | |
1218 | | - | |
| 1206 | + | |
1219 | 1207 | | |
1220 | 1208 | | |
1221 | 1209 | | |
| |||
1314 | 1302 | | |
1315 | 1303 | | |
1316 | 1304 | | |
1317 | | - | |
1318 | | - | |
| 1305 | + | |
1319 | 1306 | | |
1320 | 1307 | | |
1321 | 1308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | 202 | | |
210 | 203 | | |
211 | 204 | | |
| |||
470 | 463 | | |
471 | 464 | | |
472 | 465 | | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
478 | 470 | | |
479 | 471 | | |
480 | 472 | | |
| |||
955 | 947 | | |
956 | 948 | | |
957 | 949 | | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
963 | 954 | | |
964 | 955 | | |
965 | 956 | | |
| |||
1179 | 1170 | | |
1180 | 1171 | | |
1181 | 1172 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1198 | 1188 | | |
1199 | 1189 | | |
1200 | 1190 | | |
| |||
2726 | 2716 | | |
2727 | 2717 | | |
2728 | 2718 | | |
2729 | | - | |
2730 | 2719 | | |
2731 | 2720 | | |
2732 | 2721 | | |
| |||
0 commit comments