Skip to content

Commit

Permalink
Update links to archived pgl.yoyo.org Lua reference
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Dec 12, 2024
1 parent f331a66 commit 9118263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _posts/2019-05-13-rspamd-1.9.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Some modules should set metric result as **least possible** result. For example,

## Tunable memory management

From this version, Rspamd allows to manage memory policies for [Lua garbage collection](http://pgl.yoyo.org/luai/i/2.10+Garbage+Collection) allowing to fit memory/cpu constraints more flexible. When Rspamd is built with `jemalloc` (e.g. in the default packages provided by the project), it can also print detailed memory statistics on full gc loops.
From this version, Rspamd allows to manage memory policies for [Lua garbage collection](https://web.archive.org/web/20240715205113/http://pgl.yoyo.org/luai/i/2.10+Garbage+Collection) allowing to fit memory/cpu constraints more flexible. When Rspamd is built with `jemalloc` (e.g. in the default packages provided by the project), it can also print detailed memory statistics on full gc loops.

Here is an example for tuning GC in Rspamd when there are lots of free memory available (around 1Gb per scanner process):

Expand Down Expand Up @@ -125,4 +125,4 @@ Here is the list of the most important bugs fixes:
* [Project] Improve keys creation in rspamadm vault
* [Rework] Move lua_worker to a dedicated unit
* [WebUI] Add URL fragments (#) support
* [WebUI] Fix AJAX request URL
* [WebUI] Fix AJAX request URL
4 changes: 2 additions & 2 deletions doc/configuration/selectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ The data definition part specifies what needs to be extracted. Here is the list
| `received` | 1.8+ | Get list of received headers. If no arguments specified, returns list of tables. Otherwise, selects a specific element, e.g. `by_hostname`
| `request_header` | 1.8+ | Get specific HTTP request header. The first argument must be header name.
| `symbol` | 2.6+ | Get symbol with the name that is expected as first argument. Returns the symbol table (like task:get_symbol())
| `time` | 1.8+ | Get task timestamp. The first argument is type:{::nomarkdown}<ul><li><code>connect</code>: connection timestamp (default)</li><li><code>message</code>: timestamp as defined by <code>Date</code> header</li></ul>{:/}The second argument is optional time format, see [os.date](https://pgl.yoyo.org/luai/i/os.date) description
| `time` | 1.8+ | Get task timestamp. The first argument is type:{::nomarkdown}<ul><li><code>connect</code>: connection timestamp (default)</li><li><code>message</code>: timestamp as defined by <code>Date</code> header</li></ul>{:/}The second argument is optional time format, see [os.date](https://web.archive.org/web/20231130145520/https://pgl.yoyo.org/luai/i/os.date) description
| `to` | 1.8+ | Get principal recipient
| `uid` | 2.6+ | Get ID of the task being processed
| `urls` | 1.8+ | Get list of all urls. If no arguments specified, returns list of url objects. Otherwise, calls a specific method, e.g. `get_tld`
Expand Down Expand Up @@ -230,7 +230,7 @@ The data definition part specifies what needs to be extracted. Here is the list
| `prepend` | 2.0+ | Prepends a string or a strings list
| `regexp` | 1.8+ | Regexp matching
| `sort` | 2.0+ | Sort strings lexicographically
| `substring` | 1.8+ | Extracts substring. Arguments are equal to lua [string.sub](https://pgl.yoyo.org/luai/i/string.sub)
| `substring` | 1.8+ | Extracts substring. Arguments are equal to lua [string.sub](https://web.archive.org/web/20231130143649/https://pgl.yoyo.org/luai/i/string.sub)
| `take_n` | 1.8+ | Returns the n first elements
| `to_ascii` | 2.6+ | Returns the string with all non-ascii bytes replaced with the character given as second argument or `?`
| `uniq` | 2.0+ | Returns a list of unique elements (using a hash table - no order preserved!)
Expand Down

0 comments on commit 9118263

Please sign in to comment.