Sebbene il numero di richieste indirizzate al servizio Notakey Authentication Server (NtkAS) tenda a essere basso, in alcuni casi può essere necessario aumentarlo.
$ 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
In questo modo assegnate 256 thread di elaborazione per gestire le richieste in arrivo. Potete regolare liberamente questo valore secondo le vostre esigenze, ma numeri più alti richiederanno più RAM e più risorse CPU.
Usate i comandi docker stats e ntk sys perf per monitorare il carico e
adeguare le risorse hardware quando serve.