Skip to content

chore: enable gc tracing #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nix/cardano-services/deployments/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ in
backend = {
enabled = true;
replicas = 3;
env.NODE_EXTRA_OPTIONS = "--trace-gc";
};
stake-pool-provider = {
enabled = true;
Expand Down
2 changes: 1 addition & 1 deletion nix/cardano-services/operables.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let
mainnet preprod preprod_p2p preview preview_p2p testnet vasil-dev vasil-dev_p2p vasil-qa
*/
cardanoServicesPath = pkg: "${pkg}/libexec/incl/packages/cardano-services";
runCardanoServices = pkg: "${lib.getExe pkg.nodejs} ${cardanoServicesPath pkg}";
runCardanoServices = pkg: "${lib.getExe pkg.nodejs} \${NODE_EXTRA_OPTIONS:-} ${cardanoServicesPath pkg}";
in {
cardano-services = std.lib.ops.mkOperable rec {
package = cell.packages.cardano-services;
Expand Down
2 changes: 1 addition & 1 deletion nix/cardano-services/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ in {
postInstall = ''
cat > $out/bin/cli <<EOF
#!${nixpkgs.bash}/bin/bash
exec "${nixpkgs.nodejs}/bin/node" "$out/libexec/$sourceRoot/packages/cardano-services/dist/cjs/cli.js" "\$@"
exec "${nixpkgs.nodejs}/bin/node" ''${NODE_EXTRA_OPTIONS:-} "$out/libexec/$sourceRoot/packages/cardano-services/dist/cjs/cli.js" "\$@"
EOF
chmod a+x $out/bin/cli
'';
Expand Down
Loading