R
Railway•13mo ago
Gustavo

My Redis database is restarting over and over without stop!

This is the logs that are generating every 5 seconds
redis 16:28:41.78 Welcome to the Bitnami redis container
redis 16:28:41.78 Subscribe to project updates by watching https://github.com/bitnami/containers
redis 16:28:41.78 Submit issues and feature requests at https://github.com/bitnami/containers/issues
redis 16:28:41.78
redis 16:28:41.79 INFO ==> ** Starting Redis setup **
redis 16:28:41.89 INFO ==> Initializing Redis
redis 16:28:41.91 INFO ==> Setting Redis config file
redis 16:28:41.94 INFO ==> ** Redis setup finished! **
redis 16:28:41.95 INFO ==> ** Starting Redis **
1:C 20 Oct 2023 16:28:41.971 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 20 Oct 2023 16:28:41.971 # Redis version=6.2.12, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 20 Oct 2023 16:28:41.971 # Configuration loaded
1:M 20 Oct 2023 16:28:41.971 * monotonic clock: POSIX clock_gettime
1:M 20 Oct 2023 16:28:41.972 * Running mode=standalone, port=6379.
1:M 20 Oct 2023 16:28:41.973 # Server initialized
1:M 20 Oct 2023 16:28: WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 20 Oct 2023 16:28: Reading RDB preamble from AOF file...
1:M 20 Oct 2023 16:28: Loading RDB produced by version 6.2.12
1:M 20 Oct 2023 16:28: RDB age 854525 seconds
1:M 20 Oct 2023 16:28: RDB memory usage when created 421.45 Mb
1:M 20 Oct 2023 16:28: RDB has an AOF tail
1:M 20 Oct 2023 16:28: Done loading RDB, keys loaded: 84764, keys expired: 0.
1:M 20 Oct 2023 16:28: Reading the remaining AOF tail...
1:M 20 Oct 2023 16:28: DB loaded from append only file: 2.404 seconds
1:M 20 Oct 2023 16:28: Ready to accept connections
redis 16:28:41.78 Welcome to the Bitnami redis container
redis 16:28:41.78 Subscribe to project updates by watching https://github.com/bitnami/containers
redis 16:28:41.78 Submit issues and feature requests at https://github.com/bitnami/containers/issues
redis 16:28:41.78
redis 16:28:41.79 INFO ==> ** Starting Redis setup **
redis 16:28:41.89 INFO ==> Initializing Redis
redis 16:28:41.91 INFO ==> Setting Redis config file
redis 16:28:41.94 INFO ==> ** Redis setup finished! **
redis 16:28:41.95 INFO ==> ** Starting Redis **
1:C 20 Oct 2023 16:28:41.971 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 20 Oct 2023 16:28:41.971 # Redis version=6.2.12, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 20 Oct 2023 16:28:41.971 # Configuration loaded
1:M 20 Oct 2023 16:28:41.971 * monotonic clock: POSIX clock_gettime
1:M 20 Oct 2023 16:28:41.972 * Running mode=standalone, port=6379.
1:M 20 Oct 2023 16:28:41.973 # Server initialized
1:M 20 Oct 2023 16:28: WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 20 Oct 2023 16:28: Reading RDB preamble from AOF file...
1:M 20 Oct 2023 16:28: Loading RDB produced by version 6.2.12
1:M 20 Oct 2023 16:28: RDB age 854525 seconds
1:M 20 Oct 2023 16:28: RDB memory usage when created 421.45 Mb
1:M 20 Oct 2023 16:28: RDB has an AOF tail
1:M 20 Oct 2023 16:28: Done loading RDB, keys loaded: 84764, keys expired: 0.
1:M 20 Oct 2023 16:28: Reading the remaining AOF tail...
1:M 20 Oct 2023 16:28: DB loaded from append only file: 2.404 seconds
1:M 20 Oct 2023 16:28: Ready to accept connections
15 Replies
Percy
Percy•13mo ago
Project ID: N/A
Gustavo
Gustavo•13mo ago
N/A
Brody
Brody•13mo ago
project id is applicable
Gustavo
Gustavo•13mo ago
af0ccfe5-cb9d-43cd-9c80-2ba515dc53b2
Brody
Brody•13mo ago
what do the metrics look like for that plugin
Medim
Medim•13mo ago
How much memory is the Redis service using?
Gustavo
Gustavo•13mo ago
No description
Gustavo
Gustavo•13mo ago
Month
No description
Gustavo
Gustavo•13mo ago
Any ideias?
Brody
Brody•13mo ago
deploy a new redis database
Gustavo
Gustavo•13mo ago
Doing Was in production 🥶
Brody
Brody•13mo ago
please read the second paragraph of the databases section https://docs.railway.app/maturity/use-cases they mention PlanetScale (for MySQL) and Cockroach (for Postgres). but there is also Upstash (for Redis)
Gustavo
Gustavo•13mo ago
Redis on Railway stop working over 500mb in memory?
Brody
Brody•13mo ago
ideally no, it shouldn't, this is the first time I've seen this specific issue
Gustavo
Gustavo•13mo ago
Ok, create another Redis service works
Want results from more Discord servers?
Add your server