[ 
https://issues.apache.org/jira/browse/KNOX-2160?focusedWorklogId=369157&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-369157
 ]

ASF GitHub Bot logged work on KNOX-2160:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Jan/20 16:51
            Start Date: 09/Jan/20 16:51
    Worklog Time Spent: 10m 
      Work Description: pzampino commented on pull request #233: KNOX-2160 - 
Monitoring and processing refreshable service parameters
URL: https://github.com/apache/knox/pull/233#discussion_r364849673
 
 

 ##########
 File path: 
gateway-server/src/main/java/org/apache/knox/gateway/descriptor/RefreshableServiceParametersConfiguration.java
 ##########
 @@ -46,23 +49,24 @@ public RefreshableServiceParametersConfiguration(Path 
resourcePath) throws Malfo
   }
 
   // the configuration value equals to BLOCK_1;BLOCK_2;...BLOCK_N,
-  // where BLOCK_* is built up as 
$TOPOLOGY.$SERVICE.$PARMAPETER_NAME=$PARAMETER_VALUE
+  // where BLOCK_* is built up as 
$TOPOLOGY:$SERVICE:$VERSION:$PARMAPETER_NAME=$PARAMETER_VALUE
 
 Review comment:
   Also should indicate that $VERSION is optional
 
----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 369157)
    Time Spent: 1h  (was: 50m)

> Monitoring and process refreshable service parameters in Knox
> -------------------------------------------------------------
>
>                 Key: KNOX-2160
>                 URL: https://issues.apache.org/jira/browse/KNOX-2160
>             Project: Apache Knox
>          Issue Type: New Feature
>          Components: Server
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 1.4.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> It'd be beneficial if there was a way to update service parameters in a 
> descriptor without using the Admin API/UI. The preferred approach is 
> described as follows. I'd add 2 new configurations:
>  - {{refreshable.service.parameters.folder}} - optional configuration to 
> indicate if Knox should monitor the given folder for service parameter 
> changes. If it's {{null}} -> no monitoring is enabled.
>  - {{refreshable.service.parameters.folder.monitor.interval}} - indicates the 
> time period Knox checks if any parameter changes were made; defaults to 60 
> seconds. This is relevant only if {{refreshable.service.parameters.folder}} 
> is {{not null}}.
> A new monitor would be implemented (triggered only if monitoring is enabled) 
> as follows:
>  # checks {{refreshable-service-parameters.xml}} within the configured 
> {{refreshable.service.parameters.folder}}. The relevant configuration's name 
> is {{refreshable.service.parameters}}.
>  # if there is new content (based on file timestamp) -> parse the file and 
> build a new parameter list -> trigger topology redeployment with the new 
> parameter list by rewriting the appropriate descriptor file.



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

Reply via email to