-
Notifications
You must be signed in to change notification settings - Fork 194
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
Add Actors for Ray Dedup. #526
base: main
Are you sure you want to change the base?
Conversation
r.flushdb(0) | ||
self.redis_address = redis_address | ||
self.backend = backend | ||
if backend == 'ray_actor': |
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.
Encapsulate different backends into classes, and then directly call the methods on the backend incompute_stats_single
.
def __init__(self): | ||
self.hash_record = set() | ||
|
||
def setnx(self, key): |
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.
Change to a more reasonable name
@@ -19,37 +35,56 @@ class RayBasicDeduplicator(Filter): | |||
EMPTY_HASH_VALUE = 'EMPTY' | |||
|
|||
def __init__(self, | |||
redis_host: str = 'localhost', | |||
redis_port: PositiveInt = 6380, | |||
backend: str = 'ray_actor', |
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.
Update the example in config_all.yaml
Add Actor mode to ray deduplication, allowing users to use these operators without installing Redis.