mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 06:08:23 +08:00
Actual LimitNOFILE varies greatly between the systems as it depends on the systemd version and the go version used to build Teleport. The goal of this commit is to run Teleport in the same setup, regardless of the distro nor Teleport version. New systemd defaults are 1024:524288, and starting with go 1.19, go process can increase their soft limit up to the hard limmit dynamically. Old systemd versions don't suppoprt `soft:hard` notation and old go versions don't automatically increase up to the hard limit. For this reasons, the most compatible setting is to set softlimit=hardlimit=524288.
Systemd Service
Sample configuration of systemd service file for Teleport
To use it:
sudo cp teleport.service /etc/systemd/system/teleport.service
sudo systemctl daemon-reload
sudo systemctl enable teleport
sudo systemctl start teleport
To check on Teleport daemon status:
systemctl status teleport
To take a look at Teleport system log:
journalctl -fu teleport