Repository navigation
rgw: log_meta only for more than one zone - #15777
Conversation
There was a problem hiding this comment.
i worry that this would cause problems for default configurations that are later extended with more zones (that's possible to do since #10477). ideally this check would be based on num_zonegroups == 1 && num_zones == 1, but that's tricky to do in a RGWZoneGroup member function during a zone[group] modify command
maybe it would be better to take the approach from #15613, and add logic to RGWRados::need_to_log_metadata() that could inspect the current_period to count zonegroups/zones?
There was a problem hiding this comment.
@cbodley ,another possibility is to check that the current period is empty (default zg and zone don't have a period or realm).
I will also update need_to_log_metadata.
There was a problem hiding this comment.
Also post_process_params is called when updating placement group, I think we should update log_meta only if the zone was set to master and not touch it in other cases
235a3da to
ff16288
Compare
ff16288 to
6bcd4c7
Compare
There was a problem hiding this comment.
we still want this to return true in a configuration that has two zonegroups, each with one zone. the secondary zonegroup would still sync metadata from the meta master
There was a problem hiding this comment.
right , I will remove log_meta and fix this
Signed-off-by: Leo Zhang <[email protected]>
Signed-off-by: Orit Wasserman <[email protected]>
Signed-off-by: Orit Wasserman <[email protected]>
6bcd4c7 to
ac8b007
Compare
cbodley
left a comment
There was a problem hiding this comment.
added a suggestion to simplify is_multi_zonegroups_with_zones(), but i'm happy with the pr as is 👍
| } | ||
| } | ||
| return false; | ||
| } |
There was a problem hiding this comment.
what do you think about making a get_num_zones() that just counts the zones from all zonegroups? then you wouldn't need to split single-zonegroup and multi-zonegroup cases
need_to_log_metadata() could use get_num_zones() > 1 and is_syncing_bucket_meta() could use get_num_zones() == 1
the `RGWZone::log_meta` field has been ignored since 2017 after #15777 to avoid confusion, remove it from the json output of radosgw-admin commands like 'zonegroup get' and 'period get' Fixes: https://tracker.ceph.com/issues/79577 Signed-off-by: Casey Bodley <[email protected]>
the `RGWZone::log_meta` field has been ignored since 2017 after ceph#15777 to avoid confusion, remove it from the json output of radosgw-admin commands like 'zonegroup get' and 'period get' Fixes: https://tracker.ceph.com/issues/79577 Signed-off-by: Casey Bodley <[email protected]>
the `RGWZone::log_meta` field has been ignored since 2017 after ceph#15777 to avoid confusion, remove it from the json output of radosgw-admin commands like 'zonegroup get' and 'period get' Fixes: https://tracker.ceph.com/issues/79577 Signed-off-by: Casey Bodley <[email protected]>
Fixes: http://tracker.ceph.com/issues/20357
Signed-off-by: Orit Wasserman [email protected]