Closed shipperizer closed 3 months ago
IAM-726: use worker pool for background calls to openFGA
shipperizer in ~/shipperizer/jobless-needle on main λ hey -c 50 -n 1000 -H X-Authorization:c2hpcHBlcml6ZXI= http://localhost:8000/api/v0/roles/administrator/entitlements Summary: Total: 20.3209 secs Slowest: 0.1557 secs Fastest: 0.0025 secs Average: 0.0174 secs Requests/sec: 49.2105 Total data: 295516 bytes Size/request: 303 bytes Response time histogram: 0.002 [1] | 0.018 [838] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.033 [75] |■■■■ 0.048 [23] |■ 0.064 [2] | 0.079 [0] | 0.094 [0] | 0.110 [3] | 0.125 [4] | 0.140 [9] | 0.156 [20] |■ Latency distribution: 10% in 0.0067 secs 25% in 0.0092 secs 50% in 0.0117 secs 75% in 0.0150 secs 90% in 0.0242 secs 95% in 0.0389 secs 99% in 0.1538 secs Details (average, fastest, slowest): DNS+dialup: 0.0001 secs, 0.0025 secs, 0.1557 secs DNS-lookup: 0.0000 secs, 0.0000 secs, 0.0020 secs req write: 0.0000 secs, 0.0000 secs, 0.0019 secs resp wait: 0.0173 secs, 0.0024 secs, 0.1537 secs resp read: 0.0000 secs, 0.0000 secs, 0.0014 secs Status code distribution: [200] 971 responses [500] 4 responses Error distribution: [25] Get "http://localhost:8000/api/v0/roles/administrator/entitlements": context deadline exceeded (Client.Timeout exceeded while awaiting headers) shipperizer in ~/shipperizer/jobless-needle on main λ hey -c 50 -n 1000 -H X-Authorization:c2hpcHBlcml6ZXI= http://localhost:8000/api/v0/groups/c-level/entitlements Summary: Total: 20.3215 secs Slowest: 0.0902 secs Fastest: 0.0022 secs Average: 0.0160 secs Requests/sec: 49.2090 Total data: 175223 bytes Size/request: 179 bytes Response time histogram: 0.002 [1] | 0.011 [355] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.020 [485] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.029 [61] |■■■■■ 0.037 [21] |■■ 0.046 [7] |■ 0.055 [6] | 0.064 [0] | 0.073 [11] |■ 0.081 [14] |■ 0.090 [13] |■ Latency distribution: 10% in 0.0079 secs 25% in 0.0098 secs 50% in 0.0124 secs 75% in 0.0159 secs 90% in 0.0228 secs 95% in 0.0395 secs 99% in 0.0845 secs Details (average, fastest, slowest): DNS+dialup: 0.0001 secs, 0.0022 secs, 0.0902 secs DNS-lookup: 0.0000 secs, 0.0000 secs, 0.0035 secs req write: 0.0000 secs, 0.0000 secs, 0.0044 secs resp wait: 0.0158 secs, 0.0022 secs, 0.0888 secs resp read: 0.0001 secs, 0.0000 secs, 0.0058 secs Status code distribution: [200] 973 responses [500] 1 responses Error distribution: [26] Get "http://localhost:8000/api/v0/groups/c-level/entitlements": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
:+1
IAM-726: use worker pool for background calls to openFGA
TODO