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

gaurav singh updated IMPALA-12875:
----------------------------------
    Description: 
Identify which Coordinator pod is active from the web debug endpoint.

For the HA, we should improve the label on coordinator web response to indicate 
"Active" instance.

On the main page we could indicate "Status: Active" or "Status: Stand-by". We 
could probably add the status at the top of the main page before *"Version"* .  
The current details as output of a curl request on port 25000:
{code:java}
  <h2>Impala Server Mode: Coordinator
    (Local Catalog Mode)
    </h2>
  <h2>Vers<span id="v">i</span>on</h2>
  <pre id="version_pre">impalad version 4.0.0.2024.0.18.0-61 RELEASE (build 
82901f3f83fa4c25b318ebf825a1505d89209356)
Built on Fri Mar  1 20:13:09 UTC 2024
Build Flags: is_ndebug=true  cmake_build_type=RELEASE  library_link_type=STATIC 
 </pre>
<!-- The space after  is necessary to add a space between each flag when
this page is rendered -->  <h2>Process Start Time</h2>
  <pre>2024-03-05 17:09:09.007435000</pre> {code}
Coordinator active detection is a bit tricky as that's handled on K8s side.

  was:
Identify which Catalog and Statestore pod is active from the web debug endpoint.

For the HA, we should improve the label on catalog and statestore web response 
to indicate "Active" instance.

On the main page we could indicate "Status: Active" or "Status: Stand-by". We 
could probably add the status at the top of the main page before *"Version"* .  
The current details as output of a curl request on port 25020:
{code:java}
  <h2>Vers<span id="v">i</span>on</h2>
  <pre id="version_pre">catalogd version 4.0.0.2024.0.18.0-61 RELEASE (build 
82901f3f83fa4c25b318ebf825a1505d89209356)
Built on Fri Mar  1 20:13:09 UTC 2024
Build Flags: is_ndebug=true  cmake_build_type=RELEASE  library_link_type=STATIC 
 </pre>
<!-- The space after  is necessary to add a space between each flag when
this page is rendered -->
  <h2>Process Start Time</h2>
......
{code}
Corresponding curl request on statestored on 25010:
{code:java}
  <h2>Vers<span id="v">i</span>on</h2>
  <pre id="version_pre">statestored version 4.0.0.2024.0.18.0-61 RELEASE (build 
82901f3f83fa4c25b318ebf825a1505d89209356)
Built on Fri Mar  1 20:13:09 UTC 2024
Build Flags: is_ndebug=true  cmake_build_type=RELEASE  library_link_type=STATIC 
 </pre>
<!-- The space after  is necessary to add a space between each flag when
this page is rendered -->
  <h2>Process Start Time</h2>
{code}
Catalogd active status can be figured out using the catalogd metric: 
"catalog-server.active-status"

Statestored active status we probably don't have a metric so should add a 
similar metric and use that to determine status. 


> Identify Coordinator HA from the web debug endpoint
> ---------------------------------------------------
>
>                 Key: IMPALA-12875
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12875
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Backend
>            Reporter: gaurav singh
>            Assignee: gaurav singh
>            Priority: Major
>
> Identify which Coordinator pod is active from the web debug endpoint.
> For the HA, we should improve the label on coordinator web response to 
> indicate "Active" instance.
> On the main page we could indicate "Status: Active" or "Status: Stand-by". We 
> could probably add the status at the top of the main page before *"Version"* 
> .  The current details as output of a curl request on port 25000:
> {code:java}
>   <h2>Impala Server Mode: Coordinator
>     (Local Catalog Mode)
>     </h2>
>   <h2>Vers<span id="v">i</span>on</h2>
>   <pre id="version_pre">impalad version 4.0.0.2024.0.18.0-61 RELEASE (build 
> 82901f3f83fa4c25b318ebf825a1505d89209356)
> Built on Fri Mar  1 20:13:09 UTC 2024
> Build Flags: is_ndebug=true  cmake_build_type=RELEASE  
> library_link_type=STATIC  </pre>
> <!-- The space after  is necessary to add a space between each flag when
> this page is rendered -->  <h2>Process Start Time</h2>
>   <pre>2024-03-05 17:09:09.007435000</pre> {code}
> Coordinator active detection is a bit tricky as that's handled on K8s side.



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

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

Reply via email to