Uploaded image for project: 'Forrest'
  1. Forrest
  2. FOR-588 Design new configuration system
  3. FOR-737

Enable dynamic reloading of properties



    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core operations
    • Labels:


      Since properties will no longer need to be defined in the forrest.xconf file it will be possible to enable dynamic reloading of properties at runtime.

      All we need to do is keep a check of when the properties file was last loaded and check this against the last modified time of the properties file. When necessary reload.

      This should be configurable though as it has implications on performance since the check will be made every time an property value is retreived.

      I suggest the following options:

      - always check and reload when the file changes
      - only check and reload when a property value is not currently defined
      - only check and reload every X minutes (should above to options should apply here too)
      - never check and reload

      The initial settings for this reload option can be set in the properties file itself and applied when it is loaded/reloaded. Of course, this means if it is set to "never check and reload" a restart will be required to have changes take effect. Therefore this setting is for production servers only.




            • Assignee:
              rgardler Ross Gardler
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: