Anthony Romano
d073512def
Merge pull request #6849 from heyitsanthony/proxy-fix-watch-create
...
grpcproxy: don't send extra watch create events
2016-11-14 12:13:40 -08:00
Anthony Romano
90ea3fbadc
grpcproxy: do not resend create event after leader loss
...
Only set CreateNotify if no watch responses have been received.
2016-11-14 10:43:06 -08:00
Anthony Romano
e40da39143
grpcproxy: only coalesce watchers that have received create response
...
Current watchers may have nextrev=0; check response count instead.
2016-11-14 09:19:02 -08:00
Anthony Romano
a2e86c1371
Merge pull request #6842 from heyitsanthony/watch-prevkv
...
grpcproxy: support prevKV watcher
2016-11-11 16:32:51 -08:00
Gyu-Ho Lee
45bba11f12
Merge pull request #6844 from gyuho/grafana
...
op-guide: add screenshot to sample Grafana dashboard
2016-11-11 16:30:02 -08:00
Gyu-Ho Lee
625366875d
op-guide: add screenshot to sample Grafana dashboard
2016-11-11 16:21:15 -08:00
Gyu-Ho Lee
70fd684843
Merge pull request #6843 from gyuho/docs
...
Documentation/op-guide: add 'monitoring' guide
2016-11-11 16:08:32 -08:00
Gyu-Ho Lee
6d83590434
Documentation/op-guide: add 'monitoring' guide
2016-11-11 15:22:07 -08:00
Anthony Romano
6604306398
grpcproxy: support prevKV watcher
...
Makes all server watchers PrevKV, discards if client watcher is not PrevKV.
2016-11-11 14:22:06 -08:00
Xiang Li
3c97e7a475
Merge pull request #6800 from sinsharat/add_benchmark_watch_latency
...
benchmark: added watch-latency
2016-11-11 12:41:26 -08:00
sharat
e5b6324771
benchmark: added watch-latency
2016-11-12 01:08:35 +05:30
Anthony Romano
b4726a9501
Merge pull request #6822 from heyitsanthony/watch-bcast
...
grpcproxy: rework watcher organization
2016-11-11 10:50:27 -08:00
Gyu-Ho Lee
5af4de0930
Merge pull request #6840 from gyuho/vendor
...
*: clean up vendor
2016-11-11 10:15:18 -08:00
Anthony Romano
395cf7de51
grpcproxy: reject invalid watch ranges
2016-11-11 10:14:35 -08:00
Anthony Romano
ec459c2185
grpcproxy: rework watcher organization
...
The single watcher / group watcher distinction limited and
complicated watcher coalescing more than necessary. Reworked:
Each server watcher is represented by a WatchBroadcast, each
client "Watcher" attaches to some WatchBroadcast. WatchBroadcasts
hold all WatchBroadcast instances for a range. WatchRanges holds
all WatchBroadcasts for the proxy.
WatchProxyStreams represent a grpc watch stream between the proxy and
a client. When a client requests a new watcher through its grpc stream,
the ProxyStream will allocate a Watcher and WatchRanges assigns it to
some WatchBroadcast based on its range.
Coalescing is done by WatchBroadcasts when it receives an update
notification from a WatchBroadcast.
Supports leader failure detection so watches on a bad member
can migrate to other members. Coincidentally, Fixes #6303 .
2016-11-11 10:14:35 -08:00
Xiang Li
4d5a12a248
Merge pull request #6839 from xiang90/ctl_v
...
etcdctl: etcdctl v3 should print out its API version
2016-11-11 10:00:14 -08:00
Xiang Li
4b417da1be
Merge pull request #6837 from purpleidea/feat/consturls
...
embed: Make immutable defaults constant
2016-11-11 09:53:55 -08:00
Gyu-Ho Lee
38ce362629
vendor: clean up, remove unnecessary deps
2016-11-11 09:51:07 -08:00
Gyu-Ho Lee
1f7e88d851
glide: rerun updatedep.sh to clean up
2016-11-11 09:50:46 -08:00
Xiang Li
1ef243e436
etcdctl: etcdctl v3 should print out its API version
2016-11-11 09:33:20 -08:00
James Shubin
745cd730a7
embed: Make immutable defaults constant
...
This changes the two immutable defaults into constants which allows
packages embedding etcd to import them as const! If they are variables,
then you'll fail with "const initializer foo is not a constant".
2016-11-11 07:34:45 -05:00
Gyu-Ho Lee
952eb4fade
Merge pull request #6833 from gyuho/news
...
NEWS: update with v3.0.15
2016-11-10 13:34:16 -08:00
Gyu-Ho Lee
7c0035637d
NEWS: update with v3.0.15
2016-11-10 13:29:07 -08:00
Gyu-Ho Lee
ef024049df
Merge pull request #6832 from gyuho/vendor
...
*: update all grpc-related dependencies
2016-11-10 13:28:07 -08:00
Gyu-Ho Lee
b8b72f80f9
*: revendor, update proto files
2016-11-10 12:02:00 -08:00
Gyu-Ho Lee
baa4e4ee56
scripts/genproto: update gogo/protobuf, grpc-gateway
2016-11-10 12:02:00 -08:00
Gyu-Ho Lee
8631f47568
glide: update all grpc-related dependencies
2016-11-10 12:01:45 -08:00
Xiang Li
0a8e28524b
Merge pull request #6779 from xiang90/watch_clean
...
etcd-runner: clean up watcher runner
2016-11-10 09:59:08 -08:00
Xiang Li
0b78ef8de1
Merge pull request #6831 from xiang90/grpc_proxy_doc
...
doc: add gRPC proxy start doc
2016-11-10 09:34:38 -08:00
Xiang Li
b16c93a885
doc: add gRPC proxy start doc
2016-11-10 09:20:13 -08:00
Xiang Li
523a859ad9
etcd-runner: clean up watcher runner
2016-11-10 08:56:19 -08:00
Gyu-Ho Lee
1a25b2ff3e
Merge pull request #6781 from gyuho/vendor
...
scripts/updatedep: work around 'testify/assert', remove 'etcd-top'
2016-11-09 16:17:27 -08:00
Gyu-Ho Lee
55d25f6f4d
tools: remove 'etcd-top'
...
Travis CI breaks because of cgo dependencies on 'etcd-top'.
This can leave outside of project.
2016-11-09 15:59:47 -08:00
Gyu-Ho Lee
5b8300f08b
store: type-assert int64 for assert tests
2016-11-09 15:59:47 -08:00
Gyu-Ho Lee
859ac6dfd8
vendor: rerun 'updatedep.sh' script, clean up
2016-11-09 15:59:47 -08:00
Gyu-Ho Lee
0f68810505
glide: remove legacy packages from godep
...
And remove all legacy packages in glide.yaml on sub-dependency.
They were added when we migrated from godep. glide will handle
it automatically with glide.lock file.
2016-11-09 15:59:47 -08:00
Gyu-Ho Lee
4cf5b76d18
scripts/updatedep: work around 'testify/assert'
...
'glide vc --no-tests' flag removes 'testify/assert' deps
in v2 client. Until we deprecate v2 tests, just copy the
necessary files as workaround.
And remove '--skip-tests' flags in case we add dependencies
in test files.
2016-11-09 15:59:34 -08:00
fanmin shi
ab6b175a2a
Merge pull request #6828 from fanminshi/add_not_equal_to_compare
...
etcdserver, clientv3: add "!=" to txn
2016-11-09 15:27:08 -08:00
fanmin shi
c2fd42b556
etcdserver, clientv3: add "!=" to txn
...
adding != to compare is a requested functionality from a etcd user
FIX #6719
2016-11-09 14:28:36 -08:00
Anthony Romano
4a1e89150b
Merge pull request #6827 from heyitsanthony/proxy-txn-invalidate
...
grpcproxy: update cache based on txn response
2016-11-09 13:16:48 -08:00
Xiang Li
3ed63af51a
Merge pull request #6826 from feisan/dev-kvkv
...
clientv3/naming: support OpOption when adding an endpoint
2016-11-09 13:03:56 -08:00
Anthony Romano
a4dcceb8aa
grpcproxy: update cache based on txn response
...
Fixes more hangs in TestSTMConflict.
2016-11-09 12:11:38 -08:00
Kelvin Liang
c20d31adc5
clientv3/naming: support OpOption when adding an endpoint
...
if we want to add an endpoint with lease, we need this option.
for example:
resp, err := cli.Grant(context.TODO(), 5)
if err != nil {
log.Fatal(err)
}
err = r.Update(context.TODO(), serviceName, naming.Update{Op:naming.Add, Addr: exposedAddr}, clientv3.WithLease(resp.ID))
if err != nil {
log.Fatalf(err)
}
2016-11-09 15:30:17 -04:00
Gyu-Ho Lee
9c7a0a68e5
Merge pull request #6825 from gyuho/new
...
etcdserver: increase maxGapBetweenApplyAndCommitIndex
2016-11-09 10:32:51 -08:00
Gyu-Ho Lee
c817df1d32
etcdserver: increase maxGapBetweenApplyAndCommitIndex
...
This exists to prevent sending too many requests that
would lead into applier falling behind Raft accepting-proposal.
Based on recent benchmarks, etcd was able to process high workloads
(2 million writes with 1K concurrent clients).
The limit 1000 is too conservative to test those high workloads.
2016-11-09 09:44:11 -08:00
Gyu-Ho Lee
dbb692e50f
Merge pull request #6820 from gyuho/watcher
...
mvcc: return -1 for wrong watcher range key >= end
2016-11-08 17:36:19 -08:00
fanmin shi
0f5d9f00ad
Merge pull request #6808 from fanminshi/functional-tester-compaction-deadline-fix
...
etcd-tester: increase compaction timeout limit
2016-11-08 17:18:40 -08:00
Gyu-Ho Lee
9dd75a946f
clientv3, ctlv3: document range end requirement
2016-11-08 17:02:32 -08:00
Gyu-Ho Lee
396a71ee9e
integration: test wrong watcher range
2016-11-08 17:02:32 -08:00
Gyu-Ho Lee
425acb28c4
mvcc: return -1 for wrong watcher range key >= end
...
Fix https://github.com/coreos/etcd/issues/6819 .
2016-11-08 17:02:28 -08:00