Skip to content

v0.14 - Choices hot reload 🔥

Latest
Compare
Choose a tag to compare
@Toparvion Toparvion released this 11 Jan 10:50

Description

This is a major feature release and a first one created with active and effective contributions from @poludov (thanks mate!). The main feature is the AnaLog’s ability to automatically reload and apply changes to choices configuration just on-the-fly, i.e. without application restart. But apart of it, several other fixes and improvements have been included into this version.

Changes

ℹ️ See also v0.14 milestone.

Upgrading

If you’re upgrading your existing AnaLog instance, the following steps are required for this version to work:

  1. Stop the application.

  2. Replace analog.jar with the new one from the distribution archive (see download links below).

  3. In analog or analog.bat file, replace the line:

    DEFAULT_JVM_OPTS="-XX:MaxMetaspaceSize=128M -XX:MaxHeapSize=256M -Dspring.config.additional-location=file:$APP_HOME/config/choices.yaml"

    with the following:

    DEFAULT_JVM_OPTS="-XX:MaxMetaspaceSize=128M -XX:MaxHeapSize=256M"

    (i.e. remove spring.config.additional-location JVM option)

  4. In application.yaml file, add the following section:

    choicesSource:
      location: ${APP_HOME}/config/choices.yaml
      autoReloadEnabled: true
  5. Start the application with analog[.bat] script.

If you’re installing AnaLog from scratch, see Installation & Usage section of README file.

Feedback

If you have any problems or just curious about some things around AnaLog, let us know by submitting an issue.