Skip to content

Running standalone flux-shell as rank 1 #3167

Answered by grondo
SteVwonder asked this question in Q&A
Discussion options

You must be logged in to vote

The -r standalone shell option specifies the broker rank not the shell rank. To run a standalone shell as shell rank 1, you will need to provide an R that contains 2 broker ranks, and set -r to the 2nd broker rank in R.

Now, the standalone shell option is not designed nor well tested for multiple rank jobs. Things may break in strange ways. You may have to exit early from the shell via a custom initrc to avoid a hang.

For example, here's a simple, multi-rank R:

{
  "version": 1,
  "execution": {
    "R_lite": [
      {
        "rank": "0-1",
        "children": {
          "core": "0"
        }
      }
    ]
  }
}

And an initrc that prints the shell rank:

print("shell rank is: "..shell.info.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SteVwonder
Comment options

Answer selected by grondo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants