https://github.com/couchbaselabs/nutshell/blob/aa8e1c9c59c2a2e101497511e1caa8aa54ccdf82/nutshell/cluster.py#L1047