Excerpt |
---|
Redis is used by Squirro for caching, queuing and some ephemeral data. |
See also Flushing Caches in the Troubleshooting section.
Warning |
---|
Squirro can not provide support for issues that arise as a consequence of updating data directly in Redis. |
Table of Contents
Table of Contents | ||||
---|---|---|---|---|
|
Login
Default firewall settings do not allow for direct Redis connections from the outside. In order to gain administrative Redis access you have to connect to the server using SSH first.
Default Login
Please see /wiki/spaces/BOX/pages/15171592 (page requires license) or contact support.
Access
Once logged in you can access Redis using the redis-cli
command line tool. There are two ways of providing the Redis password - directly on the command line, or using the AUTH command.
Command Line Login
Start the redis-cli application by specifying the password using the -a
option.
Code Block | ||
---|---|---|
| ||
[squirro@localhost ~]$ redis-cli -a REDIS_PASSWORD
127.0.0.1:6379> |
AUTH Login
Start the redis-cli application, then specify the password in the Redis command line:
Code Block | ||
---|---|---|
| ||
[squirro@localhost ~]$ redis-cli
127.0.0.1:6379> auth REDIS_PASSWORD
OK
127.0.0.1:6379> |
Instances
A standard Squirro installation comes with two instances of Redis: redis-server
and redis-server-cache
. redis-server
runs on the standard Redis port 6379 and is used for storage and queueing. redis-server-cache
runs on the port 6380 and is used for caching. To connect to the redis-server-cache
instance add the -p
parameter to redis-cli
with a value of 6380
. E.g.:
Code Block | ||
---|---|---|
| ||
[squirro@localhost ~]$ redis-cli -p 6380 -a REDIS_PASSWORD
127.0.0.1:6380> |
Databases
Squirro uses different Redis databases. To see the used databases and their usage, use the info
command:
Code Block | ||
---|---|---|
| ||
127.0.0.1:6379> info
…
# Keyspace
db0:keys=3,expires=0,avg_ttl=0
db7:keys=82,expires=66,avg_ttl=10570724
db9:keys=114,expires=88,avg_ttl=89586306
db10:keys=2,expires=0,avg_ttl=0127.0.0.1:6379> |
The default database is db0
. To switch to a different database for subsequent commands, use the select command:
Code Block | ||
---|---|---|
| ||
127.0.0.1:6379> select 7
OK
127.0.0.1:6379[7]> |
The prompt of the Redis tool now shows the selected database.
Here is an overview of all Redis databases that are in use:
...
- ContentDb temporarily "queued" items before pipeline can get to them
- Task Queue (Kombu) in various services
- Bloom filter of pipeline duplication hashes
...
redis-server
(port 6379)
...
Key-value store for the dataloader plugins (Used by the dataloader provider)
...
This page can now be found at Accessing Servers on the Squirro Docs site.