Skip to content

Commit 1eff38a

Browse files
Blue-Green Upgrade guide updates
rabbitmqadmin v2 provides a new set of commands that greatly simplify the task of enabling queue federation of all policies. To make this update possible for the 3.13 edition, this backports some Policies guide changes to that edition. After all, the rabbitmqadmin v2 commands in question can be used with 3.13.x nodes as well as 4.x ones.
1 parent d35fd07 commit 1eff38a

File tree

5 files changed

+595
-38
lines changed

5 files changed

+595
-38
lines changed

docs/blue-green-upgrade.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,38 @@ rabbitmqctl set_parameter federation-upstream blue \
6363
'{"uri":"amqp://node-in-blue-cluster"}'
6464
```
6565

66-
Then define a policy matching all queues which configure `blue` as the upstream:
66+
Then define a [policy](./policies) or a number of policies, collectively matching all queues
67+
which configure `blue` as the upstream:
6768

6869
```bash
6970
rabbitmqctl set_policy --apply-to queues blue-green-migration ".*" \
7071
'{"federation-upstream":"blue"}'
7172
```
7273

73-
Please read the guides linked above and the
74-
[federation reference](./federation-reference) for further details.
74+
:::tip
75+
76+
The above example is a great oversimplification.
77+
78+
In practice, some queues will be already matched by a policy,
79+
and some might not be.
80+
81+
[`rabbitmqadmin v2`](./management-cli) provides a set of commands
82+
that allow the operator to
83+
84+
1. [Patch (partially update)](./policies#patching) policies
85+
2. Temporarily [override existing policies](./policies#override)
86+
to include a key that enabled queue federation
87+
3. [Declare a blanket policy](./policies#blanket) to match all other queues
88+
to enable federation for them
89+
90+
Use a combination of these features to enable queue federation
91+
between the clusters for all queues, whether they already have
92+
a policy that applies to them or not.
93+
94+
:::
95+
96+
Please refer to the [policies](./policies) and
97+
[federation reference](./federation-reference) guides to learn more.
7598

7699
## Migrate Consumers Over {#migrate-consumers}
77100

versioned_docs/version-3.13/blue-green-upgrade.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,38 @@ rabbitmqctl set_parameter federation-upstream blue \
6767
'{"uri":"amqp://node-in-blue-cluster"}'
6868
```
6969

70-
Then define a policy matching all queues which configure `blue` as the upstream:
70+
Then define a [policy](./policies) or a number of policies, collectively matching all queues
71+
which configure `blue` as the upstream:
7172

7273
```bash
7374
rabbitmqctl set_policy --apply-to queues blue-green-migration ".*" \
7475
'{"federation-upstream":"blue"}'
7576
```
7677

77-
Please read the guides linked above and the
78-
[federation reference](./federation-reference) for further details.
78+
:::tip
79+
80+
The above example is a great oversimplification.
81+
82+
In practice, some queues will be already matched by a policy,
83+
and some might not be.
84+
85+
[`rabbitmqadmin v2`](./management-cli) provides a set of commands
86+
that allow the operator to
87+
88+
1. [Patch (partially update)](./policies#patching) policies
89+
2. Temporarily [override existing policies](./policies#override)
90+
to include a key that enabled queue federation
91+
3. [Declare a blanket policy](./policies#blanket) to match all other queues
92+
to enable federation for them
93+
94+
Use a combination of these features to enable queue federation
95+
between the clusters for all queues, whether they already have
96+
a policy that applies to them or not.
97+
98+
:::
99+
100+
Please refer to the [policies](./policies) and
101+
[federation reference](./federation-reference) guides to learn more.
79102

80103
## Migrate Consumers Over {#migrate-consumers}
81104

0 commit comments

Comments
 (0)