You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "C. Scott Andreas (JIRA)" <ji...@apache.org> on 2018/11/19 05:43:01 UTC

[jira] [Updated] (CASSANDRA-9909) Configuration is loaded too often during runtime

     [ https://issues.apache.org/jira/browse/CASSANDRA-9909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

C. Scott Andreas updated CASSANDRA-9909:
----------------------------------------
    Component/s: Configuration

> Configuration is loaded too often during runtime
> ------------------------------------------------
>
>                 Key: CASSANDRA-9909
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9909
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Configuration
>            Reporter: Robert Stupp
>            Priority: Minor
>
> Each call to {{SimpleSeedProvider.getSeeds()}} via {{DatabaseDescriptor.getSeeds()}} loads the configuration file from disk.
> This is unnecessary in the vast majority of calls from {{Gossiper}} and {{StorageService}}.
> Proposal:
> * Instantiate {{ConfigurationLoader}} once during init of DD (not every time in {{loadConfig()}}}
> * Only load configuration once per time interval
> * Only load configuration if config file has changed (file modification timestamp) - if applicable (URL resolves to a file)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org