Skip to content

Commit

Permalink
ulimit magic
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Jan 18, 2021
1 parent 0833549 commit bc6e5f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jobs/catalyst-dryrun.nix
Expand Up @@ -37,10 +37,10 @@ let
networks = [{
mode = "host";
ports = {
prometheus.to = 6000;
rest.to = 7000;
rpc.to = 8000;
promtail.to = 9000;
prometheus = { };
rest = { };
rpc = { };
promtail = { };
};
}];

Expand Down
3 changes: 3 additions & 0 deletions pkgs/jormungandr-monitor.nix
Expand Up @@ -6,6 +6,9 @@ let
entrypoint = writeShellScriptBin "entrypoint" ''
export SSL_CERT_FILE="${cacert}/etc/ssl/certs/ca-bundle.crt"
export PATH="${PATH}"
ulimit -n 1024
exec ${jormungandr-monitor} "$@"
'';
in symlinkJoin {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/jormungandr.nix
Expand Up @@ -17,6 +17,8 @@ let
entrypoint = writeShellScriptBin "entrypoint" ''
set -exuo pipefail
ulimit -n 1024
nodeConfig="$NOMAD_TASK_DIR/node-config.json"
runConfig="$NOMAD_TASK_DIR/running.json"
runYaml="$NOMAD_TASK_DIR/running.yaml"
Expand Down

0 comments on commit bc6e5f8

Please sign in to comment.