kyuubi/docs
Cheng Pan 4390cc6fa4
[KYUUBI #6058] Make Jetty server stop timeout configurable
# 🔍 Description
## Issue References 🔗

This pull request aims to make the Jetty server stop timeout configurable.

The RESTful frontend protocol has been enabled by default since 1.8.0, while a side-effect is observed, the process shutdown is always blocked by the Jetty server until reaches the default 30s timeout.

## Describe Your Solution 🔧

Two configurations are introduced in this PR
```
kyuubi.frontend.trino.jetty.stopTimeout=5s
kyuubi.frontend.rest.jetty.stopTimeout=5s
```
while the 5s is chosen as the default value according to https://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-server/src/main/config/etc/jetty.xml?h=jetty-9.3.x#n124

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

1. perform `bin/kyuubi run`
2. press `ctrl + c` to shutdown the Kyuubi process

#### Behavior Without This Pull Request ⚰️

takes ~30s to complete the shutdown progress.

#### Behavior With This Pull Request 🎉

takes ~5s to complete the shutdown progress.

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6058 from pan3793/jetty-timeout.

Closes #6058

47d15f9aa [Cheng Pan] fix
cbac2b13e [Cheng Pan] Make Jetty server stop timeout configurable

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2024-02-17 00:38:44 +08:00
..
_static/css Revert "[KYUUBI #5908] [DOCS] Remove workaround for malformed table" 2023-12-24 01:53:05 +08:00
appendix [KYUUBI #4655] [DOCS] Enrich docs for Kyuubi Hive JDBC driver 2023-04-03 18:51:27 +08:00
client [KYUUBI #6000] Modify the incorrect configuration file in the trino-cli documentation 2024-01-19 19:27:05 +08:00
community [KYUUBI #5273] Update release docs 2023-09-12 10:49:59 +08:00
configuration [KYUUBI #6058] Make Jetty server stop timeout configurable 2024-02-17 00:38:44 +08:00
connector [KYUUBI #5819] [DOCS] Fix rst syntax of missing blank line after code-block 2023-12-05 21:56:24 +08:00
contributing [KYUUBI #4279] Use new Apache 'closer.lua' syntax for kyuubi-download to obtain engine 2024-01-24 12:46:53 +08:00
deployment [KYUUBI #6010] Improve Gluten usage documentation 2024-01-24 11:47:32 +08:00
extensions [KYUUBI #5951] [DOC] Improve doc for Session Conf Advisor 2024-01-09 09:49:03 +08:00
imgs [KYUUBI #5914] Update layer diagram on welcome page 2023-12-25 16:13:48 +08:00
monitor [KYUUBI #5365] Don't use Log4j2's extended throwable conversion pattern in default logging configurations 2023-10-11 21:41:22 +08:00
overview [KYUUBI #4624] [Docs] Fix table headers in kyuubi_vs_hive.md 2023-03-28 16:40:35 +08:00
quick_start [KYUUBI #5975] Bump trino-client 411 2024-01-15 22:25:41 +08:00
security [KYUUBI #5427] [AUTHZ] Shade spark authz plugin 2023-10-20 20:10:34 +08:00
tools [KYUUBI #5941] Drop Kubernetes Block Cleaner Tool from Kyuubi 2024-01-04 15:58:10 +08:00
conf.py Revert "[KYUUBI #5908] [DOCS] Remove workaround for malformed table" 2023-12-24 01:53:05 +08:00
index.rst [KYUUBI #5893] [DOC] Update logos in layer picture on welcome page 2023-12-22 10:47:00 +08:00
make.bat [KYUUBI #4235] [DOCS] Prefer https:// URLs in docs 2023-02-03 14:01:11 +08:00
Makefile [KYUUBI #874] [ASF] ASF Publish 2021-08-16 11:48:21 +08:00
requirements.txt [KYUUBI #5902] Bump doc build dependencies 2023-12-21 18:37:43 -08:00