[ 
https://issues.apache.org/jira/browse/AMBARI-25962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brahma Reddy Battula resolved AMBARI-25962.
-------------------------------------------
    Fix Version/s: 2.7.8
                   metrics-3.1.0
       Resolution: Fixed

[~arshad.mohammad] nice catch. Committed to branch-2.7 and metric branch. 
thanks for your contribution.

> Host apps metadata is not synced to other collectors when multiple collectors 
> are installed
> -------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-25962
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25962
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-metrics
>    Affects Versions: metrics-3.0.0
>            Reporter: Mohammad Arshad
>            Assignee: Mohammad Arshad
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 2.7.8, metrics-3.1.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Host apps metadata is not synced to other collectors when multiple metrics 
> collectors are installed.
> *Steps to reproduce the issue:*
> # Install ambari metrics with two collector C1 and C2
> # Submit following metrics through collector C1
> {code:java}
> {
>   "metrics": [
>     {
>       "metricname": "cpu",
>       "appid": "skywalking",
>       "hostname": "hostXYZ",
>       "starttime": 1687849289558,
>       "metrics": {
>         "1687849289558": 100,
>         "1687849295558": 200
>       }
>     }
>   ]
> }
> {code}
> # http://COLLECTOR_C1_HOST:6188/ws/v1/timeline/metrics/hosts API call returns 
> {noformat}
> {
>     "hostXYZ": [
>         "datanode",
>         "HOST",
>         "namenode",
>         "skywalking",
>         "ams-hbase"
>     ],
>     ...
> }
> {noformat}
> This is as expected.
> # http://COLLECTOR_C2_HOST:6188/ws/v1/timeline/metrics/hosts API call returns 
> {noformat}
> {
>     "hostXYZ": [
>         "datanode",
>         "HOST",
>         "namenode",
>         "ams-hbase"
>     ],
>     ...
> }
> {noformat}
> This output indicates that new appid skywalking is not getting synced to 
> other collector C2. This new appid is not getting synced even after 5 minutes 
> which is the default ambari metrics metadata sync interval.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org
For additional commands, e-mail: issues-h...@ambari.apache.org

Reply via email to