ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dineshkumar Yadav <dineshkumar.ya...@outlook.com>
Subject Re: Review Request 71993: RANGER-2699 : JVM metrics for Ranger usersync and Ranger tagsync
Date Fri, 17 Jan 2020 05:29:35 GMT


> On Jan. 16, 2020, 6:26 a.m., Pradeep Agrawal wrote:
> > unixauthservice/src/main/java/org/apache/ranger/authentication/UnixAuthenticationService.java
> > Lines 132 (patched)
> > <https://reviews.apache.org/r/71993/diff/2/?file=2207135#file2207135line132>
> >
> >     Add the testing done and outputs

{"data":{"jvm":{"JVM Machine Actual Name":"OpenJDK 64-Bit Server VM","version":"25.232-b09","JVM
Machine Representation Name":"5963@os-mv-07-test-1.vpc.cloudera.com","Up time of JVM":4932,"JVM
Vendor Name":"AdoptOpenJDK","os.spec":"Linux, amd64, 3.10.0-862.2.3.el7.x86_64","os.vcpus":"4","memory":{"heapInit":"268435456","heapMax":"244842496","heapCommitted":"244842496","heapUsed":"42109240","nonHeapInit":"2555904","nonHeapMax":"662700032","nonHeapCommitted":"36044800","nonHeapUsed":"34969600","memory_pool_usages":{"PS
Eden Space":{"init":67108864,"used":35259592,"committed":63963136,"max":74448896},"PS Survivor
Space":{"init":11010048,"used":1343488,"committed":1572864,"max":1572864},"PS Old Gen":{"init":179306496,"used":5506160,"committed":179306496,"max":179306496}}}}}}


- Dineshkumar


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


On Jan. 16, 2020, 3:09 p.m., Dineshkumar Yadav wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/71993/
> -----------------------------------------------------------
> 
> (Updated Jan. 16, 2020, 3:09 p.m.)
> 
> 
> Review request for ranger, Ankita Sinha, Gautam Borad, Mehul Parikh, and Pradeep Agrawal.
> 
> 
> Bugs: RANGER-2699
>     https://issues.apache.org/jira/browse/RANGER-2699
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Added metrics information in usersync and tagsync services
> 
> 
> Diffs
> -----
> 
>   agents-common/src/main/java/org/apache/ranger/plugin/util/RangerMetricsUtil.java PRE-CREATION

>   tagsync/src/main/java/org/apache/ranger/tagsync/process/TagSyncConfig.java 6d27b02cd

>   tagsync/src/main/java/org/apache/ranger/tagsync/process/TagSyncMetricsProducer.java
PRE-CREATION 
>   tagsync/src/main/java/org/apache/ranger/tagsync/process/TagSynchronizer.java 8806c7469

>   tagsync/src/main/resources/ranger-tagsync-site.xml 9a14c1cc7 
>   ugsync/src/main/java/org/apache/ranger/unixusersync/config/UserGroupSyncConfig.java
1d4e37fcf 
>   ugsync/src/main/java/org/apache/ranger/usergroupsync/UserSyncMetricsProducer.java PRE-CREATION

>   ugsync/src/test/resources/ranger-ugsync-site.xml 0a1a86da0 
>   unixauthservice/src/main/java/org/apache/ranger/authentication/UnixAuthenticationService.java
1ee5e21ba 
> 
> 
> Diff: https://reviews.apache.org/r/71993/diff/4/
> 
> 
> Testing
> -------
> 
> Validated metrics which are getting generated at configured interval when usersync and
tagsync services start. 
> I have kept below parameter configurable
> 1. Metircs Name (Default value metrics.json)
> 2. Metrics Diroctory (must have write permission and defualt value /tmp/)
> 3. frequency at metrics get updated (defualt value: 10 sec)
> 4. metrics enbaled or disabled 
> 
> Checked for metrics.json being regularly updated based on JVM resources utilization.
Validated for usersync as well as tagsync process.
> 
> 
> Thanks,
> 
> Dineshkumar Yadav
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message