Skip to content
Snippets Groups Projects
  1. Aug 29, 2023
    • Florian Sesser's avatar
      We want to swap in emergency situations so we have some time to recover · 03ebe372
      Florian Sesser authored
      On never kernels, a swappiness of 0 means "disable swap completely"
      where it would before ~ 2.6.32 would still allow the kernel to swap
      in certain emergency situations.
      
      We have alerting in place in case of any swapping, hoping we can react
      quickly enough to catch problems of runaway machines before they have
      to haywire OOM or reboot.
      
      Command: `rg -l swappiness | xargs sed -i 's/swappiness" = 0/swappiness" = 1/'`
      (but not adding the change to the virtual hardware for the local grid).
      03ebe372
  2. Jun 20, 2023
  3. Jun 19, 2023
  4. Apr 28, 2023
  5. Apr 19, 2023
  6. Feb 13, 2023
  7. Oct 29, 2022
  8. Aug 29, 2022
  9. Aug 15, 2022
  10. Jun 10, 2022
  11. May 20, 2022
  12. May 10, 2022
  13. May 03, 2022
  14. May 02, 2022
  15. Apr 29, 2022
  16. Feb 27, 2022
  17. Feb 25, 2022
  18. Feb 24, 2022
  19. Feb 11, 2022
  20. Feb 10, 2022
    • Jean-Paul Calderone's avatar
      Read the VPN server IP address from the monitoring node config · 0eee7f76
      Jean-Paul Calderone authored
      morph offers an auto-passed `nodes` parameter from which we can read all of
      the nodes in the morph "network".  We can dig around in this to find the
      monitoring node and then read its configured IP address.
      
      It may be worth noting that this address appears in at least two places in the
      configuration.  It appears in our "input" configuration which grid.nix
      defines.  This change reads it from there.  We also have a NixOS module
      `nixos/modules/monitoring/vpn/server.nix` which reads this "input" and uses it
      to configure `networking.wireguard.interfaces.monitoringvpn`.  This is fed
      onwards to <nixos> to generate actual system configuration.
      
      It seems better to use the former than the latter because we have more direct
      control over it and if we consider the whole configuration system a function
      then it is more like an argument we are supplying rather than an obscure
      implementation detail.
      0eee7f76
    • Florian Sesser's avatar
      Revert "Also turn on auto-optimize nix store on local dev VMs" · c44d7c2f
      Florian Sesser authored
      This reverts commit 3113a3e6.
      
      Thinking a second time:  While the staging grid is deployed to
      by an automaton anyway and it taking a minute longer won't bother
      us, 20 % space savings is probably not worth slowing down
      development interactivity.
      c44d7c2f
Loading