You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 11:05:51 UTC
[15/49] chttpd commit: updated refs/heads/windsor-merge to 554ef74
Provide a dedicated NOLB mode
Setting [cloudant] maintenance_mode = nolb recovers the original
behavior of setting maintenance_mode to true; i.e., the node will not
participate in load balancing but is otherwise an active member of the
cluster.
BugzID: 18955
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/7bbf680d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/7bbf680d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/7bbf680d
Branch: refs/heads/windsor-merge
Commit: 7bbf680d7c953b02f127dc00669fe5063062b9ee
Parents: 12ea8a3
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Fri Jun 7 11:17:31 2013 -0400
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Jul 29 18:01:48 2014 +0100
----------------------------------------------------------------------
src/chttpd_misc.erl | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/7bbf680d/src/chttpd_misc.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl
index 570df30..75f2676 100644
--- a/src/chttpd_misc.erl
+++ b/src/chttpd_misc.erl
@@ -296,6 +296,8 @@ handle_up_req(#httpd{method='GET'} = Req) ->
case config:get("couchdb", "maintenance_mode") of
"true" ->
send_json(Req, 404, {[{status, maintenance_mode}]});
+ "nolb" ->
+ send_json(Req, 404, {[{status, nolb}]});
_ ->
send_json(Req, 200, {[{status, ok}]})
end;