Skip to content

Detect available memory on OpenBSD.#2

Closed
PiotrSikora wants to merge 1 commit into
rabbitmq:masterfrom
PiotrSikora:master
Closed

Detect available memory on OpenBSD.#2
PiotrSikora wants to merge 1 commit into
rabbitmq:masterfrom
PiotrSikora:master

Conversation

@PiotrSikora

Copy link
Copy Markdown
Contributor

No description provided.

While there, rename freebsd_sysctl() to sysctl(), since sysctl is available
on number of different platforms.
@PiotrSikora

Copy link
Copy Markdown
Contributor Author

It seems that it was pulled long time ago as bb793ee, so I'm closing it.

dumbbell added a commit that referenced this pull request Dec 24, 2014
…rable

Now that 'pause_if_all_down' accepts a list of preferred nodes, it is
possible that these nodes are spread across multiple partitions. For
example, suppose we have nodes A and B in datacenter #1 and nodes C and
D in datacenter #2, and we set {pause_if_all_down, [A, C]}, If the link
between both datacenters is lost, A/B and C/D forms two partitions.
RabbitMQ continues to run at both sites because all nodes see at least
one node from the preferred nodes list. When the link comes back, we
need to handle the recovery.

Therefore, a user can specify the strategy:
    o  {pause_if_all_down, [...], ignore} (default)
    o  {pause_if_all_down, [...], autoheal}

This third parameter is mandatory.

If the strategy is 'ignore', RabbitMQ is started again on paused nodes,
as soon as they see another node from the preferred nodes list. This is
the default behaviour.

If the strategy is 'autoheal', RabbitMQ is started again, like in
'ignore' mode, but when all nodes are up, autohealing kicks in as well.

Compared to plain 'autoheal' mode, the chance of loosing data is low
because paused nodes never drifted away from the cluster. When they
start again, they join the cluster and resume operations as any starting
node.
@dumbbell dumbbell modified the milestone: n/a Mar 24, 2015
dumbbell added a commit that referenced this pull request Apr 7, 2016
The migrated tests are:
    o  rabbit_ctl_timeout_tests
    o  vm_memory_monitor_tests
    o  credit_flow_test
    o  on_disk_store_tunable_parameter_validation_test
    o  password_hashing_tests
    o  rabbit_resource_monitor_misc_test

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 7, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 8, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 11, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 13, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 13, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 13, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 13, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 14, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 15, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 15, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 18, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 20, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 20, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 21, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
bdshroyer pushed a commit that referenced this pull request Apr 21, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 29, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request Apr 29, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 3, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 6, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 6, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 20, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 23, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 24, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 25, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 25, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 25, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 25, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dumbbell added a commit that referenced this pull request May 27, 2016
The migrated tests are those from `rabbit_tests.erl`.

References #725.
[#116526487]
dcorbacho pushed a commit that referenced this pull request May 27, 2016
…e-fix

Fix `run-background-brocker` makefile target
HoloRin pushed a commit that referenced this pull request Nov 16, 2020
michaelklishin pushed a commit that referenced this pull request Nov 17, 2020
dcorbacho pushed a commit that referenced this pull request Dec 23, 2020
michaelklishin added a commit that referenced this pull request Apr 8, 2021
 fix a typo in the new EC2 IMDSv2 configuration flag name #2
binarin pushed a commit that referenced this pull request Sep 28, 2021
Symlink private_log directory for the last test run inside logs
binarin pushed a commit that referenced this pull request Sep 28, 2021
Symlink private_log directory for the last test run inside logs
binarin pushed a commit that referenced this pull request Sep 28, 2021
The definition of the `security_groups` variable in the `direct-vms`
module was incorrect. This may explain the error seen in CI. No idea why
the same error didn't appear locally though.
binarin pushed a commit that referenced this pull request Sep 28, 2021
Switch to Mozilla Public License 2.0 (MPL 2.0)
lukebakken pushed a commit to ariel-anieli/rabbitmq-server that referenced this pull request Jan 6, 2024
# This is the 1st commit message:

Added undo_colour/1, removes ANSI escape codes

# This is the commit message rabbitmq#2:

Fix for rabbitmq#8557, removed ANSI codes in JSON output

# This is the commit message rabbitmq#3:

Removed undo_colour/1
lukebakken added a commit to Piyush0049/rabbitmq-server that referenced this pull request Jul 15, 2026
Add tests that exercise the five confirmed issues with the Unix Domain
Socket implementation:

- is_loopback must return true for the {local, _} tuple (finding rabbitmq#1)
- guest must connect over UDS with loopback_users=[<<"guest">>] (rabbitmq#1)
- internal_loopback backend must accept guest over UDS (rabbitmq#1)
- track_auth_attempt_source must not crash UDS connections (rabbitmq#2)
- tcp_listener_addresses must handle arbitrary string paths (rabbitmq#4)

Also: add rabbitmq_auth_backend_internal_loopback to TEST_DEPS, add
the MPL copyright header, fix executable file mode (755 -> 644), and
remove unnecessary timer:sleep calls and trivial comments.

These tests are expected to FAIL against the current PR code, proving
the bugs exist. They will pass once the fixes are applied.
lukebakken added a commit to Piyush0049/rabbitmq-server that referenced this pull request Jul 15, 2026
Add tests that exercise the five confirmed issues with the Unix Domain
Socket implementation:

- is_loopback must return true for the {local, _} tuple (finding rabbitmq#1)
- guest must connect over UDS with loopback_users=[<<"guest">>] (rabbitmq#1)
- internal_loopback backend must accept guest over UDS (rabbitmq#1)
- track_auth_attempt_source must not crash UDS connections (rabbitmq#2)
- rabbit_misc:ntoa must handle the bare atom `local` (rabbitmq#3)
- tcp_listener_addresses must handle arbitrary string paths (rabbitmq#4)

Also: add rabbitmq_auth_backend_internal_loopback to TEST_DEPS, add
the MPL copyright header, fix executable file mode (755 -> 644), and
remove unnecessary timer:sleep calls and trivial comments.

These tests are expected to FAIL against the current PR code, proving
the bugs exist. They will pass once the fixes are applied.
Piyush0049 added a commit to Piyush0049/rabbitmq-server that referenced this pull request Jul 16, 2026
- Fix socket_ends/2 tuple decomposition causing is_loopback failures (Finding rabbitmq#1)
- Restore {error, enoent} assertion in uds_connection_failure tests (Finding rabbitmq#2)
- Handle the bare atom 'local' in rabbit_misc:ntoa/1 (Finding rabbitmq#3)
- Drop overly strict hd(Path) guard from tcp_listener_addresses/1 (Finding rabbitmq#4)
- Remove 'string' from tcp and ssl listener schema datatypes (Finding rabbitmq#5)
- Restore {error, einval} fallback in rabbit_auth_backend_http
- Normalise track_auth_attempt_source tuple extraction in rabbit_core_metrics
lukebakken added a commit to Piyush0049/rabbitmq-server that referenced this pull request Jul 16, 2026
Add tests that exercise the five confirmed issues with the Unix Domain
Socket implementation:

- is_loopback must return true for the {local, _} tuple (finding rabbitmq#1)
- guest must connect over UDS with loopback_users=[<<"guest">>] (rabbitmq#1)
- internal_loopback backend must accept guest over UDS (rabbitmq#1)
- track_auth_attempt_source must not crash UDS connections (rabbitmq#2)
- rabbit_misc:ntoa must handle the bare atom `local` (rabbitmq#3)
- tcp_listener_addresses must handle arbitrary string paths (rabbitmq#4)

Also: add rabbitmq_auth_backend_internal_loopback to TEST_DEPS, add
the MPL copyright header, fix executable file mode (755 -> 644), and
remove unnecessary timer:sleep calls and trivial comments.

These tests are expected to FAIL against the current PR code, proving
the bugs exist. They will pass once the fixes are applied.
lukebakken pushed a commit to Piyush0049/rabbitmq-server that referenced this pull request Jul 16, 2026
- Fix socket_ends/2 tuple decomposition causing is_loopback failures (Finding rabbitmq#1)
- Restore {error, enoent} assertion in uds_connection_failure tests (Finding rabbitmq#2)
- Handle the bare atom 'local' in rabbit_misc:ntoa/1 (Finding rabbitmq#3)
- Drop overly strict hd(Path) guard from tcp_listener_addresses/1 (Finding rabbitmq#4)
- Remove 'string' from tcp and ssl listener schema datatypes (Finding rabbitmq#5)
- Restore {error, einval} fallback in rabbit_auth_backend_http
- Normalise track_auth_attempt_source tuple extraction in rabbit_core_metrics
lukebakken added a commit that referenced this pull request Jul 20, 2026
Add tests that exercise the five confirmed issues with the Unix Domain
Socket implementation:

- is_loopback must return true for the {local, _} tuple (finding #1)
- guest must connect over UDS with loopback_users=[<<"guest">>] (#1)
- internal_loopback backend must accept guest over UDS (#1)
- track_auth_attempt_source must not crash UDS connections (#2)
- rabbit_misc:ntoa must handle the bare atom `local` (#3)
- tcp_listener_addresses must handle arbitrary string paths (#4)

Also: add rabbitmq_auth_backend_internal_loopback to TEST_DEPS, add
the MPL copyright header, fix executable file mode (755 -> 644), and
remove unnecessary timer:sleep calls and trivial comments.

These tests are expected to FAIL against the current PR code, proving
the bugs exist. They will pass once the fixes are applied.
lukebakken pushed a commit that referenced this pull request Jul 20, 2026
- Fix socket_ends/2 tuple decomposition causing is_loopback failures (Finding #1)
- Restore {error, enoent} assertion in uds_connection_failure tests (Finding #2)
- Handle the bare atom 'local' in rabbit_misc:ntoa/1 (Finding #3)
- Drop overly strict hd(Path) guard from tcp_listener_addresses/1 (Finding #4)
- Remove 'string' from tcp and ssl listener schema datatypes (Finding #5)
- Restore {error, einval} fallback in rabbit_auth_backend_http
- Normalise track_auth_attempt_source tuple extraction in rabbit_core_metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants