You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Madhan Neethiraj <ma...@apache.org> on 2023/02/22 22:57:19 UTC

Review Request 74315: RANGER-4105: Python script to test performance of policy create/udpate/delete

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74315/
-----------------------------------------------------------

Review request for ranger, Abhishek  Kumar, Ankita Sinha, Kishor Gollapalliwar, Abhay Kulkarni, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, Sailaja Polavarapu, Subhrat Chaudhary, and Velmurugan Periasamy.


Bugs: RANGER-4105
    https://issues.apache.org/jira/browse/RANGER-4105


Repository: ranger


Description
-------

- script uses Apache Ranger Python client (https://pypi.org/project/apache-ranger/) to make REST API calls to Apache Ranger
- script create multiple threads (as specified in variable: thread_count) with each thread performing create/update/delete operations
- script creates log file named stress_policy.log containing details like:
  2023-02-10 14:00:03,637 [MainThread] Created 500 policies (items=1242, users=15077, groups=21321, permissions=9507) in 0:00:12.860034
  2023-02-10 14:00:13,935 [MainThread] Updated 500 policies (items=1240, users=14754, groups=21159, permissions=9387) in 0:00:10.297910
  2023-02-10 14:00:17,165 [MainThread] Deleted 500 policies in 0:00:03.229624


Diffs
-----

  ranger-tools/src/main/python/stress/stress_policy.py PRE-CREATION 


Diff: https://reviews.apache.org/r/74315/diff/1/


Testing
-------

- verified that the script creates, updates and deletes policies from multiple threads, as specified in parameters


Thanks,

Madhan Neethiraj


Re: Review Request 74315: RANGER-4105: Python script to test performance of policy create/udpate/delete

Posted by Abhay Kulkarni <ak...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74315/#review225213
-----------------------------------------------------------


Ship it!




Ship It!

- Abhay Kulkarni


On Feb. 22, 2023, 10:57 p.m., Madhan Neethiraj wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74315/
> -----------------------------------------------------------
> 
> (Updated Feb. 22, 2023, 10:57 p.m.)
> 
> 
> Review request for ranger, Abhishek  Kumar, Ankita Sinha, Kishor Gollapalliwar, Abhay Kulkarni, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, Sailaja Polavarapu, Subhrat Chaudhary, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-4105
>     https://issues.apache.org/jira/browse/RANGER-4105
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> - script uses Apache Ranger Python client (https://pypi.org/project/apache-ranger/) to make REST API calls to Apache Ranger
> - script create multiple threads (as specified in variable: thread_count) with each thread performing create/update/delete operations
> - script creates log file named stress_policy.log containing details like:
>   2023-02-10 14:00:03,637 [MainThread] Created 500 policies (items=1242, users=15077, groups=21321, permissions=9507) in 0:00:12.860034
>   2023-02-10 14:00:13,935 [MainThread] Updated 500 policies (items=1240, users=14754, groups=21159, permissions=9387) in 0:00:10.297910
>   2023-02-10 14:00:17,165 [MainThread] Deleted 500 policies in 0:00:03.229624
> 
> 
> Diffs
> -----
> 
>   ranger-tools/src/main/python/stress/stress_policy.py PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/74315/diff/1/
> 
> 
> Testing
> -------
> 
> - verified that the script creates, updates and deletes policies from multiple threads, as specified in parameters
> 
> 
> Thanks,
> 
> Madhan Neethiraj
> 
>