--
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.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/bb814336-6c46-4ab5-ac40-51688d0a2a4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi YihaoWe expose the following knobs to configure channel reconnect: INITIAL_BACKOFF, MULTIPLIER, JITTER, MAX_BACKOFF, MIN_CONNECT_TIMEOUT. Most of those can be set via channel args (some , like jitter, have to be hard coded, but a PR to change them to channel args should be trivia).If that does not give you enough control, then you can set wait_for_ready to false (see here), and implement custom reconnect logic there.BEst,Noah
On Fri, Jul 14, 2017 at 11:13 AM, yihao yang <yangyi...@gmail.com> wrote:
https://github.com/grpc/grpc/blob/master/doc/connection-backoff.mdHi,Can any one talk about why using exponential backoff when reconnecting? Seems I cannot costume my own reconnect algorithms outside. I can only recreate a new channel based on some stragety.Thanks,Yihao
--
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.
Hi Yihao
We expose the following knobs to configure channel reconnect: INITIAL_BACKOFF, MULTIPLIER, JITTER, MAX_BACKOFF, MIN_CONNECT_TIMEOUT. Most of those can be set via channel args (some , like jitter, have to be hard coded, but a PR to change them to channel args should be trivia).If that does not give you enough control, then you can set wait_for_ready to false (see here), and implement custom reconnect logic there.BEst,Noah
On Fri, Jul 14, 2017 at 11:13 AM, yihao yang <yangyi...@gmail.com> wrote:
https://github.com/grpc/grpc/blob/master/doc/connection-backoff.mdHi,Can any one talk about why using exponential backoff when reconnecting? Seems I cannot costume my own reconnect algorithms outside. I can only recreate a new channel based on some stragety.Thanks,Yihao
--
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.
If that does not give you enough control, then you can set wait_for_ready to false (see here), and implement custom reconnect logic there.
Hi Yihao
We expose the following knobs to configure channel reconnect: INITIAL_BACKOFF, MULTIPLIER, JITTER, MAX_BACKOFF, MIN_CONNECT_TIMEOUT. Most of those can be set via channel args (some , like jitter, have to be hard coded, but a PR to change them to channel args should be trivia).If that does not give you enough control, then you can set wait_for_ready to false (see here), and implement custom reconnect logic there.BEst,Noah
On Fri, Jul 14, 2017 at 11:13 AM, yihao yang <yangyi...@gmail.com> wrote:
https://github.com/grpc/grpc/blob/master/doc/connection-backoff.mdHi,Can any one talk about why using exponential backoff when reconnecting? Seems I cannot costume my own reconnect algorithms outside. I can only recreate a new channel based on some stragety.Thanks,Yihao
--
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.