Skip to content

Commit

Permalink
remove perf nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
dermetfan committed Aug 30, 2023
1 parent f05d659 commit 306ef6c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 73 deletions.
2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
(inputs.std.data "constants")
(inputs.std.data "namespaces/infra")
(inputs.std.data "namespaces/mainnet")
(inputs.std.data "namespaces/perf")
(inputs.std.data "namespaces/preprod")
(inputs.std.data "namespaces/preview")
(inputs.std.data "namespaces/private")
Expand Down Expand Up @@ -194,7 +193,6 @@
in {
infra = mkNomadJobs cloud."namespaces/infra";
mainnet = mkNomadJobs cloud."namespaces/mainnet";
perf = mkNomadJobs cloud."namespaces/perf";
preprod = mkNomadJobs cloud."namespaces/preprod";
preview = mkNomadJobs cloud."namespaces/preview";
private = mkNomadJobs cloud."namespaces/private";
Expand Down
4 changes: 0 additions & 4 deletions nix/cloud/constants.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ in {
(mkEnv {
name = "mainnet";
})
(mkEnv {
name = "perf";
nodeClass = "perf";
})

# Memory for node needs to be adjusted for chain size.
# Since memory exhausted clients can be CPU under-utilized,
Expand Down
13 changes: 0 additions & 13 deletions nix/cloud/namespaces/perf.nix

This file was deleted.

54 changes: 0 additions & 54 deletions nix/metal/bitteProfile.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,65 +75,11 @@ in {
euCentral = attrs: [
(attrs // {region = "eu-central-1";})
];

perfNodes = attrs: [
(attrs
// {
region = "eu-central-1";
desiredCapacity = 18;
})
(attrs
// {
region = "eu-central-1";
desiredCapacity = 1;
instanceType = "m5.4xlarge";
})
(attrs
// {
region = "us-east-1";
desiredCapacity = 17;
})
(attrs
// {
region = "ap-southeast-2";
desiredCapacity = 17;
})
];
in
lib.listToAttrs
(
lib.forEach
(
# Perf Nodes
(perfNodes {
instanceType = "c5.2xlarge";
volumeSize = 60;
node_class = "perf";
maxSize = 20;
modules = defaultModules ++ [
{
services.zfs-client-options.enableZfsSnapshots = false;
services.nomad.client.meta.perf = "true";
}
];
securityGroupRules = {
inherit (sr) internet internal ssh;

perf-node = {
from = 30000;
to = 30053;
protocols = ["tcp"];
cidrs = ["0.0.0.0/0"];
};

perf-transport = {
port = 32000;
protocols = ["tcp"];
cidrs = ["0.0.0.0/0"];
};
};
})
++
# Infra Nodes
(euCentral {
instanceType = "t3.2xlarge";
Expand Down

0 comments on commit 306ef6c

Please sign in to comment.