Skip to content

Commit 0b12afa

Browse files
jiffincbodley
authored andcommitted
rgw : provide multiple option for read replica policy
Signed-off-by: Jiffin Tony Thottan <[email protected]>
1 parent 0d56b61 commit 0b12afa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/common/options/rgw.yaml.in

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4260,3 +4260,22 @@ options:
42604260
services:
42614261
- rgw
42624262
with_legacy: true
4263+
- name: rgw_replica_read_policy
4264+
type: str
4265+
level: advanced
4266+
desc: read policy for sending read requests to OSD
4267+
fmt_desc : |
4268+
Policy for determining which OSD will receive read operations.
4269+
If set to ``default``, each PG's primary OSD will always be used
4270+
for read operations. If set to ``balance``, read operations will
4271+
be sent to a randomly selected OSD within the replica set. If set
4272+
to ``localize``, read operations will be sent to the closest OSD
4273+
as determined by the CRUSH map.
4274+
default: default
4275+
services:
4276+
- rgw
4277+
enum_values:
4278+
- default
4279+
- balance
4280+
- localize
4281+
with_legacy: true

0 commit comments

Comments
 (0)