Redis Server and multiple applications using it

1,005 views
Skip to first unread message

Lars

unread,
Jun 23, 2018, 12:10:29 AM6/23/18
to Redis DB

Dear all,

 

I am using Redis on our servers and experienced tremendous performance boosts. Excellent job!

Currently, nextcloud and tine20 are sharing the default redis configuration and server, both perform much better. They both share the default 'database', as I read that doing multiple database (of the default 16) are not recommended due to performance and would not go into a cluster mode later one. Still, for those two applications, this seems to be working as it is.

 

We changed to rspamd a few months ago and now I see FANN to do much better (and even asks for) a redis connection. I have a bad feeling putting this neural network stuff in the same default redis along with two php applications. If those php applications choose to re-build their cache, that is fine, but please do not currupt trained spam machines. Remembering the database issue, I searched the www and noticed that some people clone their /etc/redis/ config to /etc/redis-new-app ... along with init scripts and systemd scripts. This seems a bit strange to me. I also searched the redis documentation. Maybe I missed out, if you can hint me on the right spot, that is great, too!

As a developer, I would have put a 'new instance' in the /etc/redis.conf file - to spin up a second server on a specified port, ready to go. However, a solution alike that was not to be found and no recommendation of how to deal with N-applications on a server with a single redis installation.

 

What is the current recommendation of how to deal with such issue? Is it really smart to 'clone' the configs and re-write the init scripts? I doubt this goes well with major updates as no developer would expect some configuration like that. Or is it safe to store everything in a single key-value 'store' now?

 

Big thank you for your wisdom on this!

 

Best regards,

  Lars

 

 

 

 

Itamar Haber

unread,
Jun 23, 2018, 8:18:35 AM6/23/18
to Redis DB
Hello Lars,

> What is the current recommendation of how to deal with such issue? Is it really smart to 'clone' the configs and re-write the init scripts? I doubt this goes well with major updates as no developer would expect some configuration like that. Or is it safe to store everything in a single key-value 'store' now?

I would definitely go with the divide and conquer approach - a dedicated Redis server for each app. The "cloning" is easily doable with `install_server.sh` script in utils.

Cheers,

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.



--

Itamar Haber
Technicalist Evangenly

Phone: +972.54.567.9692

Redis Labs


Reply all
Reply to author
Forward
0 new messages