proxystore.endpoint.config¶
Endpoint configuration.
EndpointRelayAuthConfig
¶
EndpointRelayConfig
¶
Bases: BaseModel
Endpoint relay server configuration.
Attributes:
-
address
(Optional[str]
) –Address of the relay server to register with.
-
auth
(EndpointRelayAuthConfig
) –Relay server authentication configuration.
-
peer_channels
(int
) –Number of peer channels to multiplex communication over.
-
verify_certificates
(int
) –Validate the relay server's SSL certificate. This should only be disabled when testing endpoint with local relay servers using self-signed certificates.
EndpointStorageConfig
¶
EndpointConfig
¶
Bases: BaseModel
Endpoint configuration.
Attributes:
-
name
(str
) –Endpoint name.
-
uuid
(str
) –Endpoint UUID.
-
host
(Optional[str]
) –Host endpoint is running on.
-
port
(int
) –Port endpoint is running on.
-
peering
(int
) –Peering configuration.
-
storage
(EndpointStorageConfig
) –Storage configuration.
Raises:
-
ValueError
–If the name does not contain only alphanumeric, dash, or underscore characters, if the UUID cannot be parsed, or if the port is not in the range [1, 65535].
get_configs
¶
get_configs(proxystore_dir: str) -> list[EndpointConfig]
Get all valid endpoint configurations in parent directory.
Parameters:
-
proxystore_dir
(str
) –Parent directory containing possible endpoint configurations.
Returns:
-
list[EndpointConfig]
–List of found configs.
Source code in proxystore/endpoint/config.py
get_log_filepath
¶
get_pid_filepath
¶
read_config
¶
read_config(endpoint_dir: str) -> EndpointConfig
Read endpoint config file.
Parameters:
-
endpoint_dir
(str
) –Directory containing endpoint configuration file.
Returns:
-
EndpointConfig
–Config found in
endpoint_dir
.
Raises:
-
FileNotFoundError
–If a config files does not exist in the directory.
-
ValueError
–If config contains an invalid value or cannot be parsed.
Source code in proxystore/endpoint/config.py
validate_name
¶
Validate name only contains alphanumeric or dash/underscore chars.
write_config
¶
write_config(
cfg: EndpointConfig, endpoint_dir: str
) -> None
Write config to endpoint directory.
Parameters:
-
cfg
(EndpointConfig
) –Configuration to write.
-
endpoint_dir
(str
) –Directory to write config to.