Skip to content

Conversation

@dumbbell
Copy link
Collaborator

@dumbbell dumbbell commented Oct 4, 2024

Why

Before this patch, the $RABBITMQ_FEATURE_FLAGS environment variable took an exhaustive list of feature flags to enable. This list overrode the default of enabling all stable feature flags.

It made it inconvenient when a user wanted to enable an experimental feature flag like khepri_db while still leaving the default behavior.

How

$RABBITMQ_FEATURE_FLAGS now acceps the following syntax:

RABBITMQ_FEATURE_FLAGS=+feature1,-feature2

This will start RabbitMQ with all stable feature flags, plus feature1, but without feature2.

For users setting forced_feature_flags_on_init in the config, the corresponding syntax is:

{forced_feature_flags_on_init, {rel, [feature1], [feature2]}}

While working on rabbit_env, remove the support for $RABBITMQ_LOG_FF_REGISTRY. Its use was removed when the registry was converted from a compiled module to a persistent_term.

@dumbbell dumbbell added this to the 4.1.0 milestone Oct 4, 2024
@dumbbell dumbbell self-assigned this Oct 4, 2024
@dumbbell dumbbell changed the title rabbit_feature_flags: Accept "+feature1,feature2" in $RABBITMQ_FEATURE_FLAGS rabbit_feature_flags: Accept "+feature1,feature2" in $RABBITMQ_FEATURE_FLAGS Oct 4, 2024
@dumbbell dumbbell force-pushed the accept-relative-feature-flags-list-in-RABBITMQ_FEATURE_FLAGS-env branch 2 times, most recently from f4e646f to 2489ae3 Compare October 7, 2024 08:58
@dumbbell dumbbell changed the title rabbit_feature_flags: Accept "+feature1,feature2" in $RABBITMQ_FEATURE_FLAGS rabbit_feature_flags: Accept "+feature1,-feature2" in $RABBITMQ_FEATURE_FLAGS Oct 7, 2024
@dumbbell dumbbell force-pushed the accept-relative-feature-flags-list-in-RABBITMQ_FEATURE_FLAGS-env branch from 2489ae3 to c06fe5b Compare October 7, 2024 09:37
…RE_FLAGS

[Why]
Before this patch, the $RABBITMQ_FEATURE_FLAGS environment variable took
an exhaustive list of feature flags to enable. This list overrode the
default of enabling all stable feature flags.

It made it inconvenient when a user wanted to enable an experimental
feature flag like `khepri_db` while still leaving the default behavior.

[How]
$RABBITMQ_FEATURE_FLAGS now acceps the following syntax:

    RABBITMQ_FEATURE_FLAGS=+feature1,-feature2

This will start RabbitMQ with all stable feature flags, plus `feature1`,
but without `feature2`.

For users setting `forced_feature_flags_on_init` in the config, the
corresponding syntax is:

    {forced_feature_flags_on_init, {rel, [feature1], [feature2]}}
[Why]
Its use was removed when the registry was converted from a compiled
module to a persistent_term.
@dumbbell dumbbell force-pushed the accept-relative-feature-flags-list-in-RABBITMQ_FEATURE_FLAGS-env branch from c06fe5b to 9b2c6d9 Compare October 7, 2024 12:03
@dumbbell dumbbell marked this pull request as ready for review October 7, 2024 14:58
@dumbbell dumbbell merged commit 67af27b into main Oct 7, 2024
440 checks passed
@dumbbell dumbbell deleted the accept-relative-feature-flags-list-in-RABBITMQ_FEATURE_FLAGS-env branch October 7, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants