Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set startup time with env NATS_STARTUP_DELAY #3743

Merged
merged 3 commits into from Jan 3, 2023
Merged

Set startup time with env NATS_STARTUP_DELAY #3743

merged 3 commits into from Jan 3, 2023

Commits on Dec 26, 2022

  1. Set stratup time with env NATS_STARTUP_DELAY

    The startup delay when starting as a service under windows was set to 10
    seconds.
    
    This value was fixed and hardcoded since before JetStream. On (some)
    Windows systems, this leads to service startup failures, as the store
    dir sorting may be hindered by an important load, or slowed down by
    increased accesses times, typically from security software influence.
    
    This commit allows overriding the startup delay using an environment
    variable NATS_STARTUP_DELAY. This variable is checked outside init() to
    allow reporting into the service log.
    
    Any value can be used (even lower than the initial 10s). Bare NATS
    start can be far faster than 10s. Ops may want to setup this env var to
    lower values in order to trigger an error on stricter constraints.
    Alberic-Hardis committed Dec 26, 2022
    Configuration menu
    Copy the full SHA
    86f224b View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2022

  1. More compact syntax

    Alberic-Hardis committed Dec 27, 2022
    Configuration menu
    Copy the full SHA
    8a1b2f0 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2023

  1. Configuration menu
    Copy the full SHA
    d21c9fb View commit details
    Browse the repository at this point in the history