... | ... | @@ -133,3 +133,45 @@ Folgende Möglichkeiten für `maxmemory-policy` gibt es: |
|
|
- volatile-ttl -> remove the key with the nearest expire time (minor TTL)
|
|
|
- noeviction -> don't expire at all, just return an error on write operations
|
|
|
|
|
|
Bekannte Fehlermeldungen
|
|
|
-----
|
|
|
|
|
|
Unter Umstände kann Redis einige Fehlermeldungen werfen. Bekannte Fehlermeldung und die Lösung dazu findest du im folgenden Abschnitt. Beachte das jeder Redis Server an seine Umgebung angepasst werden sollte, daher können keine allgemeine Aussagen oft gemacht werden. Die Serveraustattung spielt hier eine grosse Rolle, wie viel RAM und Festplattenplatz vorhanden ist.
|
|
|
|
|
|
### MISCONF Redis
|
|
|
|
|
|
```
|
|
|
PHP Fatal error: Uncaught RedisException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
|
|
|
```
|
|
|
|
|
|
**Lösung**
|
|
|
|
|
|
Da QUIQQER die Sessions in den Redis Server schreibt, sind viele Schreiboperationen vorhanden. Das standard Backup Verhalten von Redis ist für diesen Zweck etwas stark eingestellt. Hierzu empfehlen wir die `Save the DB on disk` etwas anzupassen und zu erhöhen:
|
|
|
|
|
|
```
|
|
|
################################ SNAPSHOTTING ################################
|
|
|
#
|
|
|
# Save the DB on disk:
|
|
|
#
|
|
|
# save <seconds> <changes>
|
|
|
#
|
|
|
# Will save the DB if both the given number of seconds and the given
|
|
|
# number of write operations against the DB occurred.
|
|
|
#
|
|
|
# In the example below the behaviour will be to save:
|
|
|
# after 900 sec (15 min) if at least 1 key changed
|
|
|
# after 300 sec (5 min) if at least 10 keys changed
|
|
|
# after 60 sec if at least 10000 keys changed
|
|
|
#
|
|
|
# Note: you can disable saving completely by commenting out all "save" lines.
|
|
|
#
|
|
|
# It is also possible to remove all the previously configured save
|
|
|
# points by adding a save directive with a single empty string argument
|
|
|
# like in the following example:
|
|
|
#
|
|
|
# save ""
|
|
|
|
|
|
save 3600 1
|
|
|
save 1800 10
|
|
|
save 120 10000
|
|
|
``` |
|
|
\ No newline at end of file |