Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9909

Configuration is loaded too often during runtime

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • Local/Config
    • 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

          Activity

            People

              Unassigned Unassigned
              snazy Robert Stupp
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: