Canvas redis (data/cache) configuration with two redis instances - please advise

359 views
Skip to first unread message

Lennart Nordgreen

unread,
Apr 28, 2015, 5:58:08 AM4/28/15
to canvas-l...@googlegroups.com
Hi there Canvas useres.

I'm trying to setup canvas to use redis (v.2.8.19) for data and cache store. The data part works but I can't seem to get Canvas to use the cache instance or get Canvas to cache at all??

So first of the Redis part.

I have two instances running on port 6379 and port 6380 respectively.
One (cache) with "
maxmemory-policy allkeys-lru" set.

These are my Canvas settings.

redis.yml

production:
  servers:
    - redis://127.0.0.1:6380
  database: 0


cache_store-yml

production:
  cache_store: redis_store
  servers:
    - 127.0.0.1
  database: 0


Running redis-cli monitor (for the cache instance) it just says:
OK

There is no activity

Running redis-cli -p 6380 monitor (data instance) show a lot of activity.

Now the questions are.

  1. Is the cache_store.yml settings correct?
  2. When dose Canvas use redis for caching? What kind of data is cached?


Or is it the redis settings which are wrong? (kind of default settings)

daemonize yes pidfile /var/run/redis/redis-cache.pid port 6379 tcp-backlog 511 timeout 0 tcp-keepalive 0 loglevel notice logfile "/var/log/redis/redis-cache.log" databases 2 save 900 1 save 300 10 save 60 10000 stop-writes-on-bgsave-error yes rdbcompression yes rdbchecksum yes dbfilename dump-cache.rdb dir /var/redis/data/ slave-serve-stale-data yes slave-read-only yes repl-diskless-sync no repl-diskless-sync-delay 5 repl-disable-tcp-nodelay no slave-priority 100
maxmemory-policy allkeys-lru
appendonly no appendfilename "appendonly.aof" appendfsync everysec no-appendfsync-on-rewrite no auto-aof-rewrite-percentage 100 auto-aof-rewrite-min-size 64mb aof-load-truncated yes lua-time-limit 5000 slowlog-log-slower-than 10000 slowlog-max-len 128 latency-monitor-threshold 0 notify-keyspace-events "" hash-max-ziplist-entries 512 hash-max-ziplist-value 64 list-max-ziplist-entries 512 list-max-ziplist-value 64 set-max-intset-entries 512 zset-max-ziplist-entries 128 zset-max-ziplist-value 64 hll-sparse-max-bytes 3000 activerehashing yes client-output-buffer-limit normal 0 0 0 client-output-buffer-limit slave 256mb 64mb 60 client-output-buffer-limit pubsub 32mb 8mb 60 hz 10 aof-rewrite-incremental-fsync yes

Please advise.


Thanks in advance.

Br,
Lennart Nordgeeen
University of Bergen

Lennart Nordgreen

unread,
Apr 28, 2015, 10:03:34 AM4/28/15
to canvas-l...@googlegroups.com
Solved it by using this syntax in cache_store.yml

production:
  cache_store: redis_store
  servers:
    - redis://127.0.0.1:6379
  database: 0
Reply all
Reply to author
Forward
0 new messages