-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Alluxio configuration approach #23
base: dev
Are you sure you want to change the base?
Conversation
@ChunxuTang @jja725 PTAL, thanks! |
@jja725 @ChunxuTang PTAL, thanks! |
etcd_refresh_workers_interval (int, optional): The interval to refresh worker list from ETCD membership service periodically. | ||
All negative values mean the service is disabled. | ||
""" | ||
if not (etcd_hosts or worker_hosts): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I feel like a lot of these can ust use assert
@@ -297,7 +275,10 @@ def update_loop(): | |||
self._background_thread.start() | |||
|
|||
def shutdown_background_update_ring(self): | |||
if self._etcd_hosts and self._etcd_refresh_workers_interval > 0: | |||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change to self._config.etcd_hosts is not None
self._options = options | ||
self._hash_node_per_worker = hash_node_per_worker | ||
self._max_attempts = max_attempts | ||
self._config = config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we might still want to unwrap the config here like self._etcd_hosts = etcd_hosts
and use the member value directly, like what we did in EtcdClient. What do you think
Alluxio configuration duplicates in AlluxioClient and Alluxio fsspec AlluxioFileSystem.
To avoid the duplication, put the AlluxioClient in AlluxioClientConfig class.
All the arguments are passed all the way from AlluxioFileSystem -> AlluxioClient -> AlluxioClientConfig as **kwargs.