Kevin Wan

Results 313 comments of Kevin Wan
trafficstars

Show the main function, and how to you kill the app?

ctrl-c is not going to happy in service. Use `kill` to trigger graceful shutdown.

What behaviors do you expect on graceful shutdown? It serves all the ongoing requests and exit? Do you have ongoing requests?

That's not graceful shutdown. If your program stuck, how to stop it? Graceful shutdown means finishing ongoing requests, not accepting new requests, then quit.

There is a method `SetTimeToForceQuit`, but if too long, rolling update will take too much time.

We have load balancer to actively detect the server status by requests. Any benefits to have this kind of client side health check?

Any scenario to set it?

Why to set these parameters? Got any connection problem?

I think you might use https://github.com/kevwan/tproxy to check if any connection problem. Or please describe more on your specific scenarios.

The scenarios on using singleflight are with IO operations, performance is not a problem here.