Details
-
Improvement
-
Status: Open
-
Low
-
Resolution: Unresolved
-
None
-
None
Description
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)
Attachments
Issue Links
- is related to
-
CASSANDRA-7597 Remove static initializer in DatabaseDescriptor
- Open
- relates to
-
CASSANDRA-7663 Removing a seed causes previously removed seeds to reappear
- Resolved