[
https://issues.apache.org/jira/browse/RANGER-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17115341#comment-17115341
]
Pradeep Agrawal commented on RANGER-2789:
-----------------------------------------
[~RickyMa] : Can you test the current performance in the master branch code. I
don't see performance issue with 1000 users in the current master code.
After the first request your code is returning the result faster, but without
your patch also ranger is not taking time in minutes.
Here is what i have tried:
*Without your patch :*
1) created 1000 users in ranger
2) called : curl -v -w "@temp.txt" -u admin:ranger1234 -H "Accept:
application/json" -H "Content-Type:application/json" -X GET
'[http://10.21.23.66:6080/service/xusers/users?pageSize=1000&startIndex=0'|http://10.21.23.66:6080/service/xusers/users?pageSize=1000&startIndex=0%27]
First request : 9 seconds
second request : 8 seconds
third request : 8 seconds
*With your patch :*
1) created 1000 users in ranger
2) called : curl -v -w "@temp.txt" -u admin:ranger1234 -H "Accept:
application/json" -H "Content-Type:application/json" -X GET
'[http://10.21.23.66:6080/service/xusers/users?pageSize=1000&startIndex=0'|http://10.21.23.66:6080/service/xusers/users?pageSize=1000&startIndex=0%27]
First request : 8 seconds
second request : 1 second
third request : 1 second
> GET API service/xusers/users turns very slow when there are more than 1000
> users
> --------------------------------------------------------------------------------
>
> Key: RANGER-2789
> URL: https://issues.apache.org/jira/browse/RANGER-2789
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 2.0.0
> Environment: hdp 2.2
> Reporter: RickyMa
> Priority: Minor
> Labels: optimization, performance, ranger, rangeradmin, slow
> Attachments: RANGER-2789.patch, image-2020-04-10-19-37-31-570.png
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> We have more than 1000 users in production environment.
> When calling API 'service/xusers/users?pageSize=1000&startIndex=0' using HTTP
> GET method, Ranger Admin takes 10+ minutes to response.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)