Commit c0f8b56
authored
[server] Support parallel shutdown workflow for Venice Server (#2247)
Speed up SIT shutdown by performing parallel unsubscribe and sync offset
SIT today unsubscribes and syncs offset for each partition sequentially. For
hosts with a large number of partitions, this process is slow and may take
more than one minute. SIT executor graceful shutdown timeout is one minute,
and after that, it will force close and set an Interrupt exception. This
cancels all remaining graceful shutdown tasks for the remaining partitions.
After some offline discussion, this PR improves the behavior by implementing
parallel shutdown for all partitions, similar to Da Vinci today. This is still
best effort, and we keep the timeout in place since we don't want slowness
to block the entire server shutdown process. If certain steps are slow, we
should continue investigating them.
Introduce a new config
"server.ingestion.checkpoint.during.graceful.shutdown.enabled" to control
this behavior in the Server. By default, it is false (same as now). It will
be rolled out gradually everywhere, as there should not be any side effect.1 parent 3f8d61e commit c0f8b56
File tree
5 files changed
+119
-41
lines changed- clients/da-vinci-client/src
- main/java/com/linkedin/davinci
- config
- kafka/consumer
- test/java/com/linkedin/davinci/kafka/consumer
- internal/venice-common/src/main/java/com/linkedin/venice
5 files changed
+119
-41
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
| 671 | + | |
| 672 | + | |
670 | 673 | | |
671 | 674 | | |
672 | 675 | | |
| |||
1133 | 1136 | | |
1134 | 1137 | | |
1135 | 1138 | | |
| 1139 | + | |
| 1140 | + | |
1136 | 1141 | | |
1137 | 1142 | | |
1138 | 1143 | | |
| |||
2043 | 2048 | | |
2044 | 2049 | | |
2045 | 2050 | | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
2046 | 2055 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1386 | 1386 | | |
1387 | 1387 | | |
1388 | 1388 | | |
1389 | | - | |
| 1389 | + | |
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
| |||
Lines changed: 49 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
1716 | | - | |
| 1716 | + | |
| 1717 | + | |
1717 | 1718 | | |
1718 | | - | |
1719 | | - | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1720 | 1722 | | |
1721 | | - | |
1722 | 1723 | | |
1723 | 1724 | | |
1724 | 1725 | | |
| |||
1732 | 1733 | | |
1733 | 1734 | | |
1734 | 1735 | | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
1739 | | - | |
1740 | | - | |
1741 | | - | |
1742 | | - | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
| 1736 | + | |
1761 | 1737 | | |
1762 | | - | |
| 1738 | + | |
1763 | 1739 | | |
1764 | | - | |
| 1740 | + | |
1765 | 1741 | | |
1766 | 1742 | | |
1767 | 1743 | | |
| |||
1817 | 1793 | | |
1818 | 1794 | | |
1819 | 1795 | | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
1820 | 1821 | | |
1821 | 1822 | | |
1822 | 1823 | | |
| |||
1858 | 1859 | | |
1859 | 1860 | | |
1860 | 1861 | | |
1861 | | - | |
| 1862 | + | |
1862 | 1863 | | |
1863 | 1864 | | |
1864 | 1865 | | |
| |||
1868 | 1869 | | |
1869 | 1870 | | |
1870 | 1871 | | |
1871 | | - | |
| 1872 | + | |
1872 | 1873 | | |
1873 | 1874 | | |
1874 | 1875 | | |
| |||
2760 | 2761 | | |
2761 | 2762 | | |
2762 | 2763 | | |
2763 | | - | |
2764 | 2764 | | |
2765 | 2765 | | |
2766 | | - | |
| 2766 | + | |
2767 | 2767 | | |
2768 | 2768 | | |
2769 | 2769 | | |
| |||
3723 | 3723 | | |
3724 | 3724 | | |
3725 | 3725 | | |
3726 | | - | |
3727 | | - | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
3728 | 3733 | | |
3729 | 3734 | | |
3730 | 3735 | | |
| |||
4555 | 4560 | | |
4556 | 4561 | | |
4557 | 4562 | | |
4558 | | - | |
| 4563 | + | |
4559 | 4564 | | |
4560 | 4565 | | |
4561 | | - | |
| 4566 | + | |
4562 | 4567 | | |
4563 | 4568 | | |
4564 | 4569 | | |
| |||
5098 | 5103 | | |
5099 | 5104 | | |
5100 | 5105 | | |
| 5106 | + | |
| 5107 | + | |
| 5108 | + | |
| 5109 | + | |
5101 | 5110 | | |
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
6267 | 6268 | | |
6268 | 6269 | | |
6269 | 6270 | | |
| 6271 | + | |
| 6272 | + | |
| 6273 | + | |
| 6274 | + | |
| 6275 | + | |
| 6276 | + | |
| 6277 | + | |
| 6278 | + | |
| 6279 | + | |
| 6280 | + | |
| 6281 | + | |
| 6282 | + | |
| 6283 | + | |
| 6284 | + | |
| 6285 | + | |
| 6286 | + | |
| 6287 | + | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
| 6300 | + | |
| 6301 | + | |
| 6302 | + | |
| 6303 | + | |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
| 6307 | + | |
| 6308 | + | |
| 6309 | + | |
| 6310 | + | |
| 6311 | + | |
| 6312 | + | |
| 6313 | + | |
| 6314 | + | |
| 6315 | + | |
| 6316 | + | |
| 6317 | + | |
| 6318 | + | |
| 6319 | + | |
| 6320 | + | |
| 6321 | + | |
| 6322 | + | |
| 6323 | + | |
| 6324 | + | |
6270 | 6325 | | |
6271 | 6326 | | |
6272 | 6327 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1051 | 1056 | | |
1052 | 1057 | | |
1053 | 1058 | | |
| |||
0 commit comments