view mod_c2s_conn_throttle/README.markdown @ 4578:d95fcde6e39d

mod_measure_lua: add openmetrics-spirited way to collect lua memory use In the spirit of separate collectors found in other Prometheus packages, this is a separate module to collect metrics related to the lua stack itself.
author Jonas Schäfer <jonas@wielicki.name>
date Sat, 29 May 2021 12:12:17 +0200
parents 4d73a1a6ba68
children
line wrap: on
line source

---
labels:
- 'Stage-Stable'
summary: c2s connections throttling module
...

Introduction
============

This module allows to throttle those client connections which exceed a
n\*seconds limit.

Usage
=====

Copy the module folder into your prosody modules directory. Place the
module between your enabled modules either into the global or a vhost
section.

Optional configuration directives:

``` {.lua}

cthrottler_logins_count = 3 -- number of login attempts allowed, default is 3
cthrottler_time = 60 -- .. in number of seconds, default is 60
```

Info
====

-   0.8, works
-   0.9, works