VictoriaMetrics/app
Zakhar Bessarab f7834767c1
vmcluster: re-routing enhancement (#5293)
* app/vmstorage: close vminsert connections gradually before stopping storage

Implements graceful shutdown approach suggested here - https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4922#issuecomment-1768146878

Test results for this can be found here - https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4922#issuecomment-1790640274

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* app/vmstorage: update graceful shutdown logic

- close connections from vminsert in determenistic order
- update flag description
- lower default timeout to 25 seconds. 25 seconds value was chosen because the lowest default value used in default configuration deployments is 30s(default value in Kubernetes and ansible-playbooks).

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* docs/cluster: add information about re-routing enhancement during restart

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* docs/changelog: add entry for new command-line flag

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* {app/vmstorage,lib/ingestserver}: address review feedback

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* docs/cluster: add note to update workload scheduler timeout

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* wip

---------

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2023-11-14 01:00:42 +01:00
..
victoria-logs app/vlselect: handle vmui at /select/vmui path instead of /vmui 2023-07-06 21:36:28 -07:00
vlinsert all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-26 09:44:40 +02:00
vlselect app/vmui: small UX enhancements 2023-10-16 12:39:32 +02:00
vlstorage lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
vmagent app/vmagent/README.md: sync with docs/vmagent.md after 930d26b2ff 2023-11-13 09:44:07 +01:00
vmalert app/vmalert: update remote-write process (#5284) 2023-11-13 09:25:29 +01:00
vmalert-tool remove vmalert-tool code from branch cluster (#5229) 2023-10-25 14:48:11 +02:00
vmauth app/vmauth: add ability to drop the specified number of /-delimited prefix parts from request path 2023-11-13 22:34:40 +01:00
vmbackup lib/httpserver: add flags to specify HSTS / Frame-Options / CSP headers for httpserver (#5111) 2023-10-30 11:41:38 +01:00
vmbackupmanager lib/httpserver: add flags to specify HSTS / Frame-Options / CSP headers for httpserver (#5111) 2023-10-30 11:41:38 +01:00
vmctl all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:15:42 +01:00
vmgateway lib/httpserver: add flags to specify HSTS / Frame-Options / CSP headers for httpserver (#5111) 2023-10-30 11:41:38 +01:00
vminsert app/{vmagent,vminsert}: follow-up for NewRelic data ingestion protocol support 2023-10-16 13:55:04 +02:00
vmrestore lib/httpserver: add flags to specify HSTS / Frame-Options / CSP headers for httpserver (#5111) 2023-10-30 11:41:38 +01:00
vmselect lib/htmlcomponents: use relative links for the top page and for favicon.ico 2023-11-13 20:28:17 +01:00
vmstorage vmcluster: re-routing enhancement (#5293) 2023-11-14 01:00:42 +01:00
vmui lib/htmlcomponents: use relative links for the top page and for favicon.ico 2023-11-13 20:28:17 +01:00