Skip to main content

Manage sessions

A session is one of the four isolated parts of a dedicated simulator host. See How it works.

Log in and reserve a session​

sim-remote login authenticates you with your API key and reserves a session. If all your team’s sessions are busy, the command waits for one to become available. It prints the session ID in the form <HOST_ID>/simN:

Logged in. Acquired machine A1B2C3D4E5/sim2.

You can also log in without a session and reserve one later with sim-remote acquire.

Hold more than one session​

Keep at most two booted simulators in each session, including the pre-booted simulator, so that the session stays responsive. To run more simulators in parallel, hold more than one session. See Simulators per session.

The simulator host runs at most six booted simulators across its four sessions. The simulators of your teammates count toward this limit.

One daemon holds one session. To hold several sessions from one computer, run one daemon per session: Set SIM_REMOTE_SESSION to a different name in each shell or agent before you run sim-remote login. See Several sessions on one computer.

sim-remote list-machines shows all the sessions that you hold and marks the session of the current daemon. sim-remote attach <MACHINE_ID> switches the current daemon to another session that you hold and releases the session that the daemon held before. Two daemons can share one session in this way. The session stays reserved until both daemons release it.

Keep a session during a long run​

The daemon releases the session after 15 minutes without a sim-remote command. During a long test run that does not go through sim-remote, run sim-remote keepalive 30m to keep the session for 30 minutes. You can hold a session for at most 24 hours.

Give a session back​

sim-remote release returns the session and keeps you logged in. sim-remote logout returns the session and logs you out. Nobody else on your team can use a session that you hold, so log out when you are done.

When the last daemon releases a session, Argent Cloud erases every simulator in it and rebuilds it from a clean image. Download your logs and files first. See What survives a session.

The sessions and limits reference lists the timeouts. The CLI reference lists the session commands.