[ https://issues.apache.org/jira/browse/CASSANDRA-9909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14644930#comment-14644930 ]
Brandon Williams commented on CASSANDRA-9909: --------------------------------------------- bq. All this being said, DD.getSeeds() is called incredibly infrequently; in fact, almost never. I agree, only maybe once in OTC, when bootstrapping, or on removal of a seed node. > Configuration is loaded too often during runtime > ------------------------------------------------ > > Key: CASSANDRA-9909 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9909 > Project: Cassandra > Issue Type: Improvement > 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 (v6.3.4#6332)