Project

General

Profile

Bug #20661

With RGWs configured in a load balancer, quota stats cache doesn't work

Added by Pavan Rallabhandi about 1 month ago. Updated 24 days ago.

Status:
Pending Backport
Priority:
Normal
Target version:
-
Start date:
07/18/2017
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
jewel, kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

With RGWs configured in a load balancer, quota stats cache can possibly run into unbound values. We have found errors like below in our clusters running Jewel. This happens when PUT and DELETE operations do not hit the same RGW and an eventual update_stats() from a DELETE operation tries to decrement the stats cache. This can be easily verified by having RGWs configured in a load balancer(I've used HAProxy in RR mode) and running a script to upload/delete objects, with the user quota enabled.

20 quota: can't use cached stats, exceeded soft threshold (num objs): 18446744073709551615 >= 190000

10 quota exceeded: stats.num_kb_rounded=18446744073709549572 size_kb=1024 user_quota.max_size_kb=5242880000

Related issues

Copied to rgw - Backport #20821: jewel: With RGWs configured in a load balancer, quota stats cache doesn't work In Progress
Copied to rgw - Backport #20822: kraken: With RGWs configured in a load balancer, quota stats cache doesn't work New

History

#1 Updated by Pavan Rallabhandi about 1 month ago

  • Status changed from New to Need Review

#2 Updated by Orit Wasserman 28 days ago

Dcan you reproduce it on newer ceph versions?

#3 Updated by Pavan Rallabhandi 27 days ago

Yes it is reproducible on master as well, sorry if the affected versions field has misled you.

#4 Updated by Orit Wasserman 27 days ago

Can you provide rgw logs? (debug_rgw = 20)
From the code it should have return false on can_use_cache_stats and fetch the stats from the storage. Those are not supposed to be negative

#5 Updated by Orit Wasserman 27 days ago

OK we fetch the storage stats only for the bucket stats not the user stats.
The failure is for the user stats, making sure they do not over flowing will fix this.

#6 Updated by Orit Wasserman 27 days ago

  • Backport set to jewel, kraken

#7 Updated by Orit Wasserman 27 days ago

  • Status changed from Need Review to Need Test

#8 Updated by Yuri Weinstein 24 days ago

Pavan Rallabhandi wrote:

https://github.com/ceph/ceph/pull/16389

merged

#9 Updated by Orit Wasserman 24 days ago

  • Status changed from Need Test to Pending Backport

#10 Updated by Nathan Cutler 24 days ago

  • Copied to Backport #20821: jewel: With RGWs configured in a load balancer, quota stats cache doesn't work added

#11 Updated by Nathan Cutler 24 days ago

  • Copied to Backport #20822: kraken: With RGWs configured in a load balancer, quota stats cache doesn't work added

Also available in: Atom PDF