6a016cbd86
discovery: support structured logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-26 14:36:18 -07:00
0e65660548
*: revert "internal/discovery" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
432581c7d0
*: move "discovery" to "internal/discovery"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-25 15:41:17 -08:00
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-07 13:39:42 -07:00
eb9a01258e
discovery: add upper limit for waiting on a retry
...
Adding upper limit ensures that expoential backoff doesn't reach more than 5 min on a re-try.
FIX #6648
2016-10-13 20:14:41 -07:00
ea0eab84a4
discovery: Uniform code style
2016-06-30 22:00:01 +08:00
bbb84ff709
discovery: use pkg/transport to create http transport
2016-06-24 21:04:39 -07:00
ef44f71da9
*: update LICENSE header
2016-05-12 20:51:48 -07:00
bd832e5b0a
*: migrate Godeps to vendor/
2016-03-22 17:10:28 -07:00
81229dbea9
*: add missing package descriptions
...
This adds and updates package descriptions in etcd projects.
And also deletes some duplicate LICENSE statements.
2015-11-17 20:54:10 -08:00
a47e661fff
discovery: print out detailed cluster error
2015-07-29 23:06:57 +08:00
5fa8652241
client: return cluster error if the etcd cluster is not avaliable
...
Add a new ClusterError type. It contians all encountered errors and
return ClusterNotAvailable as the error string.
2015-07-29 22:55:15 +08:00
d9c27138fa
discovery: return bad discovery endpoint error
2015-07-21 12:53:21 -07:00
dc3f7f5d90
*: detect duplicate name for discovery bootstrap
2015-07-21 12:53:20 -07:00
1db176151b
discovery: remove ResponseHeaderTimeout when discovery
...
The discovery service doesn't return HTTP header early when watch
starts. This may trigger ResponseHeaderTimeout and cause the watch
request failed.
The fix on discovery service may take some time. Remove the
ResponseHeaderTimeout first so it behaves as before.
2015-07-14 16:33:28 -07:00
1381b44adf
discovery: add timeouts for discovery client
2015-06-19 16:50:44 -07:00
e71dc2e565
discovery: fixup logline
...
before:
```
discovery: duringcluster status checkconnection tohttps://discovery.etcd.iotimed out, retrying in2s
```
after:
```
discovery: cluster status check: connection to https://discovery.etcd.io timed out, retrying in 2s
```
2015-06-19 13:19:09 -04:00
2c5ab7ff8b
discovery: fix infoln -> info
2015-06-11 14:22:14 -07:00
8ad7ed321e
*:godep log pkg
2015-06-11 14:22:14 -07:00
2db8b53c4b
discovery: use leveled log
2015-06-11 14:22:14 -07:00
e9931fb8b1
discovery: do not return error from etcd
...
We used to return `key not found` directly to the
user due to a bug. We fixed the bug and added a test
case in this commit.
2015-05-11 10:49:57 -07:00
cd85451971
client: clarify relationship of AfterIndex and waitIndex
2015-02-28 10:45:20 -08:00
b174732812
client: introduce Error type
2015-02-28 10:38:47 -08:00
1c03df62a5
client: WaitIndex -> AfterIndex
2015-02-28 10:38:46 -08:00
84ede6fbec
client: use options struct for KeysAPI.Get
2015-02-28 10:22:52 -08:00
88cea415a7
client: NewDiscoveryKeysAPI -> NewKeysAPIWithPrefix
2015-02-28 10:22:51 -08:00
3d4e1f59dc
client: drop unnecessary Nodes type
2015-02-28 10:22:51 -08:00
3b41b77cd7
client: ClientConfig -> Config
2015-02-28 10:22:51 -08:00
74fe28c5e0
client: exchange ClientConfig for SyncableHTTPClient
2015-02-28 10:22:50 -08:00
3d53e9bfaa
client: pass around options as pointers
2015-02-28 10:22:50 -08:00
01fc01ec69
client: KeysAPI.[R]Watch -> Watcher w/ opts struct
2015-02-28 10:19:04 -08:00
6d89e6217d
client: rename KeysAPI.RecursiveWatch to RWatch
2015-02-28 10:14:25 -08:00
c6d955f4c1
client: drive Create with setAction; drop TTL
2015-02-28 10:12:35 -08:00
f1ed69e883
*: switch to line comments for copyright
...
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
f265afa8ac
discovery: fix watch index
2014-12-13 11:15:24 -08:00
d9b21c79d4
etcdmain: better logging for discovery error
2014-12-11 16:03:27 -08:00
7171410422
discovery: discovery will try forever when there is a timeout.
...
Perviously, etcd retries three times for timeout error. After this
commit, etcd retries forever. Also this commit make etcd client
aware of gateway timetout.
2014-12-10 23:08:24 -08:00
9a728a127a
dep: bump golang.org/x/net/context
...
Move from code.google.com/p/go.net/context to
golang.org/x/net/context before bumping to latest.
2014-11-20 10:19:12 -08:00
8f1885a398
discovery: add command line flag for discovery-proxy
2014-11-06 16:35:24 -08:00
68bca981de
discovery: simplify interface
...
There's no real need to expose a Discoverer interface/struct when the
only use of the interface (and indeed the module) is to invoke a single
function. This isn't Java, after all. So instead, simplify to Discovery
exposing just two functions: JoinCluster (i.e. what was formerly called
"discovery"), and GetCluster (hitherto "ProxyDiscovery")
2014-11-05 22:45:01 -08:00
bb84aaebaf
discovery: add clarifying docstrings
2014-11-04 17:02:33 -08:00
71acd0c3d0
discovery: consolidate proxyDiscover and Discover interface
2014-11-04 16:38:05 -08:00
5cb13fd071
*: support discovery fallback
2014-11-04 14:30:22 -08:00
17c6f21d68
client: elevate context to caller of KeysAPI
2014-10-31 17:27:43 -07:00
0ef270c25c
client: pass httpActionDo into New[Discovery]KeysAPI
2014-10-31 17:25:05 -07:00
8b8b3efdaa
client: accept slice of endpoints
2014-10-31 12:21:15 -07:00
55c92ad456
*: create ID type
...
This creates a simple ID type (wrapped around uint64) to provide for
standard serialization/deserialization to a string (i.e. base 16
encoded). This replaces strutil so now that package is removed.
2014-10-31 10:34:07 -07:00
027e944985
discovery: fix discovery for not working on customized discovery service
2014-10-29 18:30:59 -07:00
f21d93ba60
client: define DefaultRequestTimeout
2014-10-24 13:28:04 -07:00
45d8fbdcda
client: move discovery path logic into client pkg
2014-10-24 13:28:04 -07:00