meteor-gce icon indicating copy to clipboard operation
meteor-gce copied to clipboard

optimize using Oplog

Open lukasvan3l opened this issue 11 years ago • 5 comments

Meteor performance is greatly increased by using Mongodb Oplog for database changes.

It might be a good idea to enable Oplog while installing mongodb on this server, see https://github.com/meteor/meteor/wiki/Oplog-Observe-Driver#oplogobservedriver-in-production for a how-to.

lukasvan3l avatar Oct 06 '14 14:10 lukasvan3l

I read somewhere that enabling Oplog also has a downside. Although now I can't find anymore where it said that :p Maybe check if it's actually needed and what the difference would be?

chees avatar Oct 06 '14 16:10 chees

Any updates on this issue? I would love to see oplog support/optimization!

Weijtmans avatar Mar 07 '15 15:03 Weijtmans

As I understand the biggest upside is when you have multiple clients connecting to your mongodb instance. This script installs mongodb locally on the same server as your meteor application, it's not intended for a multi-server setup. In that case you should consider running your mongodb on a hosted solution like compose.io.

@Weijtmans why do you want/need oplog support? If it has benefits I'll make a pull request :)

lukasvan3l avatar Mar 09 '15 15:03 lukasvan3l

been reeding into it... I see it's just a general "good practice" for meteor apps, and gives performance boost. Will make a pullrequest asap!

lukasvan3l avatar Mar 10 '15 10:03 lukasvan3l

@lukasvan3l We are working on a scalable multi-server setup (on Google with Cluster) and are experimenting with different DB setups. Most of them benefit from oplog support. Thanks!

Weijtmans avatar Mar 11 '15 12:03 Weijtmans