zaqar/tests/etc/wsgi_mongodb_pooled.conf
Flavio Percoco a1163331fc 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: Ie74a4b441654243b3ed7e7fd6c40863969cd446d
Closes-bug: #1372335
2014-10-03 14:45:55 +02:00

13 lines
188 B
Plaintext

[DEFAULT]
pooling = True
admin_mode = True
unreliable = True
[drivers]
transport = wsgi
storage = mongodb
[drivers:storage:mongodb]
uri = mongodb://127.0.0.1:27017
database = zaqar_test