zhaofengli / attic

Multi-tenant Nix Binary Cache

Home Page:https://docs.attic.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lower CPU usage settings?

alicebob opened this issue · comments

Hi,

attic runs well here, helps a lot with keeping CI times sane here.

I'm running it on a very crappy virtual host, and it's using a lot of CPU when pushing new versions. It's running on postgres, but local storage. Anyone any idea what the best settings are for minimizing CPU? Disable compression?

I use the default chunking:

      chunking = {
        nar-size-threshold = 64 * 1024; # 64 KiB
        min-size = 16 * 1024; # 16 KiB
        avg-size = 64 * 1024; # 64 KiB
        max-size = 256 * 1024; # 256 KiB
      };

Attic version 0.1.0 (the one in nixos unstable)

Setting compression.type = "none"; helps a lot.

It's fine with no compression. If anyone ever figures out better settings I'm still interested, but until then I'll close this.