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

Billie Rinaldi edited comment on YARN-8060 at 3/24/18 9:13 PM:
---------------------------------------------------------------

This patch creates a default readiness check that checks whether a component 
instance has an IP assigned. If no readiness check is specified, this probe 
will be used. If a readiness check of type DEFAULT is explicitly specified, 
optional properties can be configured for the readiness check to enable DNS 
checking for component instances. If the property dns.check.enabled is set, the 
readiness check will use InetAddress.getByName to see if a DNS lookup succeeds 
for the component instance hostname. If the DNS check is enabled and the 
property dns.address (IP:host) is also set, the DNS lookup will be performed 
against the specified DNS server (e.g. RegistryDNS).

{noformat}
      "readiness_check": {
        "type": "DEFAULT",
        "properties": {
          "dns.check.enabled": "true",
          "dns.address": "<IP>:<port>"
        }
      }
{noformat}

Also, the HTTP and PORT readiness checks extend the default readiness check, so 
that they can optionally enable DNS checking using the same properties.


was (Author: billie.rinaldi):
This patch creates a default readiness check that checks whether a component 
instance has an IP assigned. If no readiness check is specified, this probe 
will be used. If a readiness check of type DEFAULT is explicitly specified, 
optional properties can be configured for the readiness check to enable DNS 
checking for component instances. If the property dns.check.enabled is set, the 
readiness check will use InetAddress.getByName to see if a DNS lookup succeeds 
for the component instance hostname. If the DNS check is enabled and the 
property dns.address (IP:host) is also set, the DNS lookup will be performed 
against the specified DNS server (e.g. RegistryDNS).

{noformat}
      "readiness_check": {
        "type": "DEFAULT",
        "properties": {
          "dns.check.enabled": "true",
          "dns.address": "<IP>:<port>"
        }
      }
{noformat}

> Create default readiness check for service components
> -----------------------------------------------------
>
>                 Key: YARN-8060
>                 URL: https://issues.apache.org/jira/browse/YARN-8060
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn-native-services
>            Reporter: Billie Rinaldi
>            Assignee: Billie Rinaldi
>            Priority: Major
>         Attachments: YARN-8060.1.patch
>
>
> It is currently possible for a component instance to have READY status before 
> the AM retrieves an IP for the container. We should make sure the IP has been 
> retrieved before marking the instance as READY.
> This default probe could also have an option to check for a DNS entry for the 
> instance's hostname if a DNS address is provided.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to