commit | 383f8f4dc46737fac646a6d90ff03b64c0d94109 | [log] [tgz] |
---|---|---|
author | Robert Newson <rnewson@apache.org> | Sun Mar 29 13:38:38 2015 +0100 |
committer | Mike Wallace <mikewallace@apache.org> | Wed Jun 03 15:00:56 2015 +0100 |
tree | 5956c3fa9a0b69a3792820b37f34d46854da379f | |
parent | d7d6be8535443fd3ddbe65c0a6a35534b4b98e29 [diff] |
Add ability to gracefully terminate existing changes feeds Calling fabric:end_changes() will cause all current changes feeds to gracefully exit without preventing new changes requests from starting (unlike maintenance_mode). BugzID: 45762 This is a cherry-pick of: https://github.com/cloudant/fabric/commit/1b45cede8f11e209f28e3d06b9fda4cbdcd719cc Conflicts: src/fabric.erl src/fabric_view_changes.erl
Fabric is a collection of proxy functions for CouchDB operations in a cluster. These functions are used in CouchDB as the remote procedure endpoints on each of the cluster nodes.
For example, creating a database is a straightforward task in CouchDB 1.x, but for a clustered CouchDB, each node that will store a shard for the database needs to receive and execute a fabric function. The node handling the request also needs to compile the results from each of the nodes and respond accordingly to the client.
Fabric is used in conjunction with ‘Rexi’ which is also an application within CouchDB.
Fabric requires R13B03 or higher and can be built with rebar.