質問編集履歴
1
コードを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -273,3 +273,287 @@
|
|
273
273
|
end
|
274
274
|
|
275
275
|
```
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
redis.confの内容
|
280
|
+
|
281
|
+
```
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
protected-mode no
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
port 6379
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
tcp-backlog 511
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
timeout 0
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
tcp-keepalive 300
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
################################# GENERAL #####################################
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
daemonize no
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
supervised no
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
pidfile /var/run/redis_6379.pid
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
loglevel notice
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
logfile /var/log/redis/redis.log
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
databases 16
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
always-show-logo yes
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
################################ SNAPSHOTTING ################################
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
save 900 1
|
344
|
+
|
345
|
+
save 300 10
|
346
|
+
|
347
|
+
save 60 10000
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
stop-writes-on-bgsave-error yes
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
rdbcompression yes
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
rdbchecksum yes
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
dbfilename dump.rdb
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
dir /var/lib/redis
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
################################# REPLICATION #################################
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
slave-serve-stale-data yes
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
slave-read-only yes
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
repl-diskless-sync no
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
repl-diskless-sync-delay 5
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
repl-disable-tcp-nodelay no
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
slave-priority 100
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
############################# LAZY FREEING ####################################
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
lazyfree-lazy-eviction no
|
404
|
+
|
405
|
+
lazyfree-lazy-expire no
|
406
|
+
|
407
|
+
lazyfree-lazy-server-del no
|
408
|
+
|
409
|
+
slave-lazy-flush no
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
############################## APPEND ONLY MODE ###############################
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
appendonly no
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
appendfilename "appendonly.aof"
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
appendfsync everysec
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
no-appendfsync-on-rewrite no
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
auto-aof-rewrite-percentage 100
|
434
|
+
|
435
|
+
auto-aof-rewrite-min-size 64mb
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
aof-load-truncated yes
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
aof-use-rdb-preamble no
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
################################ LUA SCRIPTING ###############################
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
lua-time-limit 5000
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
################################## SLOW LOG ###################################
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
slowlog-log-slower-than 10000
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
# There is no limit to this length. Just be aware that it will consume memory.
|
466
|
+
|
467
|
+
# You can reclaim memory used by the slow log with SLOWLOG RESET.
|
468
|
+
|
469
|
+
slowlog-max-len 128
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
################################ LATENCY MONITOR ##############################
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
latency-monitor-threshold 0
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
############################# EVENT NOTIFICATION ##############################
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
notify-keyspace-events ""
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
############################### ADVANCED CONFIG ###############################
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
hash-max-ziplist-entries 512
|
494
|
+
|
495
|
+
hash-max-ziplist-value 64
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
list-max-ziplist-size -2
|
500
|
+
|
501
|
+
list-compress-depth 0
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
set-max-intset-entries 512
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
zset-max-ziplist-entries 128
|
510
|
+
|
511
|
+
zset-max-ziplist-value 64
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
hll-sparse-max-bytes 3000
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
activerehashing yes
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
client-output-buffer-limit normal 0 0 0
|
524
|
+
|
525
|
+
client-output-buffer-limit slave 256mb 64mb 60
|
526
|
+
|
527
|
+
client-output-buffer-limit pubsub 32mb 8mb 60
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
hz 10
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
aof-rewrite-incremental-fsync yes
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
```
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
sudo systemctl status redisで出力された内容
|
546
|
+
|
547
|
+
```
|
548
|
+
|
549
|
+
● redis.service - Redis persistent key-value database
|
550
|
+
|
551
|
+
Loaded: loaded (/usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)
|
552
|
+
|
553
|
+
Drop-In: /etc/systemd/system/redis.service.d
|
554
|
+
|
555
|
+
└─limit.conf
|
556
|
+
|
557
|
+
Active: inactive (dead)
|
558
|
+
|
559
|
+
```
|