proxystore.endpoint.config¶
Endpoint configuration.
EndpointRelayAuthConfig
dataclass
¶
EndpointRelayConfig
dataclass
¶
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
dataclass
¶
Endpoint data storage configuration.
Parameters:
-
database_path
(Optional[str]
, default:None
) –Optional path to SQLite database file that will be used for storing endpoint data. If
None
, data will only be stored in-memory. -
max_object_size
(Optional[int]
, default:MAX_OBJECT_SIZE_DEFAULT
) –Optional maximum object size.
EndpointConfig
dataclass
¶
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 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 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 to endpoint directory.
Parameters:
-
cfg
(EndpointConfig
) –Configuration to write.
-
endpoint_dir
(str
) –Directory to write config to.