graceful shutdown of a grpc service

1,051 views
Skip to first unread message

Ashish Nigam

unread,
Feb 11, 2016, 2:15:17 PM2/11/16
to grpc.io
Hi,
Is there a way to gracefully stop grpc server? For example, when stop is issued, server stops taking any new requests and waits for pre-defined time before it shuts down completely.

Thanks
Ashish

Nathaniel Manista

unread,
Feb 11, 2016, 2:20:23 PM2/11/16
to Ashish Nigam, grpc.io
On Thu, Feb 11, 2016 at 11:15 AM, Ashish Nigam <ashnig...@gmail.com> wrote:
Is there a way to gracefully stop grpc server?

Yes, but the way varies by programming language.

For example, when stop is issued, server stops taking any new requests and waits for pre-defined time before it shuts down completely.

In what programming language are you implementing your server?
-Nathaniel

Ashish Nigam

unread,
Feb 11, 2016, 2:38:42 PM2/11/16
to grpc.io, ashnig...@gmail.com
I am implementing it in Go.

Thanks

Qi Zhao

unread,
Feb 11, 2016, 3:11:25 PM2/11/16
to Ashish Nigam, grpc.io
It is on my radar (https://github.com/grpc/grpc-go/issues/147) but has not been implemented. I hope to get it done soon.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/a9fbb723-f901-4e19-b8c4-1e37b18483e8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
-Qi

Ashish Nigam

unread,
Feb 14, 2016, 1:06:00 PM2/14/16
to Qi Zhao, grpc.io
Thanks Zhao.
Any idea when it will be implemented and released?



On Thu, Feb 11, 2016 at 12:11 PM, Qi Zhao <zh...@google.com> wrote:
It is on my radar (https://github.com/grpc/grpc-go/issues/147) but has not been implemented. I hope to get it done soon.
On Thu, Feb 11, 2016 at 11:38 AM, Ashish Nigam <ashnig...@gmail.com> wrote:
I am implementing it in Go.

Thanks

On Thursday, February 11, 2016 at 11:20:23 AM UTC-8, Nathaniel Manista wrote:
On Thu, Feb 11, 2016 at 11:15 AM, Ashish Nigam <ashnig...@gmail.com> wrote:
Is there a way to gracefully stop grpc server?

Yes, but the way varies by programming language.

For example, when stop is issued, server stops taking any new requests and waits for pre-defined time before it shuts down completely.

In what programming language are you implementing your server?
-Nathaniel

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.



--
Thanks,
-Qi

Reply all
Reply to author
Forward
0 new messages