question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Graceful shutdown unresponsive to shutdownGraceMs setting

See original GitHub issue

Filing a Linkerd issue

Issue Type:

  • Bug report

What happened: I was testing linker-to-linker architecture. Sent a sequence of non-stop requests to an endpoint behind a Linkerd proxy and restarted the proxy without stoping the requests. I witnessed that no matter the load, Linkerd get killed in about 2 seconds. I’ve searched after a setting for this period of time before termination, maybe explicitly configuring a larger interval. I’ve configured my admin block in the configuration file with shutdownGraceMs: 10000 but still - Linkerd is terminated after 2 seconds.

What you expected to happen: A) A more cohesive graceful shutdown, closing sockets/connections, draining the queue of requests until none is there and then terminating. B) Linkerd task would be terminated after the period of time configured in the admin block.

How to reproduce it (as minimally and precisely as possible):

---
admin:
  ip: 0.0.0.0
  port: 4447
  shutdownGraceMs: 10000

Then see exact time of SIGTERM and exit in stderr:

I 0329 08:14:48.002 UTC THREAD29 TraceId:b229fc3755c0e29f: [/admin/shutdown] from <TASK_IP> quitting
I0329 08:14:49.415153 18340 health_checker.cpp:165] Health checking stopped
W0329 08:14:49.415153 18337 logging.cpp:91] RAW: Received signal SIGTERM from process 5704 of user 0; exiting

Anything else we need to know?: I think that maybe this issue is caused by the graceful shutdown issue.

Environment:

  • linkerd/namerd version, config files: the only relevant config is in the admin block
  • Platform, version, and config files (Kubernetes, DC/OS, etc): DC/OS
  • Cloud provider or hardware configuration: AWS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
wmorgancommented, Apr 24, 2018

Great debugging, @jacob-go! At a minimum, we should add this to our DC/OS docs and examples.

0reactions
adleongcommented, May 23, 2018

Fixed by #1951

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extending the shutdown timeout setting to ensure graceful ...
In this post I describe a problem where you get an exception when shutting down an app that used IHostedService, when the service...
Read more >
Graceful shutdown not working in Spring Boot App
A logging property deep inside the legacy code was overriding the outer log level. The shutdown works just fine.
Read more >
Shutdown server gracefully - Dell OpenManage Essentials
Hi, Can someone pls let me know how to run the command line interface in OME so that a server can be shutdown...
Read more >
Graceful Shutdown not working anymore - .NET Core
It looks like this callback does not work anymore. I have the following in my Startup.cs file: public void Configure(IApplicationBuilder app, ...
Read more >
Gracefully/soft shutdown of Windows server 2012 R2
If I disable (set to 0) the Windows power setting “Display Turn off Display: to Never” then the Graceful shutdown works fine.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found