Skip to content

Commit e559b46

Browse files
committed
Version bump to 0.5.0
1 parent a9701a3 commit e559b46

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

Diff for: README.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ Features
1111
to prevent detection by DPI
1212
* Secure-only mode (only allow connections with 'dd'-secrets). See `allowed_protocols` option.
1313
* Multiple ports with unique secret and promo tag for each port
14-
* Automatic configuration reload (no need for restarts once per day)
15-
* Most of the configuration options can be updated without service restart
1614
* Very high performance - can handle tens of thousands connections! Scales to all CPU cores.
15+
1Gbps, 90k connections on 4-core/8Gb RAM cloud server.
1716
* Supports multiplexing (Many connections Client -> Proxy are wrapped to small amount of
1817
connections Proxy -> Telegram Server)
1918
* Protection from [replay attacks](https://habr.com/ru/post/452144/) used to detect proxies in some countries
19+
* Automatic telegram configuration reload (no need for restarts once per day)
20+
* Most of the configuration options can be updated without service restart
2021
* Small codebase compared to official one
2122
* A lots of metrics could be exported (optional)
2223

@@ -270,6 +271,17 @@ it will use less CPU and will be better protected from replay attacks, but will
270271
max_age_minutes => 1440}},
271272
```
272273

274+
Also, for highload setups it's recommended to increase sysctl parameters:
275+
276+
```
277+
sudo sysctl net.ipv4.tcp_max_orphans=128000
278+
sudo sysctl 'net.ipv4.tcp_mem=179200 256000 384000'
279+
```
280+
281+
Values for `tcp_mem` are in pages. Size of one page can be found by `getconf PAGESIZE` and is most
282+
likely 4kb.
283+
284+
273285
Helpers
274286
-------
275287

Diff for: src/mtproto_proxy.app.src

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application, mtproto_proxy,
2-
[{description, "An OTP application"},
3-
{vsn, "0.4.1-mux"},
2+
[{description, "High-performance Telegram MTProto proxy server"},
3+
{vsn, "0.5.0"},
44
{registered, []},
55
{mod, { mtproto_proxy_app, []}},
66
{applications,
@@ -139,5 +139,5 @@
139139

140140
{maintainers, []},
141141
{licenses, ["Apache 2.0"]},
142-
{links, []}
142+
{links, [{"GitHub", "https://github.com/seriyps/mtproto_proxy"}]}
143143
]}.

0 commit comments

Comments
 (0)