coinbase / mongobetween

Apache License 2.0
107 stars 45 forks source link

Add support for dynamically disabling writes and redirects #38

Closed mdehoog closed 2 years ago

mdehoog commented 2 years ago

Example config:

{
  "Clusters": {
    ":12345": {
      "DisableWrites": true,
      "RedirectTo": ""
    },
    "/var/tmp/mongo_accounts.sock": {
      "DisableWrites": true,
      "RedirectTo": "/var/tmp/mongo_accounts_sharded.sock"
    }
  }
}