config#
Configuration of resilient mode.
Classes:
|
Where and how checkpoints are written. |
|
Warm standby sessions used for failover. |
|
Configuration of resilient mode. |
- class ansys.fluent.core.resilient.engine.config.CheckpointConfig(directory=None, keep_last=5, include_data=True)#
Bases:
objectWhere and how checkpoints are written.
- Parameters:
- directory
stroros.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_last
int,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.
- directory
Attributes:
- class ansys.fluent.core.resilient.engine.config.PoolConfig(size=1, launch_kwargs=None, launcher=None)#
Bases:
objectWarm standby sessions used for failover.
- Parameters:
- size
int,optional Total number of sessions: one active session plus
size - 1warm standbys. The default is1(no standbys, no failover).- launch_kwargs
dict,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.
- launcher
callable(),optional Zero-argument callable that returns a new session. Takes precedence over
launch_kwargs.
- size
Attributes:
- class ansys.fluent.core.resilient.engine.config.ResilientConfig(auto_checkpoint=True, auto_rollback=True, journal_max_ops=10000, checkpoint=<factory>, pool=<factory>)#
Bases:
objectConfiguration of resilient mode.
- Parameters:
- auto_checkpointbool,
optional Whether to write a checkpoint before each irreversible command (for example
iterateorread_case). The default isTrue.- 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_ops
int,optional Maximum number of operations kept in the journal. The default is
10000.- checkpoint
CheckpointConfig,optional Checkpoint location and retention.
- pool
PoolConfig,optional Warm standby sessions for failover.
- auto_checkpointbool,
Attributes:
-
checkpoint:
CheckpointConfig#
-
pool:
PoolConfig#