You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/02/26 14:25:00 UTC

[jira] [Commented] (DRILL-7582) Drill docker Web UI doesn't show resources usage information if map the container to a non-default port

    [ https://issues.apache.org/jira/browse/DRILL-7582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17045575#comment-17045575 ] 

ASF GitHub Bot commented on DRILL-7582:
---------------------------------------

agozhiy commented on pull request #1999: DRILL-7582: Moved Drillbits REST API communication to the back end layer
URL: https://github.com/apache/drill/pull/1999
 
 
   # [DRILL-7582](https://issues.apache.org/jira/browse/DRILL-7582): Moved Drillbits REST API communication to the back end layer
   
   ## Description
   
   There is a list of Drillbits on the Web UI index page and some statistics, such as Heap Memory Usage, Direct Memory Usage, CPU Usage, Avg Sys Load, Uptime.
   Retrieving these stats is implemented by javascript REST API calls from client side. This causes the following problems:
   - Requires all Drillbit hostnames to be be added to client hosts as they are used in the URLs.
   - Won't work with SSL/TLS enabled.
   - Won't work if the Drill cluster is running in isolated environment such as Kubernetes.
   - Won't work if Drill is running in docker and the Web port is remapped (e.g. -p 80:8047)
   
   Now all these HTTP requests are sent by [org.apache.http.impl.nio.client.CloseableHttpAsyncClient](http://hc.apache.org/httpcomponents-asyncclient-dev/httpasyncclient/apidocs/org/apache/http/impl/nio/client/CloseableHttpAsyncClient.html) in back end.
   
   ## Documentation
   Statistics should be displayed in all cases.
   
   ## Testing
   Tested manually with SSL enabled/disabled as well as authentication.
   Unit / Functional tests were passed.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Drill docker Web UI doesn't show resources usage information if map the container to a non-default port
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-7582
>                 URL: https://issues.apache.org/jira/browse/DRILL-7582
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.17.0
>            Reporter: Anton Gozhiy
>            Assignee: Anton Gozhiy
>            Priority: Major
>
> *Steps:*
> # Run Drill docker container with non-default port published:
> {noformat}
> $ docker container run -it --rm -p 9047:8047 apache/drill
> {noformat}
> # Open Drill Web UI (localhost:9047)
> *Expected result:*
> The following fields should contain relevant information:
> * Heap Memory Usage
> * Direct Memory Usage
> * CPU Usage
> * Avg Sys Load
> * Uptime
> *Actual result:*
> "Not Available" is displayed.
> *Note:* if publish the default port (-p 8047:8047), everything is showed correctly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)