How to deploy a Meteor app that uses Redis?

I came across this package recently by redis-oplog , which seems like a very good package. Given that I have no experience with Redis, I did some searching and found out that some say Redis is even better than Mongo Oplog, so I want to try this package with my Meteor project. However, I have some questions regarding deployment before I can try:

  • Do I need separate servers to run Redis?
  • If I cannot afford to have servers for Redis, is it OK to run Redis on the same server using the Meteor app?
  • If my Meteor application has many instances, and Redis (not sure if Redis can / need many instances?), How do I get them to work together?
  • If I manage to use Redis for production, what changes should I make to my Mongolian servers? because Mongo Oplog is no longer used at this point
+8
mongodb meteor redis
source share
2 answers
  • Yes, you need to have a separate instance for redis, you must configure a fault-tolerant system using redis-sentinal, you can find various configurations and settings with pluses and minuses here https://redis.io/topics/sentinel
  • If you cannot afford to have servers for Redis, you can run it on the server where you installed the mongodb instance, if you have one. The best option is to run it where your meteorite instance is located, redis-oplog will be more efficient than mongodb-oplog according to the available data.
  • The above link has examples for the redis architecture. Also connecting to redis is similar to connecting to mongodb
  • Mongo changes depend on your other use for Mongo.
+2
source share

Ansible is a good deployment tool for all kinds of software. We have good experience working with Anisible Redis role by David Wittman https://galaxy.ansible.com/DavidWittman/redis/ , this can deploy a single instance (for development, on the same box with all our components) or as a production cluster. The meteor can also be deployed by roles from the Galaxy, but I have not used them.

+2
source share

All Articles