-
Notifications
You must be signed in to change notification settings - Fork 106
Run and stop
TempestaFw requires the patched Linux kernel. It can be built from sources or installed from binary packages. Boot to the patched kernel before running TempestaFW.
Optionally, add kernel parameter tempesta_dbmem
to the kernel command line.
The value is the order of 2MB memory blocks reserved on each NUMA node for
Tempesta database. Huge pages are used if possible. The default value is
8 which stands for 512Mb reserved on each NUMA node. Minimum value is 4 (32MB).
tempesta_dbmem=4
This memory area is used by Tempesta DB tables, so the size of the area must be greater or equal to the sum of sizes of all the tables. At this moment following tables are used (this may change with next releases):
-
web cache table. If NUMA replicated mode is used, then you need to multiply the
cache_size
by the number of NUMA nodes. Default mode is replicated and default size is 256MB, so by default if you run on 2 physical processors, then you need 512MB for web cache. -
IP filter table, defined by
filter_tbl_size
, 16MB by default. -
HTTP sessions table, controlled with
sessions_tbl_size
, 16MB by default. -
clients accounting, controlled with
client_tbl_size
, 16MB by default.
A simple startup provided with TempestaFW sources is able to load TempestaFW kernel modules, configure network adapters for better performance and start TempestaFW. The same script can also be to stop and reload TempestaFW.
Start and stop TempestaFW:
$ ${tempesta_src_dir}/scripts/tempesta.sh --start
$ ${tempesta_src_dir}/scripts/tempesta.sh --stop
BY default the startup script uses configuration file located at etc/tempesta_fw.conf
in TempestaFW sources directory. It is possible to start TempestaFW with
custom configuration file location:
$ TFW_CFG_PATH="/opt/tempesta.conf" ${tempesta_src_dir}/scripts/tempesta.sh --start
$ ${tempesta_src_dir}/scripts/tempesta.sh --reload
TempestaFW binary packages
also provide tempesta-fw.service
systemd unit file for loading TempestaFW
on system start. Unlike manual start via the startup script the systemd
unit supports only one location of configuration file: /etc/tempesta_fw.conf
.
The unit file is controlled in the same way like any other systemd units:
- starting and stopping:
$ systemctl start tempesta-fw.service
$ systemctl stop tempesta-fw.service
$ systemctl restart tempesta-fw.service
- run TempestaFW on system start:
$ systemctl enable tempesta-fw.service
$ systemctl disable tempesta-fw.service
$ systemctl reload tempesta-fw.service
- Home
- Requirements
- Installation
-
Configuration
- Migration from Nginx
- On-the-fly reconfiguration
- Handling clients
- Backend servers
- Load Balancing
- Caching Responses
- Non-Idempotent Requests
- Modify HTTP Messages
- Virtual hosts and locations
- HTTP Session Management
- HTTP Tables
- HTTP(S) Security
- Header Via
- Health monitor
- TLS
- Virtual host confusion
- Traffic Filtering by Fingerprints
- Run & Stop
- Application Performance Monitoring
- Use cases
- Performance
- Contributing