Skip to content

Commit 40e5a19

Browse files
committed
scale-down: patroni infra -> 0, nomad clients -> 0, cache -> 0
1 parent eca1459 commit 40e5a19

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

nix/metal/bitteProfile/default.nix

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ in {
145145
# client-$REGION-$INSTANCE_TYPE-$ASG_SUFFIX
146146
in
147147
lib.listToAttrs (lib.forEach [
148-
(mkAsgs "eu-central-1" 1 "m5.8xlarge" 1000 "prod" "prod" {} {})
149-
(mkAsgs "eu-central-1" 3 "t3.xlarge" 200 "infra" "infra" {withPatroni = true;} {volumeType = "gp3";})
148+
(mkAsgs "eu-central-1" 0 "m5.8xlarge" 1000 "prod" "prod" {} {})
149+
(mkAsgs "eu-central-1" 0 "t3.xlarge" 200 "infra" "infra" {withPatroni = true;} {volumeType = "gp3";})
150150
(mkAsgs "eu-central-1" 0 "m5.metal" 1000 "baremetal" "baremetal" {} {primaryInterface = "enp125s0";})
151151
(mkAsgs "eu-central-1" 0 "t3a.medium" 100 "test" "test" {} {})
152152
(mkAsgs "eu-central-1" 0 "t3a.medium" 100 "perf" "perf" {} {})
@@ -261,7 +261,7 @@ in {
261261
};
262262

263263
routing = {
264-
instanceType = "m5n.4xlarge";
264+
instanceType = "t3a.large";
265265
privateIP = "172.16.1.20";
266266
subnet = cluster.vpc.subnets.core-2;
267267
volumeSize = 100;
@@ -346,24 +346,25 @@ in {
346346
};
347347
};
348348

349-
cache = {
350-
instanceType = "m5n.4xlarge";
351-
privateIP = "172.16.0.52";
352-
subnet = cluster.vpc.subnets.core-1;
353-
volumeSize = 13000;
354-
355-
modules = [
356-
(bitte + /profiles/auxiliaries/telegraf.nix)
357-
(bitte + /modules/docker-registry.nix)
358-
./cache.nix
359-
./r2-user.nix
360-
./auth-keys-hub.nix
361-
{services.docker-registry.enable = true;}
362-
];
363-
securityGroupRules = {
364-
inherit (securityGroupRules) internet internal ssh;
365-
};
366-
};
349+
# Cache server and docker registry no longer in use
350+
# cache = {
351+
# instanceType = "m5n.4xlarge";
352+
# privateIP = "172.16.0.52";
353+
# subnet = cluster.vpc.subnets.core-1;
354+
# volumeSize = 13000;
355+
356+
# modules = [
357+
# (bitte + /profiles/auxiliaries/telegraf.nix)
358+
# (bitte + /modules/docker-registry.nix)
359+
# ./cache.nix
360+
# ./r2-user.nix
361+
# ./auth-keys-hub.nix
362+
# {services.docker-registry.enable = true;}
363+
# ];
364+
# securityGroupRules = {
365+
# inherit (securityGroupRules) internet internal ssh;
366+
# };
367+
# };
367368

368369
zt = {
369370
# https://support.netfoundry.io/hc/en-us/articles/360025875331-Edge-Router-VM-Sizing-Guide

0 commit comments

Comments
 (0)