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

inner_keys_klen has be greater than 2 #341

Open
honeyAcorn opened this issue Jan 3, 2025 · 1 comment
Open

inner_keys_klen has be greater than 2 #341

honeyAcorn opened this issue Jan 3, 2025 · 1 comment

Comments

@honeyAcorn
Copy link

inner_keys_klen = 1 or 2 will cause the whole load test to stop running.

Expected behavior

I tried to run sort_set load test.
If I set the inner_keys_klen = 1
and inner_keys_nkeys = 100_000
The whole load test stopped running.

But if I set the inner_keys_klen = 3
and inner_keys_nkeys = 100_000
The load test runs normally.

Steps to reproduce the behavior

./stop.sh
vim /opt/momento/config.toml => and add the following part
./start.sh <test to run>

Then you will see it not running.

[workload.ratelimit]
# ramp up the workload in steps
start = 100_000

# An example keyspace showcasing the use of the `sorted set` family of commands.
#
# Note that we use the inner key generator to produce `elements` for these
# operations. The values are `f64` so we do not need to specify parameters for
# the value generator.
[[workload.keyspace]]
# sets the relative weight of this keyspace: defaults to 1
weight = 1
# sets the length of the key, in bytes
klen = 16
# sets the number of keys that will be generated
nkeys = 1
# sets the length of the inner key, in bytesp
inner_keys_klen = 1
# sets the number of inner keys that will be generated
inner_keys_nkeys = 100_000
# controls what commands will be used in this keyspace
commands = [
    # adds an element to a sorted set
    { verb = "sorted_set_put", weight = 1 },

    # get the score for an element in a sorted set
    { verb = "sorted_set_get_score", weight = 4 },
]
@honeyAcorn
Copy link
Author

I did more test and let me summarize it here

case 1

inner_keys_klen = 3
inner_keys_nkeys = 200_000
=> will run

case 2

inner_keys_klen = 3
inner_keys_nkeys = 400_000
=> won't run

case 3

inner_keys_klen = 2
inner_keys_nkeys = 1_000
=> will run

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

No branches or pull requests

1 participant