Skip to content

Commit 427b5af

Browse files
committed
[dbe] redis ACL experiment
1 parent 2e6469d commit 427b5af

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

redis/7/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM redis:7-alpine
2+
COPY redis.conf /usr/local/etc/redis/redis.conf
3+
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]

redis/7/redis.conf

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
bind 127.0.0.1 -::1
2+
protected-mode yes
3+
port 6379
4+
tcp-backlog 511
5+
timeout 0
6+
tcp-keepalive 300
7+
daemonize no
8+
pidfile /var/run/redis_6379.pid
9+
loglevel notice
10+
logfile ""
11+
databases 16
12+
always-show-logo no
13+
set-proc-title yes
14+
stop-writes-on-bgsave-error yes
15+
rdbcompression yes
16+
rdbchecksum yes
17+
dbfilename dump.rdb
18+
rdb-del-sync-files no
19+
dir ./
20+
replica-serve-stale-data yes
21+
replica-read-only yes
22+
repl-diskless-sync yes
23+
repl-diskless-sync-delay 5
24+
repl-diskless-sync-max-replicas 0
25+
repl-diskless-load disabled
26+
repl-disable-tcp-nodelay no
27+
replica-priority 100
28+
29+
user worker on +@all ~* >ffa9203c493aa99
30+
user alice on +@all -DEBUG ~* >somepassword
31+
32+
acllog-max-len 128
33+
lazyfree-lazy-eviction no
34+
lazyfree-lazy-expire no
35+
lazyfree-lazy-server-del no
36+
replica-lazy-flush no
37+
lazyfree-lazy-user-del no
38+
lazyfree-lazy-user-flush no
39+
oom-score-adj no
40+
oom-score-adj-values 0 200 800
41+
disable-thp yes
42+
appendonly no
43+
appendfilename "appendonly.aof"
44+
appenddirname "appendonlydir"
45+
appendfsync everysec
46+
no-appendfsync-on-rewrite no
47+
auto-aof-rewrite-percentage 100
48+
auto-aof-rewrite-min-size 64mb
49+
aof-load-truncated yes
50+
aof-use-rdb-preamble yes
51+
aof-timestamp-enabled no
52+
slowlog-log-slower-than 10000
53+
slowlog-max-len 128
54+
latency-monitor-threshold 0
55+
notify-keyspace-events ""
56+
hash-max-listpack-entries 512
57+
hash-max-listpack-value 64
58+
list-max-listpack-size -2
59+
list-compress-depth 0
60+
set-max-intset-entries 512
61+
zset-max-listpack-entries 128
62+
zset-max-listpack-value 64
63+
hll-sparse-max-bytes 3000
64+
stream-node-max-bytes 4096
65+
stream-node-max-entries 100
66+
activerehashing yes
67+
client-output-buffer-limit normal 0 0 0
68+
client-output-buffer-limit replica 256mb 64mb 60
69+
client-output-buffer-limit pubsub 32mb 8mb 60
70+
hz 10
71+
dynamic-hz yes
72+
aof-rewrite-incremental-fsync yes
73+
rdb-save-incremental-fsync yes
74+
jemalloc-bg-thread yes

0 commit comments

Comments
 (0)