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

arbitrary command with memcached #223

Open
jj-tarun opened this issue May 18, 2023 · 1 comment
Open

arbitrary command with memcached #223

jj-tarun opened this issue May 18, 2023 · 1 comment

Comments

@jj-tarun
Copy link

jj-tarun commented May 18, 2023

Hi,
I am trying to run memtier_benchmark to test memcached with arbitrary command options.
Here is my command

./memtier_benchmark -S $SOCKET --protocol=redis --threads=$NR_THREADS --pipeline=1 --key-minimum=1 --key-maximum=$KEY_MAX -n $PER_CLIENT_REQUESTS -c $NR_CLIENTS --hide-histogram --command="set key 5" --command-ratio=2 --command-key-pattern=R -D

But it fail with:
protocol.cpp:600: unsupported response: 'ERROR'.
error: response parsing failed.

When I checked, I understood that, --command option is implemented for redis protocol only, and memcached has ASCII, binary protocol. I am not sure If I understood it correctly.
How can I test memcached with arbitrary commands if it is possible?

~Tarun

@YaacovHazan
Copy link
Collaborator

Hi @jj-tarun I see that you are using --protocol=redis, so I'm a bit confused are you trying to test redis or memcached? currently the memcache_text_protocol / memcache_binary_protocol doesn't support the '--command` option.

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

2 participants