From user-return-63066-archive-asf-public=cust-asf.ponee.io@cassandra.apache.org Mon Jan 28 10:44:54 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 40BC018060E for ; Mon, 28 Jan 2019 10:44:54 +0100 (CET) Received: (qmail 22095 invoked by uid 500); 28 Jan 2019 09:44:52 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 22085 invoked by uid 99); 28 Jan 2019 09:44:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2019 09:44:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 06393C00B8 for ; Mon, 28 Jan 2019 09:44:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.807 X-Spam-Level: * X-Spam-Status: No, score=1.807 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZNwctpqU_1YN for ; Mon, 28 Jan 2019 09:44:50 +0000 (UTC) Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9F8DA5FAD3 for ; Mon, 28 Jan 2019 09:44:50 +0000 (UTC) Received: by mail-qk1-f178.google.com with SMTP id q8so9018710qke.1 for ; Mon, 28 Jan 2019 01:44:50 -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=jUJPOv9HSBlwmqAiNjmMWkiNXhhdQPgDRx9gNKPTt50=; b=aED6gIU/eU6WLdWqhD7/226bJGcVYFCR7epNqkv/7gpKRGbbWg03DBXh4bsg50+qMv ejAvyYna6mrxL72njCtterdqHpN2sDj/asQpIWLJWRpWO8p+lFHMlu7WbXQUbIySgTFS oq8LND7jj5a00cZckXS2j8SZ2MB49WeF8R9Js4GKmgjwuYJklSw5oiLRwCWYPjmmwyrs faVGeOCmPdPweo3mdpoL6ID8pLCycf1FHOH1AXrZKgAlN22qaqGLN36s3ossgQHbVVpw /pxRkIARDyAVp5dhxJxrX1ZQQpiuVKTEGzSq0ijtG/aqDiSnN1zhtpANAtJ/E5ZZOo4n 5nRA== 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=jUJPOv9HSBlwmqAiNjmMWkiNXhhdQPgDRx9gNKPTt50=; b=ekyauN3p9Qu/V39L0r6ZblD9odB++xTue0sx9JbtZPIkyng3mLkkdLOsVEST1lWJIZ UvJzXjymAD79lE1+9Q/RYcKB7OBEbEMeksIeFmrOPcY2VqX/CkumWy9X/fn7wB+NEjS+ MsveHlSesHV/CiTypwtPJQ8rXhkveBg/jZaGmFk+5Dt5zUbhr0S2Jgrl7ThFEO2kyFkR nvfquQrmHsooDIR1eUPoEFIhsntKbTtW3F909rF2dnab7ij+T0xGEI3odIB0k0686D/5 iKc2vHAYzlsC9aVdZoRSY5DDdVvLd1NWSjIyGF/TsNk0paI+r4oRapv1SV4BnFcBZfxl keVw== X-Gm-Message-State: AJcUukfnDjhaxMR+Z2mK8NJklrTkVSNf3QogSTrSUx/ZLvRG/cEPPWPI Lfa2zZW/+n8EBbZQI9sqm+Tk++bYMqLoeVMwFQCBUw== X-Google-Smtp-Source: ALg8bN5Wk0SMBFhZDiOqQ4h9AsARDK5ETJxo5ZSbiZg8+lxdmB9+UM/1CfUFsGjcpyJRcfP78JSRm+t62qJFts7XD/Q= X-Received: by 2002:a37:4f8f:: with SMTP id d137mr19516205qkb.325.1548668689784; Mon, 28 Jan 2019 01:44:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Horia Mocioi Date: Mon, 28 Jan 2019 10:44:38 +0100 Message-ID: Subject: Re: Question about allocate_tokens_for_keyspace To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary="0000000000002125b205808187d1" --0000000000002125b205808187d1 Content-Type: text/plain; charset="UTF-8" Hello, When configuring this option, the replication strategy of that keyspace will be used to optimize token selection, so this is useful when you have a single keyspace across the cluster or the same replication strategy for all keyspaces. Also, is worth noting that the option is available for Murmur3Partitioner. Regards, Horia On Mon, Jan 28, 2019 at 9:44 AM Ahmed Eljami wrote: > Hi Folks, > > I'm about to configure a new cluster with num_token = 32 and using the new > token allocation. > > For the first keyspace, I understood that it will be used to start my > cluster: allocate_tokens_for_keyspace = my_first_ks. > > My question is how about the rest of keyspaces ? they will take the same > conf than the first ks or I have to add them to the cassandra.yaml and > restart each time my cluster? > > Thanks > > -- --0000000000002125b205808187d1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

When configuring this option, th= e replication strategy of that keyspace will be used to optimize token sele= ction, so this is useful when you have a single keyspace across the cluster= or the same replication strategy for all keyspaces.

Also, is worth noting that the option is available for Murmur3Partitione= r.

Regards,
Horia

On Mon, Jan 28, 2= 019 at 9:44 AM Ahmed Eljami <a= hmed.eljami@gmail.com> wrote:
Hi F= olks,

I'm about to confi= gure a new cluster with num_token =3D 32 and using the new token allocation= .

For the first keyspace,=20 I understood=C2=A0 that it will be used to start my cluste= r: allocate_tokens_for_keyspace =3D my_first_ks.

My question is how about the rest of keyspaces ? they wi= ll take the same conf than the first ks or I have to add them to the cassan= dra.yaml and restart each time my cluster?

= Thanks



--
--0000000000002125b205808187d1--