Skip to content

Commit

Permalink
Add setting NUMEXPR_MAX_THREADS envvar to deploy docs
Browse files Browse the repository at this point in the history
Silences warning in logs and takes control of how many threads numexpr pkg uses
instead of its default of min(8, number of logical cores).
  • Loading branch information
douglatornell committed Mar 15, 2021
1 parent 3bd734b commit 9758482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/deployment/arbutus_cloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ Add the following files to the :file:`/nemoShare/MEOPAR/nowcast-sys/nowcast-env`
export NOWCAST_CONFIG=/nemoShare/MEOPAR/nowcast-sys/SalishSeaNowcast/config
export NOWCAST_YAML=/nemoShare/MEOPAR/nowcast-sys/SalishSeaNowcast/config/nowcast.yaml
export NOWCAST_LOGS=/nemoShare/MEOPAR/nowcast-sys/logs/nowcast
export NUMEXPR_MAX_THREADS=8
export SENTRY_DSN=a_valid_sentry_dsn_url
EOF
Expand All @@ -830,6 +831,7 @@ and :command:`unset` them when it is deactivated.
unset NOWCAST_CONFIG
unset NOWCAST_YAML
unset NOWCAST_LOGS
unset NUMEXPR_MAX_THREADS
unset SENTRY_DSN
EOF
Expand Down
2 changes: 2 additions & 0 deletions docs/deployment/skookum_salish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ Add the following files to the :file:`/SalishSeaCast/nowcast-env` environment to
export NOWCAST_CONFIG=/SalishSeaCast/SalishSeaNowcast/config
export NOWCAST_YAML=/SalishSeaCast/SalishSeaNowcast/config/nowcast.yaml
export NOWCAST_LOGS=/SalishSeaCast/logs/nowcast
export NUMEXPR_MAX_THREADS=6
export ONC_USER_TOKEN=a_valid_ONC_data_API_user_token
export SARRACENIA_ENV=/SalishSeaCast/sarracenia-env
export SARRACENIA_CONFIG=/SalishSeaCast/SalishSeaNowcast/sarracenia
Expand All @@ -176,6 +177,7 @@ and :command:`unset` them when it is deactivated.
unset NOWCAST_CONFIG
unset NOWCAST_YAML
unset NOWCAST_LOGS
unset NUMEXPR_MAX_THREADS
unset ONC_USER_TOKEN
unset SARRCENIA_ENV
unset SARRACENIA_CONFIG
Expand Down

0 comments on commit 9758482

Please sign in to comment.