c1851dfca1
etcd-tester: add leader failure cases
2016-02-11 15:46:44 -08:00
78df258ea8
etcd-agent: cleans page cache when cleaning up
...
Reference:
- https://www.kernel.org/doc/Documentation/sysctl/vm.txt
- https://github.com/torvalds/linux/blob/master/fs/drop_caches.c
2016-02-11 13:48:54 -08:00
7b2ce70783
etcd-tester: count success for v3
...
needed for snapshot count comparison
2016-02-09 17:12:03 -08:00
7d2b7e0d23
etcd-tester: close leaky gRPC connections
...
when closed errors will be one of:
```
grpc.ErrorDesc(err) == context.Canceled.Error() ||
grpc.ErrorDesc(err) == context.DeadlineExceeded.Error() ||
grpc.ErrorDesc(err) == "transport is closing" ||
grpc.ErrorDesc(err) == "grpc: the client connection is closing"
```
2016-02-09 16:26:33 -08:00
16aa263d8c
etcd-tester: continue after cleanup
2016-02-09 13:32:39 -08:00
c8994aab62
Merge pull request #4466 from gyuho/f0
...
etcd-tester: close gRPC connection when canceling
2016-02-09 11:07:00 -08:00
a46e20f92a
etcd-tester: close gRPC connection when canceling
...
Currently gRPC connection just gets recreated
for every Stress call. When Stress ends or gets
canceled, gRPC connection must also be closed.
For https://github.com/coreos/etcd/issues/4464 .
2016-02-09 11:04:16 -08:00
e252c0c0ca
etcd-tester: fix wrong error checking
...
Hash method returns either (nil, err) or (Hash, nil).
The current error checking is wrong. It only needs to check
the error is either nil or non-nil.
This causes panic in https://github.com/coreos/etcd/issues/4463
by allowing the case when resp is nil, but err is not nil.
2016-02-09 10:00:05 -08:00
fa71bec550
Merge pull request #4458 from xiang90/cl
...
etcd-tester: cleanup
2016-02-08 21:16:28 -08:00
25834211a9
etcd-tester: cleanup
2016-02-08 20:54:25 -08:00
77f753ac32
etcd-agent: mkdir with read/write to all users
2016-02-08 20:50:11 -08:00
16543778f1
etcd-tester: avoid directory name conflict
2016-02-08 13:38:26 -08:00
08dbabdb5f
etcd-tester: add compactKV
...
It compacts storage for every case.
For https://github.com/coreos/etcd/issues/4380 .
2016-02-06 15:02:58 -08:00
044f7775e3
etcd-tester: log cancel in stresser
...
And fix some minor print formats.
2016-02-05 18:31:27 -08:00
09fc764552
functional-tester/etcd-tester: silent grpclog, check revs
2016-02-05 14:04:58 -08:00
e2b5b1cd1a
functional-tester/etcd-agent: configurable log path
2016-02-05 09:37:24 -08:00
8e1325d9e1
functional-tester/etcd-agent: configurable agent port
...
To make local testing easier.
2016-02-04 21:10:30 -08:00
220d0c3c14
etcd-agent: fix data-dir path check
...
Need one more dash to match 'data-dir' flag.
2016-02-04 16:53:01 -08:00
85a4a5b596
functional-tester: fix grpc endpoint, consistent check
...
And some clean ups.
2016-02-04 15:10:43 -08:00
7a3426a231
tools/functional-tester/etcd-tester: support v3 kv storage
2016-02-03 15:24:54 -08:00
ed682c9f08
tools/functional-tester: minor cleanup
2016-02-03 14:30:34 -08:00
c4a0159601
documentation: fix typo "a etcd" -> "an etcd"
...
"a" is not a correct article for "etcd".
2016-01-28 19:19:32 +09:00
4f5f999847
tools/functional-test: add docker support
...
Commit adds docker bits to run functional tester within containers.
requires:
- docker 1.9 (networking)
- docker-compose
2015-12-18 15:56:18 +01:00
4289871cef
tools/function-tester: fix shadowed variables
...
Fixes for https://github.com/coreos/etcd/issues/3954 .
2015-12-12 09:38:20 -08:00
dfc7cc7a62
tools/etcd-tester: extend timeout for stresser
...
Extend the timeout from 1s to defaultRequestTimeout 5s.
The 1s may bring unwanted burden to the target member. If the member is
busy at recovering, it has limited bandwidth for client requests. A
short timeout at client side will retry quickly while keeping the
on-going connections. Thus, etcd will queue lots of requests and
connections and takes long time to clear them. This finally causes the
timeout of member health check.
This problem is a general one that how etcd handles amounts of requests
at the same time in a good way. We don't plan to address it at current
stage.
2015-11-16 11:47:08 -08:00
7848ac3979
*: add missing license headers
2015-09-15 14:09:01 -07:00
e71d43b58e
tools/functional-testing: add help message for flags
...
Help users to understand what these flags are for.
2015-04-29 13:59:55 -07:00
eafdd3b718
Merge pull request #2730 from yichengq/tester-key-param
...
main: parameterize stress key size and key suffix range
2015-04-27 17:02:36 -07:00
057d21cf79
main: parameterize stress key size and key suffix range
...
It faciliates tester to adjust the size of each request, the number of
keys in the store and the size of snapshot.
2015-04-27 16:46:56 -07:00
3127a3b659
tools/etcd-tester: wait longer for health
...
It dramatically reduce the probability that follower failed to catch up
the leader.
2015-04-21 17:55:24 -07:00
81750ab2d7
Merge pull request #2600 from yichengq/failure-isolate
...
tools/functional-tester: add isolate failures
2015-03-29 22:43:51 -07:00
04a62dd54b
tools/functional-tester: add isolate failures
2015-03-29 00:29:47 -07:00
097a56fe01
tools/etcd-agent: stop etcd only if it is running
...
Stop etcd only if it is running, and not report error when stopping etcd
which is not started.
2015-03-28 19:31:06 -07:00
d920c5b801
tools/etcd-tester: stress cluster using 50MB snapshot
2015-03-19 14:52:27 -07:00
46ebb83b90
tools/functional-tester/etcd-tester: report agent status
2015-03-13 15:29:57 -07:00
83bb02e320
tools/funcational-tester/etcd-agent: log the error for dubgging
2015-03-13 12:08:08 -07:00
e46beb75c8
tools/functional-tester/etcd-agent: add status rpc
2015-03-13 10:48:06 -07:00
462f32a81b
tools/functional-tester: add http status reporter
2015-03-12 12:49:48 -07:00
24a210ab20
tools/etcd-tester: add kill one member tests
2015-03-10 11:38:54 -07:00
ba20016f0f
tools/etcd-tester: reorganize failures
2015-03-05 21:14:41 -08:00
eba6daef4b
Merge pull request #2450 from yichengq/335
...
tools/functional-tester: add cleanup rpc
2015-03-05 16:36:16 -08:00
181ee445c1
better dir name
2015-03-05 16:34:14 -08:00
2152447361
tools/functional-tester: add cleanup rpc
2015-03-05 15:55:28 -08:00
4314b19a2e
tools/etcd-agent: recycle etcd zombie when termination
2015-03-05 15:51:11 -08:00
267313a3f8
tools/etcd-tester: add kill majority test
2015-03-05 15:14:14 -08:00
3cffc910de
tools/etcd-tester: use stresser
2015-03-05 13:21:49 -08:00
eec52738d8
etcd-tester: initial stresser
2015-03-05 11:06:43 -08:00
d5957aebfd
tools/etcd-tester: add failure killall
2015-03-05 10:24:21 -08:00
530dd891be
tools/etcd-tester: make it work
...
1. add cluster support
2. add failureNo case
3. add main func
2015-03-05 10:24:21 -08:00
8d3d737993
tools/etcd-agent/client: fix rpc Dial
2015-03-05 10:24:21 -08:00