Siyuan Zhang
bd228cf6d1
migrate experimental-stop-grpc-service-on-defrag flag to feature gate.
...
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-08-05 13:46:51 -07:00
Siyuan Zhang
7b355141d9
Add "server-feature-gates" flag.
...
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-07-18 13:20:30 -07:00
Gyuho Lee
a657f069a1
fix(server/embed): enforce non-empty client TLS if scheme is https/unixs
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2024-06-17 18:21:38 +08:00
lhy1024
acc9d7c9fe
Support multiple values for allowed client and peer TLS identities
...
Signed-off-by: lhy1024 <admin@liudos.us>
2024-06-06 21:25:17 +08:00
Edwin Xie
4c77726914
Implement flag --experimental-set-member-localaddr
...
Which sets the LocalAddr to an IP address from --initial-advertise-peer-urls.
Also adds e2e test that requires this flag to succeed.
Co-authored-by: HighPon <s.shiraki.business@gmail.com>
Signed-off-by: Edwin Xie <edwin.xie@broadcom.com>
2024-05-24 18:17:37 +00:00
Marcus Efraimsson
030066cdb2
Chore: Use chain interceptors from grpc package
...
Signed-off-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2024-05-01 22:26:50 +02:00
Ivan Valdes
a2bf8d7e80
server/config: address golangci var-naming issues
...
Addresses issues in V2 Deprecation constant names.
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-04-22 17:12:15 -07:00
Ivan Valdes
2e5188f618
server/embed: address golangci var-naming issues
...
Addresses issues in ListenPeerUrls, ListenClientUrls,
ListenClientHttpUrls, AdvertisePeerUrls, AdvertiseClientUrls.
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-04-18 08:30:39 -06:00
Ivan Valdes
0a1bc1208f
server/embed: address golangci var-naming issues
...
Addresses issues in TLSMinVersion, TLSMaxVersion, WALDir, and
MaxWALFiles.
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-04-17 16:33:28 -06:00
Marek Siarkowicz
e37a67e40b
Merge pull request #17787 from callthingsoff/eliminate_tls.Config.NameToCertificate
...
server/etcdmain: eliminate deprecated tlsConfig.BuildNameToCertificate()
2024-04-17 10:19:45 +02:00
Jes Cok
ecb52d7d48
server/etcdmain: eliminate deprecated tlsConfig.BuildNameToCertificate()
...
As the doc is saying:
Deprecated: NameToCertificate only allows associating a single certificate
with a given name. Leave that field nil to let the library select the first
compatible chain from Certificates.
Signed-off-by: Jes Cok <xigua67damn@gmail.com>
2024-04-13 11:46:58 +08:00
Fube
cf66d0f64f
etcdserver: updated pre-vote flag description
...
To better communicate what the pre-vote phase in Raft is.
Signed-off-by: Fube <fubeitch@gmail.com>
2024-04-12 17:14:19 -04:00
Edwin Xie
fc8568a435
nit: Fix trailing whitespace in etcdmain/help.go
...
Signed-off-by: Edwin Xie <edwin.xie@broadcom.com>
2024-04-01 22:25:05 +00:00
shihuixing
3850889442
improve description and update CHANGELOG-3.5.md
...
Signed-off-by: shihuixing <shihuixing@jd.com>
2024-02-09 15:14:27 +08:00
shihuixing
cf296a0b38
improve description for grpc-proxy keepalive arguments
...
Signed-off-by: shihuixing <shihuixing@jd.com>
2024-02-08 14:45:51 +08:00
shihuixing
79716fa112
added dial-keepalive-time、dial-keepalive-timeout、permit-without-stream arguments to the grpc-proxy
...
Signed-off-by: shihuixing <shihuixing@jd.com>
2024-02-05 11:13:46 +08:00
Thomas Meyer
b5b0b8dbd4
Fix message in case of unsupported platform
...
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
2023-11-28 13:36:33 +01:00
Chao Chen
ea035471ce
online defrag notifies gRPC health server to expose NOT_SERVING status
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-25 08:58:33 -07:00
Wei Fu
aea1cd0077
feat: enable unparam lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-10-17 21:24:13 +08:00
Marek Siarkowicz
e31de5e3c1
Revert "etcd server shouldn't wait for the ready notification infinitely on startup"
...
This reverts commit 1713dc67b5149e74cd28bad7c080c646315d0b06.
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-03 21:37:18 +02:00
Marek Siarkowicz
50fb919318
Make AddEmbedFlags functon a method on embed.Config
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-02 13:53:38 +02:00
Marek Siarkowicz
d98faeef82
Refactor registering flags to separate AddEmbedFlags function for future reuse
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-01 09:58:27 +02:00
Wei Fu
aa97484166
*: enable goimports in verify-lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-09-21 21:14:09 +08:00
chenyahui
c0aa3b613b
Use any instead of interface{}
...
Signed-off-by: chenyahui <cyhone@qq.com>
2023-09-17 17:41:58 +08:00
John Riendeau
63e614fb0b
Add unit test for CLI flags and missing flags
...
Signed-off-by: John Riendeau <riendeau@us.ibm.com>
2023-08-23 08:33:39 -05:00
cui fliter
6760dc9572
remove repetitive the
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-07-13 17:01:01 +08:00
scuzk373x@gmai.com
798d2b7923
add compact hash check to help
...
Signed-off-by: scuzk373x@gmai.com <zhuanwajiang@pinduoduo.com>
2023-06-08 14:29:57 +08:00
aimuz
b052092297
refactor(util): remove duplicate lg check
...
lg always has a value
Signed-off-by: aimuz <mr.imuz@gmail.com>
2023-04-28 10:43:30 +08:00
sharathsivakumar
32c83becf5
fix review: Updated description of --initial-cluster-state flag
...
Signed-off-by: sharathsivakumar <mailssr9@gmail.com>
2023-04-22 23:16:33 +02:00
Marek Siarkowicz
bf12179a5a
server: Add --listen-client-http-urls flag to allow running grpc server separate from http server
...
Difference in load configuration for watch delay tests show how huge the
impact is. Even with random write scheduler grpc under http
server can only handle 500 KB with 2 seconds delay. On the other hand,
separate grpc server easily hits 10, 100 or even 1000 MB within 100 miliseconds.
Priority write scheduler that was used in most previous releases
is far worse than random one.
Tests configured to only 5 MB to avoid flakes and taking too long to fill
etcd.
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-03-30 09:49:45 +02:00
James Blair
f6ebff1557
Refactor: Use proper variable names for urls.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-03-14 18:37:52 +13:00
Marek Siarkowicz
372042c374
refactor: Use proper variable names for urls
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-03-13 14:48:01 +01:00
James Blair
275e10bcf7
Return default snapshot count to 10,000.
...
The huge (100k+) value was justified when storev2 was being dumped completely with every snapshot.
With storev2 being decomissioned we can checkpoint more frequently for faster recovery.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-03-06 20:21:03 +13:00
Tero Saarni
588b98d085
Add TLSv1.3 support.
...
Added optional TLS min/max protocol version and command line switches to set
versions for the etcd server.
If max version is not explicitly set by the user, let Go select the max
version which is currently TLSv1.3. Previously max version was set to TLSv1.2.
Signed-off-by: Tero Saarni <tero.saarni@est.tech>
2023-01-30 16:16:53 +02:00
Sasha Melentyev
63902fafbd
Change verb and use switch stmt
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
2023-01-25 03:47:07 +08:00
Chao Chen
2c46b2b299
externalize snapshot catchup entries to etcd flag
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-01-04 19:01:07 -08:00
Piotr Tabor
9abc895122
Goimports: Apply automated fixing to test files as well.
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-29 13:04:45 +01:00
Piotr Tabor
9e1abbab6e
Fix goimports in all existing files. Execution of ./scripts/fix.sh
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-29 09:41:31 +01:00
Benjamin Wang
ebfcaaed34
test: fix the test failures in e2e/warning_logging_test.go
...
1. Fixed the test failures which are caused by recent test framework rafactoring;
2. renamed the file to promote_experimental_flag_test.go.
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-11-19 01:51:06 +08:00
Bogdan Kanivets
7e8ebf7727
server: added duplicate warning-unary-request-duration flag
...
--warning-unary-request-duration is a duplicate of --experimental-warning-unary-request-duration
experimental-warning-unary-request-duration will be removed in v3.7.
fixes https://github.com/etcd-io/etcd/issues/13783
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com>
2022-11-18 18:06:00 +08:00
Atul Kumar
24bd276915
Version parameter for the doc link.
...
Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Atul Kumar <atul.kumar@swiggy.in>
2022-10-17 17:07:51 +05:30
Atul Kumar
55df4e6ef3
etcdmain: Updates v3.5 supported platform docs
...
Signed-off-by: Atul Kumar (katul979@gmail.com )
Signed-off-by: Atul Kumar <atul.kumar@swiggy.in>
2022-10-17 17:07:51 +05:30
Sahdev Zala
cdf4228673
Merge pull request #14308 from dusk125/main
...
server/etcdmain: add configurable cipher list to gRPC proxy listener
2022-09-16 12:15:08 -04:00
kkkkun
c4582aaaee
remove redundant log messages
...
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2022-09-16 11:45:43 +08:00
Allen Ray
c52108942b
Merge branch 'main' into main
2022-08-29 12:07:27 -04:00
Benjamin Wang
dc4b810195
Merge pull request #14388 from niconorsk/fix/notify-systemd-when-cluster-ready-times-out
...
etcdmain: Honour ExperimentalWaitClusterReadyTimeout in startEtcd
2022-08-26 18:34:52 +08:00
Nicolai Moore
e15bdd9df1
etcdmain: Honour ExperimentalWaitClusterReadyTimeout in startEtcd
...
When we can't reach quorum, we were waiting forever and never sending
the systemd notify message. As a result, systemd would eventually time out
and restart the etcd process which likely would make the unhealthy cluster
in an even worse state
Improves #13785
Signed-off-by: Nicolai Moore <niconorsk@gmail.com>
2022-08-26 18:06:50 +10:00
Vitalii Levitskii
be58a2539c
Added client-auto-sync-interval argument to the grpc-proxy
...
Signed-off-by: Vitalii Levitskii <vitalii@uber.com>
2022-08-25 15:33:38 +03:00
Benjamin Wang
1851316519
Merge pull request #14266 from stefanmonkey/feat/grpc-logging
...
Add logging grpc request and response content with grpc-proxy mode
2022-08-19 05:52:16 +08:00
Sam Batschelet
76a5902efa
server/etcdmain: add configurable cipher list to gRPC proxy listener
...
Signed-off-by: Allen Ray <alray@redhat.com>
2022-08-17 10:56:27 -04:00