Enabling Redis API in Scylla DB

Viewed 378

This is my first time asking here.

Can anyone help me how to enable the Redis API in ScyllaDB?

I can't find anything about enabling the Redis API.

Also where/how should I set the redis_port is it in the scylla.yaml?

Thank you in advance :)

1 Answers

Add

redis_port: 6379

somewhere in scylla.yaml

more here http://scylla.docs.scylladb.com/master/design-notes/protocols.html#redis-client-protocol

The config option code: https://github.com/scylladb/scylla/blob/master/db/config.cc#L789

Adding info on how to use Redis API with Scylla Docker:

  • run Scylla Docker with mapped Redis port

    docker run -p 6379:6379 --name some-scylla -d scylladb/scylla --smp 1 --memory 750M --overprovisioned 1

  • update the scylla.yaml

    docker exec -it some-scylla bash

    vi /etc/scylla/scylla.yaml (add redis_port: 6379)

    supervisorctl restart scylla

  • from the host server you can now use

    redis-cli 127.0.0.1:6379> ping PONG

Related