Skip to content

Commit

Permalink
Merge branch 'public-cluster' into gh-4932
Browse files Browse the repository at this point in the history
  • Loading branch information
valyala committed Sep 1, 2023
2 parents c576244 + d7cd7cc commit f37b23c
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 20 deletions.
17 changes: 15 additions & 2 deletions app/vminsert/netstorage/netstorage.go
Expand Up @@ -813,9 +813,22 @@ func (sn *storageNode) checkReadOnlyMode() {
atomic.StoreUint32(&sn.isReadOnly, 0)
return
}
if !errors.Is(err, errStorageReadOnly) {
logger.Errorf("cannot check storage readonly mode for -storageNode=%q: %s", sn.dialer.Addr(), err)
if errors.Is(err, errStorageReadOnly) {
// The storage remains in read-only mode
return
}

// There was an error when sending nil buf to the storage.
logger.Errorf("cannot check storage readonly mode for -storageNode=%q: %s", sn.dialer.Addr(), err)

// Mark the connection to the storage as broken.
if err = sn.bc.Close(); err != nil {
cannotCloseStorageNodeConnLogger.Warnf("cannot close connection to storageNode %q: %s", sn.dialer.Addr(), err)
}
sn.bc = nil
atomic.StoreUint32(&sn.broken, 1)
sn.brCond.Broadcast()
sn.connectionErrors.Inc()
}

var (
Expand Down
12 changes: 6 additions & 6 deletions deployment/docker/docker-compose-cluster.yml
Expand Up @@ -2,7 +2,7 @@ version: '3.5'
services:
vmagent:
container_name: vmagent
image: victoriametrics/vmagent:v1.93.1
image: victoriametrics/vmagent:v1.93.2
depends_on:
- "vminsert"
ports:
Expand Down Expand Up @@ -32,7 +32,7 @@ services:

vmstorage-1:
container_name: vmstorage-1
image: victoriametrics/vmstorage:v1.93.1-cluster
image: victoriametrics/vmstorage:v1.93.2-cluster
ports:
- 8482
- 8400
Expand All @@ -44,7 +44,7 @@ services:
restart: always
vmstorage-2:
container_name: vmstorage-2
image: victoriametrics/vmstorage:v1.93.1-cluster
image: victoriametrics/vmstorage:v1.93.2-cluster
ports:
- 8482
- 8400
Expand All @@ -56,7 +56,7 @@ services:
restart: always
vminsert:
container_name: vminsert
image: victoriametrics/vminsert:v1.93.1-cluster
image: victoriametrics/vminsert:v1.93.2-cluster
depends_on:
- "vmstorage-1"
- "vmstorage-2"
Expand All @@ -68,7 +68,7 @@ services:
restart: always
vmselect:
container_name: vmselect
image: victoriametrics/vmselect:v1.93.1-cluster
image: victoriametrics/vmselect:v1.93.2-cluster
depends_on:
- "vmstorage-1"
- "vmstorage-2"
Expand All @@ -82,7 +82,7 @@ services:

vmalert:
container_name: vmalert
image: victoriametrics/vmalert:v1.93.1
image: victoriametrics/vmalert:v1.93.2
depends_on:
- "vmselect"
ports:
Expand Down
6 changes: 3 additions & 3 deletions deployment/docker/docker-compose.yml
Expand Up @@ -2,7 +2,7 @@ version: "3.5"
services:
vmagent:
container_name: vmagent
image: victoriametrics/vmagent:v1.93.1
image: victoriametrics/vmagent:v1.93.2
depends_on:
- "victoriametrics"
ports:
Expand All @@ -18,7 +18,7 @@ services:
restart: always
victoriametrics:
container_name: victoriametrics
image: victoriametrics/victoria-metrics:v1.93.1
image: victoriametrics/victoria-metrics:v1.93.2
ports:
- 8428:8428
- 8089:8089
Expand Down Expand Up @@ -56,7 +56,7 @@ services:
restart: always
vmalert:
container_name: vmalert
image: victoriametrics/vmalert:v1.93.1
image: victoriametrics/vmalert:v1.93.2
depends_on:
- "victoriametrics"
- "alertmanager"
Expand Down
2 changes: 1 addition & 1 deletion deployment/logs-benchmark/docker-compose.yml
Expand Up @@ -105,7 +105,7 @@ services:
- '--config=/config.yml'

vmsingle:
image: victoriametrics/victoria-metrics:v1.93.1
image: victoriametrics/victoria-metrics:v1.93.2
ports:
- '8428:8428'
command:
Expand Down
Expand Up @@ -8,7 +8,7 @@
4. Set variables `DIGITALOCEAN_API_TOKEN` with `VM_VERSION` for `packer` environment and run make from example below:

```console
make release-victoria-metrics-digitalocean-oneclick-droplet DIGITALOCEAN_API_TOKEN="dop_v23_2e46f4759ceeeba0d0248" VM_VERSION="1.93.1"
make release-victoria-metrics-digitalocean-oneclick-droplet DIGITALOCEAN_API_TOKEN="dop_v23_2e46f4759ceeeba0d0248" VM_VERSION="1.93.2"
```


Expand Down
Expand Up @@ -19,8 +19,8 @@ On the server:
* VictoriaMetrics is running on ports: 8428, 8089, 4242, 2003 and they are bound to the local interface.
********************************************************************************
# This image includes 1.93.1 version of VictoriaMetrics.
# See Release notes https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.93.1
# This image includes 1.93.2 version of VictoriaMetrics.
# See Release notes https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.93.2
# Welcome to VictoriaMetrics droplet!
Expand Down
11 changes: 10 additions & 1 deletion docs/CHANGELOG.md
Expand Up @@ -39,10 +39,19 @@ The following `tip` changes can be tested by building VictoriaMetrics components
* FEATURE: dashboards: provide copies of Grafana dashboards alternated with VictoriaMetrics datasource at [dashboards/vm](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/dashboards/vm).
* FEATURE: [vmauth](https://docs.victoriametrics.com/vmauth.html): added ability to set, override and clear request and response headers on a per-user and per-path basis. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4825) and [these docs](https://docs.victoriametrics.com/vmauth.html#auth-config) for details.

* BUGFIX: [Official Grafana dashboards for VictoriaMetrics](https://grafana.com/orgs/victoriametrics): fix display of ingested rows rate for `Samples ingested/s` and `Samples rate` panels for vmagent's dasbhoard. Previously, not all ingested protocols were accounted in these panels. An extra panel `Rows rate` was added to `Ingestion` section to display the split for rows ingested rate by protocol.
* BUGFIX: [vminsert](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html): properly close broken vmstorage connection during [read-only state](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html#readonly-mode) checks at `vmstorage`. Previously it wasn't properly closed, which prevents restoring `vmstorage` node from read-only mode. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4870).

## [v1.93.2](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.93.2)

Released at 2023-09-01

**v1.93.x is a line of LTS releases (e.g. long-time support). It contains important up-to-date bugfixes.
The v1.93.x line will be supported for at least 12 months since [v1.93.0](https://docs.victoriametrics.com/CHANGELOG.html#v1930) release**

* BUGFIX: [build](https://docs.victoriametrics.com/): fix Docker builds for old Docker releases. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4907).
* BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): consistently set `User-Agent` header to `vm_promscrape` during scraping with enabled or disabled [stream parsing mode](https://docs.victoriametrics.com/vmagent.html#stream-parsing-mode). See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4884).
* BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): consistently set timeout for scraping with enabled or disabled [stream parsing mode](https://docs.victoriametrics.com/vmagent.html#stream-parsing-mode). See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4847).
* BUGFIX: [Official Grafana dashboards for VictoriaMetrics](https://grafana.com/orgs/victoriametrics): fix display of ingested rows rate for `Samples ingested/s` and `Samples rate` panels for vmagent's dasbhoard. Previously, not all ingested protocols were accounted in these panels. An extra panel `Rows rate` was added to `Ingestion` section to display the split for rows ingested rate by protocol.
* BUGFIX: [vmalert](https://docs.victoriametrics.com/vmalert.html): correctly re-use HTTP request object on `EOF` retries when querying the configured datasource. Previously, there was a small chance that query retry wouldn't succeed.
* BUGFIX: [vmselect](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html): correctly handle requests with `/select/multitenant` prefix. Such requests must be rejected since vmselect does not support multitenancy endpoint. Previously, such requests were causing panic. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4910).
* BUGFIX: [vminsert](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html): properly check for [read-only state](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html#readonly-mode) at `vmstorage`. Previously it wasn't properly checked, which could lead to increased resource usage and data ingestion slowdown when some of `vmstorage` nodes are in read-only mode. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4870).
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/guide-vmanomaly-vmalert.md
Expand Up @@ -13,9 +13,9 @@ aliases:
**Prerequisites**
- *vmanomaly* is a part of enterprise package. You can get license key [here](https://victoriametrics.com/products/enterprise/trial) to try this tutorial.
- In the tutorial, we'll be using the following VictoriaMetrics components:
- [VictoriaMetrics](https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html) (v.1.93.1)
- [vmalert](https://docs.victoriametrics.com/vmalert.html) (v.1.93.1)
- [vmagent](https://docs.victoriametrics.com/vmagent.html) (v.1.93.1)
- [VictoriaMetrics](https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html) (v.1.93.2)
- [vmalert](https://docs.victoriametrics.com/vmalert.html) (v.1.93.2)
- [vmagent](https://docs.victoriametrics.com/vmagent.html) (v.1.93.2)

If you're unfamiliar with the listed components, please read [QuickStart](https://docs.victoriametrics.com/Quick-Start.html) first.
- It is assumed that you are familiar with [Grafana](https://grafana.com/)(v.9.3.1) and [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/).
Expand Down Expand Up @@ -285,7 +285,7 @@ services:

victoriametrics:
container_name: victoriametrics
image: victoriametrics/victoria-metrics:v1.93.1
image: victoriametrics/victoria-metrics:v1.93.2
ports:
- 8428:8428
- 8089:8089
Expand Down

0 comments on commit f37b23c

Please sign in to comment.