Commit 06b3204
authored
[Feat][Router] Add configurable timeout_seconds for Kubernetes watchers (vllm-project#654)
* Add --k8s-timeout-seconds argument for Kubernetes watcher streams
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
* Enhance Kubernetes service discovery by adding configurable timeout for watcher streams
- Introduced parameter in and classes to allow dynamic timeout settings.
- Updated relevant methods to utilize the new timeout configuration instead of hard-coded values.
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
* Validate k8s-timeout-seconds argument to ensure it is greater than 0 in the parser. This change enhances error handling for Kubernetes service discovery configurations.
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
* Refactor Kubernetes service discovery timeout parameters to use 'watcher_timeout_seconds' instead of 'timeout_seconds'. Updated related validation and argument parsing to reflect this change, enhancing clarity and configurability for watcher stream timeouts.
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
---------
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>1 parent 8a0cb98 commit 06b3204
3 files changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
191 | 199 | | |
192 | 200 | | |
193 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
| 367 | + | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
| 375 | + | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| |||
566 | 569 | | |
567 | 570 | | |
568 | 571 | | |
569 | | - | |
570 | | - | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
577 | | - | |
| 578 | + | |
578 | 579 | | |
579 | 580 | | |
580 | 581 | | |
| |||
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| 758 | + | |
757 | 759 | | |
758 | 760 | | |
759 | 761 | | |
| |||
782 | 784 | | |
783 | 785 | | |
784 | 786 | | |
| 787 | + | |
785 | 788 | | |
786 | 789 | | |
787 | 790 | | |
788 | 791 | | |
789 | 792 | | |
790 | 793 | | |
791 | 794 | | |
| 795 | + | |
792 | 796 | | |
793 | 797 | | |
794 | 798 | | |
| |||
988 | 992 | | |
989 | 993 | | |
990 | 994 | | |
991 | | - | |
992 | | - | |
993 | 995 | | |
994 | 996 | | |
995 | 997 | | |
996 | 998 | | |
997 | 999 | | |
998 | 1000 | | |
999 | | - | |
| 1001 | + | |
1000 | 1002 | | |
1001 | 1003 | | |
1002 | 1004 | | |
| |||
0 commit comments