Redis service

Provides a common cache, required if clustered mode is in use for NtkAS or any service is balanced using external load balancer.

Start REDIS server on every node.

ntk redis start

To check that service is running, inspect cache:

docker exec -it redis redis-cli -n 1[1]> keys *
  1) "main-dashboard/cache:a8691165dececc2214a89b52fa9672068558bfee"
  2) "main-dashboard/cache:9c61bbcf-16f5-4b8e-9329-a6c15f62bf53"

Use REDIS "keys *" command to ensure that cache is being populated. This has to be done after NtkAS cache configuration and "ntk as restart".   


VRRP VIP and tracker configuration

Configure tracker on every node in VRRP cluster

ntk cfg set vrrp.track.tcp '{
      "host": "",
      "port": "6379",
      "timeout": "2"
    }' --json-input

Configure redis VRRP service on each node with VRRP running. Ensure address and vrid is the same and  prio is different. Replace `vrid` and `address` with your local config.

ntk cfg set '{
      "prio": "150",
      "vrid": "53",
      "interface": "eth0",
      "address": "",
      "preempt": "off",
      "track": [
    }' --json-input

Restart VRRP service on all VRRP nodes

ntk vrrp restart