Skip to content

Commit

Permalink
Merge pull request #1462 from input-output-hk/release/cardano-service…
Browse files Browse the repository at this point in the history
…s/0.29.3

Release/cardano services/0.29.3
  • Loading branch information
gytis-ivaskevicius authored Sep 5, 2024
2 parents 4a85d96 + 24382dd commit 85c38e2
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 62 deletions.
1 change: 1 addition & 0 deletions nix/cardano-services/deployments/asset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
SERVICE_NAMES = "asset";
TOKEN_METADATA_SERVER_URL = values.cardano-services.tokenMetadataServerUrl;
USE_TYPEORM_ASSET_PROVIDER = "true";
NODE_ENV = values.cardano-services.nodeEnv;

POSTGRES_POOL_MAX_ASSET = "500";
POSTGRES_HOST_ASSET = values.postgresName;
Expand Down
1 change: 1 addition & 0 deletions nix/cardano-services/deployments/backend.provider.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
USE_KORA_LABS = "true";
DISABLE_STAKE_POOL_METRIC_APY = "true";
PAGINATION_PAGE_SIZE_LIMIT = "5500";
NODE_ENV = values.cardano-services.nodeEnv;

HANDLE_PROVIDER_SERVER_URL =
if config.network == "mainnet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
env = utils.mkPodEnv {
NETWORK = config.network;
LOGGER_MIN_SEVERITY = values.cardano-services.loggingLevel;
NODE_ENV = values.cardano-services.nodeEnv;

BLOCKFROST_API_KEY = {
valueFrom.secretKeyRef = {
Expand Down
1 change: 1 addition & 0 deletions nix/cardano-services/deployments/chain-history.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
USE_KORA_LABS = "true";
DISABLE_STAKE_POOL_METRIC_APY = "true";
PAGINATION_PAGE_SIZE_LIMIT = "5500";
NODE_ENV = values.cardano-services.nodeEnv;

ALLOWED_ORIGINS = values.backend.allowedOrigins;

Expand Down
82 changes: 20 additions & 62 deletions nix/cardano-services/deployments/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ in
stake-pool-provider = {
resources.limits = mkPodResources "300Mi" "500m";
resources.requests = mkPodResources "150Mi" "100m";
env.OVERRIDE_FUZZY_OPTIONS = builtins.toJSON (!(lib.hasPrefix "live" final.namespace));
};

handle-provider = {
Expand Down Expand Up @@ -118,6 +119,9 @@ in
stakepool.databaseName = "stakepool";
ingress.enabled = true;
cardano-services = {
nodeEnv = if lib.hasPrefix "live" final.namespace
then "production"
else null;
image = oci.image.name;
buildInfo = oci.meta.buildInfo;
versions = oci.meta.versions;
Expand Down Expand Up @@ -216,7 +220,6 @@ in
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
};
handle-provider.enabled = true;
#asset-provider.enabled = true;
Expand Down Expand Up @@ -265,33 +268,25 @@ in
providers = {
backend = {
enabled = true;
env.USE_SUBMIT_API = "false";
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
};
handle-provider.enabled = true;
#asset-provider.enabled = true;
chain-history-provider.enabled = true;
chain-history-provider = {
enabled = true;
};
};

projectors = {
asset.enabled = true;
handle.enabled = true;
stake-pool.enabled = true;
wallet-api.enabled = true;
};

values = {
useAccelerator = false;
ws-server.enabled = true;
stakepool.databaseName = "stakepoolv2";
backend.allowedOrigins = lib.concatStringsSep "," allowedOriginsDev;

pg-boss-worker.enabled = true;

blockfrost-worker.enabled = false;
pg-boss-worker.enabled = true;
cardano-services = {
ingresOrder = 98;
};
Expand All @@ -312,15 +307,12 @@ in
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
handle-provider.enabled = true;
#asset-provider.enabled = true;
chain-history-provider = {
enabled = true;
replicas = 2;
env.NODE_ENV = "production";
};
};

Expand Down Expand Up @@ -368,7 +360,6 @@ in
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
};
handle-provider.enabled = true;
asset-provider.enabled = true;
Expand Down Expand Up @@ -410,7 +401,6 @@ in
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
};
handle-provider.enabled = true;
asset-provider.enabled = true;
Expand Down Expand Up @@ -448,22 +438,17 @@ in
backend = {
enabled = true;
replicas = 4;
env.NODE_ENV = "production";
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
handle-provider.enabled = true;
chain-history-provider = {
enabled = true;
replicas = 2;
env.NODE_ENV = "production";
};
# asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
# };
};

Expand Down Expand Up @@ -508,22 +493,17 @@ in
backend = {
enabled = true;
replicas = 4;
env.NODE_ENV = "production";
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
handle-provider.enabled = true;
chain-history-provider = {
enabled = true;
replicas = 2;
env.NODE_ENV = "production";
};
#asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
#};
};

Expand Down Expand Up @@ -641,21 +621,16 @@ in
providers = {
backend = {
enabled = true;
env.NODE_ENV = "production";
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
handle-provider = {
enabled = true;
env.NODE_ENV = "production";
};
chain-history-provider.enabled = true;
#asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
#};
};

Expand Down Expand Up @@ -687,21 +662,16 @@ in
providers = {
backend = {
enabled = true;
env.NODE_ENV = "production";
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
handle-provider = {
enabled = true;
env.NODE_ENV = "production";
};
chain-history-provider.enabled = true;
#asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
#};
};

Expand Down Expand Up @@ -733,21 +703,16 @@ in
providers = {
backend = {
enabled = true;
env.NODE_ENV = "production";
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
handle-provider = {
enabled = true;
env.NODE_ENV = "production";
};
chain-history-provider.enabled = true;
#asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
#};
};

Expand Down Expand Up @@ -779,21 +744,16 @@ in
providers = {
backend = {
enabled = true;
env.NODE_ENV = "production";
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
env.NODE_ENV = "production";
};
handle-provider = {
enabled = true;
env.NODE_ENV = "production";
};
chain-history-provider.enabled = true;
#asset-provider = {
# enabled = true;
# env.NODE_ENV = "production";
#};
};

Expand Down Expand Up @@ -884,7 +844,6 @@ in
};
stake-pool-provider = {
enabled = true;
env.OVERRIDE_FUZZY_OPTIONS = "true";
};
};

Expand Down Expand Up @@ -950,24 +909,24 @@ in
providers = {
backend = {
enabled = true;
env.USE_SUBMIT_API = "false";
env.NODE_ENV = "production";
};
stake-pool-provider.enabled = true;
stake-pool-provider = {
enabled = true;
};
chain-history-provider = {
enabled = true;
};
};

projectors = {
stake-pool = {
enabled = true;
env.PROJECTION_NAMES = lib.mkForce "stake-pool,stake-pool-metadata-job,stake-pool-metrics-job";
};
};

values = {
blockfrost-worker.enabled = false;
pg-boss-worker.enabled = true;
pg-boss-worker.queues = "pool-metadata,pool-metrics";

cardano-services = {
ingresOrder = 99;
};
Expand All @@ -984,31 +943,30 @@ in
providers = {
backend = {
enabled = true;
env.USE_SUBMIT_API = "false";
env.NODE_ENV = "production";
};
stake-pool-provider.enabled = true;
stake-pool-provider = {
enabled = true;
};
chain-history-provider = {
enabled = true;
};
};

projectors = {
stake-pool = {
enabled = true;
env.PROJECTION_NAMES = lib.mkForce "stake-pool,stake-pool-metadata-job,stake-pool-metrics-job";
};
};

values = {
blockfrost-worker.enabled = false;
pg-boss-worker.enabled = true;
pg-boss-worker.queues = "pool-metadata,pool-metrics";

cardano-services = {
ingresOrder = 99;
};
};
};


}
# Convenient for cases when you need to create multiple temporary deployments with the same configuration
// (builtins.mapAttrs (_: value: (final:
Expand Down
2 changes: 2 additions & 0 deletions nix/cardano-services/deployments/handle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
NETWORK = config.network;
OGMIOS_SRV_SERVICE_NAME = values.backend.ogmiosSrvServiceName;
SERVICE_NAMES = "handle";
NODE_ENV = values.cardano-services.nodeEnv;

ALLOWED_ORIGINS = values.backend.allowedOrigins;

Expand Down Expand Up @@ -70,6 +71,7 @@
OGMIOS_SRV_SERVICE_NAME = values.backend.ogmiosSrvServiceName;
PROJECTION_NAMES = "handle";
HANDLE_POLICY_IDS = "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a";
NODE_ENV = values.cardano-services.nodeEnv;

POSTGRES_POOL_MAX = "2";
POSTGRES_HOST = values.postgresName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
NETWORK = config.network;
LOGGER_MIN_SEVERITY = values.cardano-services.loggingLevel;
QUEUES = values.pg-boss-worker.queues;
NODE_ENV = values.cardano-services.nodeEnv;

METADATA_FETCH_MODE = values.pg-boss-worker.metadata-fetch-mode;

Expand Down
2 changes: 2 additions & 0 deletions nix/cardano-services/deployments/stake-pool.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
SERVICE_NAMES = "stake-pool";
USE_TYPEORM_STAKE_POOL_PROVIDER = "true";
TOKEN_METADATA_SERVER_URL = values.cardano-services.tokenMetadataServerUrl;
NODE_ENV = values.cardano-services.nodeEnv;

ALLOWED_ORIGINS = values.backend.allowedOrigins;

Expand Down Expand Up @@ -72,6 +73,7 @@
LOGGER_MIN_SEVERITY = values.cardano-services.loggingLevel;
OGMIOS_SRV_SERVICE_NAME = values.backend.ogmiosSrvServiceName;
PROJECTION_NAMES = "stake-pool,stake-pool-metadata-job,stake-pool-metrics-job,stake-pool-rewards-job";
NODE_ENV = values.cardano-services.nodeEnv;

POSTGRES_POOL_MAX = "2";
POSTGRES_HOST = values.postgresName;
Expand Down

0 comments on commit 85c38e2

Please sign in to comment.