Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74170177E4 for ; Thu, 16 Apr 2015 07:27:04 +0000 (UTC) Received: (qmail 37414 invoked by uid 500); 16 Apr 2015 07:26:59 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 37371 invoked by uid 500); 16 Apr 2015 07:26:59 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 37358 invoked by uid 99); 16 Apr 2015 07:26:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 07:26:59 +0000 Date: Thu, 16 Apr 2015 07:26:59 +0000 (UTC) From: "Marcus Olsson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8376) Add support for multiple configuration files (or conf.d) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcus Olsson updated CASSANDRA-8376: ------------------------------------- Attachment: cassandra-2.1-8376.patch Unfortunately I seem to be unable to assign myself to the ticket, is that a separate permission you need? The attached patch is an extension to the current YamlConfigurationLoader using a conf.d directory that is scanned at startup and overrides configuration from cassandra.yaml. The files in the conf.d directory are read in order based on their names. > Add support for multiple configuration files (or conf.d) > -------------------------------------------------------- > > Key: CASSANDRA-8376 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8376 > Project: Cassandra > Issue Type: New Feature > Reporter: Omri Bahumi > Attachments: cassandra-2.1-8376.patch > > > I'm using Chef to generate cassandra.yaml. > Part of this file is the "seed_provider", which is based on the Chef inventory. > Changes to this file (due to Chef inventory change, when adding/removing Cassandra nodes) cause a restart, which is not desirable. > The Chef way of handling this is to split the config file into two config files, one containing only the "seed_provider" and the other containing the rest of the config. > Only the latter will cause a restart to Cassandra. > This is achievable by either: > 1. Specifying multiple config files to Cassandra > 2. Specifying a conf.d directory -- This message was sent by Atlassian JIRA (v6.3.4#6332)