!zghijEASpYQWYFzriI:nixos.org

Hydra

370 Members
110 Servers

Load older messages


SenderMessageTime
4 Dec 2024
@rick:matrix.ciphernetics.nlRick (Mindavi)Likely you need to patch that, but maybe read the hydra tests to see how they handle this?16:20:01
@ma27:nicht-so.sexyma27 fwiw I wrote a patch for this a while ago: https://github.com/NixOS/hydra/pull/1360 16:24:15
@belak:matrix.org@belak:matrix.org left the room.17:39:24
@rhelmot:matrix.orgrhelmotthat looks like it's just replacing the local store with the remote store, which is not an option that I'm using right now - should I be?20:03:42
@rhelmot:matrix.orgrhelmot I've just been setting store = daemon?real=/nix/hydra-store 20:04:05
@rhelmot:matrix.orgrhelmotor local?real=/nix/hydra-store in the daemon process20:04:20
@rhelmot:matrix.orgrhelmotunless store and store_uri are synonyms...?20:04:41
5 Dec 2024
@hexa:lossy.networkhexa does hydra gc build logs ever? 😄 11:11:20
@hexa:lossy.networkhexabecause h.n.o has like 420 GB worth of build logs and that feels a wee bit heavy11:11:58
@rick:matrix.ciphernetics.nlRick (Mindavi)I don't think it does.13:11:33
@janne.hess:helsinki-systems.dedas_j
In reply to @hexa:lossy.network
does hydra gc build logs ever? 😄
no
13:31:34
@janne.hess:helsinki-systems.dedas_jbut you should just be able to compress them13:31:42
@janne.hess:helsinki-systems.dedas_jdepending on your version even with zstd13:31:57
@hexa:lossy.networkhexathey are bz2 compressed13:32:55
@hexa:lossy.networkhexa * they are bz2 compressed 13:33:01
@hexa:lossy.networkhexaand then zfs comes and compresses that again to 1.08x13:33:18
@hexa:lossy.networkhexaso I think the best outcome would be to prune those older than say 3 years?13:33:42
@toonn:matrix.orgtoonn With fs compression enabled isn't the file-level compression counterproductive? 14:22:47
@hexa:lossy.networkhexa The zfs compression is "on" 14:44:28
@hexa:lossy.networkhexaThat should be dirt cheap14:44:36
@hexa:lossy.networkhexaBut yeah, ideally don't compress and compress the fs with zstd-1914:45:36
@rick:matrix.ciphernetics.nlRick (Mindavi)
In reply to @hexa:lossy.network
so I think the best outcome would be to prune those older than say 3 years?
I wouldn't mind that, only recent logs are typically accessed
15:03:34
@rick:matrix.ciphernetics.nlRick (Mindavi)And people may always rebuild themselves to generate the logs15:03:49
@vcunat:matrix.orgvcunatAren't they in S3 as well?16:36:30
6 Dec 2024
@hexa:lossy.networkhexa
  systemd.services.hydra-prune-build-logs = {
    description = "Clean up old build logs";
    startAt = "weekly";
    serviceConfig = {
      User = "hydra-queue-runner";
      Group = "hydra";
      ExecStart = lib.concatStringsSep " " [
        (lib.getExe pkgs.findutils)
        "/var/lib/hydra/build-logs/"
        "-type" "f"
        "-mtime" "+${toString (3 * 365)}"
        "-delete"
      ];
    };
  };
03:14:04
@hexa:lossy.networkhexa
In reply to @vcunat:matrix.org
Aren't they in S3 as well?

upload_logs_to_binary_cache = true

03:14:31
@hexa:lossy.networkhexaonly slightly wasteful03:14:43
@hexa:lossy.networkhexa *
  systemd.services.hydra-prune-build-logs = {
    description = "Clean up old build logs";
    startAt = "weekly";
    serviceConfig = {
      User = "hydra-queue-runner";
      Group = "hydra";
      ExecStart = lib.concatStringsSep " " [
        (lib.getExe pkgs.findutils)
        "/var/lib/hydra/build-logs/"
        "-type" "f"
        "-mtime" "+${toString (3 * 365)}"
        "-delete"
      ];
    };
  };

deployed to hydra.nixos.org, will run the first time on monday

03:15:28
@vcunat:matrix.orgvcunatIt's pretty small compared to the (compressed) NARs, at a glance. But we could have some GC policy there as well.06:25:12
@janne.hess:helsinki-systems.dedas_j That works but Hydra doesn't fetch them from there. nix logs should do through 08:47:07

Show newer messages


Back to Room ListRoom Version: 6