summaryrefslogtreecommitdiffstats
path: root/_build/content/articles/ranch-2.1.0.asciidoc
blob: c653a516571298af5496d5aa6c71a02c56874ded (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
+++
date = "2021-09-09T07:00:00+01:00"
title = "Ranch 2.1"

+++

Ranch `2.1.0` has been released!

Ranch 2.1 adds counters for the number of connections
accepted and terminated. They can be used to produce
information about accept or shutdown rates or as a
total number of connections handled by Ranch.

Ranch 2.1 also adds an alarm around the number of
active connections a connection supervisor handles.
When that number is high it is now possible to
automatically perform an action, such as logging
or gracefully shutting down idle connections.

Starting from Ranch 2.1 the `{inet_backend,socket}`
option is accepted for TCP listeners. Ranch tests
now also run with this option enabled. Note that
there are known issues with the socket backend
at this time.

We are providing a
https://github.com/juhlig/prometheus_ranch[Prometheus collector]
as a separate project as well as a
https://github.com/juhlig/prometheus_ranch/blob/master/dashboards/ranch-dashboard.json[Grafana dashboard].

Thanks this time go to Jan Uhlig and Maria Scott
for contributing the alarms and counters as well
as other improvements that went into this release.

Ranch 2.1 requires Erlang/OTP 22 or above and is tested and supported
on Linux, FreeBSD, macOS and Windows.

A complete list of changes can be found in the migration guide:
https://ninenines.eu/docs/en/ranch/2.1/guide/migrating_from_2.0/[Migrating from Ranch 2.0 to 2.1].

You can donate to this project via
https://github.com/sponsors/essen[GitHub Sponsors].

As usual, feedback is appreciated, and issues or
questions should be sent via Github tickets. Thanks!