Knowledge base

Scaling & high availability · updated 9 October 2020 · reviewed 9 July 2026

Increasing max simultaneous requests for NtkAS

Allocate more processing threads to the Notakey Authentication Server when request volume grows.

Though the number of requests towards the Notakey Authentication Server (NtkAS) service tends to be low, there can be cases where this has to be increased.

$ ntk cfg get :nas.custom_params
# Verify that there are no additional custom parameters
# If there are none, run the following
$ ntk cfg set :nas.custom_params "RAILS_MAX_THREADS=256"
# If there are additional custom params, concatenate all params with comma
$ ntk cfg set :nas.custom_params "NOTAKEY_MESSENGER_TIMEOUT=5,RAILS_MAX_THREADS=256"
$ ntk as restart

This will allocate 256 processing threads for processing incoming requests. The value can be freely adjusted as required, but larger numbers will require more RAM and CPU resources.

Use docker stats and ntk sys perf commands to monitor your load and adjust hardware resources as required.

← Back to support

Get started

Run it on your own server today

One command installs the appliance on a Debian or Ubuntu server, or in a new Proxmox container. The first 10 users are free.

sudo bash -c "$(curl -fsSL https://www.notakey.com/install/appliance.sh)"

You also need a public host name with HTTPS. Allow about 35 minutes. The setup, step by step →

Nothing to install: a cloud instance, first 6 users free.

Start free in the cloud

Prefer a walkthrough with an engineer? Request a demo →