You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[feat] Add redis_hash_tags_hypodispersion to redis backend config.
Distribution of storag_slice tag will be hypodispersion in 16354 regardless cluster slot,
but still depends on redis_hash_tags_import/runtime if they aren't empty.
[feat] Add using_hash_storage_slice in redis config.
If True, IDs will be calculated hash(CRC32) value and then MOD to decide which bucket number they belong to.
If False, only calculate the remainder.
[feat] Change redis_connection_mode config
now redis_connection_mode = 2 will be standalone mode.
[fix] Fix no redis sentinel password option in redis backend config.
// Below there is user-defined parameters in this custom op, not Redis setting parameters
51
53
"storage_slice_import": 2, // If storage_slice_import is not equal to storage_slice, rehash will happen. Equaling -1 means same as storage_slice.
52
54
"storage_slice": 2, // For deciding bucket number, which usually is how many Redis instance may be used in the trainning.
55
+
"using_hash_storage_slice":
56
+
False, // If True, IDs will be calculated hash(CRC32) value and then MOD to decide which bucket number they belong to. If False, only calculate the remainder.
53
57
"keys_sending_size": 1024, // Determines how many keys to send at a time for performance tuning
True, // distribution of storag_slice will be hypodispersion in 16354 regardless cluster slot, but still depends on redis_hash_tags_import/runtime if they aren't empty.
55
61
"model_tag_import": "test", // model_tag_import for version and any other information from last time.
56
62
"redis_hash_tags_import": ["{6379}","{26379}"], // Deciding hash tag for every bucket from last time, Note that the hash tag must be wrapped in curly braces {}.
57
63
"model_tag_runtime": "test", // model_tag_runtime for version and any other information for now.
// Below there is user-defined parameters in this custom op, not Redis setting parameters
51
53
"storage_slice_import": 2, // If storage_slice_import is not equal to storage_slice, rehash will happen. Equaling -1 means same as storage_slice.
52
54
"storage_slice": 2, // For deciding bucket number, which usually is how many Redis instance may be used in the trainning.
55
+
"using_hash_storage_slice":
56
+
False, // If True, IDs will be calculated hash(CRC32) value and then MOD to decide which bucket number they belong to. If False, only calculate the remainder.
53
57
"keys_sending_size": 1024, // Determines how many keys to send at a time for performance tuning
False, // distribution of storag_slice will be hypodispersion in 16354 regardless cluster slot, but still depends on redis_hash_tags_import/runtime if they aren't empty.
55
61
"model_tag_import": "test", // model_tag_import for version and any other information from last time.
56
62
"redis_hash_tags_import": ["{6379}","{26379}"], // Deciding hash tag for every bucket from last time, Note that the hash tag must be wrapped in curly braces {}.
57
63
"model_tag_runtime": "test", // model_tag_runtime for version and any other information for now.
Copy file name to clipboardExpand all lines: tensorflow_recommenders_addons/dynamic_embedding/core/kernels/redis_impl/redis_cluster_connection_pool.hpp
+26-22Lines changed: 26 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -497,7 +497,7 @@ class RedisWrapper<RedisInstance, K, V,
0 commit comments