33d7f2d53e
fix: enable gofmt and whitespace linters
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-11 07:03:18 +02:00
46cf1e6e8c
benchmark: support insecure-skip-tls-verify
...
Signed-off-by: qsyqian <qsyqian@gmail.com >
2024-09-05 15:13:21 +08:00
beb5e85dcb
tools/benchmark/cmd: eliminate custom max function
...
Just a code clean-up.
Signed-off-by: Jes Cok <xigua67damn@gmail.com >
2024-05-08 21:52:49 +08:00
90152fe419
fix: close profile in the mvccPutFunc func
...
Signed-off-by: guoguangwu <guoguangwug@gmail.com >
2024-04-08 16:55:39 +08:00
27a6dd0ca5
tools/benchmark/cmd: don't panic with nil values in hashKV function
...
hashKV checks nilness of 'eh' and 'es', but doesn't use them. Instead
it panics with 'err' which is definitely nil.
This should be avoided, See:
https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilness#nilpanic
This patch renames 'eh' and 'es' to 'err' in order to correct the real
errors to panic.
Signed-off-by: Jes Cok <xigua67damn@gmail.com >
2024-04-05 07:11:19 +08:00
7a84cbb452
Improve watch latency benchmark
...
* Support prevKV
* Support multiple watchers per stream
* Allow continious puts without waiting for event
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2024-03-11 20:30:41 +01:00
aa97484166
*: enable goimports in verify-lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-09-21 21:14:09 +08:00
b798aae9c5
Update golangci-lint from 1.49.0 to 1.53.3
...
Signed-off-by: iuriatan <iuriatan@gmail.com >
2023-07-14 16:46:26 -03:00
70c8f04a18
tools/benchmark: support --count-only for range
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-07-07 15:07:12 +08:00
b365f3cda4
tools/benchmark: support limit flag for range
...
With limit flag, we can verify the performance for the pagination.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-05-25 15:26:25 +08:00
2c9c209eb6
all: Changing Printf and friends to Print if there is no formatting
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-15 22:11:23 +03:00
0a08fa2b43
golangci: add import order check
...
Signed-off-by: demoManito <1430482733@qq.com >
2022-09-29 11:30:04 +08:00
f8b65d53ba
Add revive to the list of linters.
...
Part of "Enhance the static-analysis workflow" issue. #14164
Signed-off-by: Cenk Alti <cenkalti@gmail.com >
2022-08-27 13:41:14 -04:00
508fa22a91
benchmark: Fix the panic when running benchmark watch
...
Signed-off-by: SimFG <1142838399@qq.com >
2022-07-15 11:33:11 +08:00
89637a4223
Tools/benchmark: migrate cheggaaa/pb.v1 to cheggaaa/pb/v3
...
etcdctl/ctlv3: migrate cheggaaa/pb.v1 to cheggaaa/pb/v3
This commit also changes the format of the progress bar, from using a
custom progress bar to the default provided by the library.
Old behaviour:
./benchmarkv1 put
0 / 10000 B ! 0.00%
3987 / 10000 Boooooooooooooom ! 39.87%
10000 / 10000 Boooooooooooooooooooooooooooooooooooooooooooo! 100.00% 1s
New behaviour:
./benchmark put
6536 / 10000 [----------------------->________________] 65.36% 7053 p/s
10000 / 10000 [---------------------------------------] 100.00% 7581 p/s
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info >
2022-06-20 15:47:23 +02:00
73fc864247
tests: Pass logger to backend
2022-04-05 15:53:38 +02:00
9084acceac
tools/benchmark: add autoSync flag
2021-10-15 22:03:23 -07:00
55525e3cc5
Benchmark: remove redundant function call
...
Remove the redundancy as HashKV func is being called twice.
2021-08-12 09:56:38 -04:00
5e40a8b00c
server: Create storage package and move mvcc files to it
2021-07-12 15:37:21 +02:00
79b2777482
tools: add mixed read-write performance evaluation scripts
2021-05-25 12:03:42 -07:00
a78d072b9a
Simplify KVstore dependency on cindex.
2021-05-04 18:21:24 +02:00
3bb7acc8cf
Migrate dependencies pkg/foo -> client/pkg/foo
2021-04-07 00:38:47 +02:00
9312d1b077
clientv3: Bring back ETCD_CLIENT_DEBUG variable interpretation.
...
env ETCD_CLIENT_DEBUG supports log levels (debug, info, warn, error, dpanic, panic, fatal).
Only when set, overrides application-wide grpc logging settings.
2021-03-18 18:43:07 +01:00
aaf423e962
server: Update imports.
...
find -name '*.go' | xargs sed -i --follow-symlinks 's|etcd/v3/|etcd/server/v3/|g'
2020-10-26 13:02:32 +01:00
e33c6dd9df
client/v3: Rename of imports
2020-10-20 10:13:06 +02:00
de55bb6331
pkg: Rename imports after making 'pkg' a module
...
find -name '*.go' | xargs sed --follow-symlinks -i 's|go.etcd.io/etcd/v3/pkg/|go.etcd.io/etcd/pkg/v3/|g'
go fmt ./...
2020-10-13 00:09:27 +02:00
96cce208c2
go.mod: use go.etcd.io/etcd/v3 versioning
...
This change makes the etcd package compatible with the existing Go
ecosystem for module versioning.
Used this tool to update package imports:
https://github.com/KSubedi/gomove
2020-04-28 00:57:35 +00:00
6ffd9f659e
tools/benchmark: exit when txn-ops is larger than key-space-size to avoid key duplicated error. ( #11499 )
2020-01-06 16:36:51 -08:00
57aa68af5a
etcdserver: trace compaction request; add return parameter 'trace' to applierV3.Compaction()
...
mvcc: trace compaction request; add input parameter 'trace' to KV.Compact()
2019-10-07 09:55:27 -07:00
9b51febaf5
*: Add experimental-compaction-batch-limit flag
2019-08-15 11:47:23 -07:00
b5ee1de076
cleanup: correct summary message in put.go
2019-08-12 21:13:58 +08:00
34bd797e67
*: revert module import paths
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2019-05-28 15:39:35 -07:00
9150bf52d6
go modules: Fix module path version to include version number
2019-04-26 15:29:50 -07:00
95a282efb5
benchmark: util.go
...
allow client to setup TLS with cluster members, without the client having to offer TLS authentication itself
fixes #10142
2018-10-02 08:45:24 -07:00
d37f1521b7
*: update import paths to "go.etcd.io/etcd"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-28 17:47:55 -07:00
18f85684da
tools/benchmark: clean up formatting
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com >
2018-08-13 19:19:46 -07:00
40b66d1f18
Etcdctl: benchmark for hashkv performance
...
The benchmark as a sub command of put when provided will fetch hashkv and checks
the time taken to get it.
Fixed # 8910
Provider a way to etcd user to check how long it takes to get
hashkv in user enviornment. The command ouput will provide time taken
to get hashkv along with db file size.
2018-08-10 15:53:41 -04:00
9063805180
contrib/tools: support structured logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
9bd580f2fc
tools/benchmark: use "TrustedCAFile"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-20 15:31:32 -07:00
8a518b01c4
*: revert "internal/mvcc" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
dd2f3b0de8
*: revert "internal/lease" change
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
80d15948bc
*: move "mvcc" to "internal/mvcc"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:14:41 -08:00
349a377a67
*: move "lease" to "internal/lease"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:09:29 -08:00
fcfbeb30e8
tools/benchmark/cmd: fix fmt warning in import path
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 15:26:17 -08:00
1c3567da90
tools/benchmark: ask for password when it is not supplied
2017-10-27 14:30:43 +08:00
3b3d392540
*: use grpclog.LoggerV2
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-08 15:26:16 -07:00
640c0e6ff4
tools/benchmark: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-08 09:50:00 -07:00
56db7e56f9
benchmark: refactor watch benchmark
2017-06-08 21:14:08 -07:00
887db5a3db
*: fix go tool vet -all -shadow errors
2017-06-03 21:32:36 -07:00
7acd43e8bb
Merge pull request #7862 from mitake/benchmark-mvcc-batch
...
benchmark, pkg: a new option of mvcc --batch for enlarging a single txn
2017-05-30 19:50:44 -07:00