flambe.runnable.environment
¶
Module Contents¶
-
class
flambe.runnable.environment.
RemoteEnvironment
(key: str, orchestrator_ip: str, factories_ips: List[str], user: str, **kwargs)[source]¶ Bases:
flambe.compile.Registrable
This objects contains information about the cluster
This object will be available on the remote execution of the ClusterRunnable (as an attribute).
IMPORTANT: this object needs to be serializable, hence it Needs to be created using ‘compile’ method.
-
key
¶ The key that communicates the cluster
Type: str
-
orchestrator_ip
¶ The orchestrator visible IP for the factories (usually the private IP)
Type: str
-
factories_ips
¶ The list of factories IPs visible for other factories and orchestrator (usually private IPs)
Type: List[str]
-
user
¶ The username of all machines. This implementations assumes same usename for all machines
Type: str
-