config#

Configuration of resilient mode.

Classes:

CheckpointConfig([directory, keep_last, ...])

Where and how checkpoints are written.

PoolConfig([size, launch_kwargs, launcher])

Warm standby sessions used for failover.

ResilientConfig([auto_checkpoint, ...])

Configuration of resilient mode.

class ansys.fluent.core.resilient.engine.config.CheckpointConfig(directory=None, keep_last=5, include_data=True)#

Bases: object

Where and how checkpoints are written.

Parameters:
directorystr or os.PathLike, optional

Directory for checkpoint files. For a server that shares the client file system, the default is resilient_checkpoints/<run-id> under the current working directory. For a remote or containerized server, the default is the server working directory (for a container, the folder mounted into it), and a directory you give is a path on the server (for a container, a path inside it). It must already exist, and every standby session must be able to read it.

keep_lastint, optional

Number of most recent checkpoints to keep. Older ones are deleted when the client can reach the files. The default is 5.

include_databool, optional

Whether to include solution data when the product supports it. The default is True.

Attributes:

directory: str | PathLike | None = None#
include_data: bool = True#
keep_last: int = 5#
class ansys.fluent.core.resilient.engine.config.PoolConfig(size=1, launch_kwargs=None, launcher=None)#

Bases: object

Warm standby sessions used for failover.

Parameters:
sizeint, optional

Total number of sessions: one active session plus size - 1 warm standbys. The default is 1 (no standbys, no failover).

launch_kwargsdict, optional

Keyword arguments for the product’s launch function, used to start standbys. When omitted, standbys reuse the arguments that launched the active session if they are known.

launchercallable(), optional

Zero-argument callable that returns a new session. Takes precedence over launch_kwargs.

Attributes:

launch_kwargs: dict[str, Any] | None = None#
launcher: Optional[Callable[[], Any]] = None#
size: int = 1#
class ansys.fluent.core.resilient.engine.config.ResilientConfig(auto_checkpoint=True, auto_rollback=True, journal_max_ops=10000, checkpoint=<factory>, pool=<factory>)#

Bases: object

Configuration of resilient mode.

Parameters:
auto_checkpointbool, optional

Whether to write a checkpoint before each irreversible command (for example iterate or read_case). The default is True.

auto_rollbackbool, optional

Whether to restore that checkpoint when the irreversible command fails. The original error is raised afterwards in either case. The default is True.

journal_max_opsint, optional

Maximum number of operations kept in the journal. The default is 10000.

checkpointCheckpointConfig, optional

Checkpoint location and retention.

poolPoolConfig, optional

Warm standby sessions for failover.

Attributes:

auto_checkpoint: bool = True#
auto_rollback: bool = True#
checkpoint: CheckpointConfig#
journal_max_ops: int = 10000#
pool: PoolConfig#