Граф коммитов

17 Коммитов

Автор SHA1 Сообщение Дата
Menghan Li 8a6eb0f6e9 grpclb should connect to the second balancer (#1181)
grpclb needs to connect the second resolved balancer address when the first balancer disconnects.
If grpclb gets 2 resolved addresses: balancer1 and balancer2. When balancer1 disconnects, grpclb should automatically start to use balancer2.
2017-04-13 13:41:35 -07:00
dfawley 0c1d39df28 Separate incoming and outgoing metadata in context
This will prevent the incoming RPCs' metadata from appearing in outgoing RPCs
unless it is explicitly copied, e.g.:

incomingMD, ok := metadata.FromContext(ctx)
if ok {
  ctx = metadata.NewContext(ctx, incomingMD)
}

Fixes #1148
2017-04-07 11:54:56 -07:00
Menghan Li 7fc29d0caa populate initReq target name and fix IP []byte type in grpclb (#1145) 2017-03-28 12:10:54 -07:00
Menghan Li b3cc2b5eca pick a random address if the current in use is deleted by resolver (#1135) 2017-03-28 11:13:46 -07:00
dfawley c5a5dbc500 Don't return an error from dial if the balancer returns no initial servers (#1112)
This modifies the WithBlock behavior somewhat to block until there is at least
one valid connection.  Previously, each connection would be made serially until
all had completed successfully, with any errors returned to the caller.  Errors
are now only returned due to connecting to a backend if a balancer is not used,
or if there is an error starting the balancer itself.

Fixes #976
2017-03-21 11:35:53 -07:00
Qi Zhao 8551858757 Grpclb: Support server list expiration (#962)
grpclb: Support server list expiration
2016-11-16 15:26:18 -08:00
Mahak Mukhi 883bfc7bc8 pb.go file update 2016-10-28 12:37:56 -07:00
Mak Mukhi 727a60e4d1 update server reflection code to comply with the change to the grpc generator 2016-10-21 18:06:55 -07:00
iamqizhao 2d5f9a12ea grpclb: Support DropRequest 2016-10-18 18:08:32 -07:00
iamqizhao 8930da46d0 grpclb: work with LoadBalanceToken 2016-10-13 16:54:33 -07:00
iamqizhao d8c69bd859 fix a testing.T issue 2016-10-07 16:57:44 -07:00
iamqizhao 474679aec4 grpclb: override credentials server name using the metadata in name resolution 2016-10-07 14:08:42 -07:00
iamqizhao e77c5bbb41 address the comments 2016-09-21 17:54:48 -07:00
iamqizhao 3f1de24002 fix some closing issues 2016-09-20 18:53:56 -07:00
iamqizhao 766825a8b4 fix some other issues 2016-09-20 15:56:24 -07:00
iamqizhao ac49e6fc55 some minor fixes 2016-09-19 19:22:02 -07:00
iamqizhao f02984b7c6 Basic support of grpclb 2016-09-19 15:11:57 -07:00