From dev-return-48890-archive-asf-public=cust-asf.ponee.io@couchdb.apache.org Tue Nov 19 19:06:36 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5689E180638 for ; Tue, 19 Nov 2019 20:06:36 +0100 (CET) Received: (qmail 53867 invoked by uid 500); 19 Nov 2019 19:06:35 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 53855 invoked by uid 99); 19 Nov 2019 19:06:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Nov 2019 19:06:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B5A2C180EED for ; Tue, 19 Nov 2019 19:06:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id TmvArv6z9MXZ for ; Tue, 19 Nov 2019 19:06:33 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.217.65; helo=mail-vs1-f65.google.com; envelope-from=ermouth@gmail.com; receiver= Received: from mail-vs1-f65.google.com (mail-vs1-f65.google.com [209.85.217.65]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 60CFEBC55E for ; Tue, 19 Nov 2019 19:06:33 +0000 (UTC) Received: by mail-vs1-f65.google.com with SMTP id q21so15028612vsg.3 for ; Tue, 19 Nov 2019 11:06:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=P7Adn2OtO4n3tiE6j38SB5M6MqIkSJn6zhNuVw2HgHs=; b=AaKX5NM1gPEq5UCM+EQm2XvuVVet9EkritLaeAOs86sqEKO4ZPbgD8ow/HGds/fq0X zKB3ac6yBjmiCzWZQxP8MNPFLUSVGOEdAcjWMVvIDakhZAeF7DBEyANTT2dH2O8fH3Rz L76c3Y8B7tzvnI4pG3g5BT34tlpnTOIyNxto4m8XkeARAzKQ9Up4maBkN54/Ncz8ewbo IZAhYdze66RI4LT7j2BmTFnGDksumvuabp17jmwURRowBc5EvuulxSPGgqoJ8VtF+FdF 8xKkWr0aJwXk4SiRGjJnD1tCIKd5BQe7K/B0PIaU8jURL1u8awY1C+5GRrmfKb8/386U NJOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=P7Adn2OtO4n3tiE6j38SB5M6MqIkSJn6zhNuVw2HgHs=; b=cSdS+dX4z+SnHdkETSNINy4aAs/bkx/wCwKLimkLBonXv4QaixFLjS0rMqQa6yoRnN 5APPPCci7tHqxbX9PXCIeph196Dbxgv0Yk1kD9f4HYCNBMHeI+TB07fDKDh/cIFf83uQ aUstoSZxBjTJ17lneV7dKGo+XFfDatTpqGVnNtGHUqGMcabY+C1384qxH0/Lx9YQl5jZ zPebgLfuSLom0npzJM6B87GDTTfZwmLpLPvcdg5CE+SaD4i0fg8SRvoTZV+X8yh9VWMU rP4KfTrRlg+J3T/ZLwFSNWOswEZb2Rg7FExY9crhyC0+yaIoGsomgDj/hjoF+4AzBnxI bfoA== X-Gm-Message-State: APjAAAUVVj14gSiDKFtXAof3Oj2/JwhOEHtx6WPffoGIAQPmrhc1xMnm oCk8XpvOHDp+9FZFzsTk+LBVxP9e1Iw5ZUj3L0YAyYu9 X-Google-Smtp-Source: APXvYqyidgHGelwcNt133Kwj8JJA3a4vn012Fg/8WEMuXQKjqTkKmcsGlMFUZQapjJByUqcpegA0ZALZhJDQdLeoI8Q= X-Received: by 2002:a67:e296:: with SMTP id g22mr22802764vsf.233.1574190392794; Tue, 19 Nov 2019 11:06:32 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: ermouth Date: Tue, 19 Nov 2019 22:06:21 +0300 Message-ID: Subject: Re: [DISCUSS] Node types in CouchDB 4.x To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary="0000000000002be30d0597b7c359" --0000000000002be30d0597b7c359 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Isn=E2=80=99t it an approach used by Couchbase? https://docs.couchbase.com/server/current/clustersetup/services-mds.html ermouth =D0=B2=D1=82, 19 =D0=BD=D0=BE=D1=8F=D0=B1. 2019 =D0=B3. =D0=B2 20:11, Nick = Vatamaniuc : > Hi everyone, > > I'd like to discuss the ability to have heterogeneous nodes types in > CouchDB 4. > > In CouchDB 2 and 3 the nodes in the cluster are usually similar, and > functionality is uniformly distributed amongst the nodes. That is all > nodes can accept HTTP requests, run replication jobs, build indices > etc. They are typically deployed such that they similar hardware > requirements. > > In an FDB-based CouchDB 4, CRUD operations, on the Erlang nodes, > wouldn't require as many resources, so it would be possible to have a > set of nodes, performing just CRUD operations that are much smaller > than the equivalent CouchDB 2 and 3 nodes. However, indexing and > replication might still require heavy resource usage. > > So the proposal is to add configuration to CouchDB 4 to allow some > nodes to perform only a subset of their current functionality. For > example, it would be possible to have 6 1-CPU nodes with 512MB > accepting API requests, and, 2 4-CPU node with 4GB of memory each > running replication and indexing jobs only, or any other such > combinations. By default, with any extra configuration, the behavior > would stay as is today -- all nodes will run all the functionality. > > I created an RFC exploring how it might look like: > https://github.com/apache/couchdb-documentation/pull/457 > > There is a comment there how it could be implemented. So far it looks > like it could be fairly trivial since it would build on the > couch_jobs work already in place. > > What does everyone think? > > Cheers, > -Nick > --0000000000002be30d0597b7c359--