This patch adds an reliability enforcement for mongodb's driver. It
forces deployers to use replicasets or mongos as a mongodb cluster for
Zaqar. In addition to that, it forces deployers to provide a write
concern > 2 and/or majority.
If none of this are met, the driver will raise a RuntimeException and
fail to start. If no write concern is provided, majority will be used.
Reviewed: https:/ /review. openstack. org/123750 /git.openstack. org/cgit/ openstack/ zaqar/commit/ ?id=a1163331fcb 3253ae6af5e4cb8 c528eb3679baf1
Committed: https:/
Submitter: Jenkins
Branch: master
commit a1163331fcb3253 ae6af5e4cb8c528 eb3679baf1
Author: Flavio Percoco <email address hidden>
Date: Wed Sep 24 16:51:38 2014 +0200
Add first reliability enforcement
This patch adds an reliability enforcement for mongodb's driver. It
forces deployers to use replicasets or mongos as a mongodb cluster for
Zaqar. In addition to that, it forces deployers to provide a write
concern > 2 and/or majority.
If none of this are met, the driver will raise a RuntimeException and
fail to start. If no write concern is provided, majority will be used.
Change-Id: Ie74a4b44165424 3b3ed7e7fd6c408 63969cd446d
Closes-bug: #1372335