Skip to content
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

[wip -- do not review] feat: add support for big values in SeederV2 #4222

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kostasrim
Copy link
Contributor

@kostasrim kostasrim commented Nov 28, 2024

  • add support for big values in SeederV2
  • add huge big values tests in replication

resolves #4157

//TODO add tests

@kostasrim kostasrim self-assigned this Nov 28, 2024
@@ -137,6 +138,8 @@ def __init__(
data_size=100,
collection_size=None,
types: typing.Optional[typing.List[str]] = None,
huge_value_percentage=0,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I will keep a flat probability for each key in the key target to contain a huge value

local elements = dragonfly.randstr(LG_funcs.esize, LG_funcs.csize)
local elements
if huge_entry() then
-- Hard coded 10 here, meaning up to 10 huge entries per set
Copy link
Contributor Author

@kostasrim kostasrim Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//TODO so I don't forget to fix it. Replace 10 with LG_funcs.csize()

@@ -85,6 +88,7 @@ while true do
if counter % 10 == 0 then
-- calculate intensity (not normalized probabilities)
-- please see attached plots in PR to undertand convergence
-- https://github.com/dragonflydb/dragonfly/pull/2556
Copy link
Contributor Author

@kostasrim kostasrim Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

took me a few seconds to find this so I thought I should include the link. Now we can jump straight to the pr if needed (and it will be needed for anyone who changes this code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the seeder to generate different distributions of big values
1 participant