Revert "[Feature] Simple Improve Health Check Mechanism for Production-Grade Stability" (#8181)

This commit is contained in:
Lianmin Zheng
2025-07-19 22:41:30 -07:00
committed by GitHub
parent a589a07167
commit 55381a46ac
6 changed files with 11 additions and 82 deletions

View File

@@ -65,7 +65,6 @@ from sglang.srt.server_args import PortArgs, ServerArgs
from sglang.srt.torch_memory_saver_adapter import TorchMemorySaverAdapter
from sglang.srt.utils import (
MultiprocessingSerializer,
ServerStatus,
assert_pkg_version,
configure_logger,
get_zmq_socket,
@@ -74,7 +73,6 @@ from sglang.srt.utils import (
launch_dummy_health_check_server,
maybe_set_triton_cache_manager,
prepare_model_and_tokenizer,
report_health,
set_prometheus_multiproc_dir,
set_ulimit,
)
@@ -663,7 +661,6 @@ def _set_envs_and_config(server_args: ServerArgs):
def sigchld_handler(signum, frame):
pid, exitcode = os.waitpid(0, os.WNOHANG)
if exitcode != 0:
report_health(ServerStatus.Crashed, server_args.host, server_args.port)
logger.warning(
f"Child process unexpectedly failed with {exitcode=}. {pid=}"
)
@@ -677,7 +674,6 @@ def _set_envs_and_config(server_args: ServerArgs):
logger.error(
"Received sigquit from a child process. It usually means the child failed."
)
report_health(ServerStatus.Crashed, server_args.host, server_args.port)
kill_process_tree(os.getpid())
signal.signal(signal.SIGQUIT, sigquit_handler)