JohanObrink / rethink-migrate

A migration tool for rethink db
MIT License
47 stars 24 forks source link

_migrations table not replicated #19

Open jeffreywescott opened 8 years ago

jeffreywescott commented 8 years ago

rethink-migrate seems to have no way to set the replicas attribute when creating the _migrations table (see here), which means that in a real-world production environment, the _migrations table is not being replicated across all nodes in the cluster.

jordanh commented 8 years ago

This is a little meta, but one could write a migration for the _migrations table to tag replication for this table, no?

jeffreywescott commented 8 years ago

Interesting idea, @jordanh ... still, I think it would be better as a feature on this module.

jordanh commented 8 years ago

What would you propose as the interface? Configuration options in database.json and/or command line switches?

jeffreywescott commented 8 years ago

Yeah, I think something like numReplicas and numShards in database.json is the way to go.