Commit Graph

18215 Commits (4c13767881c443e4d2211ffbbe1a2e251cd460bf)

Author SHA1 Message Date
yuzhiquanlong 4c13767881 etcdserver: add alarms metrics for server
Signed-off-by: yuzhiquanlong <yuzhiquanlong@gmail.com>
2022-08-03 09:33:02 +08:00
Marek Siarkowicz 5fab045242
Merge pull request #14273 from RobertIndie/fix-test
tests: fix the logic of testNonleaderElectionTimeoutRandomized in raft_paper_test.go
2022-07-26 09:22:57 +02:00
Zike Yang b77f56ac25 tests: fix the logic of testNonleaderElectionTimeoutRandomized in raft_paper_test.go
In the test `testNonleaderElectionTimeoutRandomized`, the possible values of election timeout randomized out should be 10-19(inclusive), but the current test only tests the possible values as 11-19(inclusive), which is incorrect here. We need to expand the scope of the tests to ensure robustness, and also to make the logic clearer.

Signed-off-by: Zike Yang <zike@apache.org>
2022-07-25 23:16:02 +08:00
Benjamin Wang 4977877730
Merge pull request #14231 from mitake/changelog-3.4-for-pr-14230
update changelog-3.4 to protection for rangePermCache with a RW lock
2022-07-25 07:24:12 +08:00
Hitoshi Mitake 97222a5277 update changelog-3.4 to protection for rangePermCache with a RW lock
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
2022-07-24 23:34:05 +09:00
Benjamin Wang 6d27a42b7d
Merge pull request #14248 from ahrtr/update_TestRemoveMatchFile
No need to manually remove tmp directory created by t.TempDir()
2022-07-21 17:31:43 +08:00
Marek Siarkowicz 4c2aab97c8
Merge pull request #14247 from AustinBenoit/update_readme
readme: remove broken roadmap link
2022-07-21 11:20:36 +02:00
Benjamin Wang b71a641c93
Merge pull request #14235 from Abirdcfly/main
delete unreachable code
2022-07-21 13:54:01 +08:00
Abirdcfly 37b920e9f4 delete unreachable code
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-21 12:54:29 +08:00
Benjamin Wang f6cfd465cc No need to manually remove tmp directory created by t.TempDir()
The temporary directory created by t.TempDir() can be automatically removed by
the golang testing utilities. So no need to remove it manually.

FYI.

    https://github.com/golang/go/blob/go1.16.15/src/testing/testing.go#L911-L915
    https://github.com/golang/go/blob/go1.16.15/src/testing/testing.go#L957

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-21 08:20:52 +08:00
Austin Benoit 790a461c16 readme: remove broken roadmap link
The ROADMAP.md file was deleted as a part of commit
a722827c96 and the readme
file was not updated. I could not find a suitable alternative
resource so I am removing the link.

Signed-off-by: Austin Benoit <22805659+AustinBenoit@users.noreply.github.com>
2022-07-20 19:37:27 -04:00
Benjamin Wang b75aa3eb4c
Merge pull request #14242 from Elbehery/etcd-mixin_replace_backend_with_database
etcd-mixin: fix etcdDatabaseQuotaLowSpace alert name
2022-07-20 12:40:56 +08:00
Mustafa Elbehery 75d7bd0155 etcd-mixin: fix etcdDatabaseQuotaLowSpace alert name
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2022-07-20 06:11:13 +02:00
Sahdev Zala 2ef4043979
Merge pull request #14237 from Elbehery/use-last_over_time
etcd-mixin: use-last_over_time-with-etcdBackendQuotaLowSpace-alert
2022-07-19 21:43:57 -04:00
Benjamin Wang 674ef6c32f
Merge pull request #14221 from Elbehery/add_etcdBackendHighFragmentationRatio_alert
etcd-mixin:add etcdDatabaseHighFragmentationRatio alert
2022-07-20 05:20:09 +08:00
Mustafa Elbehery 0d0fc573ba etcd-mixin:use-last_over_time-with-etcdBackendQuotaLowSpace-alert
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2022-07-19 18:10:19 +02:00
Mustafa Elbehery 7de89e8db6 etcd-mixin:add etcdBackendHighFragmentationRatio alert
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
:wq
2022-07-19 18:03:08 +02:00
Marek Siarkowicz 525d53bd41
Merge pull request #14228 from mitake/changelog-3.5-for-pr-13954
update changelog-3.5 to protection for rangePermCache with a RW lock
2022-07-18 09:59:58 +02:00
Hitoshi Mitake 874561448d update changelog-3.5 to protection for rangePermCache with a RW lock
Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
2022-07-18 00:22:01 +09:00
Benjamin Wang 73c714bf3d
Merge pull request #14196 from Elbehery/use-derive-insteadof-increase
fix:etcd-mixin:use-predictlinear-insteadof-increase
2022-07-14 06:20:37 +08:00
Benjamin Wang 16c10d6910
Merge pull request #14203 from Jille/patch-1
clientv3: Fix parsing of ETCD_CLIENT_DEBUG
2022-07-14 05:54:04 +08:00
Jille Timmermans ac3f913dad Improve error message for incorrect values of ETCD_CLIENT_DEBUG
Signed-off-by: Jille Timmermans <jille@quis.cx>
2022-07-13 18:55:51 +02:00
Piotr Tabor dae7838c44
Merge pull request #14201 from lishaokai1995/main
Fix syntax errors in comments
2022-07-13 16:33:01 +02:00
Benjamin Wang 53bfdc11d8
Merge pull request #14220 from ahrtr/changelog_maxstream
Update both 3.5 and 3.6 changelog to cover the new flag `--max-concurrent-streams`
2022-07-13 17:16:19 +08:00
Benjamin Wang 575a901c08 update both 3.5 and 3.6 changelog to cover the new flag --max-concurrent-streams
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-13 14:58:29 +08:00
Marek Siarkowicz 6c5dfcf140
Merge pull request #14215 from etcd-io/serathius-patch-1
Make Benjamin an official v3.4 release manager
2022-07-12 13:37:15 +02:00
Marek Siarkowicz 25ad3cffe8 Make Benjamin an official v3.4 release manager
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2022-07-12 12:26:09 +02:00
Benjamin Wang 9c4fe12a88
Merge pull request #14169 from ahrtr/http_max_stream_20220628
Support configuring `MaxConcurrentStreams` for http2
2022-07-12 17:38:43 +08:00
Benjamin Wang c72f786750
Merge pull request #14214 from ahrtr/3.4.19_date
update v3.4.19 release date
2022-07-12 17:23:45 +08:00
Benjamin Wang d3a96f3485 update v3.4.19 release date
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-12 16:59:07 +08:00
Marek Siarkowicz 9609a46629
Merge pull request #14207 from ahrtr/dev_guide_local_cluster
Update goreman installation command in local_cluster.md
2022-07-11 10:15:08 +02:00
Marek Siarkowicz 12ee494ebc
Merge pull request #14206 from ahrtr/relase_update_travis
Update scripts/release.sh to remove message related to travis.yml
2022-07-11 10:14:39 +02:00
Benjamin Wang 39486c4289 update goreman installation command in local_cluster.md
`go install` is the recommended way to build and install packages in
module mode. `go get` should be used with the -d flag to adjust the
current module's dependencies without building packages, and use of
`go get` to build and install packages is deprecated. In a future
release, the -d flag will always be enabled.

Refer to https://go.dev/doc/go1.16.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-11 13:51:57 +08:00
Benjamin Wang 7400d6c363 Update scripts/release.sh to remove message related to travis.yml
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-11 10:31:51 +08:00
Jille Timmermans e3fd58df46 clientv3: Fix parsing of ETCD_CLIENT_DEBUG
It checked `err == nil` rather than `err != nil`.

Signed-off-by: Jille Timmermans <jille@quis.cx>
2022-07-10 11:21:15 +02:00
Mustafa Elbehery 91f8eb1bd6 fix:etcd-mixin:use-predictLinear-insteadof-increase
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2022-07-08 16:16:54 +02:00
Marek Siarkowicz 20bf49c24e
Merge pull request #14202 from ahrtr/changlog_3.4.19
Update 3.4 changelog to prepare for the release of 3.4.19
2022-07-08 10:23:52 +02:00
Benjamin Wang 1914e425bf update 3.4 changelog to prepare for the release of 3.4.19
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-08 14:06:02 +08:00
sky li (李少凯)-浪潮数据 c4e89b4186 Fix syntax errors in comments
Signed-off-by: sky li (李少凯)-浪潮数据 <lishaokai1995@126.com>
2022-07-08 09:48:13 +08:00
Benjamin Wang 186c895da8
Merge pull request #14198 from SimFG/heap_top
lease: Rename `Poll` to `Peek` in the `LeaseExpiredNotifier`
2022-07-08 04:59:43 +08:00
SimFG e586dc19df lease: Rename `Poll` to `Peek` in the `LeaseExpiredNotifier`
`Poll` means that the elements in the heap will be removed.
And it is more appropriate to use `Peek` to get the top of the heap.

Signed-off-by: SimFG <1142838399@qq.com>
2022-07-07 16:25:26 +08:00
Benjamin Wang 8b6c8b4c96 add unit test for pkg/flags/Uint32FromFlag in uint32_test.go
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-07 04:52:28 +08:00
Benjamin Wang 1a6fe4dbc6 update the comment for MaxConcurrentStreams to clearly state it's the max value for each client.
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-07 04:51:20 +08:00
Benjamin Wang f40b676701 add e2e test cases to cover the maxConcurrentStreams
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-06 03:43:46 +08:00
Benjamin Wang 053ba95ed5 set max concurrent streams to the http2 server
The default max stream is 250 in http2. When there are more then
250 streams, the client side may be blocked until some previous
streams are released. So we need to support configuring a larger
`MaxConcurrentStreams`.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-06 03:43:46 +08:00
Benjamin Wang d8347ec683 add & refine the uint32Value data type
The golang buildin package `flag` doesn't support `uint32` data
type, so we need to support it via the `flag.Var`.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-06 03:43:46 +08:00
杨金珏 6220174687 support custom `grpc.MaxConcurrentStreams`
There is no update on the original PR (see below) for more then 2
weeks. So Benjamin(@ahrtr) continues to work on the PR. The first
step is to rebase the PR, because there are lots of conflicts with
the main branch.

The change to go.mod and go.sum reverted, because they are not needed.
The e2e test cases are also reverted, because they are not correct.

```
https://github.com/etcd-io/etcd/pull/14081
```

Signed-off-by: nic-chen <chenjunxu6@gmail.com>
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-06 03:43:46 +08:00
Marek Siarkowicz 248f072370
Merge pull request #14194 from ahrtr/update_etcdctl_typo
Fix a typo in etcdctl readme for the elect command
2022-07-05 14:55:41 +02:00
Benjamin Wang 231bee6fe2 fix a typo in etcdctl readme for the elect command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-07-05 16:03:45 +08:00
Benjamin Wang 07d620822f
Merge pull request #14173 from SimFG/ctl_err
ectdctl: Add the `SilenceErrors` config For the `cobra.Command`
2022-07-05 06:10:11 +08:00