Pdns - cache-ttl: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
(Новая страница: «=== Pdns - cache-ttl === cache-ttl - это время жизни одинаковых запросов в кэше, для того чтобы повторно...»)
 
 
Строка 3: Строка 3:
 
  cache-ttl - это время жизни одинаковых запросов в кэше, для того чтобы повторно не обрщаться к pdns серверу.
 
  cache-ttl - это время жизни одинаковых запросов в кэше, для того чтобы повторно не обрщаться к pdns серверу.
 
  По-умолчанию, 20 секунд.
 
  По-умолчанию, 20 секунд.
 
  
 
  # vi /etc/pdns/pdns.conf
 
  # vi /etc/pdns/pdns.conf
 
  cache-ttl=300
 
  cache-ttl=300
 
  # systemctl restart pdns
 
  # systemctl restart pdns
 
  
 
  PowerDNS by default uses the ‘Packet Cache’ to recognise identical questions and supply them with identical answers, without any further processing. The default time to live is 20 seconds and can be changed by setting cache-ttl. It has been observed that the utility of the packet cache increases with the load on your nameserver.
 
  PowerDNS by default uses the ‘Packet Cache’ to recognise identical questions and supply them with identical answers, without any further processing. The default time to live is 20 seconds and can be changed by setting cache-ttl. It has been observed that the utility of the packet cache increases with the load on your nameserver.
 
  Not all backends may benefit from the packet cache. If your backend is memory based and does not lead to context switches, the packet cache may actually hurt performance.
 
  Not all backends may benefit from the packet cache. If your backend is memory based and does not lead to context switches, the packet cache may actually hurt performance.

Текущая версия на 11:01, 15 января 2023

Pdns - cache-ttl

cache-ttl - это время жизни одинаковых запросов в кэше, для того чтобы повторно не обрщаться к pdns серверу.
По-умолчанию, 20 секунд.
# vi /etc/pdns/pdns.conf
cache-ttl=300
# systemctl restart pdns
PowerDNS by default uses the ‘Packet Cache’ to recognise identical questions and supply them with identical answers, without any further processing. The default time to live is 20 seconds and can be changed by setting cache-ttl. It has been observed that the utility of the packet cache increases with the load on your nameserver.
Not all backends may benefit from the packet cache. If your backend is memory based and does not lead to context switches, the packet cache may actually hurt performance.