Skip to content

Uses less memory + Postgres15

Compare
Choose a tag to compare
@FarrantAlex FarrantAlex released this 29 Jan 14:03
· 39 commits to main since this release

Updates postgres to 15 and addresses following issues:

  • Cannot connect to database caused by using the public IP for the SQL connection. This worked for some but not all depending on firewall state. It now uses a docker alias of "tak-database" instead of $HOSTIP
  • Certificate common name is now the public IP not "takserver". This caused custom python scripts like cotroutesim to require a /etc/hosts entry for takserver to bypass the common name validation error.
  • BLUF: You can run TAK Server with 2GB of memory. The memory allocation for takserver was clumsy. It calculated how much memory the box had in total and then carved it up, presumably because this was run on a minimal purpose built VM. Instead we now calculate how much memory is free and then we carve that up, so this still scales. An idle new DB uses < 100MB and the idle TS uses < 1.9GB (on a 4GB i5).
  • Fixes #26 since it appears DP + cert handling has evolved again in clients