zeroflag opened a new pull request, #833:
URL: https://github.com/apache/knox/pull/833

   ## What changes were proposed in this pull request?
   
   Adding configurable connect, read and write timeout parameters to CM's 
discovery client.
   
   ## How was this patch tested?
   
   gateway-site.xml
   
   ```xml
   <property>
       
<name>gateway.cloudera.manager.service.discovery.connect.timeout.msec</name>
       <value>15000</value>
   </property>
   
   <property>
       <name>gateway.cloudera.manager.service.discovery.read.timeout.msec</name>
       <value>16000</value>
   </property>
   
   <property>
       
<name>gateway.cloudera.manager.service.discovery.write.timeout.msec</name>
       <value>17000</value>
   </property>
   ```    
   
   ```bash
   cat conf/descriptors/test.json
   
   {
     "name" : "cdp-proxy",
     "discovery-type" : "ClouderaManager",
     "discovery-address" : "http://ccycloud-1.amagyar.root.comops.site:7180";,
     "discovery-user" : "test",
     "discovery-pwd-alias" : "pass",
     "provider-config-ref" : "default-providers",
     "read-only" : true,
     "cluster" : "Cluster 1",
     "services" : [ {
       "name" : "CM-API",
       "version" : null,
       "urls" : null
     }
    ]
   }
   ```
   
   ```bash
   ./bin/knoxcli.sh create-alias pass --value pass
   ```
   
   gateway.log
   
   ```
   2024-01-17 12:52:05,839  DEBUG discovery.cm 
(DiscoveryApiClient.java:configureTimeouts(147)) - Service discovery client 
connect timeout 15,000ms, read timeout 16,000ms, write timeout 17,000ms
   ```
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@knox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to